Re: [Qemu-devel] [PATCH 0/3] usb-musb: make qdev-aware

2011-09-02 Thread Marcin Juszkiewicz
W dniu 02.09.2011 10:00, Riku Voipio pisze: > n800/n810 qemu images based on official are not redistributable, as > they carry propiertary software. Instructions howto convert a firmare > to qemu image exist, but to get your hands on a firmware you need to > know a n800/n810 serial number: > > htt

Re: [RFC 0/2] Add RISC-V Server Platform Reference Board

2024-03-07 Thread Marcin Juszkiewicz
W dniu 4.03.2024 o 11:25, Fei Wu pisze: The RISC-V Server Platform specification[1] defines a standardized set of hardware and software capabilities, that portable system software, such as OS and hypervisors can rely on being present in a RISC-V server platform. This patchset provides a RISC-V S

Re: possible deprecation and removal of some old QEMU Arm machine types (pxa2xx, omap, sa1110)

2024-02-13 Thread Marcin Juszkiewicz
W dniu 12.02.2024 o 15:36, Guenter Roeck pisze: The machines I have in mind are: PXA2xx machines: akita    Sharp SL-C1000 (Akita) PDA (PXA270) borzoi   Sharp SL-C3100 (Borzoi) PDA (PXA270) connex   Gumstix Connex (PXA255) mainstone    Mainstone II (P

Re: possible deprecation and removal of some old QEMU Arm machine types (pxa2xx, omap, sa1110)

2024-02-14 Thread Marcin Juszkiewicz
W dniu 14.02.2024 o 1:26 PM, Dmitry Baryshkov pisze: The thriving world of PostmarketOS only exist because Google was clever to realize devices should have a developer mode. There were two projects that worked on reenabling phones and PDAs from that era, hack'n'dev and handhelds.org. I think b

Re: possible deprecation and removal of some old QEMU Arm machine types (pxa2xx, omap, sa1110)

2024-02-15 Thread Marcin Juszkiewicz
W dniu 15.02.2024 o 9:52 AM, Dmitry Baryshkov pisze: If we want to actually go there, I think the best option for PCMCIA support is likely to replace the entire "soc_common" pcmcia driver with a simple drivers/pata/ storage driver and no support for other cards. hmm, main usage for PCMCIA/CF i

[PATCH 1/1] hw/arm/sbsa-ref: Simplify init since PCIe is always enabled

2024-02-15 Thread Marcin Juszkiewicz
There is no point in checking do we have PCIe if first thing after check is adding PCIe card without checking. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index f2adf30337

Re: [RFC v2 2/2] hw/riscv: Add server platform reference machine

2024-03-22 Thread Marcin Juszkiewicz
W dniu 22.03.2024 o 05:55, Alistair Francis pisze: I see no mention of device trees in the spec, but I do see ACPI. Do we really expect a server platform to use DTs? This platform "kind of" follows sbsa-ref where we have very minimalistic device tree sharing information qemu->firmware. libfd

Re: [RFC v2 2/2] hw/riscv: Add server platform reference machine

2024-03-22 Thread Marcin Juszkiewicz
W dniu 22.03.2024 o 09:50, Heinrich Schuchardt pisze: >>> I see no mention of device trees in the spec, but I do see ACPI. Do we >>> really expect a server platform to use DTs? >> >> This platform "kind of" follows sbsa-ref where we have very >> minimalistic device tree sharing information qemu->f

Re: [PATCH v2 0/2] ARM Sbsa-ref: Enable CPU cluster topology

2024-03-22 Thread Marcin Juszkiewicz
W dniu 22.03.2024 o 19:51, Peter Maydell pisze: On Tue, 12 Mar 2024 at 08:32, Xiong Yining xiongyining1480 (2): hw/arm/sbsa-ref:Enable CPU cluster on ARM sbsa machine hw/arm/sbsa-ref: Add cpu-map to device tree Thanks for these patches. I think we should squash the two patches together

Re: [RFC PATCH 00/12] SMMUv3 nested translation support

2024-03-25 Thread Marcin Juszkiewicz
W dniu 25.03.2024 o 11:13, Mostafa Saleh pisze: Currently, QEMU supports emulating either stage-1 or stage-2 SMMUs but not nested instances. This patch series adds support for nested translation in SMMUv3, this is controlled by property “arm-smmuv3.stage=nested”, and advertised to guests as (IDR0

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

2024-03-26 Thread Marcin Juszkiewicz
by DeviceTree. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 37 - 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index bca61608ff..d4d1f2efe3 100644 --- a/docs/system/arm

How to add pcie-root-port and device behind it in C?

2024-03-27 Thread Marcin Juszkiewicz
I was going through Arm (S)BSA tests run against sbsa-ref. Many of them check for presence of other cards than "Root Complex Integrated Endpoint" ones. The "-device root-pcie-port" etc arguments can be used to add such ones but I was wondering how to add them directly in C code. Tried to find

Re: [PATCH-for-9.0 v2] hw/i386/pc: Deprecate 64-bit CPUs on ISA-only PC machine

2024-03-27 Thread Marcin Juszkiewicz
W dniu 27.03.2024 o 17:54, Philippe Mathieu-Daudé pisze: diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst index 7b548519b5..345c35507f 100644 --- a/docs/about/deprecated.rst +++ b/docs/about/deprecated.rst @@ -208,6 +208,13 @@ is no longer packaged in any distro making it harder

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

2024-03-28 Thread Marcin Juszkiewicz
by DeviceTree. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 35 ++- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index bca61608ff..2bf22a1d0b 100644 --- a/docs/system/arm

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

2024-03-28 Thread Marcin Juszkiewicz
W dniu 28.03.2024 o 16:43, Peter Maydell pisze: On Tue, 26 Mar 2024 at 09:58, Marcin Juszkiewicz wrote: Hardware of sbsa-ref board is nowadays defined by both BSA and SBSA specifications. Then BBR defines firmware interface. Added note about DeviceTree data passed from QEMU to firmware. It

Re: /util/cpuinfo-aarch64.c:58:22: error: 'HWCAP_USCAT' undeclared

2024-04-01 Thread Marcin Juszkiewicz
W dniu 1.04.2024 o 21:55, Liviu Ionescu pisze: On 1 Apr 2024, at 21:48, Richard Henderson wrote: You were told back in September that Ubuntu 18.04 is no longer supported. Sorry, I missed that. BTW, according to ubuntu.com: "With Ubuntu Pro, the 18.04 LTS will be fully supported until 2028.".

How to use pxb-pcie in correct way?

2024-04-08 Thread Marcin Juszkiewicz
For quite a while I am experimenting with PCI Express setup on SBSA-Ref system. And finally decided to write. We want to play with NUMA setup and "pxb-pcie" can be assigned to NUMA node other than cpu0 one. But adding it makes other cards dissapear... When I boot sbsa-ref I have plain PCIe se

[PATCH 0/3] tests/avocado: update sbsa-ref firmware to latest

2024-03-13 Thread Marcin Juszkiewicz
igned-off-by: Marcin Juszkiewicz --- Marcin Juszkiewicz (3): tests/avocado: update sbsa-ref firmware tests/avocado: drop virtio-rng from sbsa-ref tests tests/avocado: use OpenBSD 7.4 for sbsa-ref tests/avocado/machine_aarch64_sbsaref.py | 74 +++-

[PATCH 3/3] tests/avocado: use OpenBSD 7.4 for sbsa-ref

2024-03-13 Thread Marcin Juszkiewicz
7.4 was released in October 2023, time to update before 7.3 gets dropped. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b

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

2024-03-13 Thread Marcin Juszkiewicz
hieu-Daudé # SPDX-FileContributor: Marcin Juszkiewicz # @@ -32,34 +32,36 @@ def fetch_firmware(self): """ Flash volumes generated using: -- Fedora GNU Toolchain version 13.2.1 20230728 (Red Hat 13.2.1-1) +Toolchain from Debian: +aarc

[PATCH 2/3] tests/avocado: drop virtio-rng from sbsa-ref tests

2024-03-13 Thread Marcin Juszkiewicz
sbsa-ref is supposed to emulate real hardware so virtio-rng-pci does not fit here Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 8 1 file changed, 8 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado

Re: [PATCH 3/3] tests/avocado: use OpenBSD 7.4 for sbsa-ref

2024-03-13 Thread Marcin Juszkiewicz
W dniu 13.03.2024 o 12:44, Philippe Mathieu-Daudé pisze: -    :avocado: tags=cpu:cortex-a57 +    :avocado: tags=cpu:cortex-a57,os:openbsd IIRC for some reason we must use one tag per line... Even if named 'tags', this is handled as a single tag, so we couldn't filter on "os:openbsd". We

[PATCH v2 3/4] tests/avocado: use OpenBSD 7.4 for sbsa-ref

2024-03-14 Thread Marcin Juszkiewicz
7.4 was released in October 2023, time to update before 7.3 gets dropped. Disabled tests for 'max' cpu as OpenBSD fails there. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 47 +++- 1 file changed, 34 insertions(+), 13

[PATCH v2 2/4] tests/avocado: drop virtio-rng from sbsa-ref tests

2024-03-14 Thread Marcin Juszkiewicz
sbsa-ref is supposed to emulate real hardware so virtio-rng-pci does not fit here Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 8 1 file changed, 8 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado

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

2024-03-14 Thread Marcin Juszkiewicz
hieu-Daudé # SPDX-FileContributor: Marcin Juszkiewicz # @@ -32,34 +32,36 @@ def fetch_firmware(self): """ Flash volumes generated using: -- Fedora GNU Toolchain version 13.2.1 20230728 (Red Hat 13.2.1-1) +Toolchain from Debian: +aarc

[PATCH v2 0/4] tests/avocado: update sbsa-ref firmware to latest

2024-03-14 Thread Marcin Juszkiewicz
PASS (29.27 s) (6/8) test_sbsaref_alpine_linux_max: PASS (80.13 s) (7/8) test_sbsaref_openbsd_cortex_a57: PASS (16.01 s) (8/8) test_sbsaref_openbsd_neoverse_n1: PASS (16.05 s) Signed-off-by: Marcin Juszkiewicz --- Changes in v2: - disabled 'max' tests on OpenBSD - moved tags to 'one tag per line' - add

[PATCH v2 4/4] tests/avocado: sbsa-ref: add Alpine tests for misc 'max' setup

2024-03-14 Thread Marcin Juszkiewicz
PAuth makes run timeout on CI so add tests using 'max' without it and with impdef one. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tes

Re: [PATCH v2 3/4] tests/avocado: use OpenBSD 7.4 for sbsa-ref

2024-03-14 Thread Marcin Juszkiewicz
W dniu 14.03.2024 o 13:14, Alex Bennée pisze: +# OpenBSD 7.4 does not boot on current max cpu. +# +# def test_sbsaref_openbsd_max_pauth_off(self): +# """ +# :avocado: tags=cpu:max +# :avocado: tags=os:openbsd +# """ +# self.boot_openbsd("max,pauth=off") If we are

Re: [PATCH v2 3/4] tests/avocado: use OpenBSD 7.4 for sbsa-ref

2024-03-14 Thread Marcin Juszkiewicz
W dniu 14.03.2024 o 15:56, Alex Bennée pisze: If we are not going to delete the entries then at least use a @skip instead of commenting. Maybe: @skip("Potential un-diagnosed upstream bug?") Daniel or Peter suggested to open a GitLab issue and use @skip("https://gitlab.com/qemu-project/

[PATCH v3 4/4] tests/avocado: sbsa-ref: add OpenBSD tests for misc 'max' setup

2024-03-18 Thread Marcin Juszkiewicz
PAuth makes run timeout on CI so add tests using 'max' without it and with impdef one. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/avocado/machine_aarch64_

[PATCH v3 3/4] tests/avocado: sbsa-ref: add Alpine tests for misc 'max' setup

2024-03-18 Thread Marcin Juszkiewicz
PAuth makes run timeout on CI so add tests using 'max' without it and with impdef one. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tes

[PATCH v3 2/4] tests/avocado: drop virtio-rng from sbsa-ref tests

2024-03-18 Thread Marcin Juszkiewicz
sbsa-ref is supposed to emulate real hardware so virtio-rng-pci does not fit here Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 8 1 file changed, 8 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado

[PATCH v3 0/4] tests/avocado: update sbsa-ref firmware to latest

2024-03-18 Thread Marcin Juszkiewicz
/11) test_sbsaref_openbsd73_max_pauth_impdef: PASS (16.11 s) (11/11) test_sbsaref_openbsd73_max: PASS (16.08 s) Signed-off-by: Marcin Juszkiewicz --- Changes in v3: - left OpenBSD at 7.3 (7.4+ is known to not boot) https://gitlab.com/qemu-project/qemu/-/issues/2224 https://marc.info/?l=openbsd-a

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

2024-03-18 Thread Marcin Juszkiewicz
hieu-Daudé # SPDX-FileContributor: Marcin Juszkiewicz # @@ -32,34 +32,36 @@ def fetch_firmware(self): """ Flash volumes generated using: -- Fedora GNU Toolchain version 13.2.1 20230728 (Red Hat 13.2.1-1) +Toolchain from Debian: +aarc

Re: [PATCH 0/3] target/arm: Make the counter frequency default 1GHz for new CPUs, machines

2024-04-22 Thread Marcin Juszkiewicz
W dniu 22.04.2024 o 14:56, Peter Maydell pisze: On Fri, 19 Apr 2024 at 19:46, Peter Maydell wrote: The upshot is that the only CPU type that changes is 'max'; but any new type we add in future (whether v8.6 or not) will also get the new 1GHz default (assuming we spot in code review any attemp

Re: [PATCH 0/3] target/arm: Make the counter frequency default 1GHz for new CPUs, machines

2024-04-22 Thread Marcin Juszkiewicz
W dniu 22.04.2024 o 16:18, Peter Maydell pisze: On Mon, 22 Apr 2024 at 14:38, Marcin Juszkiewicz From what I see in EDK2 code we read CNTFREQ_EL0: GetPlatformTimerFreq() checks for PcdArmArchTimerFreqInHz variable which sbsa-ref has set to 0. So it calls ArmGenericTimerGetTimerFreq

Re: [PATCH 0/3] target/arm: Make the counter frequency default 1GHz for new CPUs, machines

2024-04-23 Thread Marcin Juszkiewicz
W dniu 22.04.2024 o 17:37, Marcin Juszkiewicz pisze: It also seems to be hardcoded in TF-A's support for the virt board too, annoyingly. I looked at it and it seems that TF-A can just read what is in CNTFRQ_EL0 instead of hardcoding the value. Submitted patch:

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

2024-04-26 Thread Marcin Juszkiewicz
Yining tested-by: Marcin Juszkiewicz Thanks. Checked with TF-A and EDK2 patches applied. PPTT table will be more detailed now. Reviewed-by: Marcin Juszkiewicz

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

2024-04-28 Thread Marcin Juszkiewicz
W dniu 26.04.2024 o 18:06, Richard Henderson pisze: Isn't this basically what MPIDR_EL1 is supposed to indicate? We do not yet implement all of that in QEMU, but should. QEMU has socket/cluster/core/thread model which could map to aff3/aff2/aff1/aff0 (or aff0/1/2/3) of MPIDR_EL1 register, righ

Re: [PATCH v2 2/4] hw/arm/sbsa-ref: Force CPU generic timer to 62.5MHz

2024-04-28 Thread Marcin Juszkiewicz
ur avocado test Aarch64SbsarefMachine.test_sbsaref_alpine_linux_max_pauth_impdef before we can do that. Signed-off-by: Peter Maydell --- I leave it up to the sbsa-ref maintainers exactly when they want to shift to 1GHz (probably after a TF-A release with the fix?) Reviewed-by: Marcin Juszkiewicz TF-A 2.11 will be released in June. It will hav

Re: [PATCH] target/arm: fix MPIDR value for ARM CPUs with SMT

2024-05-01 Thread Marcin Juszkiewicz
W dniu 22.04.2024 o 17:21, Richard Henderson pisze: For Arm's CPUs they fall into two categories:   * older ones don't set MT in their MPIDR, and the Aff0     field is effectively the CPU number   * newer ones do set MT in their MPIDR, but don't have     SMT, so their Aff0 is always 0 and their A

Re: [PATCH] target/arm: fix MPIDR value for ARM CPUs with SMT

2024-05-02 Thread Marcin Juszkiewicz
W dniu 2.05.2024 o 12:37, Peter Maydell pisze: * what are the constraints on the Aff* fields (eg that kernel commit suggests Aff0 shouldn't be > 15)? This one is apparently related to GICv3 -- if the GIC doesn't implement RangeSelector support in ICC_SGI0R_EL1 and other places (advertise

Re: [PATCH] target/arm: fix MPIDR value for ARM CPUs with SMT

2024-05-02 Thread Marcin Juszkiewicz
W dniu 19.04.2024 o 20:31, Dorjoy Chowdhury pisze: -uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz) +uint64_t arm_build_mp_affinity(ARMCPU *cpu, int idx, uint8_t clustersz) { +if (cpu->has_smt) { +/* + * Right now, the ARM CPUs with SMT supported by QEMU only have

Re: [PATCH] target/arm: fix MPIDR value for ARM CPUs with SMT

2024-05-02 Thread Marcin Juszkiewicz
W dniu 2.05.2024 o 15:04, Dorjoy Chowdhury pisze: Should "return" also have "(1 << 24) |" to have MT=1 set? Otherwise MPIDR_EL1 = 0x000100 can mean core0 in cluster1 or core1 in cluster0. Value 0x1000100 shows MT=1 so thread0 in core1 in cluster0. I don't know all the details but from what I

Re: [PATCH] target/arm: fix MPIDR value for ARM CPUs with SMT

2024-05-02 Thread Marcin Juszkiewicz
W dniu 2.05.2024 o 15:13, Peter Maydell pisze: On Thu, 2 May 2024 at 14:11, Marcin Juszkiewicz wrote: W dniu 2.05.2024 o 15:04, Dorjoy Chowdhury pisze: Should "return" also have "(1 << 24) |" to have MT=1 set? Otherwise MPIDR_EL1 = 0x000100 can mean core0 in clu

Re: [PATCH] hvf: arm: Fix encodings for ID_AA64PFR1_EL1 and debug System registers

2024-05-05 Thread Marcin Juszkiewicz
W dniu 3.05.2024 o 17:34, Zenghui Yu pisze: We wrongly encoded ID_AA64PFR1_EL1 using {3,0,0,4,2} in hvf_sreg_match[] so we fail to get the expected ARMCPRegInfo from cp_regs hash table with the wrong key. Fix it with the correct encoding {3,0,0,4,1}. With that fixed, the Linux guest can properly

[PATCH] sbsa-ref: remove cortex-a76 from list of supported cpus

2023-01-26 Thread Marcin Juszkiewicz
Cortex-A76 supports 40bits of address space. sbsa-ref's memory starts above this limit. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 4bb444684f..67c1f68c54 100644 --- a/hw/arm/sbsa-

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

2023-05-06 Thread Marcin Juszkiewicz
The world outside moves to newer and newer cpu cores. Let move SBSA Reference Platform to something newer as well. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 0b93558dde

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

2023-05-12 Thread Marcin Juszkiewicz
W dniu 12.05.2023 o 18:02, Leif Lindholm pisze: 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. Firmware was main reason why I not moved to "max". It is easier to keep system runnin

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

2023-05-15 Thread Marcin Juszkiewicz
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 node is present. --- hw/arm/sbsa-ref.c | 38 +- 1 file changed, 37 in

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

2023-05-15 Thread Marcin Juszkiewicz
W dniu 15.05.2023 o 12:15, Peter Maydell pisze:> 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. >&

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

2023-05-15 Thread Marcin Juszkiewicz
W dniu 15.05.2023 o 12:27, Leif Lindholm pisze: On 2023-05-15 11:15, Peter Maydell wrote: Why do we need to provide a full GIC DTB node ? Longer-term, I want to be able to present different specific gic implementations through this interface. I believe the 0.1 variant needs only the Distrib

[PATCH] Maintainers: add myself as reviewer for sbsa-ref

2023-05-15 Thread Marcin Juszkiewicz
At Linaro I work on sbsa-ref, know direction it goes. May not get code details each time. Signed-off-by: Marcin Juszkiewicz --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ff2aa53bb9..3bc12229ba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

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

2023-05-17 Thread Marcin Juszkiewicz
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 node is present. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 19 ++- 1

Re: [PATCH 2/2] target/arm: Add Cortex-A78 CPU

2023-04-18 Thread Marcin Juszkiewicz
W dniu 15.04.2023 o 10:28, Jisheng Zhang pisze: Enable the Cortex-A78 for virt to use a CPU type on the virt board that models a specific real hardware CPU, rather than have to use the QEMU-specific "max" CPU type. You can use 'neoverse-n1' to have a specific real hardware CPU.

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

2023-05-05 Thread Marcin Juszkiewicz
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 --- hw/arm/sbsa-ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index

[PATCH 2/2] docs: sbsa: document platform version changes

2023-05-23 Thread Marcin Juszkiewicz
We plan to start using sbsa-ref platform version fields in DT so firmware does not have to use hardcoded values. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/docs/system/arm

[PATCH 1/2] docs: sbsa: correct graphics card name

2023-05-23 Thread Marcin Juszkiewicz
We moved from VGA to Bochs to have PCIe card. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index b499d7e927..fea4992df2 100644 --- a/docs/system/arm/sbsa.rst

[PATCH v2 1/3] docs: sbsa: correct graphics card name

2023-05-23 Thread Marcin Juszkiewicz
We moved from VGA to Bochs to have PCIe card. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index b499d7e927..016776aed8 100644 --- a/docs/system/arm/sbsa.rst

[PATCH v2 3/3] hw/arm/Kconfig: sbsa-ref uses Bochs display

2023-05-23 Thread Marcin Juszkiewicz
Signed-off-by: Marcin Juszkiewicz --- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 0f42c556d7..4484de67e8 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -249,6 +249,7 @@ config SBSA_REF select PL061 # GPIO select

[PATCH v2 2/3] docs: sbsa: document platform version changes

2023-05-23 Thread Marcin Juszkiewicz
We plan to start using sbsa-ref platform version fields in DT so firmware does not have to use hardcoded values. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/docs/system/arm

Re: [PATCH 1/2] docs: sbsa: correct graphics card name

2023-05-23 Thread Marcin Juszkiewicz
W dniu 23.05.2023 o 19:11, Thomas Huth pisze: On 23/05/2023 17.56, Marcin Juszkiewicz wrote: We moved from VGA to Bochs to have PCIe card. Signed-off-by: Marcin Juszkiewicz ---   docs/system/arm/sbsa.rst | 2 +-   1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/system/arm

[PATCH 3/3] hw/arm/sbsa-ref: use MachineClass->default_display

2023-05-24 Thread Marcin Juszkiewicz
Mark the default graphica via the new MachineClass->default_display setting so that the machine-defaults code in vl.c can decide whether the default graphics is usable or not (for example when compiling with the "--without-default-devices" configure switch). Signed-off-by: Marci

[PATCH 2/3] hw/arm/sbsa-ref: add gfx card only if we have pci

2023-05-24 Thread Marcin Juszkiewicz
Creation of network card is guarded with check do we have pci bus. Do the same with graphics card. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index c540b2f1ba..9a3d77d6b6

[PATCH 1/3] hw/arm/sbsa-ref: honor "-vga none" argument

2023-05-24 Thread Marcin Juszkiewicz
In case someone wants to run without graphics card. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 9c3e670ec6..c540b2f1ba 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa

[PATCH 1/4] Add Bochs to list of vga_interfaces

2023-05-24 Thread Marcin Juszkiewicz
arm/sbsa-ref uses Bochs-display graphics card and without it being present in vga_interfaces "-vga none" argument handling cannot be added. Signed-off-by: Marcin Juszkiewicz --- include/sysemu/sysemu.h | 2 +- softmmu/vl.c| 6 ++ 2 files changed, 7 insertions(+),

[PATCH v2 4/5] hw/arm/sbsa-ref: add gfx card only if we have pci

2023-05-24 Thread Marcin Juszkiewicz
Creation of network card is guarded with check do we have pci bus. Do the same with graphics card. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index c540b2f1ba..9a3d77d6b6

[PATCH v2 3/5] hw/arm/sbsa-ref: honor "-vga none" argument

2023-05-24 Thread Marcin Juszkiewicz
In case someone wants to run without graphics card. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 9c3e670ec6..c540b2f1ba 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa

[PATCH v2 2/5] Add Bochs to list of vga_interfaces

2023-05-24 Thread Marcin Juszkiewicz
arm/sbsa-ref uses Bochs-display graphics card and without it being present in vga_interfaces "-vga none" argument handling cannot be added. Signed-off-by: Marcin Juszkiewicz --- include/sysemu/sysemu.h | 2 +- softmmu/vl.c| 6 ++ 2 files changed, 7 insertions(+),

[PATCH v2 5/5] hw/arm/sbsa-ref: use MachineClass->default_display

2023-05-24 Thread Marcin Juszkiewicz
Mark the default graphica via the new MachineClass->default_display setting so that the machine-defaults code in vl.c can decide whether the default graphics is usable or not (for example when compiling with the "--without-default-devices" configure switch). Signed-off-by: Marci

[PATCH v2 1/5] hw/arm: Use MachineClass->default_nic in the sbsa-ref machine

2023-05-24 Thread Marcin Juszkiewicz
From: Thomas Huth Mark the default NIC via the new MachineClass->default_nic setting so that the machine-defaults code in vl.c can decide whether the default NIC is usable or not (for example when compiling with the "--without-default-devices" configure switch). Signed-off-by: Thomas Huth ---

[PATCH v3 3/5] hw/arm/sbsa-ref: honor "-vga none" argument

2023-05-24 Thread Marcin Juszkiewicz
In case someone wants to run without graphics card. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 9c3e670ec6..c540b2f1ba 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa

[PATCH v3 4/5] hw/arm/sbsa-ref: add gfx card only if we have pci

2023-05-24 Thread Marcin Juszkiewicz
Creation of network card is guarded with check do we have pci bus. Do the same with graphics card. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index c540b2f1ba..9a3d77d6b6

[PATCH v3 2/5] Add Bochs to list of vga_interfaces

2023-05-24 Thread Marcin Juszkiewicz
arm/sbsa-ref uses Bochs-display graphics card and without it being present in vga_interfaces "-vga none" argument handling cannot be added. Signed-off-by: Marcin Juszkiewicz --- include/sysemu/sysemu.h | 2 +- softmmu/vl.c| 6 ++ 2 files changed, 7 insertions(+),

[PATCH v3 1/5] hw/arm: Use MachineClass->default_nic in the sbsa-ref machine

2023-05-24 Thread Marcin Juszkiewicz
From: Thomas Huth Mark the default NIC via the new MachineClass->default_nic setting so that the machine-defaults code in vl.c can decide whether the default NIC is usable or not (for example when compiling with the "--without-default-devices" configure switch). Signed-off-by: Thomas Huth ---

[PATCH v3 0/5] hw/arm/sbsa-ref: sort out graphics a bit

2023-05-24 Thread Marcin Juszkiewicz
Thomas Huth gave me some hints on how to improve sbsa-ref configuration when it comes to graphics. With this patchset we are able to start sbsa-ref if qemu is build with "--without-default-devices" argument given to configure script. Marcin Juszkiewicz (4): Add Bochs to list of vga_

[PATCH v3 5/5] hw/arm/sbsa-ref: use MachineClass->default_display

2023-05-24 Thread Marcin Juszkiewicz
Mark the default graphica via the new MachineClass->default_display setting so that the machine-defaults code in vl.c can decide whether the default graphics is usable or not (for example when compiling with the "--without-default-devices" configure switch). Signed-off-by: Marci

[PATCH v4 3/3] hw/arm/sbsa-ref: set default display to Bochs

2023-05-24 Thread Marcin Juszkiewicz
This way we can use pci_vga_init() and have Bochs by default while still have an option to run with other VGA cards. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index

[PATCH 1/3] hw/arm: Use MachineClass->default_nic in the sbsa-ref machine

2023-05-24 Thread Marcin Juszkiewicz
: Thomas Huth Tested-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 792371fdce..9c3e670ec6 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -596,6 +596,7 @@ static voi

[PATCH v4 0/3] hw/arm/sbsa-ref: sort out graphics a bit

2023-05-24 Thread Marcin Juszkiewicz
nit() list - use pci_vga_init() to initialize graphics in sbsa-ref as this allows to run with other vga cards as well Marcin Juszkiewicz (2): Add Bochs to list of vga_interfaces hw/arm/sbsa-ref: set default display to Bochs Thomas Huth (1): hw/arm: Use MachineClass->default_nic in the sbs

[PATCH v4 2/3] Add Bochs to list of vga_interfaces

2023-05-24 Thread Marcin Juszkiewicz
arm/sbsa-ref uses Bochs-display graphics card and without it being present in vga_interfaces "-vga none" argument handling cannot be added. Signed-off-by: Marcin Juszkiewicz --- hw/pci/pci.c| 2 ++ include/sysemu/sysemu.h | 2 +- softmmu/vl.c| 6 ++ 3 fil

[PATCH v3 1/4] hw/arm/sbsa-ref: add GIC node into DT

2023-05-24 Thread Marcin Juszkiewicz
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 node is present. Signed-off-by: Marcin Juszkiewicz --- hw/arm/sbsa-ref.c | 19 ++- 1

[PATCH v3 3/4] docs: sbsa: document platform version changes

2023-05-24 Thread Marcin Juszkiewicz
We plan to start adding more system information in DT so firmware does not have to use hardcoded values. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/docs/system/arm/sbsa.rst b

[PATCH v3 0/4] hw/arm/sbsa-ref: platform version 0.1

2023-05-24 Thread Marcin Juszkiewicz
ing hardcoded values). Basic documentation about platform changes added. Marcin Juszkiewicz (3): hw/arm/sbsa-ref: add GIC node into DT docs: sbsa: correct graphics card name docs: sbsa: document platform version changes -- 2.40.1

[PATCH v3 2/4] docs: sbsa: correct graphics card name

2023-05-24 Thread Marcin Juszkiewicz
We moved from VGA to Bochs to have PCIe card. Signed-off-by: Marcin Juszkiewicz --- docs/system/arm/sbsa.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/system/arm/sbsa.rst b/docs/system/arm/sbsa.rst index b499d7e927..016776aed8 100644 --- a/docs/system/arm/sbsa.rst

Re: [PATCH v3 0/4] hw/arm/sbsa-ref: platform version 0.1

2023-05-26 Thread Marcin Juszkiewicz
W dniu 25.05.2023 o 12:08, Peter Maydell pisze: The cover message subject says there should be 4 patches in this series, but there are only 3 listed here and only 3 emails arrived on list. Is there a missing patch? I am sorry for mess - 4th patch turned out to be WIP one so I removed it.

Re: [PATCH v4] target/arm: Add Neoverse-N1 registers

2023-03-13 Thread Marcin Juszkiewicz
W dniu 13.03.2023 o 04:39, Chen Baozi pisze: Add implementation defined registers for neoverse-n1 which would be accessed by TF-A. Since there is no DSU in Qemu, CPUCFR_EL1.SCU bit is set to 1 to avoid DSU registers definition. Signed-off-by: Chen Baozi Tested-by: Marcin Juszkiewicz ~ # cat

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

2023-03-23 Thread Marcin Juszkiewicz
Alpine Linux image on both. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Marcin Juszkiewicz --- MAINTAINERS | 1 + tests/avocado/machine_aarch64_sbsaref.py | 138 +++ 2 files changed, 139 insertions(+) create mode 100644 tests/avocado

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

2022-11-13 Thread Marcin Juszkiewicz
t;max" cpu has seen a bug where Linux boot fails around UEFI ExitBootServices. Marcin Juszkiewicz has found the cause for that, but that requires a patch to TF-A. (Has that been submitted upstream?) TF-A gerrit instance refuses to handle any of my SSH keys. RSA, ED25519 ones. The only chang

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

2023-02-09 Thread Marcin Juszkiewicz
enabled for 'max' cpu. Linux kernel/initrd are from Debian 'bookworm' installer with "init=/bin/sh" kernel argument. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Marcin Juszkiewicz --- MAINTAINERS | 1 + tests/avocado/ma

[PATCH v2 1/2] tests/avocado: sbsa-ref: switch from OpenBSD to FreeBSD

2024-06-24 Thread Marcin Juszkiewicz
) Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 53 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/tests/avocado/machine_aarch64_sbsaref.py b/tests/avocado/machine_aarch64_sbsaref.py index 6bb82f2a03..d52f89f756

[PATCH v2 2/2] tests/avocado: add test for default sbsa-ref cpu

2024-06-24 Thread Marcin Juszkiewicz
We changed sbsa-ref cpu several times already and may do it again in a future. To newer core or to enable/disable some properties. This change switches Neoverse-N2 tests to 'let test default cpu' ones. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsar

[PATCH v2 0/2] tests/avocado: updates for sbsa-ref testing

2024-06-24 Thread Marcin Juszkiewicz
considering either disabling PAuth or going with 'impdef' way. Signed-off-by: Marcin Juszkiewicz --- Marcin Juszkiewicz (2): tests/avocado: sbsa-ref: switch from OpenBSD to FreeBSD tests/avocado: add test for default sbsa-ref cpu tests/avocado/machine_aarch64_sbsar

[PATCH v3 1/2] tests/avocado: sbsa-ref: add FreeBSD tests

2024-06-24 Thread Marcin Juszkiewicz
. Moved from Neoverse-N1 to Neoverse-N2 as sbsa-ref defaults were changed. Timeout messages expanded to mention being affected by PAuth emulation. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 75 1 file changed, 56 insertions(+), 19

[PATCH v3 2/2] tests/avocado: add test for default sbsa-ref cpu

2024-06-24 Thread Marcin Juszkiewicz
We changed sbsa-ref cpu several times already and may do it again in a future. To newer core or to enable/disable some properties. This change switches Neoverse-N2 tests to 'let test default cpu' ones. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsar

[PATCH v3 0/2] tests/avocado: updates for sbsa-ref testing

2024-06-24 Thread Marcin Juszkiewicz
test to run on default cpu settings. For now it is plain Neoverse-N2 but we are considering either disabling PAuth or going with 'impdef' way. Signed-off-by: Marcin Juszkiewicz --- Changes in v3: - kept OpenBSD/Cortex-A57 test for local runs (by request of Philippe) - Link to

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

2024-06-30 Thread Marcin Juszkiewicz
W dniu 30.06.2024 o 16:37, Ard Biesheuvel pisze: On Thu, 20 Jun 2024 at 12:20, Marcin Juszkiewicz wrote: Update firmware to have graphics card memory fix from EDK2 commit c1d1910be6e04a8b1a73090cf2881fb698947a6e: OvmfPkg/QemuVideoDxe: add feature PCD to remap framebuffer W/C Some

[PATCH v4 0/2] tests/avocado: updates for sbsa-ref testing

2024-07-03 Thread Marcin Juszkiewicz
AVOCADO_TEST_LEGACY_OS variable. At same time we add test to run on default cpu settings. For now it is plain Neoverse-N2 but we are considering either disabling PAuth or going with 'impdef' way. Signed-off-by: Marcin Juszkiewicz --- Changes in v4: - hide OpenBSD test behind AVOCADO_TEST_LEGACY

[PATCH v4 2/2] tests/avocado: add test for default sbsa-ref cpu

2024-07-03 Thread Marcin Juszkiewicz
We changed sbsa-ref cpu several times already and may do it again in a future. To newer core or to enable/disable some properties. This change switches Neoverse-N2 tests to 'let test default cpu' ones. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsar

[PATCH v4 1/2] tests/avocado: sbsa-ref: add FreeBSD tests

2024-07-03 Thread Marcin Juszkiewicz
. Moved from Neoverse-N1 to Neoverse-N2 as sbsa-ref defaults were changed. Timeout messages expanded to mention being affected by PAuth emulation. Signed-off-by: Marcin Juszkiewicz --- tests/avocado/machine_aarch64_sbsaref.py | 73 1 file changed, 55 insertions(+), 18

  1   2   3   >