From nobody Wed Feb 11 05:36:26 2026 Delivered-To: importer@patchew.org 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+98103+1787277+3901457@groups.io; helo=mail02.groups.io; 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+98103+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1673001611; cv=none; d=zohomail.com; s=zohoarc; b=eH+EXgHHhd2kwpo/JUGsillYCgYht90SHsaIxfUhZJhc1lIQzD4wcQ/eJJ62aAfeEsAqJ/nvVKGqCVu/hJiwRQeZS6AHMcxlyzSCnTcoOa0USCoO8KOc2UUC4G194dMSScP000Bcp571O3osNS6g7pLiyE3ZbFrLqCw9msBaTvo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673001611; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=8QBQLjkyEtkUKObgBTpEBcgpOLMWBWZs5FR3jJ/vdYY=; b=Aq1yWP6ZHQyAtBwbWflexYH2d3ukIs0g4d5Ke/wzF4Kz2KNZNJb6qVWyKvNlj8REmpXIBPeUmIKiSdLzml63C+db0THd4GDR4HrKsycJIL3UihBkUKCDtOoQq9yX9E57/sCdJy9t1+7j6zP7ZHpESeMcCsILPm9jGPfgSxqMS6w= ARC-Authentication-Results: i=1; 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+98103+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1673001611648836.5878166514688; Fri, 6 Jan 2023 02:40:11 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aa6EYY1788612xQTLPojh4ea; Fri, 06 Jan 2023 02:40:11 -0800 X-Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.web10.14950.1672846293909622236 for ; Wed, 04 Jan 2023 07:31:33 -0800 X-Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 304FOeNo028365; Wed, 4 Jan 2023 15:31:22 GMT X-Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mvsvfa3xx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Jan 2023 15:31:22 +0000 X-Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 304FVLgu006522 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Jan 2023 15:31:21 GMT X-Received: from linbox.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Wed, 4 Jan 2023 07:31:20 -0800 From: Rebecca Cran To: , Sami Mujawar , "Ard Biesheuvel" , Leif Lindholm , Jian J Wang , Liming Gao CC: Rebecca Cran Subject: [edk2-devel] [PATCH v3 1/3] ArmPkg: Add GET_MPIDR_AFFINITY_BITS and MPIDR_MT_BIT to ArmLib.h Date: Wed, 4 Jan 2023 08:30:54 -0700 Message-ID: <20230104153056.343258-2-rebecca@quicinc.com> In-Reply-To: <20230104153056.343258-1-rebecca@quicinc.com> References: <20230104153056.343258-1-rebecca@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-GUID: IKcREMe8ugmcudPRJrAiZ0I2Iu72CZ-g X-Proofpoint-ORIG-GUID: IKcREMe8ugmcudPRJrAiZ0I2Iu72CZ-g 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,rebecca@quicinc.com X-Gm-Message-State: 6KhbZcj35qvc9YfDXgmQV37yx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1673001611; bh=itvW8gSMlKtW9FDZuRqj/aeLQlbUCcAM2I3Fycb+Nho=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=xOKAohERhiwBr8oPirebp1dPVh53T6t40vHAAwZbDmSkOjQiKZ5HhOtrQJ7bxUxqxlW 1ERTngVNzC353KAIUWfNVVuaVQgek7lD9EAfNIhAQHCv3OYf6yC9qbSrNs7ywc9HvLNUH 3jBoGABKptyOArqjzEX7+nW1sdxiqm+/pII= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1673001613677100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Rebecca Cran --- ArmPkg/Include/Library/ArmLib.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLi= b.h index 6566deebdde2..fa605f128bfd 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -108,14 +108,16 @@ typedef enum { =20 #define ARM_CORE_MASK ARM_CORE_AFF0 #define ARM_CLUSTER_MASK ARM_CORE_AFF1 -#define GET_CORE_ID(MpId) ((MpId) & ARM_CORE_MASK) -#define GET_CLUSTER_ID(MpId) (((MpId) & ARM_CLUSTER_MASK) >> 8) -#define GET_MPID(ClusterId, CoreId) (((ClusterId) << 8) | (CoreId)) -#define GET_MPIDR_AFF0(MpId) ((MpId) & ARM_CORE_AFF0) -#define GET_MPIDR_AFF1(MpId) (((MpId) & ARM_CORE_AFF1) >> 8) -#define GET_MPIDR_AFF2(MpId) (((MpId) & ARM_CORE_AFF2) >> 16) -#define GET_MPIDR_AFF3(MpId) (((MpId) & ARM_CORE_AFF3) >> 32) +#define GET_CORE_ID(MpId) ((MpId) & ARM_CORE_MASK) +#define GET_CLUSTER_ID(MpId) (((MpId) & ARM_CLUSTER_MASK) >> 8) +#define GET_MPID(ClusterId, CoreId) (((ClusterId) << 8) | (CoreId)) +#define GET_MPIDR_AFF0(MpId) ((MpId) & ARM_CORE_AFF0) +#define GET_MPIDR_AFF1(MpId) (((MpId) & ARM_CORE_AFF1) >> 8) +#define GET_MPIDR_AFF2(MpId) (((MpId) & ARM_CORE_AFF2) >> 16) +#define GET_MPIDR_AFF3(MpId) (((MpId) & ARM_CORE_AFF3) >> 32) +#define GET_MPIDR_AFFINITY_BITS(MpId) ((MpId) & 0xFF00FFFFFF) #define PRIMARY_CORE_ID (PcdGet32(PcdArmPrimaryCore) & ARM_CORE_MASK) +#define MPIDR_MT_BIT BIT24 =20 /** Reads the CCSIDR register for the specified cache. =20 --=20 2.30.2 -=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 (#98103): https://edk2.groups.io/g/devel/message/98103 Mute This Topic: https://groups.io/mt/96090997/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-