Make CONFIG_ATA_DMA and CONFIG_ATA_PIO32 default on
PATCH 1/1 Make CONFIG_ATA_DMA and CONFIG_ATA_PIO32 default on
Currently running make defconfig will leave the above turned off which, at least for the Xen/QEMU use-case, means VMs will boot very slowly. There seems to have been some concern over non-QEMU use of ATA_DMA about five years ago, but I can find no particular concern over ATA_PIO32. Given the increased use of QEMU and Xen in that period it would seem like a good idea to default both of these on now. This patch does that.
--- src/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/Kconfig +2 -2
@@ -144,13 +144,13 @@ menu "Hardware support" config ATA_DMA depends on ATA bool "ATA DMA" - default n + default y help Detect and try to use ATA bus mastering DMA controllers. config ATA_PIO32 depends on ATA bool "ATA 32bit PIO" - default n + default y help Use 32bit PIO accesses on ATA (minor optimization on PCI transfers). config AHCI
Signature · 1 line
1.7.10.4
Quoted 6 lines · Paul Durrant
Currently running make defconfig will leave the above turned off which, at least for the Xen/QEMU use-case, means VMs will boot very slowly. There seems to have been some concern over non-QEMU use of
ATA_DMAabout five years ago, but I can find no particular concern overATA_PIO32. Given the increased use of QEMU and Xen in that period it would seem like a good idea to default both of these on now. This patch does that.
The DMA support is known to be not correct for real hardware - correct code would negotiate the DMA rate with the drive (and also do things like detecting a 66Mhz PATA cable). The code is only really useful on emulators and when one knows that the drive is really a SATA drive connected to a controller that is doing PATA emulation.
The 32bit PIO mode has a minimal speed improvement and it is known to not work on some real hardware controllers.
If one is concerned about VM boot speed, why not just use AHCI or virtio?
-Kevin
Quoted 17 lines
-----Original Message-----
From: Kevin O'Connor [mailto:[email protected]]
Sent: 11 May 2015 14:41
To: Paul Durrant
Cc: [email protected]; [email protected]
Subject: Re: [SeaBIOS] [PATCH] MakeCONFIG_ATA_DMAandCONFIG_ATA_PIO32default onQuoted 3 lines · Paul Durrant
Currently running make defconfig will leave the above turned off which, at least for the Xen/QEMU use-case, means VMs will boot very slowly. There seems to have been some concern over non-QEMU use of
ATA_DMAaboutQuoted 3 lines
five years ago, but I can find no particular concern over
ATA_PIO32. Given the increased use of QEMU and Xen in that period it would seem like a good idea to default both of these on now. This patch does that.
Quoted 5 lines
The DMA support is known to be not correct for real hardware - correct code would negotiate the DMA rate with the drive (and also do things like detecting a 66Mhz PATA cable). The code is only really useful on emulators and when one knows that the drive is really a SATA drive connected to a controller that is doing PATA emulation.
That tends to suggest it should be removed then, if there are now alternatives when using emulation?
Quoted 4 lines
The 32bit PIO mode has a minimal speed improvement and it is known to not work on some real hardware controllers.
Ok.
Quoted 3 lines
If one is concerned about VM boot speed, why not just use AHCI or virtio?
I was looking for a quick fix for the Xen use-case where the toolstack does not set up AHCI or virtio. Maybe teaching libxl to use AHCI by default might be a better thing to do.
Paul
Quoted 1 line
-Kevin