From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.157578.1673836856986930217 for ; Sun, 15 Jan 2023 18:40:57 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ln7Ck8mD; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: hao.a.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673836856; x=1705372856; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=spelx0t9EPSGxYZn9UGcToGIzRvnEovazo+wQ6L8Tkc=; b=ln7Ck8mDUPtW8MjPSu7H1TrsjJcLqHwFtvVpXl1+z/jfe68bIzpeKSB/ NrN6nlZRR8xU2A9LW6OhRedT3ilbh9+OSM1bK6aNlDpGG8DorjtN1D116 mpx17rrFOnOQgqGy0ZyF8YrotG5o3JuqJfMGYE3MI1drunjsq1fZZHMwc Xegr8AAfnjaaK94cDYI7mDdbpzY2KiN/dVrjWzroycK8HdCUKMabW/aiM MMEL4v3629Z0afBv7t1sx8GHDYeu2DUliQKZvp91nty10ZpMr8OxlEqTV Yd3F4iwcVCWiJS8hhiKKZ0M3WqoOG9mUO4Us7HMqZf9eGKXXNJrwVf67n Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10591"; a="324429010" X-IronPort-AV: E=Sophos;i="5.97,219,1669104000"; d="scan'208";a="324429010" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2023 18:40:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10591"; a="801233445" X-IronPort-AV: E=Sophos;i="5.97,219,1669104000"; d="scan'208";a="801233445" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga001.fm.intel.com with ESMTP; 15 Jan 2023 18:40:56 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Sun, 15 Jan 2023 18:40:55 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Sun, 15 Jan 2023 18:40:55 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Sun, 15 Jan 2023 18:40:54 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B3qWxTHh02cQIzwRChy0z9gy8tIa1lUxVO33gmkOglrREhYeMzNWCxNTWXDIqkuinlzyFLfH7JCGunIuh0lYyWTumPTPh2ivub9UBjsqF4rFvMLS9kBiEEu1tAm7fM6PuF4j3KAh4Ifk1kB8AXyu7lktFAMZCD4cXomEdKRTFYrS/2dvmY25aquouss4fn/tJ7XdsnkXJkQx5SXDfx7jo31fGuIN5699/iU2b2KadkQUBbvNclv8N+yoOigO7/80lnGxeydDVV/ktqjIyibSiiur8wCQZWzV0U2PKTvzBHq+4mMt8lRE1lPugiO3xxuSIiD0HPpIgdjLq84mAO2R7w== 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=SadrEp6rgp6gU6SumopSmj/OmjvcwosaAJsS33bKNDA=; b=NUf/il06j0YImAv1OOBithBRX0708fu1PEEksh/44V+DwRFQEyjFBaJQ0ykHuXckkxf18mTNoP7q94Wv4chsOJ3LmPWr/J/+Jz1mBSqnyh5c7yvkBkCzA8oXvxjuHSyyRDb90TiwMSn9+z9djB6BV5yNuxktpApSRDJOIqjE0IGdz0DviSwYPTPW2JJ8TrDDvJIuqZNgszjmI95NoD7Q+OI8/XgVoAqv9FxBaQ9Jl4fIkBpJK2tY0m8a70mYZIF4i71kcTmfdPAmDkBUU4tmoMCtpBsBLFfUaIp6qjQAsD8GQBlqTWKjmG9aIOlxAxfW/vHQjQYN2YCiVych6TaotQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM6PR11MB4025.namprd11.prod.outlook.com (2603:10b6:5:197::31) by CY5PR11MB6091.namprd11.prod.outlook.com (2603:10b6:930:2d::6) 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:40:47 +0000 Received: from DM6PR11MB4025.namprd11.prod.outlook.com ([fe80::40d5:cf74:7d27:e4e6]) by DM6PR11MB4025.namprd11.prod.outlook.com ([fe80::40d5:cf74:7d27:e4e6%7]) with mapi id 15.20.5986.019; Mon, 16 Jan 2023 02:40:47 +0000 From: "Wu, Hao A" To: "devel@edk2.groups.io" , "abner.chang@amd.com" CC: "Ni, Ray" , Garrett Kirkendall , Kuei-Hung Lin 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: AQHZJWpMGsqi9ZetNk+7jWx/N8KDDK6gXGjw Date: Mon, 16 Jan 2023 02:40:47 +0000 Message-ID: References: <20230111031008.1476-1-abner.chang@amd.com> In-Reply-To: <20230111031008.1476-1-abner.chang@amd.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM6PR11MB4025:EE_|CY5PR11MB6091:EE_ x-ms-office365-filtering-correlation-id: d487662c-dc0f-4a4a-75b8-08daf76b128a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: roF7bMYvaHACnWFPHb/6O6Q3S2vFsAz4psHxDt2ht9wOi0JT2mj5rBfCKWimcYreSy22E+T6sd4au8/iqD+ENUe7TSIdeu4wcrFg0xyURDQhWZckvmkp+1IsmVQyXGFQ9u55H3XYWCuoS5owMmD88rlvshaHhDTebkkr/xYeA7T1Tjume63+Td5DZlAYitL784jwRXgcGkiCgZAZHTawC5F9H7/gIQ+GB3WrIxs+KzX4qcGzmC/N/sgCkihXlYf7jifwVNa76jWcwLNWD1SkcGnKlwgeL4Zd76K+F35HqOQdj4nXU1eSEA9sOi/aBjcMIyS8Xvul/WEP6oumHX2yZrR+NP9WDwZNNGN6PtejQEu0BbicPiM+t+BrNb5/4uOMkRNTD394Adbo5V7DkyneyUipgfMNSPI1IXndsHLk/7JiL8NI9b+teBWSiIj/oyD/U7EubFRYVpuTiWry8ZiGEO0SRz4VoP/i8fOGoVJZRkGoUWlDFWRcS8s1hYAlYww6f3OAgwteOo5v8bgLrJXszWWj/n26KNTd3SXH4+CUrqTWwI3vZKYBt5xztpF99CGWhVYmucRV2ylout9NU7mmi+BXbShYfNYf1IfDo1HiFfbwDhjQSCr3DaiQ9f4isL5K+AVmAD4JQXEUnCm9rqezQ1YnBZDBegMEhFw215jjlOmmWMG/hN2x62cDd55uGM1wAI+i/RGQ5ynfYLA+JgIcQf2wYOYe0zOnDkEkOkQ0ex2YHbBUdx1EIi4tfqnj3GXALfX/0dytan0Bl6r6W0s+tmtyBLjeXQpq7vn3zVIJ1/s= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4025.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(39860400002)(136003)(396003)(346002)(366004)(451199015)(66899015)(53546011)(33656002)(66556008)(66946007)(76116006)(66476007)(66446008)(41300700001)(186003)(9686003)(64756008)(26005)(8676002)(4326008)(86362001)(83380400001)(5660300002)(82960400001)(38100700002)(52536014)(8936002)(54906003)(110136005)(45080400002)(478600001)(7696005)(71200400001)(6506007)(55016003)(316002)(19627235002)(2906002)(966005)(38070700005)(122000001)(64893003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2DR/uK8+Mcj1/9Vhyap9PY01tTAFV5d5yc0l6lGufj+99QJInT9eUkI9jREC?= =?us-ascii?Q?UbOxiMo8vGVKH3zTe0B3nLH90vNsMQFLEaD3S7zb28/1tLDelDSLHkbVpRS5?= =?us-ascii?Q?jS4h/I6COjPmGLpCWyehrkObBRXv4XWYL7SYULJRfVPK/6O0qo7rcSTgeD/e?= =?us-ascii?Q?loaJhYFVUb5KtGVdcLvQjHFyrZdnxVoUJZ5XwcIRkycw20DXZiYCWq71QwP/?= =?us-ascii?Q?/C/qlqAucYb8JvAeHa0Tf6F2dZaB/eBD5NNvgCm7lRk0nNdKArD+Drnl2kTO?= =?us-ascii?Q?5p4dI9tpgj+9Sq5G0KbGdIulIe54abIO1NRU2/m3Z5iVzG5PlGa+nJy4DAda?= =?us-ascii?Q?5HB0WQIzLngrKcI6ZWg6UcX0ZeW/Afrt764f1oIDXdBisnBZkKcOUj3fNgBQ?= =?us-ascii?Q?feV2hZ+kYGknBRk1HEdUeCqfNYBa3l3V5tzsvdGT8UEDC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u2mAkEcGa6tAEK29UTH/T9+PwlbCseSGE17PowBBCR5ikKPfh+qlk?= =?us-ascii?Q?4utU1h53fj+HKdKk9TENSYVfTRR61sDUVG/k7tZG3xFd0LMLoOKHY9l0IXvZ?= =?us-ascii?Q?WENiGbNiGpYgAmOYWNLydw8lyERkwr99O+EHP9qun6s2A7kO6bvdgN76udo7?= =?us-ascii?Q?l8hIfsDs9EBPMASDOIWAAVthSrICV9N64yIrO29iPvFMdIHkO++nQNMTss12?= =?us-ascii?Q?dSw8p0axQRQEulrvs3ExaDBh0MONMvtQkFLnySdM?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4025.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d487662c-dc0f-4a4a-75b8-08daf76b128a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2023 02:40:47.0659 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gs7ugCNbgp2+R7FiqfVptCOrHBGGG5pdtrmOXDNDBuEFAiNLFMzsAETlfltgTgshitpxaBXmMdNpE6/FncrT4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6091 Return-Path: hao.a.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The 3-patch series is merged via: PR - https://github.com/tianocore/edk2/pull/3899 Commits - 7cd55f300915...47ab397011b6: https://github.com/tianocore/edk2/commit/8147fe090fb566f9a1ed8fde24098bbe42= 5026be https://github.com/tianocore/edk2/commit/be8d6ef3856fac2e64e23847a8f05d3782= 2b1f14 https://github.com/tianocore/edk2/commit/47ab397011b6d1ce4d5805117dc87d9e35= f378db Best Regards, Hao Wu > -----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 >=20 > From: Abner Chang >=20 > Initialize XHCI DCI slot's context entries value. >=20 > 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(+) >=20 > 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 @@ >=20 > 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 >=20 > **/ > @@ -2807,6 +2808,9 @@ XhcInitializeEndpointContext ( > MaxDci =3D 0; >=20 > NumEp =3D IfDesc->NumEndpoints; > + if (NumEp =3D=3D 0) { > + MaxDci =3D 1; > + } >=20 > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { > @@ -3006,6 +3010,9 @@ XhcInitializeEndpointContext64 ( > MaxDci =3D 0; >=20 > NumEp =3D IfDesc->NumEndpoints; > + if (NumEp =3D=3D 0) { > + MaxDci =3D 1; > + } >=20 > 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. >=20 > Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.
> +Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.
>=20 > SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > @@ -1752,6 +1753,9 @@ XhcPeiSetConfigCmd ( > } >=20 > NumEp =3D IfDesc->NumEndpoints; > + if ((NumEp =3D=3D 0) && (MaxDci =3D=3D 0)) { > + MaxDci =3D 1; > + } >=20 > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { > @@ -1974,6 +1978,9 @@ XhcPeiSetConfigCmd64 ( > } >=20 > NumEp =3D IfDesc->NumEndpoints; > + if ((NumEp =3D=3D 0) && (MaxDci =3D=3D 0)) { > + MaxDci =3D 1; > + } >=20 > EpDesc =3D (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1); > for (EpIndex =3D 0; EpIndex < NumEp; EpIndex++) { > -- > 2.37.1.windows.1 >=20 >=20 >=20 >=20 >=20