Re: [PATCH 20/20] tests/functional/sbsa-ref: Move where machine type is set

2025-06-19 Thread Leif Lindholm
gt; @@ -70,6 +69,7 @@ def test_sbsaref_edk2_firmware(self): > > > > fetch_firmware(self) > > > > +self.set_machine('sbsa-ref') > > self.vm.add_args('-cpu', 'cortex-a57') > > self.vm.launch() > > Sorry, last patch, I f

Re: [PATCH 19/20] hw/arm/sbsa-ref: Tidy up use of RAMLIMIT_GB definition

2025-06-19 Thread Leif Lindholm
than 8 TiB of RAM > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Leif Lindholm / Leif > --- > hw/arm/sbsa-ref.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c > index deae5cf9861..3b

Re: [RFC PATCH v5] hw/arm/sbsa-ref: Support CXL Host Bridge & CFMW

2025-06-16 Thread Leif Lindholm
On Thu, 12 Jun 2025 at 16:17, Jonathan Cameron wrote: > On Fri, 30 May 2025 18:54:30 +0800 > wangyuquan wrote: > > Dynamic cxl topology problem > > > > Actually the ideal expectation is sbsa-ref could also have a dynamic cxl > > topology by user > > parameters. Accor

Re: [PATCH 1/1] hw/arm/sbsa-ref: Adding TPM support for ARM SBSA-Ref machine

2025-03-03 Thread Leif Lindholm
Doh! Add the lists back in. (No idea how I dropped them off.) On Mon, 3 Mar 2025 at 17:02, Leif Lindholm wrote: > > Hi Kun, > > Apologies for delay in responding - I was out last week. > I agree with this addition, since a TPM is a requirement for servers. > > However, to

Re: [PATCH 1/1] MAINTAINERS: remove myself from sbsa-ref

2024-12-18 Thread Leif Lindholm
Juszkiewicz Reviewed-by: Leif Lindholm > --- > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 822f34344b..776e0b997d 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -918,7 +918,6 @@ SBSA-REF > M: Radoslaw

Re: [PATCH 67/71] hw/watchdog: Constify all Property

2024-12-16 Thread Leif Lindholm
On Fri, 13 Dec 2024 at 19:30, Richard Henderson wrote: > > Signed-off-by: Richard Henderson For sbsa: Reviewed-by: Leif Lindholm / Leif > --- > hw/watchdog/sbsa_gwdt.c | 2 +- > hw/watchdog/wdt_aspeed.c | 2 +- > hw/watchdog/wdt_imx2.c | 2 +- > 3 files change

Re: [PATCH] MAINTAINERS: update email address for Leif Lindholm

2024-12-05 Thread Leif Lindholm
(oops, +Marcin) On 2024-12-05 11:40, Leif Lindholm wrote: From: Leif Lindholm I'm migrating to Qualcomm's new open source email infrastructure, so update my email address, and update the mailmap to match. Signed-off-by: Leif Lindholm Reviewed-by: Leif Lindholm --- .mail

[PATCH] MAINTAINERS: update email address for Leif Lindholm

2024-12-05 Thread Leif Lindholm
From: Leif Lindholm I'm migrating to Qualcomm's new open source email infrastructure, so update my email address, and update the mailmap to match. Signed-off-by: Leif Lindholm --- .mailmap| 5 +++-- MAINTAINERS | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) di

Re: [PATCH 1/1] hw/arm/sbsa-ref: bump default memory size to 2GB

2024-12-04 Thread Leif Lindholm
ferent platform this could feel quite hacky, but in reality even 2GB falls within "ridiculously low for an SBSA platform". If we're worried about overhead for CI jobs that do not require the feature, we could always conditionalize it on RME being enabled. But I'd be happy t

Re: [PATCH v5 1/1] hw/arm/sbsa-ref: Enable CPU cluster on ARM sbsa machine

2024-06-18 Thread Leif Lindholm
: Marcin Juszkiewicz Reviewed-by: Leif Lindholm Thanks! --- docs/system/arm/sbsa.rst | 4 hw/arm/sbsa-ref.c| 11 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index 2bf22a1d0b..2bf3fc8d59 100644

Re: [PATCH 1/1] hw/arm/sbsa-ref: switch to 1GHz timer frequency

2024-06-03 Thread Leif Lindholm
On 2024-05-31 10:37, Marcin Juszkiewicz wrote: Updated firmware for QEMU CI is already in merge queue so we can move platform to be future proof. All supported cpus work fine with 1GHz timer frequency when firmware is fresh enough. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Leif

Re: [PATCH 1/1] tests/avocado: update sbsa-ref firmware

2024-05-29 Thread Leif Lindholm
chain (gcc 12.2.0). Missing signoff? Apart from that: Reviewed-by: Leif Lindholm --- tests/avocado/machine_aarch64_sbsaref.py | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsare

Re: [PATCH 1/1] arm/sbsa-ref: move to Neoverse-N2 as default

2024-05-29 Thread Leif Lindholm
for "max" as default to have stable set of features enabled by default. It is still supported and can be selected with "--cpu" argument. I still want to move to max at some point :) But this is a good improvement for now. Reviewed-by: Leif Lindholm Signed-off-by: Marcin J

