spapr: Render full FDT on ibm, client-architecture-support
The following changes since commit d6bb8b27204eaa58f1da948b65454e3a598ab2a4:
pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827
for you to fetch changes up to da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:
spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-support
hw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)
*** Note: this is not for master, this is for pseries
David Gibson
AppliedQuoted 16 lines · Alexey Kardashevskiy
The following changes since commit
d6bb8b27204eaa58f1da948b65454e3a598ab2a4:pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827
for you to fetch changes up to
da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-support
Quoted 6 lines
hw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)*** Note: this is not for master, this is for pseries
Merged, thanks.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 17 lines · David Gibson
Quoted 16 lines · Alexey Kardashevskiy
The following changes since commit
d6bb8b27204eaa58f1da948b65454e3a598ab2a4:pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827
for you to fetch changes up to
da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-support
Quoted 8 lines
Quoted 6 lines
hw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)*** Note: this is not for master, this is for pseries
Merged, thanks.
Urgh. And the qemu change is now un-merged. Alas, as soon as we had a CAS reboot for XIVE the guest didn't boot on the second attempt. Haven't had a chance to investigate yet.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 22 lines · David Gibson
Quoted 21 lines · David Gibson
Quoted 20 lines · Alexey Kardashevskiy
The following changes since commit
d6bb8b27204eaa58f1da948b65454e3a598ab2a4:pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827for you to fetch changes up to
da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-supporthw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
*** Note: this is not for master, this is for pseries
Merged, thanks.
Urgh. And the qemu change is now un-merged. Alas, as soon as we had a CAS reboot for XIVE the guest didn't boot on the second attempt. Haven't had a chance to investigate yet.
QEMU command line, guest kernel version? I'd give it a try.
Signature · 1 line
Alexey
Quoted 28 lines · Alexey Kardashevskiy
Quoted 25 lines · David Gibson
Quoted 24 lines · David Gibson
Quoted 22 lines · Alexey Kardashevskiy
The following changes since commit
d6bb8b27204eaa58f1da948b65454e3a598ab2a4:pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827for you to fetch changes up to
da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-supporthw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)*** Note: this is not for master, this is for pseries
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Merged, thanks.
Urgh. And the qemu change is now un-merged. Alas, as soon as we had a CAS reboot for XIVE the guest didn't boot on the second attempt. Haven't had a chance to investigate yet.
QEMU command line, guest kernel version? I'd give it a try.
RHEL8.1 in guest and host, booting via GRUB into a XIVE capable kernel.
I've now been able to investigate, dumping the dtb at H_UPDATE_DT time. Comparing before and after the fully-render-dt change, I get:
@@ -24,13 +24,13 @@
};
chosen {
- bootargs = "BOOT_IMAGE=/vmlinuz-4.18.0-137.el8.ppc64le root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap";
+ bootargs = [00];
bootpath = "/pci@800000020000000/scsi@0";
cpu = <0xe45ee80>;
ibm,arch-vec-5-platform-support = <0x17801880 0x19001a40>;
ibm,architecture-vec-5 = [19 00 20 00 00 80 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 40 40 00 40];
- linux,initrd-end = <0x00 0x588ed7d>;
- linux,initrd-start = <0x00 0x3c00000>;
+ linux,initrd-end = <0x00>;
+ linux,initrd-start = <0x00>;
linux,pci-probe-only = <0x00>;
linux,stdout-package = <0xe733a70>;
linux,stdout-path = "/vdevice/vty@71000001";
@@ -252,7 +252,7 @@
used-by-rtas;
ethernet@1 {
- assigned-addresses = <0x82000830 0x00 0x80040000 0x00 0x40000 0x81000810 0x00 0x100 0x00 0x20 0x82000814 0x00 0x80010000 0x00 0x1000 0xc3000820 0x2100 0x10000 0x00 0x4000>;
+ assigned-addresses;
cache-line-size = <0x00>;
class-code = <0x20000>;
device-id = <0x1000>;
@@ -274,7 +274,7 @@
};
scsi@0 {
- assigned-addresses = <0x81000010 0x00 0x80 0x00 0x80 0x82000014 0x00 0x80000000 0x00 0x1000 0xc3000020 0x2100 0x00 0x00 0x4000>;
+ assigned-addresses;
cache-line-size = <0x00>;
class-code = <0x10000>;
device-id = <0x1001>;So basically the bootargs, initrd params and assigned-addresses have been lost.
For bootargs and initrd, I think what's happening is that because qemu isn't setting those (with no -kernel parameter) SLOF is creating them, but they're now being overwritten by qemu's post-CAS DT.
I'm not sure what's going on with assigned-addresses.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 35 lines · On Wed, 28 Aug 2019 15:57:40 +1000 David Gibson <[email protected]>…
Quoted 34 lines · Alexey Kardashevskiy
Quoted 30 lines · David Gibson
Quoted 17 lines · David Gibson
Quoted 16 lines · Alexey Kardashevskiy
The following changes since commit
d6bb8b27204eaa58f1da948b65454e3a598ab2a4:pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827for you to fetch changes up to
da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-supportQuoted 8 lines
Quoted 6 lines
hw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)*** Note: this is not for master, this is for pseries
Merged, thanks.
Urgh. And the qemu change is now un-merged. Alas, as soon as we had a CAS reboot for XIVE the guest didn't boot on the second attempt. Haven't had a chance to investigate yet.
Quoted 7 lines
Quoted 1 line
QEMU command line, guest kernel version? I'd give it a try.
RHEL8.1 in guest and host, booting via GRUB into a XIVE capable kernel.
I've now been able to investigate, dumping the dtb at
H_UPDATE_DTtime.
FWIW I sent a patch to do just that some times ago:
https://patchwork.ozlabs.org/patch/1095705/
Quoted 47 lines
Comparing before and after the fully-render-dt change, I get:
(quoted diff) +5
-5@@ -24,13 +24,13 @@ }; chosen { - bootargs = "BOOT_IMAGE=/vmlinuz-4.18.0-137.el8.ppc64le root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap"; + bootargs = [00]; bootpath = "/pci@800000020000000/scsi@0"; cpu = <0xe45ee80>; ibm,arch-vec-5-platform-support = <0x17801880 0x19001a40>; ibm,architecture-vec-5 = [19 00 20 00 00 80 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 40 40 00 40]; - linux,initrd-end = <0x00 0x588ed7d>; - linux,initrd-start = <0x00 0x3c00000>; + linux,initrd-end = <0x00>; + linux,initrd-start = <0x00>; linux,pci-probe-only = <0x00>; linux,stdout-package = <0xe733a70>; linux,stdout-path = "/vdevice/vty@71000001";@@ -252,7 +252,7 @@ used-by-rtas; ethernet@1 { - assigned-addresses = <0x82000830 0x00 0x80040000 0x00 0x40000 0x81000810 0x00 0x100 0x00 0x20 0x82000814 0x00 0x80010000 0x00 0x1000 0xc3000820 0x2100 0x10000 0x00 0x4000>; + assigned-addresses; cache-line-size = <0x00>; class-code = <0x20000>; device-id = <0x1000>;@@ -274,7 +274,7 @@ }; scsi@0 { - assigned-addresses = <0x81000010 0x00 0x80 0x00 0x80 0x82000014 0x00 0x80000000 0x00 0x1000 0xc3000020 0x2100 0x00 0x00 0x4000>; + assigned-addresses; cache-line-size = <0x00>; class-code = <0x10000>; device-id = <0x1001>;So basically the bootargs, initrd params and assigned-addresses have been lost.
For bootargs and initrd, I think what's happening is that because qemu isn't setting those (with no -kernel parameter) SLOF is creating them, but they're now being overwritten by qemu's post-CAS DT.
I'm not sure what's going on with assigned-addresses.
Quoted 43 lines · Greg Kurz
Quoted 40 lines · On Wed, 28 Aug 2019 15:57:40 +1000 David Gibson <[email protected]>…
Quoted 28 lines · Alexey Kardashevskiy
Quoted 25 lines · David Gibson
Quoted 24 lines · David Gibson
Quoted 22 lines · Alexey Kardashevskiy
The following changes since commit
d6bb8b27204eaa58f1da948b65454e3a598ab2a4:pseries: Update SLOF firmware image (2019-08-27 16:47:04 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190827for you to fetch changes up to
da9960a5aaa25d27c9798c3d94c7b4c2d8af31ac:spapr: Render full FDT on ibm,client-architecture-support (2019-08-27 16:47:46 +1000)----------------------------------------------------------------
Alexey Kardashevskiy (1):
spapr: Render full FDT on ibm,client-architecture-supporthw/ppc/spapr.c | 90 +++++++--------------------------------------------------- 1 file changed, 10 insertions(+), 80 deletions(-)*** Note: this is not for master, this is for pseries
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Merged, thanks.
Urgh. And the qemu change is now un-merged. Alas, as soon as we had a CAS reboot for XIVE the guest didn't boot on the second attempt. Haven't had a chance to investigate yet.
QEMU command line, guest kernel version? I'd give it a try.
RHEL8.1 in guest and host, booting via GRUB into a XIVE capable kernel.
Quoted 6 lines
Quoted 2 lines
I've now been able to investigate, dumping the dtb at
H_UPDATE_DTtime.FWIW I sent a patch to do just that some times ago:
Yeah, I know. I didn't like adding yet another option as a permanent fixture.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson