From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web11.18384.1672938124810741611 for ; Thu, 05 Jan 2023 09:02:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BSiiHpq+; spf=pass (domain: kernel.org, ip: 145.40.68.75, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0112EB81B50; Thu, 5 Jan 2023 17:02:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C179BC433EF; Thu, 5 Jan 2023 17:02:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672938121; bh=EGX2JBGw2DOuKiqN9G07KBspDScN2mtuIzAIzD4ArZU=; h=From:To:Cc:Subject:Date:From; b=BSiiHpq+lIF0D4Yxpm/Hy7w01Er2Fj0NmY7bddpxAVu/zVe5ixkNDignfT4/cbuha KJQFijtioyCid0rZbMyAml7vV+8Y5cIFgvaZJWnvJchMrwFIEKKBkC2GceEZfx1mV0 HbinttbqMCOZ7eEGkft5H1Y9cYeM+2gUEGIe9qSMnAJsa47858sQvuaVJ6STfAP4Xw z+DCJJOCerorpvXMyN3Eab4Io0TSwhWStpKJygQoEI+2u6q6UX1y1xEvDD2TMftDgh rvo0tR0Z+nybS3g6bi2RU5/BByBJItEXVoxg10sXzTaTOb17mlUJf42ZnEvmVwFKHX eDzakGoRxocsQ== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, Ard Biesheuvel Subject: [PATCH edk2-platforms] Platform/RPi4: Add EFI_MP_SERVICES_PROTOCOL support Date: Thu, 5 Jan 2023 18:01:55 +0100 Message-Id: <20230105170155.1444144-1-ardb@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Fix the ARM_MPCORE_INFO table and incorporate the DXE driver and test app to the build so that EFI_MP_SERVICES_PROTOCOL can be used and tested on Raspberry Pi 4. Note that the test app is not added to the image - it can be taken from the build directory and executed from the UEFI shell. Signed-off-by: Ard Biesheuvel --- Platform/RaspberryPi/RPi4/RPi4.dsc | 3 +++ Platform/RaspberryPi/RPi4/RPi4.fdf | 1 + Platform/RaspberryPi/Library/PlatformLib/RaspberryPi.c | 8 ++++---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4= /RPi4.dsc index 8ba0ca61851e..4b2b6d1e4b97 100644 --- a/Platform/RaspberryPi/RPi4/RPi4.dsc +++ b/Platform/RaspberryPi/RPi4/RPi4.dsc @@ -795,3 +795,6 @@ [Components.common] gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE=0D }=0D !endif=0D +=0D + ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf=0D + MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf=0D diff --git a/Platform/RaspberryPi/RPi4/RPi4.fdf b/Platform/RaspberryPi/RPi4= /RPi4.fdf index 0c782d2f3553..816927761513 100644 --- a/Platform/RaspberryPi/RPi4/RPi4.fdf +++ b/Platform/RaspberryPi/RPi4/RPi4.fdf @@ -198,6 +198,7 @@ [FV.FvMain] INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf=0D INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf=0D INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf=0D + INF ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf=0D =0D #=0D # Multiple Console IO support=0D diff --git a/Platform/RaspberryPi/Library/PlatformLib/RaspberryPi.c b/Platf= orm/RaspberryPi/Library/PlatformLib/RaspberryPi.c index f032f3c79238..0b0943431889 100644 --- a/Platform/RaspberryPi/Library/PlatformLib/RaspberryPi.c +++ b/Platform/RaspberryPi/Library/PlatformLib/RaspberryPi.c @@ -51,10 +51,10 @@ ArmPlatformInitializeSystemMemory ( }=0D =0D STATIC ARM_CORE_INFO mRpi3InfoTable[] =3D {=0D - { 0x0, 0x0, }, // Cluster 0, Core 0=0D - { 0x0, 0x1, }, // Cluster 0, Core 1=0D - { 0x0, 0x2, }, // Cluster 0, Core 2=0D - { 0x0, 0x3, }, // Cluster 0, Core 3=0D + { 0x0, }, // Cluster 0, Core 0=0D + { 0x1, }, // Cluster 0, Core 1=0D + { 0x2, }, // Cluster 0, Core 2=0D + { 0x3, }, // Cluster 0, Core 3=0D };=0D =0D STATIC=0D --=20 2.39.0