From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by mx.groups.io with SMTP id smtpd.web08.23.1614610141727160579 for ; Mon, 01 Mar 2021 06:49:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nvidia.com header.s=n1 header.b=g6j2RXsD; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 216.228.121.65, mailfrom: ashishsingha@nvidia.com) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 01 Mar 2021 06:49:00 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 1 Mar 2021 14:49:00 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.102) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 1 Mar 2021 14:49:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MFzrZ9e3zUO3Ih8XYZ+KGjEFSgwYTG7jNLSKHtB08xXKVU80/wZs7QxAZ/8KGeYyUJq6sph6mBzLvbpKAVesv5rNMWVYdjQejXzOwvoKFVxrKJ1n6moUnrixKuOVTlzUOtj5ZPYvaGQu9Kmiciy8Vxqhh6EK94oLvhPScsP8Kk33eIKxzYyL4Byod5ui120tKsV5x/opbGc935v8NW3e7gnahx3gp0OZ40p884Jp4EEyCfk9mXOYI2LoCiDDeKgfj3U/aRRWZn0LNuIjB9gHj1xSP3Hs9dt8MA6r9uXr9I31TrazfBrRldzIglKGNky0Z+uLM+snaZkKreGAaSHQMQ== 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=P3GMjhvUyPbvr9g8x5pH879utd/87NW+hc6Gr6j+j3k=; b=WjshSa4eUWJ207X1zITsyPZisD0y0m2I+fmP7c0FSbJW3W302FaeyiAZUrUKIKWD5PiNbxZpaUTICoqfuy6Qo2djJVO1rgC49UfvfNV4XOJb2BtU0ZXmV/RKYaeDE7WfN9Rn30zZE4aTjoNrfh7byEFQqkLACanvKu3hp4apXXQ1uDjuL0Ub8Ft1Ire0sdlNSDNPcyBzeN4twaW0KBdffGbdW8bTabwnyzHHB89Tmw+kOHNGnrutQhi8LWkn+AeXYESrpN4tVG+tsyslAEHW8sw4F2Xq9WSPAkpxRoMVSYnTL0ftFG6HQfHj8u0N+M92eo/E6Yp+FhRtkbtM7YxK2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from CH2PR12MB3925.namprd12.prod.outlook.com (2603:10b6:610:21::22) by CH2PR12MB4646.namprd12.prod.outlook.com (2603:10b6:610:11::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Mon, 1 Mar 2021 14:48:58 +0000 Received: from CH2PR12MB3925.namprd12.prod.outlook.com ([fe80::50e4:a345:8d9b:ba5]) by CH2PR12MB3925.namprd12.prod.outlook.com ([fe80::50e4:a345:8d9b:ba5%7]) with mapi id 15.20.3890.028; Mon, 1 Mar 2021 14:48:58 +0000 From: "Ashish Singhal" To: Leif Lindholm CC: "ardb+tianocore@kernel.org" , "devel@edk2.groups.io" Subject: Re: [PATCH] ArmPkg/ArmGicLib: Fix setting GICv3 Interrupt Priority Thread-Topic: [PATCH] ArmPkg/ArmGicLib: Fix setting GICv3 Interrupt Priority Thread-Index: AQHXC5pvlNUsnr7vsEKk+3OP1EI9rappTHOAgAXwLTg= Date: Mon, 1 Mar 2021 14:48:58 +0000 Message-ID: References: <0284001c888f058e59853e725d4f02a00840506a.1614273201.git.ashishsingha@nvidia.com>,<20210225200723.GQ1664@vanye> In-Reply-To: <20210225200723.GQ1664@vanye> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nuviainc.com; dkim=none (message not signed) header.d=none;nuviainc.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [216.228.112.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a9c978b3-9d6a-404a-29b1-08d8dcc12533 x-ms-traffictypediagnostic: CH2PR12MB4646: x-ms-exchange-minimumurldomainage: tianocore.org#6026 x-microsoft-antispam-prvs: x-header: ProcessedBy-CMR-outbound x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WKSF+RcTK2jiM3KmQ7vtlnYboMcDq69CObyLUNpeQoqbhnSA2RnEC+Pn/Wa2bIdXmzsQf30Uap9P3C/2VQRXGxnNDuiwAmE7GD3Uhn24YsTufsYXcAIp5KyY2G5P2ruIOvi6yZXGoHqi3AeBB12/eR3szcGyJ9wPJfm7Q8KYvKB3NdduI91z+M3TMpnvzeBd7aRDHtilO/D7XnfgDbAwTZE+SR/ThvarGa8kJTaLxCgxRdJPU1txsK1ntbu9lkaKyK51/1GG1P/9jSLPCkOInmd1AtHyNE9KggO2VVx1Okfo0epLCTmd/cacHsr5GfPymhMoH7WbP8SKvfMgHcoITJfycOS4RjhYWl47usvhwOqxLqvXJZvPWUQ+7i7HKLvgTnt1+w90ET+G5SYez13zjx7vbKyKXpoCpRA/SH1D0wfs7NXmbLAabKwhLEx1lfczbwnaIf58VBbOsqHh2FHXWd/xwkDAgm/QPcXjU2Ul9TJXR+VkJ80yGQHdQC+Jc1H/VjcDJXvdhHMJFdSGhN4GnQ3yVgX1yu3yvSW46qun5Ec+BeuuKxrJd4y1AwI/UJ2Wqu6wYoV5lLF05C+1igeFBBZzwzg//K3lsfnLta0+WNc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR12MB3925.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(376002)(39860400002)(346002)(396003)(186003)(316002)(52536014)(6916009)(26005)(83380400001)(66446008)(166002)(5660300002)(966005)(66556008)(66946007)(64756008)(478600001)(76116006)(2906002)(4326008)(54906003)(66476007)(53546011)(9686003)(8676002)(55016002)(8936002)(33656002)(71200400001)(6506007)(19627405001)(7696005)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?DuZgAKmfysuxzsqeV3wY2+gzxNKg5ztfA1vroBW1dMVYAWNlVj4ij25J9r2Q?= =?us-ascii?Q?tcPzEsGPaTsiuRBv3bxudY2Iai8O7YeYklUcVoBMK5jW/KrgtZRqfNJslqVS?= =?us-ascii?Q?qbdT7A9JEKlTDQA+QXymcprdUQohcEeG86Mt8KcM1qiMgiY2lltYCPOpu4wh?= =?us-ascii?Q?rUfNpLapeReDklcSU1wLgFUK3iAgiUmJrcEnVmY1W38L9wyrPqfis6Ibjk8u?= =?us-ascii?Q?+gV0s963VZ97JZ99TVSDmewO3eC3fhrKPuhdvSP0y+xym6u+gl45AuJ9iKan?= =?us-ascii?Q?brhlyK2SkkQOiBJNY2PAszGjRhgCP16/NDnDwwlGGfrX3wyyOLuFG72eUqXs?= =?us-ascii?Q?s1MYwAWTB0gZJ5HhBAoNzfT8olHjedqREXGEbtvFr6Z/Njp+tTtCOXXhnsQW?= =?us-ascii?Q?T552oTeMeD5Z80ZuQ/y8E3wT4qZ1to7XezBX2j1xx5i77iq1s9lGlX0XzR6X?= =?us-ascii?Q?IsF3x74jnY4yqwDUtJnvWE3xKpEEln4YOSL1L1/KAC1REvSexPot2wXOrROl?= =?us-ascii?Q?CMMX3Y3GvOZKuMD/QsxphtAl2AaahTqfwyevPdGx1YTUCoy+llhvsN67cLlN?= =?us-ascii?Q?fa0sVD72rO7uO6Ql2Higlg0Tat8pDv8xrCEO2vo74SasNRvrErRQmX9VK0kf?= =?us-ascii?Q?UQ+d/LfasIY1h/e96X+SAhHIjzCZ/uh6BdAVN22etsFmcWUSmsqlAQvd82lC?= =?us-ascii?Q?tfwa/KjYSZkHzBt0VHmKBmV7HKYUK1nvOk8KyvqXyaGD7jh1mUFXdg3fJMwX?= =?us-ascii?Q?OquBUnOWvsrbRjkgCQsQYmWKtgOBNWlY6VA4ZMBFXf0Ap1qHutjBDMqXveBO?= =?us-ascii?Q?ofT/tyFWOu6Z2WnKgoPz13xXdRMYWpROAsObkwyyQKnBLRWV16xp6iTaUtDO?= =?us-ascii?Q?4k4MMBIYT71AO0jB9VjkJdIEOwyqL19NykUMVkIvE2a+aKwkK4VWBgHfs5XD?= =?us-ascii?Q?SxseFGMXkJs/bvAj6QuOpO+OKjGreOskchwZ2nnKk2J4MAna9Wze2TZBDBma?= =?us-ascii?Q?rYqIxWmC71JtMgVroKTEdt6gpPlzk3hNhhraLhlE0LWSdrZRjmY1SxfBdQIa?= =?us-ascii?Q?vA9DnuV0oF36DalDtMnkpFATFI4C6TlfV2gPQQrbxlK7OTuUDz30WmRw60JI?= =?us-ascii?Q?U8a0+Pwtsxtc0enEcB/Q2TIiSnu0KHpio19ks212Ku1UpVmYbcMtzBKhgC+i?= =?us-ascii?Q?EjyUfpJ3BrXtnSZBXXHFbvjTiVcynR9hngkwnJUn6tfct8oIckMMolY9dGu0?= =?us-ascii?Q?5pjaftEjzX6+xhIyBCkUk3w/LiSyOYtW/upvfTjlifpGPMtMCqO84H+ucV0x?= =?us-ascii?Q?8mXU0RhCuH89gi7vu9/J8r4j?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB3925.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9c978b3-9d6a-404a-29b1-08d8dcc12533 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2021 14:48:58.2324 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7IvMAmy5Rsiy5RZ2sPIt3L7hXfX2fOwogFkRBJarMQhQk7SliqqMXBGIeP6MQs21l1pscK6znQ8vXRx7MTsGSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4646 Return-Path: ashishsingha@nvidia.com X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1614610141; bh=P3GMjhvUyPbvr9g8x5pH879utd/87NW+hc6Gr6j+j3k=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ms-exchange-minimumurldomainage: x-microsoft-antispam-prvs:x-header:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:MIME-Version:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=g6j2RXsDdM39W5sRdKdM991smxHupDD9Gmzkkwyn/WIVXIgR8Xv7iteep4IjontJb u0GMa0Z3kMl4xy5VYagqK8n4CzlvtOxVHFVH7Xd7ESGFa+cg1gcUmiSrZVVXZMB86n IkWFDjxRhyyenL8ddoxbcUZDyaHgdv8faK9iBZiHuGhrRZiBTVnXG8hfx9WUMvaw5w 602t9249H6SqzqoNWebEB+Mgd9ZatbJi6r55v3Z/+YwosRkIsxWgbnKMial3oDeo6P Ej5A7WITxPx3gtI+9bCRRxlGqDePNYvJLy06/yFztlMJpFn3wBZgAVbeitvNONtmTD pgvV+lhZ0jCRw== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_CH2PR12MB392502528BF25AFD1003586CBA9A9CH2PR12MB3925namp_" --_000_CH2PR12MB392502528BF25AFD1003586CBA9A9CH2PR12MB3925namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have picked up the patches this morning and they are working as expected.= Thanks, Leif. Thanks Ashish ________________________________ From: Leif Lindholm Sent: Thursday, February 25, 2021 1:07 PM To: Ashish Singhal Cc: ardb+tianocore@kernel.org ; devel@edk2.group= s.io Subject: Re: [PATCH] ArmPkg/ArmGicLib: Fix setting GICv3 Interrupt Priority External email: Use caution opening links or attachments Hi Ashish, This bug was already reported by Ming (who also submitted a patch). Tracked in https://bugzilla.tianocore.org/show_bug.cgi?id=3D3236, should make it into the tree tomorrow. Thank you for your contribution! / Leif On Thu, Feb 25, 2021 at 10:19:46 -0700, Ashish Singhal wrote: > Incorrect register is being set for configuring interrupt > priority. Correct register is located in SGI space and not > in RD space. > > Signed-off-by: Ashish Singhal > --- > ArmPkg/Drivers/ArmGic/ArmGicLib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/Ar= mGicLib.c > index 8ef32b3..3c0bee6 100644 > --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c > +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c > @@ -236,7 +236,7 @@ ArmGicSetInterruptPriority ( > } > > MmioAndThenOr32 ( > - GicCpuRedistributorBase + ARM_GIC_ICDIPR + (4 * RegOffset), > + GicCpuRedistributorBase + ARM_GICR_CTLR_FRAME_SIZE + ARM_GIC_ICDIP= R + (4 * RegOffset), > ~(0xff << RegShift), > Priority << RegShift > ); > -- > 2.7.4 > --_000_CH2PR12MB392502528BF25AFD1003586CBA9A9CH2PR12MB3925namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I have picked up the patches this morning and they are working as expected.= Thanks, Leif.

Thanks
Ashish

From: Leif Lindholm <lei= f@nuviainc.com>
Sent: Thursday, February 25, 2021 1:07 PM
To: Ashish Singhal <ashishsingha@nvidia.com>
Cc: ardb+tianocore@kernel.org <ardb+tianocore@kernel.org>; dev= el@edk2.groups.io <devel@edk2.groups.io>
Subject: Re: [PATCH] ArmPkg/ArmGicLib: Fix setting GICv3 Interrupt P= riority
 
External email: Use caution opening links or attac= hments


Hi Ashish,

This bug was already reported by Ming (who also submitted a patch).

Tracked in https://bugzilla.tianocore.org/show_bug.cgi?id=3D3236, should
make it into the tree tomorrow.

Thank you for your contribution!

/
    Leif

On Thu, Feb 25, 2021 at 10:19:46 -0700, Ashish Singhal wrote:
> Incorrect register is being set for configuring interrupt
> priority. Correct register is located in SGI space and not
> in RD space.
>
> Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
> ---
>  ArmPkg/Drivers/ArmGic/ArmGicLib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic= /ArmGicLib.c
> index 8ef32b3..3c0bee6 100644
> --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c
> @@ -236,7 +236,7 @@ ArmGicSetInterruptPriority (
>      }
>
>      MmioAndThenOr32 (
> -      GicCpuRedistributorBase + ARM_GIC_ICDI= PR + (4 * RegOffset),
> +      GicCpuRedistributorBase + ARM_GICR_CTL= R_FRAME_SIZE + ARM_GIC_ICDIPR + (4 * RegOffset),
>        ~(0xff << RegShift), >        Priority << RegShift >        );
> --
> 2.7.4
>
--_000_CH2PR12MB392502528BF25AFD1003586CBA9A9CH2PR12MB3925namp_--