pseries: Update SLOF firmware image
I messed up with my local git so reposting.
The following changes since commit 216965b20b04fbf74e0ce3a3175a9171dba210de:
ppc/pnv: update skiboot to v6.4 (2019-07-18 16:49:57 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190719
for you to fetch changes up to 300118db53cc454b049d64418c7b2588165a1c35:
pseries: Update SLOF firmware image (2019-07-19 12:43:27 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware image
pc-bios/README | 2 +- pc-bios/slof.bin | Bin 926432 -> 926784 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)
*** Note: this is not for master, this is for pseries
David Gibson
AppliedQuoted 14 lines · Alexey Kardashevskiy
I messed up with my local git so reposting.
The following changes since commit
216965b20b04fbf74e0ce3a3175a9171dba210de:ppc/pnv: update skiboot to v6.4 (2019-07-18 16:49:57 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190719
for you to fetch changes up to
300118db53cc454b049d64418c7b2588165a1c35:pseries: Update SLOF firmware image (2019-07-19 12:43:27 +1000)
Quoted 8 lines
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware imagepc-bios/README | 2 +- pc-bios/slof.bin | Bin 926432 -> 926784 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)
Applied, 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
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
The following FWNMI work which is under review modifies the rtas-size to accommodate the error log:
https://lists.nongnu.org/archive/html/qemu-ppc/2019-06/msg00142.html
Regards,
Aravinda
Quoted 26 lines · Alexey Kardashevskiy
I messed up with my local git so reposting.
The following changes since commit
216965b20b04fbf74e0ce3a3175a9171dba210de:ppc/pnv: update skiboot to v6.4 (2019-07-18 16:49:57 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190719
for you to fetch changes up to
300118db53cc454b049d64418c7b2588165a1c35:pseries: Update SLOF firmware image (2019-07-19 12:43:27 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware imagepc-bios/README | 2 +- pc-bios/slof.bin | Bin 926432 -> 926784 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)*** Note: this is not for master, this is for pseries
Signature · 2 lines
Regards, Aravinda
Quoted 10 lines · Aravinda Prasad
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
Well, we should still be able to do it, it just means fwnmi would need a SLOF change. It's an inconvenience, but not really a big deal.
Quoted 36 lines
The following FWNMI work which is under review modifies the rtas-size to accommodate the error log:
https://lists.nongnu.org/archive/html/qemu-ppc/2019-06/msg00142.htmlRegards,
AravindaQuoted 26 lines · Alexey Kardashevskiy
I messed up with my local git so reposting.
The following changes since commit
216965b20b04fbf74e0ce3a3175a9171dba210de:ppc/pnv: update skiboot to v6.4 (2019-07-18 16:49:57 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190719
for you to fetch changes up to
300118db53cc454b049d64418c7b2588165a1c35:pseries: Update SLOF firmware image (2019-07-19 12:43:27 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware imagepc-bios/README | 2 +- pc-bios/slof.bin | Bin 926432 -> 926784 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)*** Note: this is not for master, this is for pseries
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 7 lines · David Gibson
Quoted 6 lines · Aravinda Prasad
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
Quoted 7 lines
Quoted 4 lines
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
Well, we should still be able to do it, it just means fwnmi would need a SLOF change. It's an inconvenience, but not really a big deal.
Yes. Alexey and I were discussing about the following changes to SLOf:
lib/libhvcall/hvcall.S +1 -0
@@ -134,6 +134,7 @@ ENTRY(hv_rtas) ori r3,r3,KVMPPC_H_RTAS@l HVCALL blr + .space 2048 .globl hv_rtas_size hv_rtas_size: .long . - hv_rtas;
But this will statically reserve space for RTAS even when SPAPR_CAP_FWNMI_MCE is OFF.
Regards,
Aravinda
Quoted 38 lines
Quoted 37 lines
The following FWNMI work which is under review modifies the rtas-size to accommodate the error log:
https://lists.nongnu.org/archive/html/qemu-ppc/2019-06/msg00142.htmlRegards,
AravindaQuoted 26 lines · Alexey Kardashevskiy
I messed up with my local git so reposting.
The following changes since commit
216965b20b04fbf74e0ce3a3175a9171dba210de:ppc/pnv: update skiboot to v6.4 (2019-07-18 16:49:57 +1000)
are available in the Git repository at:
[email protected]:aik/qemu.git tags/qemu-slof-20190719
for you to fetch changes up to
300118db53cc454b049d64418c7b2588165a1c35:pseries: Update SLOF firmware image (2019-07-19 12:43:27 +1000)
----------------------------------------------------------------
Alexey Kardashevskiy (1):
pseries: Update SLOF firmware imagepc-bios/README | 2 +- pc-bios/slof.bin | Bin 926432 -> 926784 bytes roms/SLOF | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)*** Note: this is not for master, this is for pseries
Signature · 2 lines
Regards, Aravinda
Quoted 34 lines · Aravinda Prasad
Quoted 7 lines · David Gibson
Quoted 6 lines · Aravinda Prasad
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
Quoted 7 lines
Quoted 4 lines
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
Well, we should still be able to do it, it just means fwnmi would need a SLOF change. It's an inconvenience, but not really a big deal.
Yes. Alexey and I were discussing about the following changes to SLOf:
lib/libhvcall/hvcall.S +1
-0@@ -134,6 +134,7 @@ ENTRY(hv_rtas) ori r3,r3,KVMPPC_H_RTAS@l HVCALL blr + .space 2048 .globl hv_rtas_size hv_rtas_size: .long . - hv_rtas;
Quoted 2 lines
But this will statically reserve space for RTAS even when
SPAPR_CAP_FWNMI_MCEis OFF.
Sure. We could flag that in the DT somehow, and have SLOF reserve the space conditionally.
Or we could just ignore it. 2 kiB is miniscule compared to our minimum guest size, and our current RTAS is microscopic compared to PowerVM.
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 · David Gibson
Quoted 34 lines · Aravinda Prasad
Quoted 7 lines · David Gibson
Quoted 6 lines · Aravinda Prasad
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
Quoted 7 lines
Quoted 4 lines
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
Well, we should still be able to do it, it just means fwnmi would need a SLOF change. It's an inconvenience, but not really a big deal.
Yes. Alexey and I were discussing about the following changes to SLOf:
lib/libhvcall/hvcall.S +1
-0@@ -134,6 +134,7 @@ ENTRY(hv_rtas) ori r3,r3,KVMPPC_H_RTAS@l HVCALL blr + .space 2048 .globl hv_rtas_size hv_rtas_size: .long . - hv_rtas;
Quoted 8 lines
Quoted 2 lines
But this will statically reserve space for RTAS even when
SPAPR_CAP_FWNMI_MCEis OFF.Sure. We could flag that in the DT somehow, and have SLOF reserve the space conditionally.
Or we could just ignore it. 2 kiB is miniscule compared to our minimum guest size, and our current RTAS is microscopic compared to PowerVM.
I also think so, 2kiB is miniscule so we can allocate it statically.
Alexey,
Can you please include the above one line fix to SLOF?
Quoted 2 lines
Signature · 2 lines
Regards, Aravinda
Quoted 44 lines · Aravinda Prasad
Quoted 41 lines · David Gibson
Quoted 34 lines · Aravinda Prasad
Quoted 7 lines · David Gibson
Quoted 6 lines · Aravinda Prasad
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
Quoted 7 lines
Quoted 4 lines
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
Well, we should still be able to do it, it just means fwnmi would need a SLOF change. It's an inconvenience, but not really a big deal.
Yes. Alexey and I were discussing about the following changes to SLOf:
lib/libhvcall/hvcall.S +1
-0@@ -134,6 +134,7 @@ ENTRY(hv_rtas) ori r3,r3,KVMPPC_H_RTAS@l HVCALL blr + .space 2048 .globl hv_rtas_size hv_rtas_size: .long . - hv_rtas;Quoted 2 lines
But this will statically reserve space for RTAS even when
SPAPR_CAP_FWNMI_MCEis OFF.Sure. We could flag that in the DT somehow, and have SLOF reserve the space conditionally.
Quoted 8 lines
Quoted 2 lines
Or we could just ignore it. 2 kiB is miniscule compared to our minimum guest size, and our current RTAS is microscopic compared to PowerVM.
I also think so, 2kiB is miniscule so we can allocate it statically.
Alexey,
Can you please include the above one line fix to SLOF?
I am thinking of:
===
@@ -132,20 +132,22 @@ ENTRY(hv_rtas)
mr r4,r3
lis r3,KVMPPC_H_RTAS@h
ori r3,r3,KVMPPC_H_RTAS@l
HVCALL
blr
+ .space 2048 - (. - hv_rtas)
.globl hv_rtas_size
hv_rtas_size:
.long . - hv_rtas;
ENTRY(hv_rtas_broken_sc1)
mr r4,r3
lis r3,KVMPPC_H_RTAS@h
ori r3,r3,KVMPPC_H_RTAS@l
.long 0x7c000268
blr
+ .space 2048 - (. - hv_rtas_broken_sc1)
.globl hv_rtas_broken_sc1_size
hv_rtas_broken_sc1_size:
.long . - hv_rtas_broken_sc1;
===
to align the rtas blob to 2k precisely. But QEMU hardcoded RTAS_ERROR_LOG_OFFSET bothers me a bit, I should probably put some sort of a magic marker at which RTAS log can start.
David, any thoughts? The marker could be as simple as a zero, for example.
Signature · 1 line
Alexey
Quoted 82 lines · Alexey Kardashevskiy
Quoted 44 lines · Aravinda Prasad
Quoted 41 lines · David Gibson
Quoted 34 lines · Aravinda Prasad
Quoted 7 lines · David Gibson
Quoted 6 lines · Aravinda Prasad
Alexey/David,
With the SLOF changes, QEMU cannot resize the RTAS blob. Resizing is required for FWNMI support which extends the RTAS blob to include an error log upon a machine check.
Quoted 7 lines
Quoted 4 lines
The check to valid RTAS buffer fails in the guest because the rtas-size updated in QEMU is not reflecting in the guest.
Any workaround for this?
Well, we should still be able to do it, it just means fwnmi would need a SLOF change. It's an inconvenience, but not really a big deal.
Yes. Alexey and I were discussing about the following changes to SLOf:
lib/libhvcall/hvcall.S +1
-0@@ -134,6 +134,7 @@ ENTRY(hv_rtas) ori r3,r3,KVMPPC_H_RTAS@l HVCALL blr + .space 2048 .globl hv_rtas_size hv_rtas_size: .long . - hv_rtas;Quoted 2 lines
But this will statically reserve space for RTAS even when
SPAPR_CAP_FWNMI_MCEis OFF.Sure. We could flag that in the DT somehow, and have SLOF reserve the space conditionally.
Quoted 8 lines
Quoted 2 lines
Or we could just ignore it. 2 kiB is miniscule compared to our minimum guest size, and our current RTAS is microscopic compared to PowerVM.
I also think so, 2kiB is miniscule so we can allocate it statically.
Alexey,
Can you please include the above one line fix to SLOF?
I am thinking of:
===(quoted diff) +2
-0@@ -132,20 +132,22 @@ ENTRY(hv_rtas) mr r4,r3 lis r3,KVMPPC_H_RTAS@h ori r3,r3,KVMPPC_H_RTAS@l HVCALL blr + .space 2048 - (. - hv_rtas) .globl hv_rtas_size hv_rtas_size: .long . - hv_rtas; ENTRY(hv_rtas_broken_sc1) mr r4,r3 lis r3,KVMPPC_H_RTAS@h ori r3,r3,KVMPPC_H_RTAS@l .long 0x7c000268 blr + .space 2048 - (. - hv_rtas_broken_sc1) .globl hv_rtas_broken_sc1_size hv_rtas_broken_sc1_size: .long . - hv_rtas_broken_sc1;===
Quoted 5 lines
to align the rtas blob to 2k precisely. But QEMU hardcoded
RTAS_ERROR_LOG_OFFSETbothers me a bit, I should probably put some sort of a magic marker at which RTAS log can start.David, any thoughts? The marker could be as simple as a zero, for example.
Eh, TBH I don't think an agreed upon magic marker has all that much advantage on an agreed upon offset. Let's keep it simple and retain the fixed offset for now. If that's ever a problem we'll need a synchronized qemu & SLOF update, but that's ok - that's an inconvenience, not a disaster.
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