On Mon, 2026-06-22 at 20:25 -0400, [email protected] wrote:
> From: Joshua Daley <[email protected]>
>
> When IPL type is PCI, cutype is unknown, so the IPLB location does not
> get written to lowcore. Update the condition to check IPL type as well.
>
> Signed-off-by: Joshua Daley <[email protected]>
> signed-off-by: Jared Rossi <[email protected]>
I suppose "signed" is to be capitalized, but you mentioned this line is to be
fixed anyway.
> ---
> pc-bios/s390-ccw/main.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
> index 26287cfd81..1059fda03c 100644
> --- a/pc-bios/s390-ccw/main.c
> +++ b/pc-bios/s390-ccw/main.c
> @@ -52,7 +52,8 @@ void write_subsystem_identification(void)
>
> void write_iplb_location(void)
> {
> - if (cutype == CU_TYPE_VIRTIO && virtio_get_device_type() !=
> VIRTIO_ID_NET) {
> + if ((cutype == CU_TYPE_VIRTIO || iplb.pbt == S390_IPL_TYPE_PCI) &&
Why iplb.pbt and not virtio_get_device()->ipl_type?
> + virtio_get_device_type() != VIRTIO_ID_NET) {
> lowcore->ptr_iplb = ptr2u32(&iplb);
> }
> }