Re: what code generates this message?

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

 



On 10/08/15 16:30, Chuck Tuffli wrote:
> As part of trying to understand a hardware issue, I'm trying to track
> down the kernel code which prints:
> 
> [ 1077.119096] pcieport 0000:00:02.0: PCI bridge to [bus 02-02]
> [ 1077.119098] pcieport 0000:00:02.0:   bridge window [io  disabled]
> [ 1077.119101] pcieport 0000:00:02.0:   bridge window [mem disabled]
> [ 1077.119104] pcieport 0000:00:02.0:   bridge window [mem pref disabled]
> 
> to the system log / dmesg. Grep'ing the kernel source for strings such
> as "PCI bridge to" or "bridge window" hasn't turned up any candidates.
> Can someone point me in the right direction? TIA.

drivers/pci/setup-bus.c: (I'm looking in 4.3-rc4):

static void __pci_setup_bridge(struct pci_bus *bus, unsigned long type)
{
	struct pci_dev *bridge = bus->self;

	dev_info(&bridge->dev, "PCI bridge to %pR\n",
		 &bus->busn_res);

	if (type & IORESOURCE_IO)
		pci_setup_bridge_io(bridge);

	if (type & IORESOURCE_MEM)
		pci_setup_bridge_mmio(bridge);

	if (type & IORESOURCE_PREFETCH)
		pci_setup_bridge_mmio_pref(bridge);

	pci_write_config_word(bridge, PCI_BRIDGE_CONTROL, bus->bridge_ctl);
}


Each of the calls to pci_setup_bridge_{io,mmio,mmio_pref}() prints a "bridge window"
line.


-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux