From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (NAM02-BN1-obe.outbound.protection.outlook.com [40.107.212.79]) by mx.groups.io with SMTP id smtpd.web09.6259.1659626715805104966 for ; Thu, 04 Aug 2022 08:25:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ami.com header.s=selector1 header.b=UzgYz8ye; spf=pass (domain: ami.com, ip: 40.107.212.79, mailfrom: igork@ami.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkKmVrAhlc72fcOBqWBYqGW9sI8hZ1j27yu0kiHJcwNnaL53lqv+kCRNXLEJeCriHSiSqxCc1VFUh/4dMUsMe9UaFh6dpHRFhokXkleehSJrMMxgTg1yXqkC+22TbvTasqQWfJK2O1Zx0Rj9UR15NfRWrSu9UJFtQomfjxgP7w9Dw5+oArKKj8PiU7gHvclq1RHDOyYvE96Qds4ThHn6ywY9ROtDZSAZlH99tLJM/PYisLqEyu1A/qlc5UD023D3AXbEOoPA9P2q/xWAmCAggPx2kmBP4Hptx6/yfqIkkiYQJrWaV6EkfY2DnuhOLLExQDyzNk58hPPDXIMkDJcLAw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8UmW2BEgdBss1ccvTkm0eS1mtyu9dz/btRBtkLCTxUU=; b=PcGo2ewkdKZ2wmHXMY69DH67vL3H4MnhjJy7Xn1XKphLDgiipOV6F67uMSTHx8bxOUbxS36sXQZj8Ao9KU1wqRO6XrfTaI+TTrzvCQuGNtWJjO50/KpojXckiIcY7WEYPN8kfLk5CBrZJEEHqHISXMwl0FJyLTSkgDsiWOlKZIuFIS6bk8Wg2aMZ4W2STMFhSI3E+jXa2BG7YL5VXyeorb+GPcYWqiFkyzL/GQWM+SJt0E4slpveRjMRgp9c7WxNmBaFpJYmZ5bcxLc22cTPj8GdY1b7MX95bUrhIXnEXL0SbQdOPA7JKWfqfK8oRsUwAK9PUE92I7XslZgRHwxxqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ami.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8UmW2BEgdBss1ccvTkm0eS1mtyu9dz/btRBtkLCTxUU=; b=UzgYz8yeixvbaW5LH3T0Ffhcjb2G96kDjC4xOOfwmnnSJ6IDjrMa3zYjTJY+UC9ikz4u+FK5Z82RoU0MUbzGbQ7jZseZN6Uc+WZ97RZN8s1fKGhgPb/bm9dc9eNmtzjNaowMv1LyEmabPrxkxZArD5VbiQNnWIudus11Dhrc79A= Received: from BLAPR10MB5185.namprd10.prod.outlook.com (2603:10b6:208:328::16) by DM8PR10MB5448.namprd10.prod.outlook.com (2603:10b6:8:39::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Thu, 4 Aug 2022 15:25:13 +0000 Received: from BLAPR10MB5185.namprd10.prod.outlook.com ([fe80::9da7:b02b:d292:d57c]) by BLAPR10MB5185.namprd10.prod.outlook.com ([fe80::9da7:b02b:d292:d57c%7]) with mapi id 15.20.5504.016; Thu, 4 Aug 2022 15:25:13 +0000 From: "Igor Kulchytskyy" To: "Abner.Chang@amd.com" CC: "nickle.wang@hpe.com" , Igor Kulchytskyy , "devel@edk2.groups.io" Subject: [PATCH] RedfishPkg: RedfishDiscoverDxe: USB Redfish host interface is not supported Thread-Topic: [PATCH] RedfishPkg: RedfishDiscoverDxe: USB Redfish host interface is not supported Thread-Index: AQHYqBZkooOwOPqdpUetZUJUGJMh9A== Date: Thu, 4 Aug 2022 15:25:13 +0000 Message-ID: <1659626705-20532-1-git-send-email-igork@ami.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ami.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7c2b8220-f6d0-4e8f-dc07-08da762d86fd x-ms-traffictypediagnostic: DM8PR10MB5448:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dqZP1WBhQaEhZ1hHCJqb7pxzf1XmiZV31PQ6M6Dsm8uRX0i+1mohQTtTQTr4sFB3xRNMrigI2aE167f89suLqQXKn+Kami/b5x+pgmHm8HhbP2Kl2CVvC9wgrQdTPcqVOrlo2ampuaJ8d/1w9BfEDE9lh3ivx5rOm5s+hrIpiT5Dm5QQaadAaZXE1ZDlC9UaJtHO3aS4JMjqc1wJ5NJHmpiXOQQ16zp+3AhiAbo89zrEM6LAaEXftLyG5Ln9DJVKBFcSVwQrHJ+1QtvzmwM0rOYDPZH5EKRxr+rhi4ry/irsOjuuu7H68gXWfNk8/lCDdAFOxNtgwmNQVAzghh1N7I+KTkNoI/FKzzp6ZpzWow7OnhjnQIiztfLaip9JEU8tQKFcdms20pJSlu6x2A+BsQU1c7wa2x/CwV/kuCbya0KfeCDKdO4uS1pQfAcB1FVsDlbvnJvg7hMkz1J3E+sK+8m1XdIJSiDB/wTsFTmlO+XwVSdfpjOubj5UnbAQLaPIIG7C6MHvLQ8n3wvBGWHaMDqa7V+2WB+wr3t4h4h+21ISV/8ynsplFMSHqhJ67nqESgY/UNpxRVzRXoZPeEdclkqMdfxNYRhx2qhSsmLFki+xHsB8Y6ScZqiY5Os2ZZCX/E/06ueRLdwvCB/SEeL2Ja0hpZSMq/LvO4h0JOVs5EJ68Eg4xNHzcEBP81yNRSTpBHNRHjE9TZ1iAEHYc5VQRvXHh/06y/z24lrdTysgci+87160PpI2dl0bjGP1bmPhhlvQ6+bbZxpoPp9QRzJDzrdG64xFtWUYl6nS3CPtGrasHr7JGE9g8UFqjITxNoBw x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB5185.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(376002)(346002)(39850400004)(478600001)(40140700001)(54906003)(86362001)(6916009)(8936002)(83380400001)(5660300002)(6486002)(38100700002)(91956017)(186003)(38070700005)(8676002)(76116006)(2906002)(71200400001)(41300700001)(6506007)(36756003)(2616005)(6512007)(26005)(122000001)(316002)(66946007)(66476007)(66556008)(66446008)(4326008)(64756008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?JItKEsp8u0XvHDSkkGTHPjOSYWiOKcfz/x+kcu1Hkwn8K4hkJCKj1dl6Vh?= =?iso-8859-1?Q?2B4In1DHCaMK7t9hrHJ0BZPNEdbfD8RWHNhn0URGHuHpECbP81UKdVqXVg?= =?iso-8859-1?Q?BLWO5s29RRdEifpfMrbcuK+/3IiAH9ccBBE30dy/XGxSBGWL/E31rvCC44?= =?iso-8859-1?Q?AAp1ToVE2yt6tbvn8mcXOeY1NN15e1F6fZIDeiDvl01iGvMzMxQa+hiojb?= =?iso-8859-1?Q?kaua3/rMhNWbCqtFYHq82A7cmZgDaDmNEgYks1G8aZ3YiaySMrjZbIOmz4?= =?iso-8859-1?Q?aKgjqHj3aMI5kSELAjXkF69ohRjrNXHZC5dUrQflVEbZXnUA/PxYg8oh12?= =?iso-8859-1?Q?Eam5NKlG8NCwjOc9HfAzqDrlbk8s0vqbvkHAp8OOPYdibV1kGNF/SFuCuv?= =?iso-8859-1?Q?JH4YinHub4Zars5sgWAJ4yJ4alvAVts7BHWmqDRfkO5o66SudAW7OfnS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M/tRw1ISqnpfANHbqu+2YUvdPj7jnYTH?= =?iso-8859-1?Q?o079i+r3a1OK5DpFsRO7v1X94J1YDCp0IZ+hNd4e/iCknaT53r6re8gu9e?= =?iso-8859-1?Q?GQ4TA5rOxaEQlSSUJaSFp5eC/qeOoYLFzOEz2piFXuT1+l5pKilkp67Kiv?= =?iso-8859-1?Q?/8mFnzjTwOcqksfuDCREVyvGILtXesyyGHb1lvYs9XlojOTXSfoJAD6iDI?= =?iso-8859-1?Q?ceT947hMgEk3x1T/KPUDH4230TOy+4mKUh0IMPeK2SglbKUVhxnyIKapR2?= =?iso-8859-1?Q?J9Bkw8PzREx30M5Pu5XN2w3RRhjjqF4OFt?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5185.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c2b8220-f6d0-4e8f-dc07-08da762d86fd X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2022 15:25:13.6423 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0T1tW+r0Da3MiLdGzzt1k1Y7obctpY2EpLdegR6NrPGpM4FGzcAbGHCUN6niPTDd X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR10MB5448 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Host Interface details are discribed by the SMBIOS Type 42 table. The table is published by the RedfishHostInterfaceDxe driver. That driver supports PCI-E and USB host interface types. The table is consumed by the RedfishGetHostInterfaceProtocolData function in the RedfishDiscoverDxe driver. That function only supports PCI-E interface. --- RedfishPkg/RedfishDiscoverDxe/RedfishSmbiosHostInterface.c | 11 ++++++++--= - 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/RedfishPkg/RedfishDiscoverDxe/RedfishSmbiosHostInterface.c b/R= edfishPkg/RedfishDiscoverDxe/RedfishSmbiosHostInterface.c index d79750b..a3b977f 100644 --- a/RedfishPkg/RedfishDiscoverDxe/RedfishSmbiosHostInterface.c +++ b/RedfishPkg/RedfishDiscoverDxe/RedfishSmbiosHostInterface.c @@ -65,10 +65,15 @@ RedfishGetHostInterfaceProtocolData ( RecordTmp =3D (UINT8 *)Record + Offset; // - // Check Device Type, only PCI/PCIe Network Interface v2 is suppor= ted now. + // Check Device Type, PCI/PCIe and USB Network Interface v2 is sup= ported. // - if (*RecordTmp =3D=3D REDFISH_HOST_INTERFACE_DEVICE_TYPE_PCI_PCIE_= V2) { - ASSERT (SpecificDataLen =3D=3D sizeof (PCI_OR_PCIE_INTERFACE_DEV= ICE_DESCRIPTOR_V2) + 1); + if ((*RecordTmp =3D=3D REDFISH_HOST_INTERFACE_DEVICE_TYPE_PCI_PCIE= _V2) || (*RecordTmp =3D=3D REDFISH_HOST_INTERFACE_DEVICE_TYPE_USB_V2)) { + if (*RecordTmp =3D=3D REDFISH_HOST_INTERFACE_DEVICE_TYPE_PCI_PCI= E_V2){ + ASSERT (SpecificDataLen =3D=3D sizeof (PCI_OR_PCIE_INTERFACE= _DEVICE_DESCRIPTOR_V2) + 1); + } + if (*RecordTmp =3D=3D REDFISH_HOST_INTERFACE_DEVICE_TYPE_USB_V2)= { + ASSERT (SpecificDataLen > sizeof (REDFISH_HOST_INTERFACE_DEV= ICE_TYPE_USB_V2) + 1); + } *DeviceDescriptor =3D (REDFISH_INTERFACE_DATA *)RecordTmp; Offset =3D Offset + SpecificDataLen; RecordTmp =3D (UINT8 *)Record + Offset; -- 2.6.1.windows.1 -The information contained in this message may be confidential and propriet= ary to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephone= at 770-246-8600, and then delete or destroy all copies of the transmission= .