lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 30 Jul 2007 22:11:43 +0200
From:	Adrian Bunk <bunk@...sta.de>
To:	Bernhard Kaindl <bk@...e.de>
Cc:	linux-pci@...ey.karlin.mff.cuni.cz,
	Alois Nešpor <alois.nespor@...il.com>,
	linux-kernel@...r.kernel.org, gregkh@...e.de
Subject: Re: Ok, lets kill the 'PCI hidden behind bridge' message (was:
	pci=assign-busses)

On Mon, Jul 30, 2007 at 08:35:13PM +0200, Bernhard Kaindl wrote:
>...
> --- linux-2.6.22/drivers/pci/probe.c
> +++ linux-2.6.22/drivers/pci/probe.c
> @@ -643,23 +643,24 @@ int pci_scan_bridge(struct pci_bus *bus,
>
>  	sprintf(child->name, (is_cardbus ? "PCI CardBus #%02x" : "PCI Bus 
> #%02x"), child->number);
>
> +#ifdef DEBUG /* Has only triggered on CardBus, fixup is in yenta_socket */
>  	while (bus->parent) {
>  		if ((child->subordinate > bus->subordinate) ||
>  		    (child->number > bus->subordinate) ||
>  		    (child->number < bus->number) ||
>  		    (child->subordinate < bus->number)) {
> -			printk(KERN_WARNING "PCI: Bus #%02x (-#%02x) is "
> -			       "hidden behind%s bridge #%02x (-#%02x)%s\n",
> +		      pr_debug("PCI: Bus #%02x (-#%02x) is %s"
> +			       "hidden behind%s bridge #%02x (-#%02x)\n",
>  			       child->number, child->subordinate,
> +			       (bus->number > child->subordinate &&
> +			        bus->subordinate < child->number) ?
> +					"wholly " : " partially",
>  			       bus->self->transparent ? " transparent" : " ",
> -			       bus->number, bus->subordinate,
> -			       pcibios_assign_all_busses() ? " " :
> -			       " (try 'pci=assign-busses')");
> -			printk(KERN_WARNING "Please report the result to "
> -			       "linux-kernel to fix this permanently\n");
> +			       bus->number, bus->subordinate);
>  		}
>  		bus = bus->parent;
>  	}
> +#endif
>
>  out:
>  	pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bctl);

"#ifdef DEBUG" plus pr_debug() is twoce the same.

You don't need the #ifdef.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