#
e526bc78 |
| 01-Jul-2023 |
Andrew Jones <andrew.jones@linux.dev> |
Merge branch 'arm/queue' into 'master'
arm/arm64: EFI support, arm64 backtrace support, PMU test improvements, and more
See merge request kvm-unit-tests/kvm-unit-tests!43
|
#
040d725e |
| 30-May-2023 |
Nikos Nikoleris <nikos.nikoleris@arm.com> |
devicetree: Check that fdt is not NULL in dt_available()
Up until now, for platforms that support DT, kvm-unit-tests would unconditionally use DT to configure the system and the code made the assump
devicetree: Check that fdt is not NULL in dt_available()
Up until now, for platforms that support DT, kvm-unit-tests would unconditionally use DT to configure the system and the code made the assumption that the fdt will always be a valid pointer.
On Arm systems that support both ACPI and DT, kvm-unit-tests plans to follow the same convension as the Linux kernel: attempt to configure the system using the DT first, then fallback to ACPI.
As a result, the fdt pointer can be NULL. Check for that in dt_available().
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Reviewed-by: Andrew Jones <andrew.jones@linux.dev> [ Alex E: Minor changes to the commit message ] Signed-off-by: Andrew Jones <andrew.jones@linux.dev>
show more ...
|
#
1399f7f7 |
| 14-Mar-2022 |
Andrew Jones <drjones@redhat.com> |
Merge branch 'misc/queue' into 'master'
misc/queue: Rename TARGET_EFI to CONFIG_EFI
See merge request kvm-unit-tests/kvm-unit-tests!26
|
#
e9e4214a |
| 15-Feb-2022 |
Andrew Jones <drjones@redhat.com> |
devicetree: Relax initrd address assert
It doesn't matter if the initrd addresses are 64-bit pointers, even when running on 32-bit arm, as long as the actual addresses fit in 32-bits. Relax the asse
devicetree: Relax initrd address assert
It doesn't matter if the initrd addresses are 64-bit pointers, even when running on 32-bit arm, as long as the actual addresses fit in 32-bits. Relax the assert to check that condition instead.
Fixes: c6f24b864832 ("lib/devicetree: Support 64 bit addresses for the initrd") Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
882825e6 |
| 14-Feb-2022 |
Andrew Jones <drjones@redhat.com> |
Merge branch 'misc/queue' into 'master'
Misc fixes
See merge request kvm-unit-tests/kvm-unit-tests!24
|
#
c6f24b86 |
| 14-Feb-2022 |
Alexandru Elisei <alexandru.elisei@arm.com> |
lib/devicetree: Support 64 bit addresses for the initrd
The "linux,initrd-start" and "linux,initrd-end" properties encode the start and end address of the initrd. The size of the address is encoded
lib/devicetree: Support 64 bit addresses for the initrd
The "linux,initrd-start" and "linux,initrd-end" properties encode the start and end address of the initrd. The size of the address is encoded in the root node #address-cells property and can be 1 cell (32 bits) or 2 cells (64 bits). Add support for parsing a 64 bit address.
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> [Fixed compilation for 32-bit arm with another cast.] Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
f583d924 |
| 30-Mar-2021 |
Paolo Bonzini <bonzini@gnu.org> |
Merge branch 'arm/queue' into 'master'
arm/arm64: Fixes, improvements, and prep for target-efi
See merge request kvm-unit-tests/kvm-unit-tests!6
|
#
546914b4 |
| 18-Mar-2021 |
Nikos Nikoleris <nikos.nikoleris@arm.com> |
devicetree: Parse correctly the stdout-path
The stdout-path property in the device tree is a string of the form
"UART_NODE:OPTS"
Where UART_NODE is a compatible serial port and OPTS specify parame
devicetree: Parse correctly the stdout-path
The stdout-path property in the device tree is a string of the form
"UART_NODE:OPTS"
Where UART_NODE is a compatible serial port and OPTS specify parameters such as the baud. Fix the way we parse the node and, at least for now, ignore options as we don't act on them.
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
3c13c642 |
| 08-Jan-2020 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge branch 'arm/queue' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
|
#
57a11d8d |
| 27-Dec-2019 |
Zeng Tao <prime.zeng@hisilicon.com> |
devicetree: Fix the dt_for_each_cpu_node
If the /cpus node contains nodes other than /cpus/cpu*, for example: /cpus/cpu-map/. The test will issue an unexpected assert error as follow: [root@localhos
devicetree: Fix the dt_for_each_cpu_node
If the /cpus node contains nodes other than /cpus/cpu*, for example: /cpus/cpu-map/. The test will issue an unexpected assert error as follow: [root@localhost]# ./arm-run arm/spinlock-test.flat qemu-system-aarch64 -nodefaults -machine virt,gic-version=host,accel=kvm -cpu host -device virtio-serial-device -device virtconsole,chardev=ctd -chardev testdev,id=ctd -device pci-testdev -display none -serial stdio -kernel arm/spinlock-test.flat # -initrd /tmp/tmp.mwPLiF4EWm lib/arm/setup.c:64: assert failed: ret == 0 STACK:
In this patch, ignore the non-cpu subnodes instead of return an error.
Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
dd3f102f |
| 13-Jan-2017 |
Andrew Jones <drjones@redhat.com> |
devicetree: introduce dt_get_initrd
Allow DT users to find the initrd if one is passed on the QEMU command line.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcma
devicetree: introduce dt_get_initrd
Allow DT users to find the initrd if one is passed on the QEMU command line.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
d81b83fd |
| 13-Jan-2017 |
Andrew Jones <drjones@redhat.com> |
devicetree: improve dt_get_bootargs interface
Don't lie to callers when bootargs wasn't found, they can check for themselves. Also document that when a failure occurs @bootargs will be NULL.
Signed
devicetree: improve dt_get_bootargs interface
Don't lie to callers when bootargs wasn't found, they can check for themselves. Also document that when a failure occurs @bootargs will be NULL.
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
ea325c68 |
| 22-Dec-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge tag 'for-master' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
arm/arm64 patches ready for master
|
#
7a20b74e |
| 09-Dec-2016 |
Andrew Jones <drjones@redhat.com> |
devicetree: cpu nodes may have 64-bit regs
Reported-by: Andre Przywara <andre.przywara@arm.com> Cc: Laurent Vivier <lvivier@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Signed-off-by: Andrew Jones
devicetree: cpu nodes may have 64-bit regs
Reported-by: Andre Przywara <andre.przywara@arm.com> Cc: Laurent Vivier <lvivier@redhat.com> Cc: Thomas Huth <thuth@redhat.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
show more ...
|
#
db07bff0 |
| 11-May-2016 |
Andrew Jones <drjones@redhat.com> |
devicetree: dt_get_nr_cells output robustness
Only assign outputs if both address and size are found.
Signed-off-by: Andrew Jones <drjones@redhat.com> Message-Id: <1462973121-14548-5-git-send-email
devicetree: dt_get_nr_cells output robustness
Only assign outputs if both address and size are found.
Signed-off-by: Andrew Jones <drjones@redhat.com> Message-Id: <1462973121-14548-5-git-send-email-drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
18407418 |
| 11-May-2016 |
Andrew Jones <drjones@redhat.com> |
devicetree: remove unused globals
root_nr_address_cells and root_nr_size_cells are unused, thanks to the last two patches. Remove them, and tidy-up dt_init while at it.
Signed-off-by: Andrew Jones
devicetree: remove unused globals
root_nr_address_cells and root_nr_size_cells are unused, thanks to the last two patches. Remove them, and tidy-up dt_init while at it.
Signed-off-by: Andrew Jones <drjones@redhat.com> Message-Id: <1462973121-14548-4-git-send-email-drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
da41681d |
| 11-May-2016 |
Andrew Jones <drjones@redhat.com> |
devicetree: don't cache #address/#size-cells
The bus structure allows caching of #address/#size-cells. This is an unnecessary complication, as we can always find that information in the FDT (and don
devicetree: don't cache #address/#size-cells
The bus structure allows caching of #address/#size-cells. This is an unnecessary complication, as we can always find that information in the FDT (and don't care about the overhead). Anyway, it's currently unused, so let's just remove the code.
Signed-off-by: Andrew Jones <drjones@redhat.com> Message-Id: <1462973121-14548-3-git-send-email-drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
81d923cd |
| 11-May-2016 |
Andrew Jones <drjones@redhat.com> |
devicetree: translate with parent node's #address/size-cells
Don't assume all pbus (cpu physical bus) translations will use the same number of address and size cells as are defined in the root node.
devicetree: translate with parent node's #address/size-cells
Don't assume all pbus (cpu physical bus) translations will use the same number of address and size cells as are defined in the root node. Use the parent's (which may be the root node), as the spec tells us to do.
Signed-off-by: Andrew Jones <drjones@redhat.com> Message-Id: <1462973121-14548-2-git-send-email-drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
f1df8658 |
| 29-Feb-2016 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge branch 'ppc64/initial-drop-v7' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
This series brings basic setup; starts a test's C entry point, main(), and printf, exit, and malloc work
Merge branch 'ppc64/initial-drop-v7' of https://github.com/rhdrjones/kvm-unit-tests into HEAD
This series brings basic setup; starts a test's C entry point, main(), and printf, exit, and malloc work. Three more series should follow this one which must bring; vector support, mmu support, and smp support, at which point I believe the framework could just evolve with the creation of unit tests.
Tested on TCG and a P8 kvm_pr machine, and Laurent has tested it on both a PowerMac G5 (kvm_pr) and a kvm_hv machine. I'm looking forward to hearing more testing feedback from others though.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
bb8ab2ad |
| 01-Feb-2016 |
Andrew Jones <drjones@redhat.com> |
devicetree: fix dt_get_memory_params
Index nr was overreaching with its indexing. It should only index the caller's regs array. We need a different index for the memory nodes' reg properties.
Signe
devicetree: fix dt_get_memory_params
Index nr was overreaching with its indexing. It should only index the caller's regs array. We need a different index for the memory nodes' reg properties.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Tested-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
--- The next patch needs this fix.
show more ...
|
#
7e29db9f |
| 29-Jul-2015 |
Andrew Jones <drjones@redhat.com> |
devicetree: add /chosen/stdout-path support
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
901c1c8d |
| 22-Aug-2014 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge remote-tracking branch 'drjones/arm/v7-initial-drop'
|
#
f7f76b85 |
| 03-Apr-2014 |
Andrew Jones <drjones@redhat.com> |
add support for Linux device trees
Build libfdt and add some device tree functions built on it to the arch-neutral lib code in order to facilitate the extraction of boot info and device base address
add support for Linux device trees
Build libfdt and add some device tree functions built on it to the arch-neutral lib code in order to facilitate the extraction of boot info and device base addresses. These functions should work on device trees conforming to section III of the kernel doc Documentation/devicetree/booting-without-of.txt.
Signed-off-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> --- v7: - squashed the "add a make target" bit of v6's "libfdt: get libfdt to build" (now dropped) patch. The rest of that dropped patch has already been merged under "libcflat: add more string functions" - no need for info to be const in dt_device_init v5: - changed *get_baseaddr* helpers to *get_base* helpers - a couple minor code changes [Christoffer Dall] v4: reworked everything, added lots of comments to devicetree.h
show more ...
|