Skip to contentSkip to conversation

s390x: remove s390-zipl.rom

PATCH Superseded Michael Tokarev 3 participants 6 messages Feb 10, 2016 – Feb 16, 2016 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390x: remove s390-zipl.rom

This is an s390 boot rom which was used in s390-virtio machine. but since commit 3538fb6f89dd9bb2e7e59de2bfad52a45321c744 "s390x: remove s390-virtio machine", this file isn't used. The only place it is referenced in the code is an unused which I'm modifying too, to refer to s390-ccw.rom instead.

---
 Makefile               |   1 -
 hw/s390x/ipl.c         |   2 +-
 hw/s390x/s390-virtio.c |   1 -
 pc-bios/README         |   4 ----
 pc-bios/s390-zipl.rom  | Bin 3304 -> 0 bytes
 5 files changed, 1 insertion(+), 7 deletions(-)
 delete mode 100644 pc-bios/s390-zipl.rom
Makefile +0 -1
index 30b1b2d..f9fae3a 100644
@@ -400,7 +400,6 @@ efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
 qemu-icon.bmp qemu_logo_no_text.svg \
 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
 multiboot.bin linuxboot.bin kvmvapic.bin \
-s390-zipl.rom \
 s390-ccw.img \
 spapr-rtas.bin slof.bin \
 palcode-clipper \
