From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.66]) by mx.groups.io with SMTP id smtpd.web10.157595.1673836909103606082 for ; Sun, 15 Jan 2023 18:41:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=saXvngIq; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.93.66, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dxLowAL5l7K7vS2f3Jj/HksL5n691iquE13bE4qEuFyKhbvX4CYSnferKijBE58GALEV3XwpvQuQr5cMWv1rxXwDk6iv9NzGhUUB0ueHC+LI+fY2QXy5igMJ7yXaS06hC2B1vfZMwGfQA+lMYx4puA2NZgGogC+7YR9cQk5st+tZxHH4nB8eHF48RMBrgq6fxGmrT96seHzKz/0cHls2HiJZmwPCcEEH2ONFTMniRj/sHFsou0EmXrIsx8SZofsZfj6j/tWyzKecI64hFt+e+9xaVOBn9udzPesCcVFFwc0KuChnKRjZBrL1+kIGWBbDfHU6x2UYjFLCwzeEtWD70Q== 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=4CVo+0pGezLYSqwm0Hz3ap/JEOcaLUu5rMEEIqSXPRg=; b=R3KQj2lNeT/2YE6La2i+gBL6eKGETbHhZKR/Qj1tWMUMIrFduet0TO2ZGQsgeve813htXtUlHhibTxaxvoDx9/H9mHqGwqMRYCu9p3UbXZ21DGPyvybFVY+UxUv8yY4Sb1L90fNxIFcp5aFFyo84fYF26G1rhQsTxAlo2vjnyPLBC1BrW/q0G78ll0KcQt//YJmZAZjV8EJX4tpMEUpJ2Ap2D+G4Lvi3Dg08vaOnScb96wHMw3oj8GA80l7nN9CXIzGMBDNfn3CqpDCz2mREnspm+KwZ54MB5uei3axEQQALFL720+ZxAPCETPIp7OJ9weiLrTTgd5Av+rKYIYp+yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4CVo+0pGezLYSqwm0Hz3ap/JEOcaLUu5rMEEIqSXPRg=; b=saXvngIqAxmk4fdhlNO492PWOzyFmla6cbms4xt0HYsRhfvsXv1s46DmWbPojMx3Zp+tDS9bLA5vjvdHqDkQ+OzDYwGpxvQ96/vS17kH+BM/+3tmqkD7KMgG3yOCXdqBLO0MzlcKuZGOLLJPiIhdgZOPoMC86pdxfMw+vlZSMoo= Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by IA1PR12MB8586.namprd12.prod.outlook.com (2603:10b6:208:44e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan 2023 02:41:42 +0000 Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::cddb:3de9:cd1d:26e4]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::cddb:3de9:cd1d:26e4%5]) with mapi id 15.20.5986.022; Mon, 16 Jan 2023 02:41:36 +0000 From: "Chang, Abner" To: "Wu, Hao A" , "devel@edk2.groups.io" CC: "Ni, Ray" , "Kirkendall, Garrett" , "Lin, Kuei-Hung (Timothy)" Subject: Re: [edk2-devel] [PATCH V2 1/3] MdeModulePkg/Xhci: Initial XHCI DCI slot's Context value Thread-Topic: [edk2-devel] [PATCH V2 1/3] MdeModulePkg/Xhci: Initial XHCI DCI slot's Context value Thread-Index: AQHZJWpNNjjo/nnfTUuX7iWhgogayK6gXQuAgAAAJBA= Date: Mon, 16 Jan 2023 02:41:36 +0000 Message-ID: References: <20230111031008.1476-1-abner.chang@amd.com> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-01-16T02:41:34Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=1bc5535d-e232-478f-87ec-c00ea2017d97; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|IA1PR12MB8586:EE_ x-ms-office365-filtering-correlation-id: af56557b-97d4-4fc6-8bb8-08daf76b2fcf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 43OJXJNViOVb7gLQ4g9Mtl/tc/9hTqQ9lAsZNjcE2i7B4HZ+4vz3LrBnyY+7PlnLyHmKvgzAss4hM7CMIQ5+y0iExjWjkpTxsenyeJ8o2qOlsxsLYcjG8K+1i1dUBU5c2Fzf/3XQ2f13/XZbANvkffCrL14e9ak3IcQoVJ3XLwSEi4PAAl29RpMYBQputiJXxP7L28qdt+JTSExW1TCk5g+XLQfUShe8Tnnxrz9u0ZOGTDPQ6f6u5OLTSZZHwPch/PfBL8Hx3hCUeIYibGdkjOU7ApAJYC4LeMcRsT9IkUk5dry6Ghqj6vGInWvci13GIWmRYbDgadS48NUrm2K05q4s0xkDivkiu/yYhWU8n6CY4h7w9XvrHq9MDmoJ5slimuzXfiYQ7Hg0428dbn72tJLuNGwx84WoY9ZQLkq5FkpsIi2pnI3kKvux8fzYk0Yf0x4cy/lMB9SLB1aPrA+wVPQu603D/tWAmvxYEDYkNfAey6iZlIRvfEUMG7q/Jg9uTsiADHGwbf6OVo5Rom+8N7nU/zOGitqnJGenOC0ta6z/5JqkyemxdXDAdgosRrdtgJXdBVyKF09LxrVISWTA89tr6TCrM4+NmZ09wOGU6gvvaR/zKQpbMcuFb43xuxZRzkeLfKusFL85/QEkRSgaPK0S01kWEMCrefxE6MB6n4r/R1344n8vC4ig9fcnyV1w4KKk34lWn8iVOTTgoa6AEyLC4uEgjDQhUDX4gGr8eMCwGCC3U1wfbOKviwo3B+q5678EG3GP4NlGi1vMlCh7iHn/ftgMn4p8CADYa5SQw+A= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3966.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39860400002)(366004)(396003)(136003)(451199015)(86362001)(53546011)(33656002)(26005)(186003)(9686003)(4326008)(8676002)(64756008)(66556008)(76116006)(41300700001)(66476007)(66446008)(66946007)(316002)(71200400001)(6506007)(55016003)(19627235002)(7696005)(54906003)(110136005)(45080400002)(478600001)(122000001)(38100700002)(38070700005)(2906002)(966005)(52536014)(83380400001)(5660300002)(8936002)(66899015)(64893003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NSQVTh1KvZmQNkz2Es/uJ0r58RfZKK1pDrHZRGfgwUDf7p4VICLo5y8xD/ZA?= =?us-ascii?Q?yzmEo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Oqydw?= =?us-ascii?Q?DX+5CMoV6tbsQICg03h50ATMTPfDf/0juNT0qGCYXJqB8M23IYeWg0jAHB4C?= =?us-ascii?Q?OtTdYDIoFFLLFlrQWaQjM1ma9eNYH4Hdyh5xdHudJzzgqKTPNtUUpMg2mdK0?= =?us-ascii?Q?dS4FNUay5fJx3tNCHlloS2zceOJuft9GKva49SLcXdDckdbdWFEOXWPL8r9c?= =?us-ascii?Q?rlvDEKwEtPBR5oVuTjZLXjCidZAVEOlXQtbms3x3Kv74hd2oqIlD62nAKTPe?= =?us-ascii?Q?k9xyMbMo6T/Wo7x3OXkhb5W/PIWJd/+NhXvmRafU8mBlIyJxw1K3CSPvI8Cm?= =?us-ascii?Q?dtqxSL7vUbf7rWbg3iFXd8xcYBjGCcJUKwSzxk77omAi8kKpIUGVVGoq9XKA?= =?us-ascii?Q?Fo+H3HKJNOIL1w4UqVhI2G1rfoVjsbJEtFllc3ruNJtc9Fo3gh3XWaLnInpp?= =?us-ascii?Q?hfDctgMHdDRYlSeS8pDn9gq2E/js8yfTrAEtJHKg0Y21ff0klBAqV1+Da0ri?= =?us-ascii?Q?NLI5EH0CKYV0Ux5Q698TP+PSiWUAz599sJza8GMlIGCPcBNizMEHQnwee6Eo?= =?us-ascii?Q?DvpGwFUe2BtBKzdriB6cKcdiqldzLKJl8RdHySWrD3Mz9uGloDUeh9Egftq5?= =?us-ascii?Q?obHCuEGvTTWxfWW8EVlezrZQYgGG5oT2q7nTTon4?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: af56557b-97d4-4fc6-8bb8-08daf76b2fcf X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2023 02:41:36.1726 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hcBDcH10ic02+AhXpfn6pzazAmEo0PpDuobSrXipx4ej6uhDTjZUs5u3Ie8QXKBG+AzfABERokXWZpO0oVARmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8586 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] Thanks Hao Abner > -----Original Message----- > From: Wu, Hao A > Sent: Monday, January 16, 2023 10:41 AM > To: devel@edk2.groups.io; Chang, Abner > Cc: Ni, Ray ; Kirkendall, Garrett > ; Lin, Kuei-Hung (Timothy) Hung.Lin@amd.com> > Subject: RE: [edk2-devel] [PATCH V2 1/3] MdeModulePkg/Xhci: Initial XHCI > DCI slot's Context value >=20 > Caution: This message originated from an External Source. Use proper > caution when opening attachments, clicking links, or responding. >=20 >=20 > The 3-patch series is merged via: > PR - https://github.com/tianocore/edk2/pull/3899 > Commits - 7cd55f300915...47ab397011b6: > https://github.com/tianocore/edk2/commit/8147fe090fb566f9a1ed8fde2409 > 8bbe425026be > https://github.com/tianocore/edk2/commit/be8d6ef3856fac2e64e23847a8f0 > 5d37822b1f14 > https://github.com/tianocore/edk2/commit/47ab397011b6d1ce4d5805117dc > 87d9e35f378db >=20 > Best Regards, > Hao Wu >=20 > > -----Original Message----- > > From: devel@edk2.groups.io On Behalf Of Chang, > > Abner via groups.io > > Sent: Wednesday, January 11, 2023 11:10 AM > > To: devel@edk2.groups.io > > Cc: Wu, Hao A ; Ni, Ray ; > > Garrett Kirkendall ; Abner Chang > > ; Kuei-Hung Lin > > Subject: [edk2-devel] [PATCH V2 1/3] MdeModulePkg/Xhci: Initial XHCI > > DCI slot's Context value > > > > From: Abner Chang > > > > Initialize XHCI DCI slot's context entries value. > > > > Signed-off-by: Jiangang He > > Cc: Hao A Wu > > Cc: Ray Ni > > Cc: Garrett Kirkendall > > Cc: Abner Chang > > Cc: Kuei-Hung Lin > > Reviewed-by: Hao A Wu > > --- > > MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 7 +++++++ > > MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c | 7 +++++++ > > 2 files changed, 14 insertions(+) > > > > diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c > > b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c > > index 13247f7b0df..4b7462704a8 100644 > > --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c > > +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c > > @@ -4,6 +4,7 @@ > > > > Copyright (c) 2011 - 2020, Intel Corporation. All rights > > reserved.
Copyright (c) Microsoft Corporation.
> > +Copyright (C) 2022 Advanced Micro Devices, Inc. All rights > > +reserved.
> > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > **/ > > @@ -2807,6 +2808,9 @@ XhcInitializeEndpointContext ( > > MaxDci =3D 0; > > > > NumEp =3D IfDesc->NumEndpoints; > > + if (NumEp =3D=3D 0) { > > + MaxDci =3D 1; > > + } > > > > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { @@ -3006,6 +3010,9 > > @@ XhcInitializeEndpointContext64 ( > > MaxDci =3D 0; > > > > NumEp =3D IfDesc->NumEndpoints; > > + if (NumEp =3D=3D 0) { > > + MaxDci =3D 1; > > + } > > > > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { diff --git > > a/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c > > b/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c > > index cc597a43717..8400c90f7ad 100644 > > --- a/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c > > +++ b/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c > > @@ -3,6 +3,7 @@ PEIM to produce gPeiUsb2HostControllerPpiGuid based > on > > gPeiUsbControllerPpiGuid which is used to enable recovery function > > from USB Drivers. > > > > Copyright (c) 2014 - 2017, Intel Corporation. All rights > > reserved.
> > +Copyright (C) 2022 Advanced Micro Devices, Inc. All rights > > +reserved.
> > > > SPDX-License-Identifier: BSD-2-Clause-Patent > > > > @@ -1752,6 +1753,9 @@ XhcPeiSetConfigCmd ( > > } > > > > NumEp =3D IfDesc->NumEndpoints; > > + if ((NumEp =3D=3D 0) && (MaxDci =3D=3D 0)) { > > + MaxDci =3D 1; > > + } > > > > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { @@ -1974,6 > > +1978,9 @@ XhcPeiSetConfigCmd64 ( > > } > > > > NumEp =3D IfDesc->NumEndpoints; > > + if ((NumEp =3D=3D 0) && (MaxDci =3D=3D 0)) { > > + MaxDci =3D 1; > > + } > > > > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { > > -- > > 2.37.1.windows.1 > > > > > > > >=20 > >