Statistics
| Branch: | Revision:

root / pc-bios / s390-ccw @ feature-archipelago

Name Size
Makefile 686 Bytes
bootmap.c 5.2 kB
cio.h 9 kB
main.c 1.8 kB
s390-ccw.h 2.8 kB
sclp-ascii.c 2 kB
sclp.h 3.1 kB
start.S 847 Bytes
virtio.c 8 kB
virtio.h 4 kB

Latest revisions

# Date Author Comment
5d739a47 02/27/2014 10:51 am Christian Borntraeger

s390-ccw.img: Fix sporadic errors with ccw boot image - initialize css

We have to set the cssid to 0, otherwise the stsch code will
return an operand exception without the m bit. In the same way
we should set m=0.

This case was triggered in some cases during reboot, if for some...

d1028f1b 02/27/2014 10:51 am Christian Borntraeger

s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx

The current code does not initialize next_idx in the virtio ring.
As the ccw bios will always use guest memory at a fixed location,
this queue might != 0 after a reboot.
Lets make the initialization explicit....

441ea695 09/20/2013 01:46 pm Cornelia Huck

s390/ipl: Fix waiting for virtio processing

The guest side must not manipulate the index for the used buffers. Instead,
remember the state of the used buffer locally and wait until it has moved.

Signed-off-by: Cornelia Huck <>
Acked-by: Alexander Graf <>...

c8cda874 07/29/2013 01:02 pm Dominik Dingel

s390/IPL: Allow boot from other ssid than 0

We now take the subchannel set id also into account to find the boot device.
If we want to use a subchannel set other than the default set 0, we first
need to enable the mss facility.

Signed-off-by: Dominik Dingel <>...

39c93c67 05/31/2013 08:50 pm Christian Borntraeger

s390/ipl: Fix spurious errors in virtio

With the ccw ipl code sometimes an error message like
"virtio: trying to map MMIO memory" or
"Guest moved used index from %u to %u" appeared. Turns out
that the ccw bios did not zero out the vring, which might
cause stale values in avail->idx and friends, especially...

ff151f4e 05/06/2013 06:30 pm Dominik Dingel

S390: BIOS boot from given device

Use the passed device, if there is no device, use the first applicable device.

Signed-off-by: Dominik Dingel <>
Signed-off-by: Alexander Graf <>

22d67ab5 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Detect devices with stsch.

stsch is the canonical way to detect devices. As a bonus, we can
abort the loop if we get cc 3, and we need to check only the valid
devices (dnv set).

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

776e7f0f 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Enhance drain_irqs().

- Use tpi + tsch to get interrupts.
- Return an error if the irb indicates problems.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

0f3f1f30 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Rudimentary error checking.

Try to handle at least some of the errors that may happen.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

abbbe3de 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Get queue config from host.

Ask the host about the configuration instead of guessing it.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

View revisions

Also available in: Atom