From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.53]) by mx.groups.io with SMTP id smtpd.web11.9075.1684935543576451773 for ; Wed, 24 May 2023 06:39:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=3lCPPg/8; spf=pass (domain: arm.com, ip: 40.107.13.53, 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=DzqUDzitr/gqHcuPyHVOtpQeOgF9H58HNdQ6maa7FcI=; b=3lCPPg/84BTVch26j1xQ+To9DtOEg5un+1tMJ2dWwilJLAvfcNV/hwd1YA9jJqDO3Q1rRWGvMDdjVZtK9g+e0q+PnXPbmOfRUdkB6ArNYrtFZmtNicaM2X9ewJsWF5+2WLVawsU5lPm209iSTapof6IOqDxAHvviAuybL39bzv4= Received: from AS8PR05CA0018.eurprd05.prod.outlook.com (2603:10a6:20b:311::23) by GV1PR08MB7777.eurprd08.prod.outlook.com (2603:10a6:150:55::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Wed, 24 May 2023 13:38:54 +0000 Received: from AM7EUR03FT044.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:311:cafe::70) by AS8PR05CA0018.outlook.office365.com (2603:10a6:20b:311::23) 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 AM7EUR03FT044.mail.protection.outlook.com (100.127.140.169) 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:53 +0000 Received: ("Tessian outbound 3a01b65b5aad:v136"); Wed, 24 May 2023 13:38:53 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3589eb7825c5224d X-CR-MTA-TID: 64aa7808 Received: from 5e7b203dec8f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C759EB29-2D55-49C0-8411-CD4EB7C5630E.1; Wed, 24 May 2023 13:38:47 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 5e7b203dec8f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 24 May 2023 13:38:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HSE0ctpbqJxjVojyTeYi7wdCRbjWEb/wPYliHUYiI7uWw+i0iIxJvq53opqF2d34SOMbHGRrk/WZcB9/MJkLJmW5GK/RaFCtijylNflfgSWMZen7HgQiC5Di3OaqOq+hUIwn4tDHrnXq5/Nc786Zdop/AXLJNYOFoxeKMYcU991AMzFQi1iOkvCeNe3EMYl2XynjojW+2HiXAz9Lg/WLgEFV7Qfg+IwdZSFeCcCWnASKlDLvha1D95L8CK9hWkkAdG+Mv9g8HZFnpNhDwzQ1jPbdUprLy/aQwBjEoFZtP34VeKvq9oc1QdxqfnpLvz9l9jiODE29r7RCD47QLV9siw== 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=DzqUDzitr/gqHcuPyHVOtpQeOgF9H58HNdQ6maa7FcI=; b=T64uedd8A5lpLd83u5e2wOR46NI4vXz8IwQRbyAFAyMDkDL4dSBywjIib9HZm0SglGUfpHnQD/9Rrl8OzV0EdqThF6uN3Lyw6VrJdUDKof0djNzJLMc0yF6LA5bCbNLO9z394dVp0VSCOQ0MzeH8TCglhBocAbxlQ4l7CIzhDfN5APBcrH2DhOxPH4JCsNbTEQfi/X3w8NGdYQjYAiPztC12IIq6YVprcF+3FX0GkmbdxR46OJsuQHbGxjs3pR5Cb0+AJW27K96EPkVIx3dEZCyaU8oJC3O7OjL0UShNqwTNDpSjWGXg2VybYC+x9m0BPSN8wjJ9iVr8Eq9FRUC3ug== 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=DzqUDzitr/gqHcuPyHVOtpQeOgF9H58HNdQ6maa7FcI=; b=3lCPPg/84BTVch26j1xQ+To9DtOEg5un+1tMJ2dWwilJLAvfcNV/hwd1YA9jJqDO3Q1rRWGvMDdjVZtK9g+e0q+PnXPbmOfRUdkB6ArNYrtFZmtNicaM2X9ewJsWF5+2WLVawsU5lPm209iSTapof6IOqDxAHvviAuybL39bzv4= Received: from AS9PR05CA0114.eurprd05.prod.outlook.com (2603:10a6:20b:498::16) by DB9PR08MB8435.eurprd08.prod.outlook.com (2603:10a6:10:3d5::7) 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:44 +0000 Received: from AM7EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:498:cafe::ed) by AS9PR05CA0114.outlook.office365.com (2603:10a6:20b:498::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; Wed, 24 May 2023 13:38:43 +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 AM7EUR03FT059.mail.protection.outlook.com (100.127.140.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6433.14 via Frontend Transport; Wed, 24 May 2023 13:38:43 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) 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:42 +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:42 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , Subject: [PATCH v2 03/11] ArmPkg: Fix ArmGicSendSgiTo() parameters Date: Wed, 24 May 2023 14:38:32 +0100 Message-ID: <20230524133840.28612-4-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20230524133840.28612-1-sami.mujawar@arm.com> References: <20230524133840.28612-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT059:EE_|DB9PR08MB8435:EE_|AM7EUR03FT044:EE_|GV1PR08MB7777:EE_ X-MS-Office365-Filtering-Correlation-Id: ef5f4cba-e1a4-4203-0b6a-08db5c5c3777 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: Uohci//v7VmezdGrR3WgGz/083uKNCQmBycvGjbUxVBfNnoMwEVztdIiaE8ExUiD6U/5O7wiqV2RQdoxvsT6OfJC5Gpe7id0sLc2ePjwmsenXzrDreZ/i9V4RrD9Vk3a313EgA7segHjX724tPdW96mwhuRIgvINNDsGRbTfkOavufHIFcK+wpTz8piqSNDXmA25AECThJcE/VMkCrSBhBXhnNbj4ohMALxsnzaapHzdlxuzTB413NqMatLnrU4+I9XAoI8J675QDzw2LE9LEVp5xh8JUOL935m3lQWxnCKzcSv3eJr+qaVLDrOUb+tj1azTbPTeDpcRQDXAi589tXdXQMi++CXSmMPE2HBmbEtnk+40eDypJKHIoSfCFIXCLWjpHhdofPKMiBICFQ5VWf5YCn0zGHnTXHjfpe2USHepeui22FkXicJydRo+SUsuUVM4VvHjyOmvClwBQ5CHfN8Kaa85Eq1XEtZvM6lxxyy2vShMAYlLVOsM69JIQrynHbifm4WQpuZleYVt8wMJRZt0XD6sBiTLYHjAAucfO1Hy6nNiQmd8FBT4s2cTF4QjMrwbrmJ0i5sFi6VGJWFkcH/p2gdOs/QYQ6IKURVC1aN3OIzRAbrXLOA1PRtaD9bBW/TD2k1NiONyE/UJM0mR5lV6uyYMh9FDoQJTnAsswdIwRPIl03GKcGQNrFl/pYUWA66YWxjC1WpzzIEoxylXhOTTYYN3xcyhDjziLbCpBvbmABgXdYTcSkvVWPiOpgbj 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)(346002)(376002)(39860400002)(136003)(396003)(451199021)(36840700001)(46966006)(26005)(1076003)(5660300002)(44832011)(40480700001)(8936002)(8676002)(478600001)(86362001)(36860700001)(81166007)(356005)(6666004)(82310400005)(54906003)(82740400003)(70206006)(7696005)(41300700001)(2616005)(47076005)(36756003)(6916009)(70586007)(83380400001)(4326008)(336012)(426003)(2906002)(186003)(316002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8435 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT044.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a330cd7b-c126-445c-c49c-08db5c5c316a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pZu8VnVh95onyuQI1hVgZpnDoh54+2Kfx7E12V5/U8lqf84wnXZN5ZOex9vVwmnY28fgfTikMstILCCjslFPngo82FgKrdJ8EHs6ZftTuDntnXujqfeJvg9NgIjslyYO62IVqCXomVM1WWfYGAI9nvAUFHqLQH1EIEjZBOarvN3oovDFCQP+TyVuhMRmzbe4ktNqK9yA8tf17vJrLWssWIQ9b44PVEHri6qNrksI/wEFFPCl020CcLK5D4MtR7jgMZn9xbH4kFxffPD4vSFFe+2iJD4OCQbuH5C4yLiv4kv1+Lgz+e8SGjp+BNL3EHOSzAMThmCrkBxeb0Wlzixia4vMHqy/Dx8DIQ5fc7Hkg0l3Fli2oHK8sIw57SPDUL9mQ/AKwT6Fx35ufNqxICJ2amS5bxM9Nc/D0GrztlisHl0bAAxcrlqY+Lg8qT8BiHREgVwKK/PVURLCZFZ8hIDEU5uMMhCkbQqjfVb6GmPm96wB7F9FP0BSIZ4oHXckM3SAA0r6E+orkrx1c7FvXyc7tBuA7AI6j7VBwIIW7vYDtZa1mvQXsfnLrA70DUUYeV9LlxLfPMq8f7yfrdqFvsI52hoLbt3EwH3YcXF/KIV0WIhrHvqcTrXbHYj8jVehZupm5qFkxaMCTEv53o0GjYAmTVR0rqEUAbvXqgQQh0NyfCbn45gW10JtM/tbQxYolMUPvYKV8SSjE6a8pB8Vp11RDFwOsWVBKVO4M3Ok4QR6hVsu1mwleZP/jkYVOlYHyIyX 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)(346002)(396003)(376002)(136003)(39860400002)(451199021)(46966006)(36840700001)(40470700004)(47076005)(336012)(426003)(2616005)(7696005)(6666004)(36860700001)(83380400001)(1076003)(81166007)(26005)(186003)(40460700003)(54906003)(44832011)(70206006)(478600001)(316002)(4326008)(70586007)(36756003)(6916009)(86362001)(82310400005)(2906002)(40480700001)(41300700001)(8936002)(8676002)(5660300002)(82740400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2023 13:38:53.9727 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ef5f4cba-e1a4-4203-0b6a-08db5c5c3777 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: AM7EUR03FT044.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7777 Content-Type: text/plain 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 --- Notes: v2: - no code change since v1 series [Sami] 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/ArmGicLib.c index 2432715e43fa40ba6780909a83eaf7a6f8e791fc..eca4ddb7d3a40d5ef2fc2d0433c50afeb64c4b24 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/ArmGicLib.h index 7253cda5b8f01193d3439061ccd903868ed2e145..cede7a24b7126a90d0c1118b687e77ea7b57bf97 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 ); /* -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'