From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.55]) by mx.groups.io with SMTP id smtpd.web11.9070.1684935539497907600 for ; Wed, 24 May 2023 06:39:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=s9KyigIz; spf=pass (domain: arm.com, ip: 40.107.8.55, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=42SSwqf/xH/UMpRB4fV6kIRTfCiQAFrcR2BrdbGYmYs=; b=s9KyigIzRDqBzGcb5j8HQR8/LCkWt8eUj7Q3n5mnO6ctwFTrIqjEZ871Az47rM7TW56yBh7A9F5AFHnaQTFkh0cdA1E6X5vrsfPKZjty7GxXE/uNZvg3zzn/vBWgb2NKBFJXB12E3oywSWgZUwRllYZ7O0AzBLNylvNmMtJPqMI= Received: from AM0PR06CA0088.eurprd06.prod.outlook.com (2603:10a6:208:fa::29) by VE1PR08MB5726.eurprd08.prod.outlook.com (2603:10a6:800:1b2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15; Wed, 24 May 2023 13:38:54 +0000 Received: from AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:fa:cafe::c1) by AM0PR06CA0088.outlook.office365.com (2603:10a6:208:fa::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15 via Frontend Transport; Wed, 24 May 2023 13:38:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT024.mail.protection.outlook.com (100.127.140.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15 via Frontend Transport; Wed, 24 May 2023 13:38:54 +0000 Received: ("Tessian outbound 8b05220b4215:v136"); Wed, 24 May 2023 13:38:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c103fb9a48649386 X-CR-MTA-TID: 64aa7808 Received: from e561faacc1eb.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6CA64610-6FAA-4AE3-B2D9-13B2B453EE5D.1; Wed, 24 May 2023 13:38:47 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e561faacc1eb.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 24 May 2023 13:38:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BR8FCc2xIPI8zL9UcgyZ2eM4I6K9ZNvwUe+U0WvaVCPptBe6cAZl694z2ED423/OMxGcbAjvJKG5QFozvyBuvGy0bLcw1tLo++bs0EuWO2VN2HKxq4byxpCH0ncmRcVNTERwGdJi9I8QhUPO5ZL0LXGX6f4wCHevWqenS1mQyufqUaoEIf9gALnVENCqBRiNbJ+6I4wJNxsoxSEYdxZK18e3jQXHrykCYYkEGXbcN1t2u4BBO+i3pc91MykOfEtkA2p3MtwILmf786U7BdPfE6Tgny6oQx1P3EOWD8GPLmEiqFz9YlAop2dMEnbSGhB4LxxmmONIQsR7w/VAVko4sw== 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=42SSwqf/xH/UMpRB4fV6kIRTfCiQAFrcR2BrdbGYmYs=; b=naAycquGOhg8UwhPHO2eE8C25/oze0Je5RTv6tNHx+ncgRAi8pVI10lOK0zmSEv1bTcMfl7yulhfA66s64LV6Ix0qgAJ8KcI5LsJc9JBy+G+TbDRoYD4Mx3z8gj5vk3hvClgDAyI5YVXdwYjGaWxROfm1keY94CA0PwB8RhSLHW0dXEyMCJF9flFNYa+7qVp76KA9mLUqENwdhxBvlpKWnpT25FjtAZPE/srpxX24sRnsjtLFWVi1myBy7Jf0miKaES4hJDFUVzmnkYPjIW8Xp4eZ1B2dUuYUOakg+1Mc+fqUZmDFsVmXmaNnGjTMu2gO4IaswsC5RdoBALS0razNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=42SSwqf/xH/UMpRB4fV6kIRTfCiQAFrcR2BrdbGYmYs=; b=s9KyigIzRDqBzGcb5j8HQR8/LCkWt8eUj7Q3n5mnO6ctwFTrIqjEZ871Az47rM7TW56yBh7A9F5AFHnaQTFkh0cdA1E6X5vrsfPKZjty7GxXE/uNZvg3zzn/vBWgb2NKBFJXB12E3oywSWgZUwRllYZ7O0AzBLNylvNmMtJPqMI= Received: from DB6PR0802CA0045.eurprd08.prod.outlook.com (2603:10a6:4:a3::31) by GV1PR08MB8108.eurprd08.prod.outlook.com (2603:10a6:150:93::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29; Wed, 24 May 2023 13:38:42 +0000 Received: from DBAEUR03FT058.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:a3:cafe::a6) by DB6PR0802CA0045.outlook.office365.com (2603:10a6:4:a3::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29 via Frontend Transport; Wed, 24 May 2023 13:38:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT058.mail.protection.outlook.com (100.127.142.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6433.15 via Frontend Transport; Wed, 24 May 2023 13:38:41 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 24 May 2023 13:38:40 +0000 Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Wed, 24 May 2023 13:38:40 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [PATCH v2 00/11] ArmPkg: Arm GIC Library and Driver improvements Date: Wed, 24 May 2023 14:38:29 +0100 Message-ID: <20230524133840.28612-1-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT058:EE_|GV1PR08MB8108:EE_|AM7EUR03FT024:EE_|VE1PR08MB5726:EE_ X-MS-Office365-Filtering-Correlation-Id: 00a47a5d-5c94-4307-f653-08db5c5c37b5 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: rbHzJOQs03gIKCRidboBK/VXJ3gvV3f2es/MaMJLhfFSe42Z+WtMDWmbjSw4ojubF7Dol5L9DxBmg6/laqqI/7lODgM5MWJplJ6OKic2HImQMonfWp3GiHThf+ZwO5MJPMP7JJlQVBC950ZDK5X+GYvCxcgcY6ePbajipzQdjpIKAkKNDZFGlbxc5TiOmx1XmA1lZYoY0j4W6cb4jvwce2uKNLdJCsLVacdE4I8nyahUZ3+U4HtWHAnZA1zGN+8gd+4cZa1TvR/7ImE+nvyO/s7o/1QxcooKon3ggzcvCIkv/juV5KEB6a9EZE13EKImw25ImAA3+yb0U88WuGm55ACvEM1jaJDR2tsxDd2YSs2u0BBELuRS1QsjmPIKc7LR/6WaePcnRVAFo2X/9pKM83CfD41RJFYGa2QvZ99IuJYOK7oalcXbpl+0YF6TmaTq/8gDygMkMwwRhEf21mLQCtUxFfetshLQg/GdqJlzroeO2T3tVpIGkYljsKLcvGm4zd4m1/YzX8Fh8FYaUrzp3eN8HmyOueqsuPS0GvNItawz8QmBS1vL8Wthtb3z2grMHc1f4cKVPHz0okvJwxmPTA+IhYk4X/NCYyaBhDOgt7s+5f+vDduJqW5l2pDK4pMhx/AnpfmaHlY2TeLtGhTr68xjgrRyCMvYkMb4RY3o6tTHbIkBhdUlrFXUb/eussgaH4i0z0RueRUuRLPGE7LolCkscS/V6amubcDTQKSde3uS1UeujV49ICHKhW83ZAYRD/n0xON50dRQRMLbreZ4Rg== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(136003)(376002)(346002)(39860400002)(396003)(451199021)(36840700001)(46966006)(82310400005)(426003)(36860700001)(336012)(316002)(82740400003)(44832011)(5660300002)(36756003)(81166007)(40480700001)(41300700001)(356005)(70586007)(70206006)(7696005)(6916009)(47076005)(83380400001)(4326008)(478600001)(186003)(2906002)(8676002)(8936002)(86362001)(6666004)(966005)(54906003)(26005)(19627235002)(1076003)(2616005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8108 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 3041da91-903d-473e-ce15-08db5c5c3019 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FxjyOuUzL+TJEpHP1CoMl6QAgfGeK/JquG/FeQQwaWYTVh1sB6DCrfKC1FNbO12i0vCQi8o32f/9fm/wRaRAgSpDAD8NZocDmWnivxnTDTwJN70LUxsKR/ABBWyW6yBnWpGRh6ocDc0qsqKkS/4Bq6Prq4AOIoekJcmJLO8tojhxhDAuop0o+ibwllBX5vxSSrnU5Ia4cbfJvRu8fCToUag/i/1xg+pA0v89ra40C0M5y8SPyr9r4oHQ+2WNGdmi30sFD542K6TjRsjeR9GVFidQ9V+4hHBMQymSPVRiFrgSH5RxLXxKXIKk/TbaT+njsNBMzghbsU+LU6M0d4jHpWo4T+pMtcVdk/UierLto4jxSY/4rPxmvWSWHIIr+avH3qXolol+TJQC/sDmB/w6zGL4iOCwQY7722HotHEXr3gJn3jkDyN6YhFWiiXRxV0Uv3RkeLfjgsntGC+kwyGJ0lkDGkpQT6xH3qmkqOJB46MgZ20IJ+bDT2HWhP7Ja+loKKXXgU9PAq4fI4vSN6L9ou5DAOvZfQI3MszJOWyAB/9L7E2GQtlWZo/Ic0c1m29dhBHHT+HDVzpk+yCYOcyL0WQMvycGlhyBkuFB01viBshXGcROtB+xqV8vwcj4uXlMf0BLiMchmdDC+R+hcPxHajfXFERQayODY+7zObQPe6hLTjcOrGzDAOgM8CsaHcOkRwHUvAcMIn4sjTdRpYWXxNQgMyE/YoJCEkQIyABY1I0WXTC91KCafaLPMImF9YQSh+lCqTvS1IwLeVKjyIghqA== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(136003)(39860400002)(396003)(376002)(346002)(451199021)(36840700001)(40470700004)(46966006)(5660300002)(82310400005)(2906002)(44832011)(8936002)(316002)(4326008)(6916009)(70206006)(70586007)(54906003)(19627235002)(8676002)(478600001)(47076005)(83380400001)(2616005)(40460700003)(6666004)(186003)(26005)(36756003)(1076003)(41300700001)(86362001)(336012)(426003)(36860700001)(40480700001)(966005)(81166007)(7696005)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2023 13:38:54.3538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00a47a5d-5c94-4307-f653-08db5c5c37b5 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT024.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5726 Content-Type: text/plain Bugzilla: Bug 3399 (https://bugzilla.tianocore.org/show_bug.cgi?id=3399) This patch series address the issues reported in https://bugzilla.tianocore.org/show_bug.cgi?id=3399 and also has general improvements and fixes for other issues in the Arm GIC Library and driver. This patch series is expected to be applied on top of the patch at: ArmPkg: Fix GicV2 BaseAddress types (https://edk2.groups.io/g/devel/message/104721) This v2 series address the feedback received for the v1 series and additionally updates the patch 6/11 'ArmPkg: Make variables used for GicInterrupt UINTN' to extend the changes to GicV3IrqInterruptHandler (). The changes can be seen at: https://github.com/samimujawar/edk2/tree/1751_arm_giclib_v2 Sami Mujawar (11): ArmPkg: Fix data type used for GicDistributorBase ArmPkg: Fix data type used for GicInterruptInterfaceBase ArmPkg: Fix ArmGicSendSgiTo() parameters ArmPkg: Fix Non-Boolean comparison in ArmGicEnableDistributor ArmPkg: Fix return type for ArmGicGetInterfaceIdentification ArmPkg: Make variables used for GicInterrupt UINTN ArmPkg: Typecast IntID to UINT32 in ArmGicV2EndOfInterrupt ArmPkg: Remove unused function declarations ArmPkg: Prevent SgiId from setting RES0 bits of GICD_SGIR ArmPkg: Adjust variable type and cast for RegShift & RegOffset ArmPkg: Fix ArmGicAcknowledgeInterrupt () for GICv3 ArmPkg/Drivers/ArmGic/ArmGicCommonDxe.c | 18 +---- ArmPkg/Drivers/ArmGic/ArmGicLib.c | 73 ++++++++++++-------- ArmPkg/Drivers/ArmGic/ArmGicNonSecLib.c | 8 ++- ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Dxe.c | 23 +++--- ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2Lib.c | 6 +- ArmPkg/Drivers/ArmGic/GicV2/ArmGicV2NonSecLib.c | 6 +- ArmPkg/Drivers/ArmGic/GicV3/ArmGicV3Dxe.c | 8 +-- ArmPkg/Include/Library/ArmGicLib.h | 40 +++++------ 8 files changed, 94 insertions(+), 88 deletions(-) -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'