Re: [PATCH v2 1/1] docs: sbsa: update specs, add dt note

2024-03-28 Thread Leif Lindholm
d provides only data we use in firmware. > > Added NUMA information to list of things reported by DeviceTree. > > Signed-off-by: Marcin Juszkiewicz Reviewed-by: Leif Lindholm Thanks! / Leif > --- > docs/system/arm/sbsa.rst | 35 ++- >

Re: [PATCH 9/9] hw/ide/ahci: Move SysBus definitions to 'ahci-sysbus.h'

2024-02-13 Thread Leif Lindholm
for that aspect: Reviewed-by: Leif Lindholm / Leif hw/ide/ahci-allwinner.c| 3 +-- hw/ide/ahci.c | 1 + 9 files changed, 43 insertions(+), 34 deletions(-) create mode 100644 include/hw/ide/ahci-sysbus.h diff --git a/include/hw/arm/allwinner-a10.h b/include/hw/ar

Re: [PATCH 08/45] hw/arm/sbsa-ref: use pci_init_nic_devices()

2023-10-24 Thread Leif Lindholm
On Sun, Oct 22, 2023 at 16:51:23 +0100, David Woodhouse wrote: > From: David Woodhouse > > Signed-off-by: David Woodhouse Reviewed-by: Leif Lindholm > --- > hw/arm/sbsa-ref.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/hw/arm/sbsa-r

Re: [PATCH] MAINTAINERS: Add some unowned files to the SBSA-REF section

2023-09-29 Thread Leif Lindholm
ponent does not necessarily want/need the same maintainers as the sbsa-ref platform. I'm still happy to maintain it, and it may make sense to keep it under this header for now. (In which case Reviewed-by: Leif Lindholm ) Regards, Leif > F: docs/system/arm/sbsa.rst > F: tests/avocado/machine_aarch64_sbsaref.py > > -- > 2.41.0 >

Re: [RFC 0/3] virt: wire up NS EL2 virtual timer IRQ

2023-09-19 Thread Leif Lindholm
On 2023-09-19 11:12, Peter Maydell wrote: This patchset is an RFC that wires up the NS EL2 virtual timer IRQ on the virt board, similarly to what https://patchew.org/QEMU/20230913140610.214893-1-marcin.juszkiew...@linaro.org/ does for the sbsa-ref board. Patches 1 and 3 are the usual dance to ke

[PATCH v2 1/3] {include/}hw/arm: refactor virt PPI logic

2023-09-19 Thread Leif Lindholm
uired. Signed-off-by: Leif Lindholm --- hw/arm/virt-acpi-build.c | 12 ++-- hw/arm/virt.c| 24 ++-- include/hw/arm/virt.h| 14 +++--- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-bu

[PATCH v2 2/3] include/hw/arm: move BSA definitions to bsa.h

2023-09-19 Thread Leif Lindholm
virt.h defines a number of IRQs that are ultimately described by Arm's Base System Architecture specification. Move these to a dedicated header so that they can be reused by other platforms that do the same. Include that header from virt.h to minimise churn. Signed-off-by: Leif Lin

[PATCH v2 0/3] Refactor PPI logic/definitions for virt/sbsa-ref

2023-09-19 Thread Leif Lindholm
ation instead of doing the translation, as suggested by Peter. - Added explicit comment that listed IDs are INTIDs. Changes since RFC: - Compilation tested - Reordered patches 1-2 as suggested by Philippe. Leif Lindholm (3): {include/}hw/arm: refactor virt PPI logic include/hw/arm: mov

[PATCH v2 3/3] hw/arm/sbsa-ref: use bsa.h for PPI definitions

2023-09-19 Thread Leif Lindholm
Use the private peripheral interrupt definitions from bsa.h instead of defining them locally. Refactor to use the INTIDs defined there instead of the PPI# used previously. Signed-off-by: Leif Lindholm --- hw/arm/sbsa-ref.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions

[PATCH v1 0/3] Refactor PPI logic/definitions for virt/sbsa-ref

2023-09-15 Thread Leif Lindholm
same header instead of defining its own values locally. Changes since RFC: - Compilation tested - Reordered patches 1-2 as suggested by Philippe. Leif Lindholm (3): {include/}hw/arm: refactor virt PPI logic include/hw/arm: move BSA definitions to bsa.h hw/arm/sbsa-ref: use bsa.h for PPI defini

[PATCH v1 3/3] hw/arm/sbsa-ref: use bsa.h for PPI definitions

2023-09-15 Thread Leif Lindholm
Use the private peripheral interrupt definitions from bsa.h instead of defining them locally. Refactor to use PPI() to convert from INTID macro where necessary. Signed-off-by: Leif Lindholm --- hw/arm/sbsa-ref.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions

Re: [PATCH 1/1] tests/avocado: update firmware to enable sbsa-ref/neoverse-v1

2023-09-15 Thread Leif Lindholm
On Fri, Sep 15, 2023 at 13:35:19 +0200, Marcin Juszkiewicz wrote: > Update prebuilt firmware images to have TF-A with Neoverse V1 support enabled. > This allowed us to enable test for this cpu in sbsa-ref machine. > > Signed-off-by: Marcin Juszkiewicz Acked-by: Leif Lindholm &g

