From nobody Tue Feb 10 06:58:08 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+98635+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+98635+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=quicinc.com ARC-Seal: i=1; a=rsa-sha256; t=1673931490; cv=none; d=zohomail.com; s=zohoarc; b=T2pK2mLgdvrg0v0h9od3mEQpxnPj9vf0YUh/3qzmrqcXfqfIyRsrWZpTTEZorO7CgMt2cVI/yQUttJF9iAUL0zDgQW6igTC7YD3fG99NeIFI2PtwHvsg62wIO21lpLYlQj0l3Rf7kDMmoGlNI1uIUJRzooBRYK0iQzx5nn6BcK8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673931490; 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=UYqFi8H2Mb7f4OsDyAMYwZmaF/pRNT9g3owQ2QLnALw=; b=RjdaatgHnBMEfq5Pw1Ux5LZwqRqKO68tKqtdJ7DWtqDfl5k9OzCSmcDJWHNJok4Y7ZeB1gsXmJ5Wlvk78Gr+4K/H1uw055o44SnOTRJubB6T24sKMfbP6t3HlmkMkdoj6Ir5Z1mgJGtO0LgZZyIP7kl+AuystjcbCEmr8lnFIIM= 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+98635+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 1673931489995425.58966399909787; Mon, 16 Jan 2023 20:58:09 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id YU8EYY1788612xYxOjlOh9GR; Mon, 16 Jan 2023 20:58:09 -0800 X-Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.web10.189742.1673931489086265620 for ; Mon, 16 Jan 2023 20:58:09 -0800 X-Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30H4orR3031403; Tue, 17 Jan 2023 04:57:58 GMT X-Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n3kqsvsnh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 04:57:58 +0000 X-Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30H4vvkL022856 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Jan 2023 04:57:57 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; Mon, 16 Jan 2023 20:57:56 -0800 From: "Rebecca Cran" To: , Sami Mujawar , "Ard Biesheuvel" , Leif Lindholm , Jian J Wang , Liming Gao , Tiger Liu , Kun Qin CC: Rebecca Cran Subject: [edk2-devel] [PATCH v5 1/2] ArmPkg: Add GET_MPIDR_AFFINITY_BITS and MPIDR_MT_BIT to ArmLib.h Date: Mon, 16 Jan 2023 21:57:30 -0700 Message-ID: <20230117045731.412528-2-rebecca@quicinc.com> In-Reply-To: <20230117045731.412528-1-rebecca@quicinc.com> References: <20230117045731.412528-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: 2OLDxI4p4xi5ksK86yDY-jLKeIW1SYOF X-Proofpoint-ORIG-GUID: 2OLDxI4p4xi5ksK86yDY-jLKeIW1SYOF 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,quic_rcran@quicinc.com X-Gm-Message-State: OdQ0aXBXprKQlFin6t7XhC3Cx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1673931489; bh=DCDK3EgbNGWKKDWEir6pSs9cdg6K4SIvqLRfNACRhqc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=qpwDKO8djpLd7XxDpoob9qrZ2lkq/sifKnZC4Fk7ToOJLJvf1NyASwLWeFn6D8eMlIA 8hPd4w8gxOHFalIff+cL220JRoIjNP6zbsxheXzNxTO2o1PPgeZbts1Y8BNcsSINfITsT GforZZCPFioZDlgiWVEmgqM6q1tKS+xaTBc= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1673931491927100005 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 (#98635): https://edk2.groups.io/g/devel/message/98635 Mute This Topic: https://groups.io/mt/96324768/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-