From nobody Wed Oct 30 22:11:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+105180+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one); dmarc=fail(p=none dis=none) header.from=arm.com Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1684847092735457.0265316243574; Tue, 23 May 2023 06:04:52 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id CaoFYY1788612x90eOPK3O0T; Tue, 23 May 2023 06:04:51 -0700 X-Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.41]) by mx.groups.io with SMTP id smtpd.web11.21713.1684847090775025411 for ; Tue, 23 May 2023 06:04:51 -0700 X-Received: from AS4P189CA0042.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5dd::20) by DU2PR08MB7341.eurprd08.prod.outlook.com (2603:10a6:10:2f0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 13:04:40 +0000 X-Received: from AM7EUR03FT050.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:5dd:cafe::90) by AS4P189CA0042.outlook.office365.com (2603:10a6:20b:5dd::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29 via Frontend Transport; Tue, 23 May 2023 13:04:40 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+105180+1787277+3901457@groups.io; helo=mail02.groups.io; 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 X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT050.mail.protection.outlook.com (100.127.141.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.15 via Frontend Transport; Tue, 23 May 2023 13:04:40 +0000 X-Received: ("Tessian outbound e13c2446394c:v136"); Tue, 23 May 2023 13:04:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2ee1dcce219255a0 X-CR-MTA-TID: 64aa7808 X-Received: from 0bc7e3f752b6.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 08EE4B31-30A5-4679-878B-1D7465392015.1; Tue, 23 May 2023 13:04:32 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0bc7e3f752b6.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 23 May 2023 13:04:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mb8GwXdByTqxrTAC+kNo7JHF2prx97wKFJgx08Eo7IiEAe3fcuVu3fWsSLCBZlSh1d6mFDDCXcJq39rSEgtylpuQLET5CjDiiExDTux3Fth0YXe4ws5CV/PWeW+cGSpb6b4RAmBgMYOiBq+Yk6RD9uHgUFQg53BRtGhhDovzoetRLC5175NBvyzCC8kd+ppDgnvNyGtCm0djhTq5CXwq9BG7zFOrrA4VnbXWqvtgnX2nr0STutwN05R6bZztsCvVv19MsJgDe+TjxI/+DbUYPsQfaJ0T6wpLIF4WQOZdybY37MK+CZGnW3AKmqk6ofP2Z7psyzPjWxYVbv35ddXpaQ== 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=CgnPc/zSDRYS9KmvwIAqT+/2hagMwgUOyghdf5oYpDA=; b=iiF51+qRv/EbvfCqMkxxKLTM+zgCRylrO+ldSMuJdnqiXC4gDi7H3aKQvi40LQczW0k9tMYUZNAvIFUX0y7I2tUSOYYIMHTnF19BWxzoPGxxpwv24dm7jYWcCxsj8TQHD5aMZZF0tLXA8ZhKx1CRHNYWorjuyDXAg0YppFLL7H4m9yqz1J102RbXoGorLUgr5iyYjxeSMKay6KmnIsfI8ZoKXk799gwckjaxwgF1P1DqGBgvMDGnkXjgtasmfVo7Qu0IKbuO1rcPUuqioOzjBw8SWU/YghKM91PfN5odm83QfPcA3Tz/tMl3QrMi6CpkS5X9L6RCwDGS2LiBMtyw5A== 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 X-Received: from AS8P251CA0020.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::16) by VE1PR08MB5725.eurprd08.prod.outlook.com (2603:10a6:800:1b0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Tue, 23 May 2023 13:04:29 +0000 X-Received: from AM7EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::b9) by AS8P251CA0020.outlook.office365.com (2603:10a6:20b:2f2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29 via Frontend Transport; Tue, 23 May 2023 13:04:29 +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 X-Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT033.mail.protection.outlook.com (100.127.140.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6433.14 via Frontend Transport; Tue, 23 May 2023 13:04:29 +0000 X-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; Tue, 23 May 2023 13:04:24 +0000 X-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; Tue, 23 May 2023 13:04:24 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [edk2-devel] [PATCH v1 03/12] ArmPkg: Fix ArmGicSendSgiTo() parameters Date: Tue, 23 May 2023 14:04:12 +0100 Message-ID: <20230523130421.10804-4-sami.mujawar@arm.com> In-Reply-To: <20230523130421.10804-1-sami.mujawar@arm.com> References: <20230523130421.10804-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT033:EE_|VE1PR08MB5725:EE_|AM7EUR03FT050:EE_|DU2PR08MB7341:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fae2f2b-6807-430a-2717-08db5b8e4505 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: L3mqpdBZgx38iehUgynWhNlPRdGSUAO19pjyXv6N1wChDZIqa+X83KhWySUJEPZbkQQy5qIiY80xjYian+wDs8dqIH18ETaJ/1NAW+klwrkJVblL9oCRkx9/Zgl56CpDXwJhd04/6wtTA+Qg/HOcophmqltBrMnH7Oaeb1BFOxrqpAfp3T/HSHuN81GjIW3MySJl9r9ZUvECLcsLAlIvwDRCHZRDK0C8VozNoDw8euhEWLGQwfkPQop/3a2pl/vKYm9EgGBvviDs8U5h0TLgbTyLVQyeAUCa4XJL2p/rR8DFdwiulS53XF4PK5f6VbxpEkGa8+g3U44aL9UenALboDhwcmEUX7oLuWhOfm8cbRgyx/T/z3dww3Xi9jWFW3b163XYjA+2A4drdLmJSmGQfCDUsfMdfLm/xsGvstH+l/ny/gDRVR/niUOsZg3nLpnRWr9+BvIxStLtyLZcivw/BO4TPHCFJ/2pZbtWKKblBQmaBK1cuCaDdVGDCHC7NTA+M5bV/hHbpQYVX6s8ahp/1tA/s8ywxqeuzInYtK/21t4j31r+q4HeS0AsZhkdtoXGl6Rx7/gKNAUkOBB1wy21NcW4iIlcrg8PNnMaels4NIGzz+16F5I4aI2CYjeonA2dj/vGgZqgUpboDoqrr4q6luwObpdJ8FQirCzmRdWSFUG8MkGCLeir1kwkAEnuGjHcM4Lu3FDku7tL3Ot3cAcqDeStTIv5P9LJo/IZ0vZzj6/4+mJ91o/i6s0PUQHESX0f 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)(39860400002)(136003)(346002)(396003)(376002)(451199021)(36840700001)(46966006)(54906003)(41300700001)(7696005)(82310400005)(316002)(6916009)(4326008)(356005)(6666004)(70586007)(81166007)(70206006)(82740400003)(5660300002)(8676002)(8936002)(86362001)(478600001)(44832011)(47076005)(83380400001)(1076003)(26005)(2906002)(186003)(36860700001)(36756003)(2616005)(40480700001)(336012)(426003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5725 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 7e796299-c885-43e6-00ec-08db5b8e3e58 X-Microsoft-Antispam-Message-Info: bXRCI0V0C89vDI1vu+LaUkhk6sJGrTXXVuAKflqLT8smF5DegbbtOHtAEtGGbQoMHrv8W3rmxIhG5Ay+JQqoC3GsZKkGVNMrIJJMfccJCIFzyFp4zU0GK2qwL3x5cvsMyWFC4rgQjYTNvQX9yywwDSpdPIxomYPxMIm7s1BvIh0lWSc0sAd0XzQMuHnAHpKwNmSBkZiPRHe6eEerUimzuLXFoI+IPHpxgZFFnKJ1JT9shm5ds+pHkoCSdvxVDgnLSEyZUxHtWXjZ/aVlKAQhJqvF6Sz7Cowli3mn5Gvadn7LFol5ylEKaq51NEpU6y/CiLJUaFugfjorasUFUNBnBS1FwEQbRXgsTor7zctAWHn9dU4Udx3/ldJkmAfb3dS6dK81MKcwjJBzggoLi5NxsipQP7rPavO/FmHafzMor+qnjuW59ybjMcjRSI6aQuEMZ6d4Gi4tfGAiVxizxdD6MRuJbrDHU2jCAj+ZoHYVJY0xI5Hd5zz4AmAddm352RGJd0ck+O43YeKDr+VTz3byTaFBwH4/2TF9ehBBY+Rzw/J+3few+jvYExrxYEgNhwl5jOtBvH1E7+tmpkrdJhirXlRle6QIxaL3HwO/yii6QOxEbhFREXpqBkwPubkZxXwKLjeyteuoi4H4MN11Vy7osvHCt2vX5q6h2/+HisNidPF5hFuZvlIr78Gm3nri9eRG6GRP0CqfGDs8N6wie5N5Qs9CjP6QQlFIhQ6Gy6pV5MrGazlPx/TCQnuUiCxJD3IB X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2023 13:04:40.3881 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fae2f2b-6807-430a-2717-08db5b8e4505 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: AM7EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7341 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sami.mujawar@arm.com X-Gm-Message-State: FvFIilwlrzJU9T2qiHI9tcGxx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684847091; bh=FPsn7l8FLEroHnSIQ2WDiihy6U0QApmVhG8/TVQJnok=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=ZnYrulGwe85x2rJc7WRujjc+RR6sjP5dVX0SqHS1S0r2yxihQsqM4osUbIayyAr7c4V MfplyKMArhmfcT6VyyHqfW8tbUaP3O+ufH6QHfedxvVufI17aEgD3fIOi/0QQTbRSmayC 9q3uzgnjiCbBA5TPyqIdN//LugsETn2uCBA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684847094495100004 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Software Generated Interrupt Register (GICD_SGIR) is a 32 bit register with the following bit assignment: TargetListFilter, bits [25:24] CPUTargetList, bits [23:16] NSATT, bit [15] SGIINTID, bits [3:0] Therefore, modify the TargetListFilter, CPUTargetList, SGI Interrupt ID parameters of the ArmGicSendSgiTo () to use UINT8 instead of INTN. Signed-off-by: Sami Mujawar --- ArmPkg/Drivers/ArmGic/ArmGicLib.c | 6 +++--- ArmPkg/Include/Library/ArmGicLib.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmG= icLib.c index 78edc7e76a087caa5b91d896f9bd316d6530a668..2a5e22e7b68f7c44adbf8a3f26b= 2b7ec04849b96 100644 --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c @@ -141,9 +141,9 @@ VOID EFIAPI ArmGicSendSgiTo ( IN UINTN GicDistributorBase, - IN INTN TargetListFilter, - IN INTN CPUTargetList, - IN INTN SgiId + IN UINT8 TargetListFilter, + IN UINT8 CPUTargetList, + IN UINT8 SgiId ) { MmioWrite32 ( diff --git a/ArmPkg/Include/Library/ArmGicLib.h b/ArmPkg/Include/Library/Ar= mGicLib.h index 41bbf1da6a6cbb683df4bb30c4b1a1762dc7814f..1b879708f84315035723d77c530= 1279c8130bd51 100644 --- a/ArmPkg/Include/Library/ArmGicLib.h +++ b/ArmPkg/Include/Library/ArmGicLib.h @@ -167,9 +167,9 @@ VOID EFIAPI ArmGicSendSgiTo ( IN UINTN GicDistributorBase, - IN INTN TargetListFilter, - IN INTN CPUTargetList, - IN INTN SgiId + IN UINT8 TargetListFilter, + IN UINT8 CPUTargetList, + IN UINT8 SgiId ); =20 /* --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#105180): https://edk2.groups.io/g/devel/message/105180 Mute This Topic: https://groups.io/mt/99086461/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-