grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EHCI driver


From: Aleš Nesrsta
Subject: Re: EHCI driver
Date: Wed, 18 Jul 2012 17:32:50 +0200

Hi Frank,

You are probably right - it might be the problem with PCI bus master
settings! The same problem was solved in UHCI driver for coreboot by
Rock some time ago.

Try this patch, please:

@@ -533,6 +533,11 @@ grub_ehci_pci_iter (grub_pci_device_t de
                        "EHCI grub_ehci_pci_iter: registers above 4G are not 
supported\n");
          return 0;
        }
+
+      /* Set bus master - needed for coreboot or broken BIOSes (and
VMware?) */
+      addr = grub_pci_make_address (dev, GRUB_PCI_REG_COMMAND);
+      grub_pci_write_word(addr,
+          GRUB_PCI_COMMAND_BUS_MASTER | grub_pci_read_word(addr));
       
       grub_dprintf ("ehci", "EHCI grub_ehci_pci_iter: 32-bit EHCI OK
\n");
     }

BR,
Ales


yanxiang fang wrote:
> Hi, Ales.
>  
> I studied linux ehci driver which can work well in vmware. But found
> nothing useful, mybe because it is too complex. So I turned to
> other simpler OS to find some useful thing.
>  
> I don't know anything about PCI. Do you think this problem having
> something to do with PCI configuration?
>  
> BR,
>  
> frank
>  
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]