On Sat, 2007-06-30 at 05:47 -0400, Jeff Garzik wrote: > Francois Romieu wrote: > > Jeff Garzik <[EMAIL PROTECTED]> : > >> Arjan van de Ven wrote: > >>>> + pci_write_config_byte(tp->pci_dev, PCI_LATENCY_TIMER, 0x40); > >>> can you create a pci_set_latency_timer() for this please? > > [...] > >>>> + if (tp->mac_version <= RTL_GIGA_MAC_VER_06) > >>>> + pci_write_config_byte(tp->pci_dev, PCI_CACHE_LINE_SIZE, > >>>> 0x08); > >>> and something for this as well? > >> Why? Nothing here seems generic to me. > > > > I.e. no need for pci_set_latency_timer(struct pci_dev *dev, u8 latency) > > neither pci_set_cache_line_size(struct pci_dev *dev, u8 size) ? > > Yeah. When it gets to be a one-line wrapper like that, I don't see much > additional value in pci_set_cache_line_size() over > pci_write_config_byte(,PCI_CACHE_LINE_SIZE,).
but it isn't really a one line wrapper, since pci_set_cacheline_size() would need to compare against the "system" size as well, and reject if you try to set it smaller than that size that's a datacorruption issue. (which makes me wonder; is the driver trying to work around a hardware bug, or around behavior of early linux kernels that didn't set the cacheline size in pci_enable_mwi() ... ) -- if you want to mail me at work (you don't), use arjan (at) linux.intel.com Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html