[PATCH v1 1/3] {include/}hw/arm: refactor virt PPI logic

2023-09-15 Thread Leif Lindholm
used. Signed-off-by: Leif Lindholm --- hw/arm/virt-acpi-build.c | 4 ++-- hw/arm/virt.c| 9 + include/hw/arm/virt.h| 14 +++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index 6b674231c2..963c5

[PATCH v1 2/3] include/hw/arm: move BSA definitions to bsa.h

2023-09-15 Thread Leif Lindholm
virt.h defines a number of IRQs that are ultimately described by Arm's Base System Architecture specification. Move these to a dedicated header so that they can be reused by other platforms that do the same. Include that header from virt.h to minimise churn. Signed-off-by: Leif Lin

Re: [RFC PATCH 0/3] Refactor PPI logic/definitions for virt/sbsa-ref

2023-09-14 Thread Leif Lindholm
On 2023-09-14 14:15, Marcin Juszkiewicz wrote: W dniu 14.09.2023 o 14:01, Leif Lindholm pisze: While reviewing Marcin's patch this morning, cross referencing different specifications and looking at various places around the source code in order to convinced myself he really hadn

[RFC PATCH 2/3] {include/}hw/arm: refactor BSA/virt PPI logic

2023-09-14 Thread Leif Lindholm
used. Signed-off-by: Leif Lindholm --- hw/arm/virt-acpi-build.c | 4 ++-- hw/arm/virt.c| 9 + include/hw/arm/bsa.h | 14 +++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index 6b674231c2..963c5

[RFC PATCH 3/3] hw/arm/sbsa-ref: use bsa.h for PPI definitions

2023-09-14 Thread Leif Lindholm
Use the private peripheral interrupt definitions from bsa.h instead of defining them locally. Refactor to use PPI() to convert from INTID macro where necessary. Signed-off-by: Leif Lindholm --- hw/arm/sbsa-ref.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions

[RFC PATCH 1/3] include/hw/arm: move BSA definitions to bsa.h

2023-09-14 Thread Leif Lindholm
virt.h defines a number of IRQs that are ultimately described by Arm's Base System Architecture specification. Move these to a dedicated header so that they can be reused by other platforms that do the same. Include that header from virt.h to minimise churn. Signed-off-by: Leif Lin

[RFC PATCH 0/3] Refactor PPI logic/definitions for virt/sbsa-ref

2023-09-14 Thread Leif Lindholm
ovement to me. Not even compilation tested, just the least confusing way of asking whether the change could be accepted at all. Leif Lindholm (3): include/hw/arm: move BSA definitions to bsa.h {include/}hw/arm: refactor BSA/virt PPI logic hw/arm/sbsa-ref: use bsa.h for PPI definitions h

Re: [PATCH v3 30/32] hw/arm/sbsa-ref: Check CPU type in machine_run_board_init()

2023-09-07 Thread Leif Lindholm
On Thu, Sep 07, 2023 at 10:35:51 +1000, Gavin Shan wrote: > Set mc->valid_cpu_types so that the user specified CPU type can > be validated in machine_run_board_init(). We needn't to do it > by ourselves. > > Signed-off-by: Gavin Shan Reviewed-by: Leif Lindholm > ---

Re: [PATCH 1/1] hw/arm/sbsa-ref: add PCIe node into DT

2023-06-27 Thread Leif Lindholm
On 2023-06-27 15:27, Peter Maydell wrote: Serious question: would it be preferable if we moved to a custom DT node where we stick everything in as KEY=VALUE pairs to reduce this confusion? I don't really mind, I just want it to be clear what is going on here so that when I'm reviewing patches I

Re: [PATCH 1/1] hw/arm/sbsa-ref: add PCIe node into DT

2023-06-27 Thread Leif Lindholm
On 2023-06-27 14:27, Peter Maydell wrote: On Tue, 27 Jun 2023 at 13:52, Leif Lindholm wrote: On 2023-06-27 13:12, Peter Maydell wrote: On Mon, 26 Jun 2023 at 08:52, Marcin Juszkiewicz wrote: Add PCI Express information into DeviceTree as part of SBSA-REF versioning. Trusted Firmware will

Re: [PATCH 1/1] hw/arm/sbsa-ref: add PCIe node into DT

2023-06-27 Thread Leif Lindholm
On 2023-06-27 13:12, Peter Maydell wrote: On Mon, 26 Jun 2023 at 08:52, Marcin Juszkiewicz wrote: Add PCI Express information into DeviceTree as part of SBSA-REF versioning. Trusted Firmware will read it and provide to next firmware level. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa

