rombios/ata: Do not wait for BSY to be set
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Aug 2013 13:48:37 +0000 (14:48 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Aug 2013 11:03:12 +0000 (12:03 +0100)
commit413a6fb4ee81897acafefb90f81ef3d2661c3aa6
tree2f386a9ef5e50efa2cdf1510c8176a2641a7ed35
parent20025504271220ab3bf041955a3cd40c6057e58e
rombios/ata: Do not wait for BSY to be set

After issuing a reset, the BSY bit is expected to be set.  This is not the
case for Qemu.

In SeaBIOS.git: 580e33293244fee4556e56ecc67b8bd877f3c496

this check was even replaced with a udelay(5), as enough real hardware ignored
the BSY bit as well.

As rombios does not have an equivalent udelay(), replace the wait with a write
to port 0x80 which is whitelisted by Xen for 'a small delay'.

This causes 42k fewer IO traps to Qemu.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
tools/firmware/rombios/rombios.c