public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PCI probe leaves master abort disabled in PCI_BRIDGE_CONTROL
@ 2006-02-14  1:13 David S. Miller
  2006-02-14  5:17 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: David S. Miller @ 2006-02-14  1:13 UTC (permalink / raw)
  To: gregkh; +Cc: linux-kernel


In drivers/pci/probe.c:pci_scan_bridge(), if this is not the first
pass (pass != 0) we don't restore the PCI_BRIDGE_CONTROL_REGISTER and
thus leave PCI_BRIDGE_CTL_MASTER_ABORT off:

int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max, int pass)
{
 ...
	/* Disable MasterAbortMode during probing to avoid reporting
	   of bus errors (in some architectures) */ 
	pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &bctl);
	pci_write_config_word(dev, PCI_BRIDGE_CONTROL,
			      bctl & ~PCI_BRIDGE_CTL_MASTER_ABORT);
 ...
	if ((buses & 0xffff00) && !pcibios_assign_all_busses() && !is_cardbus) {
		unsigned int cmax, busnr;
		/*
		 * Bus already configured by firmware, process it in the first
		 * pass and just note the configuration.
		 */
		if (pass)
			return max;
 ...
	}

	pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bctl);
 ...

This doesn't seem intentional.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-14 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14  1:13 PCI probe leaves master abort disabled in PCI_BRIDGE_CONTROL David S. Miller
2006-02-14  5:17 ` Greg KH
2006-02-14 16:23   ` Ralf Baechle
2006-02-14 21:58     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox