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 D2779D8030B for ; Thu, 11 Jul 2024 11:32:17 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=MgKRmBHxwS3E5eknWKwerpex7OgoO9Vf5A5yoycaGk0=; 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=1720697537; v=1; b=b9ctvjUVFQhoT/OMxboMLoETX9NwBLnmDESVzag0pS6CqXwOSrg6elOMHWjaNM4lZLuGo9O5 nfPSktPtpiwCXp04uOvzCUwwOlU6UVC3Uu7J/lzpaRHkxmKQlCor6bS1g4n098U8P9vjmaRMKyi +/G1cl2V8BZ1WPOEr+Kwkc4nEJt3XUB0xrnQwVVcQM4xv9k6UgvyVZw1pVq2Ojy/S4bdBibQDJ+ gKZcktMQT2e8aV8oApSrG6K/PUzgE1nA4Mum0kAl1AuVeEZIR5YXIv0vcwYk86GhXPQqOeroHbw 76nOrFM1OkqBsLyFwAKTcslwqIj8xK+Dyl/W0/BxUqe4Q== X-Received: by 127.0.0.2 with SMTP id KBgsYY7687511xoScX4nUcva; Thu, 11 Jul 2024 04:32:16 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web10.9668.1720697535548590809 for ; Thu, 11 Jul 2024 04:32:15 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 94440260839; Thu, 11 Jul 2024 13:32:11 +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 JARSHQkQVatu; Thu, 11 Jul 2024 13:32:09 +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 8D89B260243; Thu, 11 Jul 2024 13:32:05 +0200 (CEST) From: "Marcin Juszkiewicz" Subject: [edk2-devel] [PATCH edk2-platforms v5 0/6] SbsaQemu: Align the PPTT tables with QEMU Date: Thu, 11 Jul 2024 13:31:56 +0200 Message-Id: <20240711-acpi65-v5-0-a30180b74964@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKzCj2YC/2XNQQ6DIBCF4as0rEsDA1rtqvdougAcdJJGDTSkj fHuRRfGxuWb8P1MLGIgjOx2mljARJGGPo/ifGKuM32LnJq8GQjQ4iqAGzdSWXBpfWNB2AalYfn xGNDTZw09nnl3FN9D+K7dBMv1kEjABVfOyspUNQDI+4t6E4bLEFq2NJLau3pzKjvEWllTqNI7f 3B656TYnM7OOpW/0qgt6j83z/MPBA1l6w0BAAA= To: devel@edk2.groups.io Cc: Xiong Yining , Marcin Juszkiewicz , Leif Lindholm , Ard Biesheuvel , Graeme Gregory , Chen Baozi , Jonathan Cameron 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: Thu, 11 Jul 2024 04:32:15 -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: S7LEpcOhnbmUzGuDXENpp1Mwx7686176AA= 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=b9ctvjUV; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none) 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 To: devel@edk2.groups.io Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Graeme Gregory Cc: Chen Baozi Cc: Xiong Yining Cc: Jonathan Cameron Changes in v5: - added support for cache sizes on cores with FEAT_CCIDX (Neoverse V1+) - Link to v4: https://openfw.io/edk2-devel/20240710-acpi65-v4-0-bc32224e4be= 4@linaro.org Changes in v4: - renamed all *Index variables to *Offset ones for clarity - renamed static CpuId/CacheId variable to mCpuId/mCacheId - moved above variables outside of pragma pack - moved all variables definitions to start of functions - added reading cpu cache size from CCIDR registers - changed wording in SbsaHardwareInfoLib header - changed wording in 3rd patch commit message - Link to v3: https://openfw.io/edk2-devel/20240709-acpi65-v3-0-ee93ba536fc= f@linaro.org Changes in v3: - split ACPI 6.5 changes into separate patch - moved adding cores/threads to separate function - fixed cache offsets - Link to v2: https://openfw.io/edk2-devel/20240702-acpi65-v2-0-3cb18a89222= 1@linaro.org/T/#t Changes in v2 (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 (5): SbsaQemu: get the information of CPU topology via SMC calls SbsaQemu: update PPTT to ACPI 6.5 SbsaQemu: provide cache info per core in PPTT SbsaQemu: introduce helper in PPTT generation SbsaQemu: export proper cache values in PPTT Xiong Yining (1): SbsaQemu: align the PPTT tables with QEMU .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.h | 11 + .../Include/IndustryStandard/SbsaQemuAcpi.h | 110 +++----- .../SbsaQemu/Include/IndustryStandard/SbsaQemuSmc.h | 1 + .../Qemu/SbsaQemu/Include/Library/HardwareInfoLib.h | 26 ++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 274 ++++++++++++++++= +--- .../SbsaQemuHardwareInfoLib.c | 36 +++ 6 files changed, 342 insertions(+), 116 deletions(-) --- base-commit: ad553efc01125cad4ebdbe694b82cf6a59ce6a03 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 (#119893): https://edk2.groups.io/g/devel/message/119893 Mute This Topic: https://groups.io/mt/107160638/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-