From 72fc110d95129410443b898e931ff7a1db75312e Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Tue, 28 Jul 2015 01:51:14 +0200 Subject: [PATCH] ahci: Ensure that bus mastering is set. Fixes ahci_test failing on several platforms. --- grub-core/disk/ahci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/disk/ahci.c b/grub-core/disk/ahci.c index f4725e8c1..fc640d5d4 100644 --- a/grub-core/disk/ahci.c +++ b/grub-core/disk/ahci.c @@ -195,7 +195,7 @@ grub_ahci_pciinit (grub_pci_device_t dev, addr = grub_pci_make_address (dev, GRUB_PCI_REG_COMMAND); grub_pci_write_word (addr, grub_pci_read_word (addr) - | GRUB_PCI_COMMAND_MEM_ENABLED); + | GRUB_PCI_COMMAND_MEM_ENABLED | GRUB_PCI_COMMAND_BUS_MASTER); hba = grub_pci_device_map_range (dev, bar & GRUB_PCI_ADDR_MEM_MASK, sizeof (*hba));