From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (NAM02-DM3-obe.outbound.protection.outlook.com [40.107.95.114]) by mx.groups.io with SMTP id smtpd.web09.9883.1631721615523271725 for ; Wed, 15 Sep 2021 09:00:15 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=sNndaXCg; spf=pass (domain: os.amperecomputing.com, ip: 40.107.95.114, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yo3SSWPfgSWWpJi03XZv7OXeghyxsR4cwMHOc/gBdZ9zWdRtiC+raBWBCNDJNfUcCjgxWLIbHrmxZYCol885eiSlCwM9raLxfEcruXRWgfzE4nv41xXoNaP2+NchGyL6gZ+V/k44bOKOWbwdX0PaiWWVgi49ICpelsZP258e+GcE4Y2lE7Cq7dNTJMwGJzTulWQwI3Xe7YbGNQ5wTpRJuinKy6syi/23UfoiIwNx99lEb0DO6EktQwWkf9Tvz54tre+wbrDNkB3cw2JObtC53ww8etrMqSY8JLHmVFESEfgygSaQvcMiuHW5qBPNit21yGuu4urwvLipZXPIbQa79w== 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; bh=0KD7+wYXTvazwF0csIkoZb2lzgIZX4zVg8FTLekpmMA=; b=F84Vb3pZ8yTyBh+EoTZBaMcKTcz0wfgmAKD6urkCqjU5vWOjPg6w35nFgf8Q6ZABONn8NGWUtoYAkO9QdYpOXSRSleyV7OL+B72Bd9TrbycGEUF/3BB/5RbBICOF5y+QW+KBTIsdl41nPUqVCDLDVW+AgN82MQZW3qGFmQgGfkjshezVpXO6hEJ+8D+1SaJkTIIpCJd+6Gq8J74N4dQ5puwZgmHe+eW7Dk/wVwXDRCOPrW1fmdvI/2knlfsOyiabOdHFG1Cv1DnYnzviNflc0jtAqYRXYn3mmcMTlGIZYoXc+H41q9FnsVxBzZxbJypHMRihbt1xe2ZIO/IIYK7JnA== 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=0KD7+wYXTvazwF0csIkoZb2lzgIZX4zVg8FTLekpmMA=; b=sNndaXCgXMImAJwQ27vZe4auR0CAE4C3jRuixREaMjBqBhCFibz0y3DsvOY6g/4UGqzgCZ9N4rCd+qjkyq2Mdr88E69ZYxvbsupAfsky0ZBe3Zv8C0b7RBLoCdqylhuMDVJkrjA59yaIJYkEqZZLyGFSp37YRvg89o2TcpeXvD0= 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 DM5PR01MB2761.prod.exchangelabs.com (2603:10b6:3:fd::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Wed, 15 Sep 2021 16:00:13 +0000 Received: from DM6PR01MB5849.prod.exchangelabs.com ([fe80::8eb:704f:2ba7:9bc3]) by DM6PR01MB5849.prod.exchangelabs.com ([fe80::8eb:704f:2ba7:9bc3%4]) with mapi id 15.20.4523.014; Wed, 15 Sep 2021 16:00:13 +0000 From: "Nhi Pham" To: devel@edk2.groups.io CC: patches@amperecomputing.com, nhi@os.amperecomputing.com, vunguyen@os.amperecomputing.com, Thang Nguyen , Chuong Tran , Phong Vo , Leif Lindholm , Michael D Kinney , Ard Biesheuvel , Nate DeSimone Subject: [PATCH v3 16/28] JadePkg: Enable PCIe-related libraries and device drivers Date: Wed, 15 Sep 2021 22:55:15 +0700 Message-ID: <20210915155527.8176-17-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210915155527.8176-1-nhi@os.amperecomputing.com> References: <20210915155527.8176-1-nhi@os.amperecomputing.com> X-ClientProxiedBy: HK2PR0302CA0012.apcprd03.prod.outlook.com (2603:1096:202::22) To DM6PR01MB5849.prod.exchangelabs.com (2603:10b6:5:205::20) Return-Path: nhi@os.amperecomputing.com MIME-Version: 1.0 Received: from sw004.amperecomputing.com (118.69.219.201) by HK2PR0302CA0012.apcprd03.prod.outlook.com (2603:1096:202::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.5 via Frontend Transport; Wed, 15 Sep 2021 16:00:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6fb92592-8973-4b0f-c69b-08d97861e5c4 X-MS-TrafficTypeDiagnostic: DM5PR01MB2761: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:160; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sgJLXMbT8OFfi6f/ubNa/bsBGiUn8yOV088Nvc62hTlYxv+Oc7YlkDvrx4DdTROk6GCqFzkIS4KSpb5YiIAXNDncBmhdYQPyKpA1tpi9n5HOMTTeUuIsKRV+7P9oxqrAHnBzSbFKTq9e3/HVqivWp5+DYybcSdG4irmgF6/cJBlKoAlsdy5YLtfJxfpDA65wQGQwbiemA08womuotDbgGz+sDrW6XYPv3TkXU0vEOgE17XdnVHzuQDsRUttme7Aq/yC7T4HqNdkTKUx3MwipnTDqYYP+dAOO/LVhqorI00e636EnSx+qb3hYPZK3HIekF68Vqo19D8hnsO0e3qI8WFqvTMUhZ71u8qOq94LTcsq96aJ6ebKCszbPI49VyaKEvfAmTQUT7brfQNiIvfOP6Q82yh+zOskfV6588yGsYTyRdiEPWNCvVFo16TJL7BIibjUbEDl2tDVWNSZ6wNU3e+vVO1yY2nEm7ANkzvLXh0eOVXafpiasB8aP6WI0R1hBr7f4Mq2CRIIzcmO+ubOEvI2J4SKp1W1EmY4G5/ubPn1w5XyAs/plzEENn8avj6OVR2H9WkAMtLjQSR+zHZLcR/CCMLhBgr/BgZLWDTwY563pDQ5reBnpP2HvRF98T1xQ0KAu275tsUgOElY9ca0qCj3YO4vxtkUgS41td5l4uWchtnGgRs0bN07oWLVcvND2SCaYhRar4nXCPVm95PLPww== 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)(366004)(86362001)(6506007)(186003)(52116002)(1076003)(54906003)(6916009)(6512007)(508600001)(2906002)(26005)(6486002)(2616005)(83380400001)(6666004)(4326008)(66946007)(956004)(66476007)(66556008)(38100700002)(5660300002)(38350700002)(8676002)(8936002)(316002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PnMDAe+4jGPYBnNCJ7kST8OKinfT7n47U7ohT6VlVsYJmFzrfjzW1CUSMClH?= =?us-ascii?Q?cqyhI2EWinAcQNcCpZeDh1GktCrVz5pNH2IY3TLRNDzZlGaEyPNQq+HafcGu?= =?us-ascii?Q?zwA9Pw3qRPVoCFmJEqmow8qJMG9SCyZCuYgN4VqE3deOcegMKsZMNaAvGGCe?= =?us-ascii?Q?nohp/oD4eFSDZmV0Y2kcNYZLu+13F1myl4flbQct4sMGV0iQ62gxKnEriXvk?= =?us-ascii?Q?/24vnCvpIsOJVCy7epuR35UZ6FWldx3F7EyuuaOKQB9tCzV9zRYXwzs0qweM?= =?us-ascii?Q?7hX43k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?= =?us-ascii?Q?aAfIcVxf2uG5swFukzTl7Y39wMCHrvJMRkzu698tCpVM5qGDVUWhM37R14mL?= =?us-ascii?Q?3/uObJFwCFYEe2t/RK2LNgeAvCA8jcaEWCA9da3IALOHIgwQa/FLP7XTGMAd?= =?us-ascii?Q?FLQDB+6ecYSblnoeB9YiUdC4?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fb92592-8973-4b0f-c69b-08d97861e5c4 X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5849.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2021 16:00:11.4783 (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: B/DjQIOqMFSDtXZMVWNaDnPk9gI+NZkJLAsdS4rSfwn/3QiQi0l37gHFUP5axJ9mXcQDQdEOPGbJ9EhraoaCR056WOlwQryHEuvAfGTlXhU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR01MB2761 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 Reviewed-by: Leif Lindholm --- Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc | 34 ++++++++++++++++= ++++ Platform/Ampere/JadePkg/Jade.fdf | 33 ++++++++++++++++= +++ 2 files changed, 67 insertions(+) diff --git a/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc b/Silicon= /Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc index dbcd1c9acaa2..655cf0258608 100644 --- a/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc +++ b/Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc @@ -82,6 +82,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 Ac01PcieLib|Silicon/Ampere/AmpereAltraPkg/Library/Ac01PcieLib/Ac01PcieLi= b.inf AmpereCpuLib|Silicon/Ampere/AmpereAltraPkg/Library/AmpereCpuLib/AmpereCp= uLib.inf TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf @@ -657,6 +658,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 + MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf + # # Bds # diff --git a/Platform/Ampere/JadePkg/Jade.fdf b/Platform/Ampere/JadePkg/Jad= e.fdf index 2c6f9fac76fd..3f1ad9a49cd0 100644 --- 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 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf + # # UEFI application (Shell Embedded Boot Loader) # --=20 2.17.1