From nobody Tue May 14 18:57:47 2024 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+98027+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+98027+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1672938126; cv=none; d=zohomail.com; s=zohoarc; b=bK9gEtjuOz8GXaZF/ufvhyf+dLULsiHXYcMtoJgY8/166I0kwFinwemCvA2FBB+BvB35+3lk4jfsRigOpoAYXppXU2tVaI84E6NZlyLJSZsQMv8vSVKC0mdSt4KpW7bzTXgfM1SH39KhzxzDHMglMJ75Lhoy+96Pvct1orDjGRA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672938126; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=xzUS5RjVUMyqYsaDtA9TT6tAuNOfFmzV63C6kLrUj/8=; b=BaqE7HTPnEh2SNbPnXZQL8COXbUwn0/8RhluyrZ3TnskNCPOWI4Vr+mdMqYzRIj3Sru4jcjwKEr6DclWcGxnywvxGb7oyDzW7sjLjS1slk8uXVTpuiRD90/je4rowQQO4MwKM5ATya3QP1N/a/Cn+ESbGdTdDdkdIxd52AcFVs4= 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+98027+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 1672938125995964.4437166423417; Thu, 5 Jan 2023 09:02:05 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id yCb6YY1788612xttSyn1e9Sb; Thu, 05 Jan 2023 09:02:05 -0800 X-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 X-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) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C179BC433EF; Thu, 5 Jan 2023 17:02:00 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, Ard Biesheuvel Subject: [edk2-devel] [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> 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,ardb@kernel.org X-Gm-Message-State: UKIvWNJ1MsfMgq7uCDwfoZuix1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672938125; bh=yqyIVQRmgxJ0vuF0MB8VwgdFvCAm/HR6RJOIg++19hk=; h=Cc:Date:From:Reply-To:Subject:To; b=SjJ76EHy/pgBpc7tMJNL/ahoMImIrsDzx3GNWwccpUCKI7II/ZRiFLGGT4DO8pssvnT awJYB79vdAiE02G0GUbFmpOAPiEID33DLmcbpAjCJv1FvmxmrJGIOND7vNxk+1yuxQ6Hl KUiWL37rAlCWf7ihP9tSWSv7uTTw1UOxXK8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672938128204100002 Content-Type: text/plain; charset="utf-8" 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 Acked-by: Laszlo Ersek Reviewed-by: Rebecca Cran --- 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 } !endif + + ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf + MdeModulePkg/Application/MpServicesTest/MpServicesTest.inf 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 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf + INF ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf =20 # # Multiple Console IO support 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 ( } =20 STATIC ARM_CORE_INFO mRpi3InfoTable[] =3D { - { 0x0, 0x0, }, // Cluster 0, Core 0 - { 0x0, 0x1, }, // Cluster 0, Core 1 - { 0x0, 0x2, }, // Cluster 0, Core 2 - { 0x0, 0x3, }, // Cluster 0, Core 3 + { 0x0, }, // Cluster 0, Core 0 + { 0x1, }, // Cluster 0, Core 1 + { 0x2, }, // Cluster 0, Core 2 + { 0x3, }, // Cluster 0, Core 3 }; =20 STATIC --=20 2.39.0 -=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 (#98027): https://edk2.groups.io/g/devel/message/98027 Mute This Topic: https://groups.io/mt/96075997/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-