[SeaBIOS] [PATCH 5/7] ahci: don't expect ATA_CB_STAT_DRQ being clear

2011-07-14 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/ahci.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ahci.c b/src/ahci.c index e2ec07a..7279199 100644 --- a/src/ahci.c +++ b/src/ahci.c @@ -158,7 +158,7 @@ static int ahci_command(struct ahci_port_s *port,

[SeaBIOS] [PATCH 0/7] ahci update

2011-07-14 Thread Gerd Hoffmann
Hi, Finally the update for the ahci code, featuring: * A bunch of bugfixes, which makes the code work on real hardware (additionally to the qemu emulated ahci adapter). * Better timeout handling. * Support for unaligned access. * Support for boot ordering. cheers, Gerd The

[SeaBIOS] [PATCH 1/7] ahci/sata: Fix FIS setup.

2011-07-14 Thread Gerd Hoffmann
FIS setup does't follow the SATA specs, fix it. Credits go to Jonathan Kollasch and Scott Duplichan for finding those. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/ahci.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ahci.c b/src/ahci.c index

[SeaBIOS] [PATCH 7/7] ahci: bootprio support

2011-07-14 Thread Gerd Hoffmann
Wind up bootprio support in the ahci driver so boot device ordering works for ahci disks too. No extra work needed on qemu side. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/ahci.c | 15 ++- src/ahci.h |3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) diff

[SeaBIOS] [PATCH 2/7] ahci: use interrupt status register

2011-07-14 Thread Gerd Hoffmann
Poll interrupt status register to figure when the device has updated the status and possibly finished the request, continue polling until BSY is clear as we might see multiple status updates per request. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/ahci.c | 43

[SeaBIOS] [PATCH 4/7] ahci: handle unaligned buffers.

2011-07-14 Thread Gerd Hoffmann
From: Scott Duplichan sc...@notabs.org This change allows unaligned buffers to be used for reads or writes to non-atapi devices. Currently only MS-DOS boot is known to need unaligned buffer support. Signed-off-by: Scott Duplichan sc...@notabs.org Signed-off-by: Gerd Hoffmann kra...@redhat.com

[SeaBIOS] [PATCH 3/7] ahci: add error recovery code

2011-07-14 Thread Gerd Hoffmann
By Scott Duplichan. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/ahci.c | 50 +++--- 1 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/ahci.c b/src/ahci.c index 9ff1324..ec698ef 100644 --- a/src/ahci.c +++ b/src/ahci.c @@

[SeaBIOS] [PATCH 6/7] ahci: rework init workflow fix timeout handling

2011-07-14 Thread Gerd Hoffmann
Rework init workflow to match suggestions in the ahci specs better, especially remove the shortcut which tries to detect drives without enabling FIS receiving. This makes memory allocation a bit complicated as we are using malloc_tmp() allocated memory now to probe the devices so we can free it