From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by mx.groups.io with SMTP id smtpd.web09.4321.1607678767019316020 for ; Fri, 11 Dec 2020 01:26:07 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: ispras.ru, ip: 83.149.199.84, mailfrom: cheptsov@ispras.ru) Received: from localhost.localdomain (unknown [77.232.9.83]) by mail.ispras.ru (Postfix) with ESMTPSA id 7D35740A1DA4; Fri, 11 Dec 2020 09:26:03 +0000 (UTC) From: "Vitaly Cheptsov" To: devel@edk2.groups.io Cc: Vitaly Cheptsov , Jian J Wang , Hao A Wu , Mateusz Albecki , Laszlo Ersek Subject: [PATCH 1/2] MdeModulePkg/SataControllerDxe: Add support for drives in RAID mode Date: Fri, 11 Dec 2020 12:25:01 +0300 Message-Id: <20201211092502.21763-1-cheptsov@ispras.ru> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3118 This resolves the problem of using drivers connected to Intel G33 builtin SATA controller when run from DuetPkg when it can only be configured in RAID mode through the firmware settings. Cc: Jian J Wang Cc: Hao A Wu Cc: Mateusz Albecki Cc: Laszlo Ersek Signed-off-by: Vitaly Cheptsov --- MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c b/Md= eModulePkg/Bus/Pci/SataControllerDxe/SataController.c index ab06e2833c..301335c967 100644 --- a/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c +++ b/MdeModulePkg/Bus/Pci/SataControllerDxe/SataController.c @@ -324,7 +324,7 @@ SataControllerSupported ( return EFI_UNSUPPORTED; } =20 - if (IS_PCI_IDE (&PciData) || IS_PCI_SATADPA (&PciData)) { + if (IS_PCI_IDE (&PciData) || IS_PCI_SATADPA (&PciData) || IS_PCI_RAID = (&PciData)) { return EFI_SUCCESS; } =20 @@ -465,7 +465,7 @@ SataControllerStart ( if (IS_PCI_IDE (&PciData)) { Private->IdeInit.ChannelCount =3D IDE_MAX_CHANNEL; Private->DeviceCount =3D IDE_MAX_DEVICES; - } else if (IS_PCI_SATADPA (&PciData)) { + } else if (IS_PCI_SATADPA (&PciData) || IS_PCI_RAID (&PciData)) { // // Read Ports Implemented(PI) to calculate max port number (0 based)= . // --=20 2.24.3 (Apple Git-128)