From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.118]) by mx.groups.io with SMTP id smtpd.web08.5492.1622023927430023084 for ; Wed, 26 May 2021 03:12:07 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=XU0rUVxF; spf=pass (domain: os.amperecomputing.com, ip: 40.107.94.118, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D+I+0CIw4rTw1gyFq3WPKad38kY9PG78UjKzp+iPsQNeIeZ4tByF1+bzG/N1G6gqkOmVGjxG6kEuCgb55b8Y4S1GCVXBPX9+zYEd7rOGxpTEKuGCqzg4vHGQyQAonlseZMtQrCya2pWXRdRIpuJ9U7IQ7sQopNnxJuwPpHu0Ya07nDaMU9puc1fEiUNyeN1SF05LDFNGFzs639WI1DEFQmFrqScuUb5PZUSbaWVojCnfOgpD3A/wfJyMOo8idXpCL0ZdT9D1/ULqFgvVEKq6Ha14dc0TKJ7WJ4ZY20661xKSxITdsyKIy4pbYhvNHED5iECvSa/tZjZPLA1geJUvjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FMnEkllVVG9gIKKscNev0eDg4/yszw7CVwCVyG7mpGI=; b=SAzfL2HpgCv3kUdBWQZIwuD52TLEdKOTf+UX+ll8lE1ql05e2qeHW00Z1QGbA7R6yjuoxSbXnF0VAGAUs2TG/k97WvcKVXJv3MqddUVvJc11oeWKjZww9DZ8I89KZg5f9YNT5xl5Aywk9MOvTm7JYNF+Ts/z3O+1hopunMWvR4MbHJGMeWVk4Yf7TgZwaRFmHnK/bjoDLlU+PP6RYkz60vomHSOpeLx2bHBKU9iEJ9sTz4J8jKQRVmJu/bXI2GoRLzhKHcit0Im9NFzh8RL0PZVslB5qpxjeC3JQ7/uxxL3dbWmM962/MlVuezu+gtunQNFKdKfpqbulAGIPHIQ7Hw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FMnEkllVVG9gIKKscNev0eDg4/yszw7CVwCVyG7mpGI=; b=XU0rUVxFkByivnUUmagm2yH10hiba7XrkHglCZdxwJtKXnUKIO7FzupFHa3KH1GyHQApfujMYYRuClEG0znRKp5a5RZB1Eou682z1+ubvP42C7lCIswDtIN4WOFwE1Q5DHmxmGqyKf/mel2aTsKlP9ChnyaX6ot8pxrQPu7frFA= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM6PR01MB5849.prod.exchangelabs.com (2603:10b6:5:205::20) by DM5PR01MB2426.prod.exchangelabs.com (2603:10b6:3:3b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Wed, 26 May 2021 10:12:06 +0000 Received: from DM6PR01MB5849.prod.exchangelabs.com ([fe80::60d2:86dd:1f1c:51dd]) by DM6PR01MB5849.prod.exchangelabs.com ([fe80::60d2:86dd:1f1c:51dd%7]) with mapi id 15.20.4173.020; Wed, 26 May 2021 10:12:06 +0000 From: "Nhi Pham" To: devel@edk2.groups.io CC: Vu Nguyen , Thang Nguyen , Chuong Tran , Phong Vo , Leif Lindholm , Michael D Kinney , Ard Biesheuvel , Nate DeSimone Subject: [edk2-platforms][PATCH v2 17/32] JadePkg: Enable PCIe-related libraries and device drivers Date: Wed, 26 May 2021 17:07:09 +0700 Message-ID: <20210526100724.5359-19-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210526100724.5359-1-nhi@os.amperecomputing.com> References: <20210526100724.5359-1-nhi@os.amperecomputing.com> X-Originating-IP: [118.69.219.201] X-ClientProxiedBy: HKAPR04CA0008.apcprd04.prod.outlook.com (2603:1096:203:d0::18) To DM6PR01MB5849.prod.exchangelabs.com (2603:10b6:5:205::20) Return-Path: nhi@os.amperecomputing.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (118.69.219.201) by HKAPR04CA0008.apcprd04.prod.outlook.com (2603:1096:203:d0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Wed, 26 May 2021 10:12:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71044ed0-3ce9-44dd-5e1e-08d9202eb705 X-MS-TrafficTypeDiagnostic: DM5PR01MB2426: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:160; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jBb+Ducp9W0/SmYpgI09KSverJlAA1zs05xqdUpTJv9J9j8FmHMC2HLHDc+kN7UbXCYVcRkDWKWGqMYkFi1ZyksI9GZ1J5S3S6ZUR3hpPwqhRO+s1pBg2r+QOk6IOMqWUKrFramg5oflL3aZDouO8E+0QAp4eUa5J90jGeWnB0ODRRURRt7wU69mE19lwuh9WckoYvR1kdxLW5C3uLhapdGhzGT+By65I7IuWYBqo8z3m5xHS/EMARxPdoEZ10TLMkL5Q1r3HMTDze1jqTid4P+YwQcQb2rDcrOu5Rd6pTSvHvSLGF8v2xMkpy3zmD39yOD4P3fmyx9QrpEOkiGdE2BeqAeUSaF/X006tjr6GQDky0fB4wZiJP2BExivH8U2DlVKlwfIAC/1YGbW7pNQB0m7uJZWRSvpccTtTBXhsYIDdUbi5F5zbgpvOD+KvNo4UfdYjxrQF5DihxkQ1Qho7tTbzSuEuvrkjbnMYYsFDH3AvjaWZ4v4F/qkzCkoo4zaa4aLWNq/C8I6m99zcGUqgDLEPrrQTJAYe6dHm/7bZll7st1DWlDF+4kUqv7LXDG3/w4LTmli123RVhIbE1Xe6bOgTtqql8V/vqDwssJfpE8jFpYzNu2QrCW9LPdkz0iygY3l5MyPfTXWVeQVR7h5hB+i/Wm5/zigpYncn6P+SooO7FFZEUDCeuoWm1hHMb37 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR01MB5849.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(39850400004)(136003)(346002)(366004)(376002)(186003)(66476007)(6506007)(2616005)(6486002)(66946007)(52116002)(6916009)(16526019)(38100700002)(38350700002)(1076003)(83380400001)(66556008)(6512007)(956004)(316002)(478600001)(4326008)(8676002)(5660300002)(26005)(86362001)(2906002)(8936002)(54906003)(69590400013);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?Y1Z8+SBmj5POqt0ryqgHmSi/HoXUJ0FPehPc52vgqBezmHaykFBKdjg6rSHL?= =?us-ascii?Q?Nc2QNHw9DDds0o3fySnh5G6CRkEhMuhEOh2IejxJFIjfx+xQ33hhwRr8XwfS?= =?us-ascii?Q?3AzEg4tiai/6MDN56y+GChKjmKo/9K47YW+TDn3iITZCLJBKQtv7W8cFthqo?= =?us-ascii?Q?b2klvE+/ZNsDo0TYuLrUTbJTaZpk3eyGIIN6a7XY5vLkXM/TM4NjCCTIc2E1?= =?us-ascii?Q?UYkcsw0r8s++Jq3aLp/uQCWEOTFww2E32aN/6N2AYtE3pvXYrrj6O8SzV5q5?= =?us-ascii?Q?ukMn0IjSbD3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joXkdirlrRV?= =?us-ascii?Q?sV8qA6UKNYYjop5NMXlYk7WV2TnTHsq/BaYC/9hV6HB078/awt1HE+abMbd6?= =?us-ascii?Q?btcEC2VnRQmQQ8Llu9TgynYLQFff4jwDB1os4GZgta4Dhv7upBaNEZdx6OTF?= =?us-ascii?Q?OcGMfUeDP3owy/olKrBMemPJ?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71044ed0-3ce9-44dd-5e1e-08d9202eb705 X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5849.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2021 10:12:06.2271 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rhWs8R8VgcAnrgGvUoXzjAz87YnrFKKCb2kJWtO65tVvTH29H3HeAMRovEQeGoILzUyW9Box3t9Zo9bL9+keBaOxYk9yXQ27OY/TMRGnPWg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR01MB2426 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Vu Nguyen This change also enables the support for SCSI, NVMe, USB keyboard, and USB storage devices. Cc: Thang Nguyen Cc: Chuong Tran Cc: Phong Vo Cc: Leif Lindholm Cc: Michael D Kinney Cc: Ard Biesheuvel Cc: Nate DeSimone Signed-off-by: Vu Nguyen --- Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc | 34 ++++++++++++++++= ++++ Platform/Ampere/JadePkg/Jade.dsc | 5 +++ Platform/Ampere/JadePkg/Jade.fdf | 33 ++++++++++++++++= +++ 3 files changed, 72 insertions(+) diff --git a/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc b/Silicon= /Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc index fc8e0b40ee19..33f5fe7af544 100755 --- a/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc +++ b/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc @@ -83,6 +83,7 @@ [LibraryClasses.common] NVParamLib|Silicon/Ampere/AmpereAltraPkg/Library/NVParamLib/NVParamLib.i= nf MailboxInterfaceLib|Silicon/Ampere/AmpereAltraPkg/Library/MailboxInterfa= ceLib/MailboxInterfaceLib.inf SystemFirmwareInterfaceLib|Silicon/Ampere/AmpereAltraPkg/Library/SystemF= irmwareInterfaceLib/SystemFirmwareInterfaceLib.inf + PciePhyLib|Silicon/Ampere/AmpereAltraBinPkg/Library/PciePhyLib/PciePhyLi= b.inf PcieCoreLib|Silicon/Ampere/AmpereAltraPkg/Library/PcieCoreLib/PcieCoreLi= b.inf AmpereCpuLib|Silicon/Ampere/AmpereAltraPkg/Library/AmpereCpuLib/AmpereCp= uLib.inf TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf @@ -648,6 +649,39 @@ [Components.common] MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf FatPkg/EnhancedFatDxe/Fat.inf =20 + # + # SCSI Bus and Disk Driver + # + MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf + MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf + + # + # SATA Support + # + MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf + MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf + MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf + MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDevic= eDxe.inf + + # + # NVME Support + # + MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf + + # + # USB Support + # + MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf + MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf + MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf + MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf + + # + # PCIe Support + # + MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + Silicon/Ampere/AmpereAltraPkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.= inf + # # Bds # diff --git a/Platform/Ampere/JadePkg/Jade.dsc b/Platform/Ampere/JadePkg/Jad= e.dsc index 0f9d0adbd34e..576e1c3ab663 100755 --- a/Platform/Ampere/JadePkg/Jade.dsc +++ b/Platform/Ampere/JadePkg/Jade.dsc @@ -88,6 +88,11 @@ [LibraryClasses] AcpiHelperLib|Platform/Ampere/AmperePlatformPkg/Library/AcpiHelperLib/Ac= piHelperLib.inf AcpiPccLib|Platform/Ampere/AmperePlatformPkg/Library/AcpiPccLib/AcpiPccL= ib.inf =20 + # + # Pcie Board + # + PcieBoardLib|Platform/Ampere/JadePkg/Library/PcieBoardLib/PcieBoardLib.i= nf + ##########################################################################= ###### # # Specific Platform Pcds diff --git a/Platform/Ampere/JadePkg/Jade.fdf b/Platform/Ampere/JadePkg/Jad= e.fdf index 2c6f9fac76fd..fc47556b072b 100755 --- a/Platform/Ampere/JadePkg/Jade.fdf +++ b/Platform/Ampere/JadePkg/Jade.fdf @@ -266,6 +266,39 @@ [FV.FvMain] INF FatPkg/EnhancedFatDxe/Fat.inf INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.i= nf =20 + # + # SCSI Bus and Disk Driver + # + INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf + INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf + + # + # SATA Support + # + INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf + INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf + INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf + INF MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciD= eviceDxe.inf + + # + # NVME Support + # + INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf + + # + # USB Support + # + INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf + INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf + INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf + INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf + + # + # PCIe Support + # + INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + INF Silicon/Ampere/AmpereAltraPkg/Bus/Pci/PciHostBridgeDxe/PciHostBridge= Dxe.inf + # # UEFI application (Shell Embedded Boot Loader) # --=20 2.17.1