hw/s390x/ipl.c +1 -1
index 6992add..4e6a0ac 100644
@@ -106,7 +106,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)
             /* Adjust ELF start address to final location */
             ipl->bios_start_addr += fwbase;
         } else {
-            /* Try to load non-ELF file (e.g. s390-zipl.rom) */
+            /* Try to load non-ELF file (e.g. s390-ccw.rom) */
             bios_size = load_image_targphys(bios_filename, ZIPL_IMAGE_START,
                                             4096);
             ipl->bios_start_addr = ZIPL_IMAGE_START;
hw/s390x/s390-virtio.c +0 -1
index 9efb9c6..c320878 100644
@@ -54,7 +54,6 @@
 #endif
 
 #define MAX_BLK_DEVS                    10
-#define ZIPL_FILENAME                   "s390-zipl.rom"
 #define S390_MACHINE                    "s390-virtio"
 #define TYPE_S390_MACHINE               MACHINE_TYPE_NAME(S390_MACHINE)
 
pc-bios/README +0 -4
index d260c1b..9f65ffa 100644
@@ -35,10 +35,6 @@
 	10ec:8139 -> pxe-rtl8139.rom
 	1af4:1000 -> pxe-virtio.rom
 
-- The S390 zipl loader is an addition to the official IBM s390-tools
-  package. That fork is maintained in its own git repository at:
-  git://repo.or.cz/s390-tools.git
-
 - The sources for the Alpha palcode image is available from:
   git://github.com/rth7680/qemu-palcode.git
 
pc-bios/s390-zipl.rom deleted binary +0 -0
deleted file mode 100644
index 3115128efe465a024b2deb780573358ae1b829a4..0000000000000000000000000000000000000000
GIT binary patch
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Michael Tokarev

This is an s390 boot rom which was used in s390-virtio machine. but since commit 3538fb6f89dd9bb2e7e59de2bfad52a45321c744 "s390x: remove s390-virtio machine", this file isn't used. The only place it is referenced in the code is an unused which I'm modifying too, to refer to s390-ccw.rom instead.

a minor nit below, otherwise

Quoted 26 lines
---
 Makefile               |   1 -
 hw/s390x/ipl.c         |   2 +-
 hw/s390x/s390-virtio.c |   1 -
 pc-bios/README         |   4 ----
 pc-bios/s390-zipl.rom  | Bin 3304 -> 0 bytes
 5 files changed, 1 insertion(+), 7 deletions(-)
 delete mode 100644 pc-bios/s390-zipl.rom
Makefile +0 -1
index 30b1b2d..f9fae3a 100644
@@ -400,7 +400,6 @@ efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
 qemu-icon.bmp qemu_logo_no_text.svg \
 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
 multiboot.bin linuxboot.bin kvmvapic.bin \
-s390-zipl.rom \
 s390-ccw.img \
 spapr-rtas.bin slof.bin \
 palcode-clipper \
hw/s390x/ipl.c +0 -0
index 6992add..4e6a0ac 100644

hw/s390x/ipl.c static void s390_ipl_realize(DeviceState *dev, Error **errp) · line 109

Quoted 5 lines
hw/s390x/ipl.c +1 -1
@@ -106,7 +106,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)
             /* Adjust ELF start address to final location */
             ipl->bios_start_addr += fwbase;
         } else {
-            /* Try to load non-ELF file (e.g. s390-zipl.rom) */
+            /* Try to load non-ELF file (e.g. s390-ccw.rom) */
						s390-ccw.img
#2 lore raw
Quoted 7 lines · Christian Borntraeger
Quoted 6 lines · Michael Tokarev

This is an s390 boot rom which was used in s390-virtio machine. but since commit 3538fb6f89dd9bb2e7e59de2bfad52a45321c744 "s390x: remove s390-virtio machine", this file isn't used. The only place it is referenced in the code is an unused which I'm modifying too, to refer to s390-ccw.rom instead.

Quoted 5 lines
Quoted 2 lines

a minor nit below, otherwise

Fixed in git, that one and the commit comment (sent a v2).

Thanks,

/mjt

#3 lore raw
In reply to Christian Borntraeger
Quoted 39 lines · Christian Borntraeger
Quoted 8 lines · Michael Tokarev

This is an s390 boot rom which was used in s390-virtio machine. but since commit 3538fb6f89dd9bb2e7e59de2bfad52a45321c744 "s390x: remove s390-virtio machine", this file isn't used. The only place it is referenced in the code is an unused which I'm modifying too, to refer to s390-ccw.rom instead.

a minor nit below, otherwise

Quoted 25 lines
---
 Makefile               |   1 -
 hw/s390x/ipl.c         |   2 +-
 hw/s390x/s390-virtio.c |   1 -
 pc-bios/README         |   4 ----
 pc-bios/s390-zipl.rom  | Bin 3304 -> 0 bytes
 5 files changed, 1 insertion(+), 7 deletions(-)
 delete mode 100644 pc-bios/s390-zipl.rom
Makefile +0 -1
index 30b1b2d..f9fae3a 100644
@@ -400,7 +400,6 @@ efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
 qemu-icon.bmp qemu_logo_no_text.svg \
 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
 multiboot.bin linuxboot.bin kvmvapic.bin \
-s390-zipl.rom \
 s390-ccw.img \
 spapr-rtas.bin slof.bin \
 palcode-clipper \
hw/s390x/ipl.c +0 -0
index 6992add..4e6a0ac 100644
Quoted 8 lines

hw/s390x/ipl.c static void s390_ipl_realize(DeviceState *dev, Error **errp) · line 109

Quoted 6 lines
hw/s390x/ipl.c +1 -1
@@ -106,7 +106,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)
             /* Adjust ELF start address to final location */
             ipl->bios_start_addr += fwbase;
         } else {
-            /* Try to load non-ELF file (e.g. s390-zipl.rom) */
+            /* Try to load non-ELF file (e.g. s390-ccw.rom) */
						s390-ccw.img

Actually, s390-ccw.img is an ELF file, so this is a bad example for the above comment. Maybe it would be better to simply remove the parenthesis with the example instead?

Thomas

#4 lore raw
Quoted 49 lines · Thomas Huth
Quoted 39 lines · Christian Borntraeger
Quoted 8 lines · Michael Tokarev

This is an s390 boot rom which was used in s390-virtio machine. but since commit 3538fb6f89dd9bb2e7e59de2bfad52a45321c744 "s390x: remove s390-virtio machine", this file isn't used. The only place it is referenced in the code is an unused which I'm modifying too, to refer to s390-ccw.rom instead.

a minor nit below, otherwise

Quoted 25 lines
---
 Makefile               |   1 -
 hw/s390x/ipl.c         |   2 +-
 hw/s390x/s390-virtio.c |   1 -
 pc-bios/README         |   4 ----
 pc-bios/s390-zipl.rom  | Bin 3304 -> 0 bytes
 5 files changed, 1 insertion(+), 7 deletions(-)
 delete mode 100644 pc-bios/s390-zipl.rom
Makefile +0 -1
index 30b1b2d..f9fae3a 100644
@@ -400,7 +400,6 @@ efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
 qemu-icon.bmp qemu_logo_no_text.svg \
 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
 multiboot.bin linuxboot.bin kvmvapic.bin \
-s390-zipl.rom \
 s390-ccw.img \
 spapr-rtas.bin slof.bin \
 palcode-clipper \
hw/s390x/ipl.c +0 -0
index 6992add..4e6a0ac 100644
Quoted 8 lines

hw/s390x/ipl.c static void s390_ipl_realize(DeviceState *dev, Error **errp) · line 109

Quoted 6 lines
hw/s390x/ipl.c +1 -1
@@ -106,7 +106,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)
             /* Adjust ELF start address to final location */
             ipl->bios_start_addr += fwbase;
         } else {
-            /* Try to load non-ELF file (e.g. s390-zipl.rom) */
+            /* Try to load non-ELF file (e.g. s390-ccw.rom) */
						s390-ccw.img
Quoted 3 lines

Actually, s390-ccw.img is an ELF file, so this is a bad example for the above comment. Maybe it would be better to simply remove the parenthesis with the example instead?

... or even remove that else-branch completely since it is now not necessary anymore? The ccw machine should always use an ELF image as firmware, shouldn't it?

Thomas

#5 lore raw
Quoted 50 lines · Thomas Huth
Quoted 49 lines · Thomas Huth
Quoted 47 lines · Christian Borntraeger
Quoted 8 lines · Michael Tokarev

This is an s390 boot rom which was used in s390-virtio machine. but since commit 3538fb6f89dd9bb2e7e59de2bfad52a45321c744 "s390x: remove s390-virtio machine", this file isn't used. The only place it is referenced in the code is an unused which I'm modifying too, to refer to s390-ccw.rom instead.

a minor nit below, otherwise

Quoted 26 lines
---
 Makefile               |   1 -
 hw/s390x/ipl.c         |   2 +-
 hw/s390x/s390-virtio.c |   1 -
 pc-bios/README         |   4 ----
 pc-bios/s390-zipl.rom  | Bin 3304 -> 0 bytes
 5 files changed, 1 insertion(+), 7 deletions(-)
 delete mode 100644 pc-bios/s390-zipl.rom
Makefile +0 -1
index 30b1b2d..f9fae3a 100644
@@ -400,7 +400,6 @@ efi-pcnet.rom efi-rtl8139.rom efi-virtio.rom \
 qemu-icon.bmp qemu_logo_no_text.svg \
 bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \
 multiboot.bin linuxboot.bin kvmvapic.bin \
-s390-zipl.rom \
 s390-ccw.img \
 spapr-rtas.bin slof.bin \
 palcode-clipper \
hw/s390x/ipl.c +0 -0
index 6992add..4e6a0ac 100644

hw/s390x/ipl.c static void s390_ipl_realize(DeviceState *dev, Error **errp) · line 109

Quoted 5 lines
hw/s390x/ipl.c +1 -1
@@ -106,7 +106,7 @@ static void s390_ipl_realize(DeviceState *dev, Error **errp)
             /* Adjust ELF start address to final location */
             ipl->bios_start_addr += fwbase;
         } else {
-            /* Try to load non-ELF file (e.g. s390-zipl.rom) */
+            /* Try to load non-ELF file (e.g. s390-ccw.rom) */
						s390-ccw.img
Quoted 4 lines
Quoted 4 lines

Actually, s390-ccw.img is an ELF file, so this is a bad example for the above comment.
Maybe it would be better to simply remove the parenthesis with the example instead?

Right, so better completely remove the file name.

Quoted 3 lines

... or even remove that else-branch completely since it is now not necessary anymore? The ccw machine should always use an ELF image as firmware, shouldn't it?

Please keep it. The use can specify a bios on the command line and maybe this helps to test some odd-ball scenario.