Re: [PATCH v4 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-20 Thread Leif Lindholm
Hi Peter, On 2023-06-19 13:47, Peter Maydell wrote: On Wed, 7 Jun 2023 at 03:34, Yuquan Wang wrote: The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM below 4GB. Hence, this uses system bus XHCI to provide a usb controller with

Re: [PATCH 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-02 Thread Leif Lindholm
Hi Yuquan, On Fri, Jun 02, 2023 at 11:24:11 +0800, Yuquan Wang wrote: > > > > To skip the migration hazard, my prefernece is we just leave the EHCI > > > > device in for now, and add a separate XHCI on PCIe. We can drop the > > > > EHCI device at some point in the future. > > > > > > Why PCIe for

Re: [PATCH 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-06-01 Thread Leif Lindholm
+Ard On Thu, Jun 01, 2023 at 16:01:43 +0100, Peter Maydell wrote: > > >> Also has EHCI never worked, or has it worked in some modes and so this > > >> change should be versioned? > > > > > > AIUI, EHCI has never worked and can never have worked, because > > > this board's RAM is all above 4G and t

Re: [PATCH 1/1] hw/arm/sbsa-ref: use XHCI to replace EHCI

2023-05-31 Thread Leif Lindholm
On 2023-05-31 16:27, Peter Maydell wrote: On Wed, 31 May 2023 at 15:58, Graeme Gregory wrote: The current sbsa-ref cannot use EHCI controller which is only able to do 32-bit DMA, since sbsa-ref doesn't have RAM above 4GB. Hence, this uses XHCI to provide a usb controller with 64-bit DMA capabli

Re: [PATCH v2] hw/arm/sbsa-ref: add GIC node into DT

2023-05-19 Thread Leif Lindholm
Reviewed-by: Leif Lindholm --- hw/arm/sbsa-ref.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 792371fdce..9204e8605f 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -29,6 +29,7 @@ #include "

Re: [PATCH] sbsa-ref: use Bochs graphics card instead of VGA

2023-05-17 Thread Leif Lindholm
On 2023-05-05 13:09, Marcin Juszkiewicz wrote: Bochs card is normal PCI Express card so it fits better in system with PCI Express bus. VGA is simple legacy PCI card. Signed-off-by: Marcin Juszkiewicz Reviewed-by: Leif Lindholm --- hw/arm/sbsa-ref.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH] hw/arm/sbsa-ref: add GIC node into DT

2023-05-15 Thread Leif Lindholm
On 2023-05-15 11:15, Peter Maydell wrote: On Mon, 15 May 2023 at 11:04, Marcin Juszkiewicz wrote: Let add GIC information into DeviceTree as part of SBSA-REF versioning. Trusted Firmware will read it and provide to next firmware level. Bumps platform version to 0.1 one so we can check is nod

Re: [PATCH] sbsa-ref: switch default cpu core to Neoverse-N1

2023-05-12 Thread Leif Lindholm
mc->minimum_page_bits = 12; Seems reasonable; Leif, any objection? None. Longer-term, I still want to move to "max" as the default, but that is likely to require some invasive changes to TF-A, and this is already a huge improvement. So: Reviewed-by: Leif Lindholm Thanks! / Leif

Re: [PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header

2023-04-05 Thread Leif Lindholm
traditional nitpick and ask this to be added above sysemu/numa.h in order to maintain alphabetical ordering within the sysemu block? With that: Reviewed-by: Leif Lindholm > #include "exec/hwaddr.h" > #include "kvm_arm.h" > #include "hw/arm/boot.h" > -- > 2.38.1 >

Re: [PATCH v3] tests/avocado: Add set of boot tests on SBSA-ref

2023-03-29 Thread Leif Lindholm
> To unify tests for AArch64/virt and AArch64/sbsa-ref we boot > the same Alpine Linux image on both. > > Signed-off-by: Marcin Juszkiewicz > Signed-off-by: Philippe Mathieu-Daudé > Message-Id: <20230323082813.971535-1-marcin.juszkiew...@linaro.org> Thanks for this.

[RFC PATCH 1/1] hw/arm: use -cpu max by default for sbsa-ref

2022-11-09 Thread Leif Lindholm
From: Leif Lindholm Due to a change in upstream TF-A, boot fails (in edk2) on all cpus that don't implement FEAT_DIT. The only currently emulated cpu that "supports" this feature is "max". So switch to using that cpu by default for sbsa-ref. However, it is worth

[RFC PATCH 0/1] hw/arm: use -cpu max by default on sbsa-ref

2022-11-09 Thread Leif Lindholm
From: Leif Lindholm We have mainly (well, as will become clear, in fact "exclusively") been using sbsa-ref with the "max" CPU. But sbsa-ref was created with a default CPU of Cortex-A57, which we have not updated along the way. However, the "max" cpu has seen a bug

Leif's email issues resolved

2022-08-23 Thread Leif Lindholm
Hi everyone, As some of you might have noticed, my email setup broke a little over a month ago. At the time I was on leave, so did not notice for a while. And upon my return, it turned out it had broken in New and Exciting ways - so it took some time to restore. This has now been achieved, and I

[PATCH v2] hw/arm: add versioning to sbsa-ref machine DT

2022-05-05 Thread Leif Lindholm
revision ID register found on a physical platform. These properties are both introduced with the value 0. (Hence, a machine where the DT is lacking these nodes is equivalent to version 0.0.) Signed-off-by: Leif Lindholm Cc: Peter Maydell Cc: Radoslaw Biernacki Cc: Cédric Le Goater

[PATCH v2] MAINTAINERS/.mailmap: update email for Leif Lindholm

2022-05-05 Thread Leif Lindholm
NUVIA was acquired by Qualcomm in March 2021, but kept functioning on separate infrastructure for a transitional period. We've now switched over to contributing as Qualcomm Innocation Center (quicinc), so update my email address to reflect this. Signed-off-by: Leif Lindholm Cc: Leif Lindhol

Re: [PATCH] hw/arm: add versioning to sbsa-ref machine DT

2022-04-29 Thread Leif Lindholm
On Fri, Apr 29, 2022 at 09:17:09 +0200, Cédric Le Goater wrote: > > Signed-off-by: Leif Lindholm > > Cc: Peter Maydell > > Cc: Radoslaw Biernacki > > Cc: Cédric Le Goater > > --- > > hw/arm/sbsa-ref.c | 3 +++ > > 1 file changed, 3 insertions(+) &g

Re: [PATCH] MAINTAINERS/.mailmap: update email for Leif Lindholm

2022-04-29 Thread Leif Lindholm
On Thu, Apr 28, 2022 at 13:46:36 +0100, Peter Maydell wrote: > On Wed, 27 Apr 2022 at 19:13, Leif Lindholm wrote: > > > > NUVIA was acquired by Qualcomm in March 2021, but kept functioning on > > separate infrastructure for a transitional period. We've now switched &

Re: [PATCH] hw/arm: add versioning to sbsa-ref machine DT

2022-04-28 Thread Leif Lindholm
Hi Cedric, On Thu, Apr 28, 2022 at 10:55:54 +0200, Cédric Le Goater wrote: > > The sbsa-ref machine is continuously evolving. Some of the changes we > > want to make in the near future, to align with real components (e.g. > > the GIC-700), will break compatibility for existing firmware. > > > > I

[PATCH] hw/arm: add versioning to sbsa-ref machine DT

2022-04-27 Thread Leif Lindholm
incremented. These properties are both introduced with the value 0. (Hence, a machine where the DT is lacking these nodes is equivalent to version 0.0.) Signed-off-by: Leif Lindholm Cc: Peter Maydell Cc: Radoslaw Biernacki Cc: Cédric Le Goater --- hw/arm/sbsa-ref.c | 3 +++ 1 file changed, 3

[PATCH] MAINTAINERS/.mailmap: update email for Leif Lindholm

2022-04-27 Thread Leif Lindholm
NUVIA was acquired by Qualcomm in March 2021, but kept functioning on separate infrastructure for a transitional period. We've now switched over to contributing as Qualcomm Innocation Center (quicinc), so update my email address to reflect this. Signed-off-by: Leif Lindholm Cc: Leif Lindhol

Re: [PATCH] MAINTAINERS/.mailmap: update email for Leif Lindholm

2022-04-27 Thread Leif Lindholm
On Wed, Apr 27, 2022 at 7:13 PM Leif Lindholm wrote: > > NUVIA was acquired by Qualcomm in March 2021, but kept functioning on > separate infrastructure for a transitional period. We've now switched > over to contributing as Qualcomm Innocation Center (quicinc), so update >

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-11-11 Thread Leif Lindholm
On Thu, Nov 11, 2021 at 16:55:09 +, Peter Maydell wrote: > On Tue, 9 Nov 2021 at 22:52, Leif Lindholm wrote: > > > > On Tue, Nov 09, 2021 at 21:21:46 +, Peter Maydell wrote: > > > The other thing we should nail down is how the user is going to > > > sel

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-11-09 Thread Leif Lindholm
On Tue, Nov 09, 2021 at 21:21:46 +, Peter Maydell wrote: > > Hmm, right. So you're thinking containing the versioning fully in the > > interfaces presented by the model: > > - Is the version node present? > > - If so, is it greater than X? > > - If so, is it great enough to support the SC

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-11-09 Thread Leif Lindholm
On Tue, Nov 09, 2021 at 13:43:50 +, Peter Maydell wrote: > On Fri, 15 Oct 2021 at 13:23, Leif Lindholm wrote: > > (Apologies for delay. Alex also tells me you are currently away, but > > there is no strong urgency here.) > > (Thanks for the ping via Alex -- I missed

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-10-15 Thread Leif Lindholm
Hi Peter, (Apologies for delay. Alex also tells me you are currently away, but there is no strong urgency here.) On Thu, Sep 23, 2021 at 17:00:35 +0100, Peter Maydell wrote: > > If we assume that we don't want to further complicate this set by > > adding the additional logic *now*, I see three op

Re: [PATCH v5 4/4] hw/arm/virt: Add PL330 DMA controller and connect with SMMU v3

2021-09-07 Thread Leif Lindholm
Hi Peter, On Tue, Sep 07, 2021 at 12:00:45 +0100, Peter Maydell wrote: > On Thu, 2 Sept 2021 at 09:23, Li, Chunming > wrote: > > Eric Auger wrote: > >> On 9/2/21 8:46 AM, Li, Chunming wrote: > >>> Eric Auger wrote: > > Then I think you need to bring a proper motivation behind adding the >

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-09-03 Thread Leif Lindholm
On Thu, Sep 02, 2021 at 13:51:26 +0100, Peter Maydell wrote: > On Thu, 2 Sept 2021 at 13:43, Leif Lindholm wrote: > > On Thu, Aug 19, 2021 at 14:27:19 +0100, Peter Maydell wrote: > > > If you want a command line switch to let the user say whether the > > > ITS should be

Re: [PATCH v8 07/10] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-09-02 Thread Leif Lindholm
Hi Peter, On Thu, Aug 19, 2021 at 14:27:19 +0100, Peter Maydell wrote: > On Thu, 12 Aug 2021 at 17:53, Shashi Mallela > wrote: > > > > Included creation of ITS as part of SBSA platform GIC > > initialization. > > > > Signed-off-by: Shashi Mallela > > --- > > hw/arm/sbsa-ref.c | 79

Re: [PATCH for-6.1] hw/arm/boot: Report error if there is no fw_cfg device in the machine

2021-08-03 Thread Leif Lindholm
; exit with a hopefully helpful error message. > > Because we now handle this check in a machine-agnostic way, we > can remove the check from sbsa-ref. > > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/503 > Signed-off-by: Peter Maydell Reviewed-by: Leif Lindho

Re: [PATCH v4 7/8] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-07-08 Thread Leif Lindholm
On Thu, Jul 08, 2021 at 21:05:02 +0100, Peter Maydell wrote: > On Thu, 8 Jul 2021 at 20:40, Leif Lindholm wrote: > > I think my summary-summary would be: > > - I think we will need to introduce a compatiblity-breaking change to > > sbsa-ref. > > - I think we will ne

Re: [PATCH v4 7/8] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-07-08 Thread Leif Lindholm
:00 +0100, Leif Lindholm wrote: > On Fri, Jun 04, 2021 at 11:36:02 -0400, shashi.mall...@linaro.org wrote: > > On Fri, 2021-06-04 at 11:42 +0100, Leif Lindholm wrote: > > > On Thu, Jun 03, 2021 at 11:31:21 -0400, shashi.mall...@linaro.org > > > wrote: > > > >

Re: [PATCH v4 7/8] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-06-04 Thread Leif Lindholm
On Thu, Jun 03, 2021 at 11:31:21 -0400, shashi.mall...@linaro.org wrote: > On Thu, 2021-06-03 at 12:42 +0100, Leif Lindholm wrote: > > On Wed, Jun 02, 2021 at 14:00:41 -0400, Shashi Mallela wrote: > > > Included creation of ITS as part of SBSA platform GIC > > > initiali

Re: [PATCH v4 7/8] hw/arm/sbsa-ref: add ITS support in SBSA GIC

2021-06-03 Thread Leif Lindholm
On Wed, Jun 02, 2021 at 14:00:41 -0400, Shashi Mallela wrote: > Included creation of ITS as part of SBSA platform GIC > initialization. > > Signed-off-by: Shashi Mallela > --- > hw/arm/sbsa-ref.c | 26 +++--- > 1 file changed, 23 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS

2021-03-04 Thread Leif Lindholm
On Thu, Mar 04, 2021 at 15:14:36 +, Peter Maydell wrote: > On Thu, 4 Mar 2021 at 13:53, Leif Lindholm wrote: > > > > On Wed, Mar 03, 2021 at 18:06:46 +, Peter Maydell wrote: > > > On Wed, 3 Mar 2021 at 17:48, Leif Lindholm wrote: > > > > It would b

Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS

2021-03-04 Thread Leif Lindholm
On Wed, Mar 03, 2021 at 18:06:46 +, Peter Maydell wrote: > On Wed, 3 Mar 2021 at 17:48, Leif Lindholm wrote: > > It would be good if we could get 6.0 closer to SBSA compliance. > > How far away are we at the moment ? > > > Would it be worth the effort to make this co

Re: [PATCH] arm: bump amount of PMU counters to pass SBSA ACS

2021-03-03 Thread Leif Lindholm
ble PMU counters. > > So let make QEMU provide those 6 PMU counters. > > SBSA-ACS says now: > > 12 : Check number of PMU counters : Result: PASS > > Signed-off-by: Marcin Juszkiewicz Reviewed-by: Leif Lindholm It would be good if we could get 6.0 close

Re: [PATCH 2/7] hw/boards: Introduce 'kvm_supported' field to MachineClass

2021-02-19 Thread Leif Lindholm
On Fri, Feb 19, 2021 at 12:08:05 +, Peter Maydell wrote: > On Fri, 19 Feb 2021 at 11:58, Daniel P. Berrangé wrote: > > Is the behaviour reported really related to KVM specifically, as opposed > > to all hardware based virt backends ? > > > > eg is it actually a case of some machine types being

Re: [PATCH 1/2] sbsa-ref: remove cortex-a53 from list of supported cpus

2021-02-11 Thread Leif Lindholm
On Thu, Feb 11, 2021 at 13:36:37 +0100, Marcin Juszkiewicz wrote: > Cortex-A53 supports 40bits of address space. sbsa-ref's memory starts > above this limit. > > Signed-off-by: Marcin Juszkiewicz Acked-by: Leif Lindholm > --- > hw/arm/sbsa-ref.c | 1 - >

Re: [PATCH 2/2] sbsa-ref: add 'max' to list of allowed cpus

2021-02-11 Thread Leif Lindholm
On Thu, Feb 11, 2021 at 13:36:38 +0100, Marcin Juszkiewicz wrote: > Let add 'max' cpu while work goes on adding newer CPU types than > Cortex-A72. This allows us to check SVE etc support. > > Signed-off-by: Marcin Juszkiewicz Acked-by: Leif Lindholm > --- > hw/ar

Re: [RFC PATCH 0/4] hw/intc: enable GICv4 memory layout for GICv3 driver

2021-02-03 Thread Leif Lindholm
On Tue, Feb 02, 2021 at 10:39:22 +, Peter Maydell wrote: > On Sun, 24 Jan 2021 at 02:53, Leif Lindholm wrote: > > > > GICv4 sets aside 256K per redistributor configuration block, whereas GICv3 > > only uses 128K. However, some codebases (like TF-A, EDK2) will happ

Re: [RFC PATCH 4/4] hw/intc: make gicv3_idreg() distinguish between gicv3/gicv4

2021-02-03 Thread Leif Lindholm
On Tue, Feb 02, 2021 at 10:31:16 +, Peter Maydell wrote: > On Sun, 24 Jan 2021 at 02:53, Leif Lindholm wrote: > > > > Make gicv3_idreg() able to return either gicv3 or gicv4 data. > > Add a parameter to specify gic version. > > > > Signed-off-by: Le

[RFC PATCH 3/4] hw/intc: set GICD_TYPER.DVIS for GICv4

2021-01-23 Thread Leif Lindholm
The VLPI frames are what make the redistributor size change, so ensure we state in GICD_TYPER that we have them. Signed-off-by: Leif Lindholm --- hw/intc/arm_gicv3_dist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/intc/arm_gicv3_dist.c b/hw/intc/arm_gicv3_dist.c index b65f56f903

[RFC PATCH 2/4] hw/intc: add helper function to determine gicv3 redistributor size

2021-01-23 Thread Leif Lindholm
GICv3 sets aside 128K for each redistributor block, whereas GICv4 sets aside 256K. To enable use of the gicv3 model for gicv4, abstract this away as the helper function gicv3_redist_size() and replace the current hardcoded locations with calls to this function. Signed-off-by: Leif Lindholm

[RFC PATCH 4/4] hw/intc: make gicv3_idreg() distinguish between gicv3/gicv4

2021-01-23 Thread Leif Lindholm
Make gicv3_idreg() able to return either gicv3 or gicv4 data. Add a parameter to specify gic version. Signed-off-by: Leif Lindholm --- hw/intc/arm_gicv3_dist.c | 2 +- hw/intc/arm_gicv3_redist.c | 2 +- hw/intc/gicv3_internal.h | 12 ++-- 3 files changed, 12 insertions(+), 4

[RFC PATCH 0/4] hw/intc: enable GICv4 memory layout for GICv3 driver

2021-01-23 Thread Leif Lindholm
... problematic ... system, which will misbehave if you try to use the virtual LPIs. But it does help with letting me use QEMU for modelling a platform containing a GICv4, and share firmware images with other prototyping platforms. Leif Lindholm (4): hw/intc: don't bail out gicv3 model ini

[RFC PATCH 1/4] hw/intc: don't bail out gicv3 model init for revision 4

2021-01-23 Thread Leif Lindholm
As a first step towards GICv4 compatibility, add support for gic revision 4 to GICv3 driver (i.e. don't bail out if revision 4 is encountered). Signed-off-by: Leif Lindholm --- hw/intc/arm_gicv3_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw

[PATCH v3 6/6] target/arm: add aarch32 ID register fields to cpu.h

2021-01-08 Thread Leif Lindholm
Add entries present in ARM DDI 0487F.c (August 2020). Signed-off-by: Leif Lindholm Reviewed-by: Peter Maydell Reviewed-by: Laurent Desnogues --- target/arm/cpu.h | 28 1 file changed, 28 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index

[PATCH v3 4/6] target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h

2021-01-08 Thread Leif Lindholm
Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 31 +++ 1 file changed, 31 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 063228de2a..18c1cb02bb 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1736,6 +1736,37 @@ FIELD(V7M_FPCCR

[PATCH v3 3/6] target/arm: make ARMCPU.ctr 64-bit

2021-01-08 Thread Leif Lindholm
When FEAT_MTE is implemented, the AArch64 view of CTR_EL0 adds the TminLine field in bits [37:32]. Extend the ctr field to be able to hold this context. Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/cpu.h b

[PATCH v3 0/6] target/arm: various changes to cpu.h

2021-01-08 Thread Leif Lindholm
nition for CCSIDR_EL1 fields when FEAT_CCIDX implemented. - Add patch extending also ARMCPU.ctr to 64-bit. - Rebase to current master. v1->v2: - Correct CCSIDR_EL1 field sizes in 3/5. - Rebase to current master. Leif Lindholm (6): target/arm: fix typo in cpu.h ID_AA64PFR1 field name target/

[PATCH v3 5/6] target/arm: add aarch64 ID register fields to cpu.h

2021-01-08 Thread Leif Lindholm
Add entries present in ARM DDI 0487F.c (August 2020). Signed-off-by: Leif Lindholm Reviewed-by: Peter Maydell Reviewed-by: Laurent Desnogues --- target/arm/cpu.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 18c1cb02bb

[PATCH v3 2/6] target/arm: make ARMCPU.clidr 64-bit

2021-01-08 Thread Leif Lindholm
The AArch64 view of CLIDR_EL1 extends the ICB field to include also bit 32, as well as adding a Ttype field when FEAT_MTE is implemented. Extend the clidr field to be able to hold this context. Signed-off-by: Leif Lindholm Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed

[PATCH v3 1/6] target/arm: fix typo in cpu.h ID_AA64PFR1 field name

2021-01-08 Thread Leif Lindholm
SBSS -> SSBS Signed-off-by: Leif Lindholm Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Laurent Desnogues --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 7e6c881a7e..5e3cf77

Re: [PATCH v2 3/5] target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h

2020-12-17 Thread Leif Lindholm
On Thu, Dec 17, 2020 at 13:18:03 +0100, Laurent Desnogues wrote: > On Thu, Dec 17, 2020 at 1:10 PM Leif Lindholm wrote: > [...] > > > > > > +FIELD(CCSIDR_EL1, LINESIZE, 0, 3) > > > > > > +FIELD(CCSIDR_EL1, ASSOCIATIVITY, 3, 21) >

Re: [PATCH v2 3/5] target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h

2020-12-17 Thread Leif Lindholm
Hi Laurent, On Thu, Dec 17, 2020 at 11:02:23 +0100, Laurent Desnogues wrote: > Hi Leif, > > On Tue, Dec 15, 2020 at 5:49 PM Leif Lindholm wrote: > > > > On Tue, Dec 15, 2020 at 13:23:58 +0100, Laurent Desnogues wrote: > > > Hello, > > > > > >

Re: [PATCH v2 3/5] target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h

2020-12-15 Thread Leif Lindholm
On Tue, Dec 15, 2020 at 13:23:58 +0100, Laurent Desnogues wrote: > Hello, > > On Tue, Dec 15, 2020 at 12:51 PM Leif Lindholm wrote: > > > > Signed-off-by: Leif Lindholm > > --- > > target/arm/cpu.h | 24 > > 1 file changed, 24 in

Re: [PATCH v2 0/5] target/arm: various changes to cpu.h

2020-12-15 Thread Leif Lindholm
On Tue, Dec 15, 2020 at 12:11:43 +, Peter Maydell wrote: > On Tue, 15 Dec 2020 at 11:48, Leif Lindholm wrote: > > > > First, fix a typo in ID_AA64PFR1 (SBSS -> SSBS). > > > > Second, turn clidr in the ARMCPU struct 64-bit, to support all fields > > defin

Re: [PATCH v2 3/5] target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h

2020-12-15 Thread Leif Lindholm
On Mon, Dec 14, 2020 at 13:36:51 +, Peter Maydell wrote: > On Mon, 14 Dec 2020 at 12:36, Leif Lindholm wrote: > > > > Signed-off-by: Leif Lindholm > > --- > > v1->v2: > > - Correct CCSIDR_EL1 field sizes. > > Hi -- could you resend the whole series

[PATCH v2 1/5] target/arm: fix typo in cpu.h ID_AA64PFR1 field name

2020-12-15 Thread Leif Lindholm
SBSS -> SSBS Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 7e6c881a7e..5e3cf77ec7 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1883,7 +1883,7 @@ FIELD(ID_AA64PFR0,

[PATCH v2 4/5] target/arm: add aarch64 ID register fields to cpu.h

2020-12-15 Thread Leif Lindholm
Add entries present in ARM DDI 0487F.c (August 2020). Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 90ba707b64..efa977eaca 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h

[PATCH v2 2/5] target/arm: make ARMCPU.clidr 64-bit

2020-12-15 Thread Leif Lindholm
The AArch64 view of CLIDR_EL1 extends the ICB field to include also bit 32, as well as adding a Ttype field when FEAT_MTE is implemented. Extend the clidr field to be able to hold this context. Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 5/5] target/arm: add aarch32 ID register fields to cpu.h

2020-12-15 Thread Leif Lindholm
Add entries present in ARM DDI 0487F.c (August 2020). Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 28 1 file changed, 28 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index efa977eaca..fb81eed776 100644 --- a/target/arm/cpu.h +++ b/target

[PATCH v2 0/5] target/arm: various changes to cpu.h

2020-12-15 Thread Leif Lindholm
Rebase to current master. Leif Lindholm (5): target/arm: fix typo in cpu.h ID_AA64PFR1 field name target/arm: make ARMCPU.clidr 64-bit target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h target/arm: add aarch64 ID register fields to cpu.h target/arm: add aarc

[PATCH v2 3/5] target/arm: add descriptions of CLIDR_EL1, CCSIDR_EL1, CTR_EL0 to cpu.h

2020-12-15 Thread Leif Lindholm
Signed-off-by: Leif Lindholm --- target/arm/cpu.h | 24 1 file changed, 24 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index fadd1a47df..90ba707b64 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1736,6 +1736,30 @@ FIELD(V7M_FPCCR, ASPEN, 31

  1   2   >