From nobody Sun Sep 7 23:51:53 2025 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+85026+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+85026+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1639692519; cv=none; d=zohomail.com; s=zohoarc; b=HVAqumiWu8vVFr2TWdz+vSj+2ZynAlptxAYaQfAQpWycis4C26EoxaVHuAq6oc4knpi1PwYhDKyfXvGTZLgdXAM/wK0kGtKFS2V763KhVs9YvwvgSXEPLsZs/tIz3M0WOMqB13Qeaii0ZDw3tk3x5vrSTJZooxDX9IgTaYJWqec= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639692519; h=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=jQWbHjxzWE5nb5InfS/szJnIxQF4tXXgblKqVb9RzSg=; b=TniI2CJ62VIkQdiJIvxbw8e1HhgcoBMhPTQz77hShQBJ8x/H/dPAm0ULdWWoBAQQzTvotOCXH0KchZvkaNpI04NAG5bOGSmigkLFXuWuJDOF/9Y9fly5qUFr81HkJWJlpaGlQsXNg/Wu4y3p9gsOsNv9dHuhVrbASdfpAyBn5AA= 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+85026+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1639692519306682.2450988875424; Thu, 16 Dec 2021 14:08:39 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id x38pYY1788612xpk527jlC0I; Thu, 16 Dec 2021 14:08:38 -0800 X-Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mx.groups.io with SMTP id smtpd.web11.1024.1639692518225373657 for ; Thu, 16 Dec 2021 14:08:38 -0800 X-Received: by mail-pg1-f170.google.com with SMTP id 133so269893pgc.12 for ; Thu, 16 Dec 2021 14:08:38 -0800 (PST) X-Gm-Message-State: b7qNmWXqeFChlZiJJ4gm2d1Xx1787277AA= X-Google-Smtp-Source: ABdhPJwx/gpGynZDgWpRm+yVLOhirtrCBa/s1Dg4RP8X7p+s4cSIOkQ3gtJQLdmwTPWm8glwdD5FKw== X-Received: by 2002:a63:5c64:: with SMTP id n36mr172020pgm.61.1639692517489; Thu, 16 Dec 2021 14:08:37 -0800 (PST) X-Received: from linbox.ba.nuviainc.com ([2601:681:4300:69e:9e7b:efff:fe2b:884c]) by smtp.gmail.com with ESMTPSA id 32sm5982619pgs.48.2021.12.16.14.08.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Dec 2021 14:08:37 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io, Ard Biesheuvel , Samer El-Haj-Mahmoud , Leif Lindholm , Sami Mujawar , Wenyi Xie , Peng Xie , Ling Jia , Yiqi Shu , Nhi Pham , Vu Nguyen , Thang Nguyen , Chuong Tran , Pete Batard , Masami Hiramatsu , Graeme Gregory , Radoslaw Biernacki , Marcin Wojtas Cc: Rebecca Cran Subject: [edk2-devel] [PATCH v2 14/17] Silicon/Ampere: Update ArmPlatformLib to work with changed ARM_CORE_INFO Date: Thu, 16 Dec 2021 15:07:57 -0700 Message-Id: <20211216220800.9628-15-rebecca@nuviainc.com> In-Reply-To: <20211216220800.9628-1-rebecca@nuviainc.com> References: <20211216220800.9628-1-rebecca@nuviainc.com> MIME-Version: 1.0 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@nuviainc.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639692518; bh=9auU0wt/lJaK+LHSOJ82t6bTe76dFGFffGugUUZhUhQ=; h=Cc:Date:From:Reply-To:Subject:To; b=gWtG59bXoX9hA6/I2kQM6rFwNspDPFsnMOQugGyz6beUjByp+aUWfJl0P9vU47V5E4C h+ENUSSRaqVcfzLgdyFs6PbZxRGaAEsLmiY2NrHnXJKpdb5hlyZrSp3OB1EY0bGo9p1wW 29xpm27i5SOw+ooVn3lF7qKslzxuiyy3XjA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639692520111100005 Content-Type: text/plain; charset="utf-8" The ARM_CORE_INFO struct has been updated so the MPIDR is now a single field instead of separate cluster/core fields. Update ArmPlatformLib. Signed-off-by: Rebecca Cran --- Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.c | 5 = ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatfo= rmLib.c b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformL= ib.c index 5b4be0e55516..f2ec923d6f8d 100644 --- a/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.c +++ b/Silicon/Ampere/AmpereAltraPkg/Library/ArmPlatformLib/ArmPlatformLib.c @@ -108,9 +108,8 @@ PrePeiCoreGetMpCoreInfo ( } SocketId =3D SOCKET_ID (Index); ClusterId =3D CLUSTER_ID (Index); - mArmPlatformMpCoreInfoTable[mArmPlatformCoreCount].ClusterId =3D Socke= tId; - mArmPlatformMpCoreInfoTable[mArmPlatformCoreCount].CoreId =3D - (ClusterId << 8) | (Index % PLATFORM_CPU_NUM_CORES_PER_CPM); + mArmPlatformMpCoreInfoTable[mArmPlatformCoreCount].Mpidr =3D GET_MPID ( + SocketId, (ClusterId << 8) | (Index % PLATFORM_CPU_NUM_CORES_PER_CPM= )); mArmPlatformMpCoreInfoTable[mArmPlatformCoreCount].MailboxClearAddress= =3D 0; mArmPlatformMpCoreInfoTable[mArmPlatformCoreCount].MailboxClearValue = =3D 0; mArmPlatformMpCoreInfoTable[mArmPlatformCoreCount].MailboxGetAddress = =3D 0; --=20 2.31.1 -=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 (#85026): https://edk2.groups.io/g/devel/message/85026 Mute This Topic: https://groups.io/mt/87777839/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-