From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 0DFDD7803CF for ; Tue, 2 Jul 2024 16:33:31 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=EQFCu4xIXdPj1BufcBOvTn2IY+qBKVHQkxdLe8fBAOQ=; c=relaxed/simple; d=groups.io; h=From:Subject:Date:Message-Id:MIME-Version:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240206; t=1719938011; v=1; b=kY0qSttOaITZRTb/aFwGwgWHI9dP8Gf5zYA9vQ8vAK6QCDnNyOajfxEUcEMrylecxtZpJqbh 4YHTvsVFZsIetSP9dO/VAAiNVt+BEl6PJwPtEaqP7JYkwuBlDiufq466IDslf0jJCMDiMtkheP3 sXb2sycNfCg3cQ3LY+m712dFLiZH65rhTghNmfq3kQqZfZDcwoW44cwFWWtO9t+JKkuw7Md+o0n Lh0tXosO0fEVMG6oxMANMX/9fWSUHiUZGQ8IF+slVlRQaeUTV6O1eMKsr4LbHV10Q4wMG0EzylB UhfrkdM6rYMoijzXG3r2ZlhneehR5IwdAMINX5DGPUgsw== X-Received: by 127.0.0.2 with SMTP id 21wiYY7687511xDmqgWAUty9; Tue, 02 Jul 2024 09:33:30 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web11.29546.1719938004684919797 for ; Tue, 02 Jul 2024 09:33:25 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 5A550260986; Tue, 2 Jul 2024 18:33:19 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id fM5rYa5l6Tcq; Tue, 2 Jul 2024 18:33:17 +0200 (CEST) X-Received: from applejack.lan (83.8.74.165.ipv4.supernova.orange.pl [83.8.74.165]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id C30972602E9; Tue, 2 Jul 2024 18:33:14 +0200 (CEST) From: "Marcin Juszkiewicz" Subject: [edk2-devel] [PATCH edk2-platforms v2 0/3] SbsaQemu: Align the PPTT tables with QEMU Date: Tue, 02 Jul 2024 18:33:01 +0200 Message-Id: <20240702-acpi65-v2-0-3cb18a892221@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAL0rhGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHQUlJIzE vPSU3UzU4B8JSMDIxMDcwMj3cTkgkwzU13DpLSUJCODpJRUw0QloOKCotS0zAqwQdGxtbUALIY /plgAAAA= To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Graeme Gregory , Chen Baozi , Xiong Yining , Marcin Juszkiewicz Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 02 Jul 2024 09:33:25 -0700 Resent-From: marcin.juszkiewicz@linaro.org Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: eq6VR6iYsSStFOTnksRGEp1gx7686176AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=kY0qSttO; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io We want to make sure that CPU topology information given to QEMU would be provided to the operating system. So we use SMC call to ask TF-A for amount of sockets, clusters, cores and threads set in QEMU config. The TF-A part is already merged: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/27189 Signed-off-by: Xiong Yining Signed-off-by: Marcin Juszkiewicz Changes since v1 (Marcin Juszkiewicz): - use ACPI 6.5 structures (instead of 6.3) - add patch to move cache data to cores (instead of clusters) - this is for future MPAM support - reformatted sources using uncrustify - changed debug output to allow singular values (s/are/:/) --- Marcin Juszkiewicz (2): Platform/SbsaQemu: get the information of CPU topology via SMC calls SbsaQemu: provide cache info per core in PPTT Xiong Yining (1): Silicon/SbsaQemu: align the PPTT tables with QEMU .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.h | 17 +- .../Include/IndustryStandard/SbsaQemuAcpi.h | 78 +++----- .../SbsaQemu/Include/IndustryStandard/SbsaQemuSmc.h | 1 + .../Qemu/SbsaQemu/Include/Library/HardwareInfoLib.h | 26 +++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 192 +++++++++++++++-= ---- .../SbsaQemuHardwareInfoLib.c | 36 ++++ 6 files changed, 245 insertions(+), 105 deletions(-) --- base-commit: ba73190ddccc0d0e8c9ff4d3cac1f10bde8b0f71 change-id: 20240702-acpi65-1bfdb20bde1a Best regards, --=20 Marcin Juszkiewicz -=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 (#119762): https://edk2.groups.io/g/devel/message/119762 Mute This Topic: https://groups.io/mt/107003192/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-