diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2011-09-22 23:44:23 +0530 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-11-02 11:41:01 +1030 |
commit | 5e38483b350405542c8080134408fd8897394ba2 (patch) | |
tree | 34d746dadbec16fd33e4f08cf90561ee62a3014e /drivers/virtio/virtio_pci.c | |
parent | 17e5b4f20adbe286fdf14b4d08f296564e97e545 (diff) | |
download | linux-5e38483b350405542c8080134408fd8897394ba2.tar.gz linux-5e38483b350405542c8080134408fd8897394ba2.tar.bz2 linux-5e38483b350405542c8080134408fd8897394ba2.zip |
virtio: console: wait for first console port for early console output
On s390 I have seen some random
"Warning: unable to open an initial console"
boot failure. Turns out that tty_open fails, because the
hvc_alloc was not yet done. In former times this could not happen,
since the probe function automatically called hvc_alloc. With newer
versions (multiport) some host<->guest interaction is required
before hvc_alloc is called. This might be too late, especially if
an initramfs is involved. Lets use a completion if we have
multiport and an early console.
[Amit:
* Use NULL instead of 0 for pointer comparison
* Rename 'port_added' to 'early_console_added'
* Re-format, re-word commit message
* Rebase patch on top of current queue]
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Acked-by: Chrstian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/virtio/virtio_pci.c')
0 files changed, 0 insertions, 0 deletions