Re: [Bug] invalid mac address after rebooting (2.6.12-rc2-mm2)

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

 



On Thu, Apr 14, 2005 at 07:40:52PM +0200, Daniel Ritz wrote:
> could you apply this debuggin patch instead and send me the dmsg output
> plus output from lspci, lspci -vvvn. also please send me a hexdump from
> /proc/bus/pci/00/0b.0
> 
> i think i'm having some 3coms around so maybe i can reprocude :)
> 
> rgds
> -daniel
> 
> --- 1.81/drivers/pci/pci.c	2005-03-03 08:17:57 +01:00
> +++ edited/drivers/pci/pci.c	2005-04-05 00:37:13 +02:00
> @@ -268,7 +268,7 @@
>  		return -EIO; 
>  
>  	pci_read_config_word(dev,pm + PCI_PM_PMC,&pmc);
> -	if ((pmc & PCI_PM_CAP_VER_MASK) > 2) {
> +	if ((pmc & PCI_PM_CAP_VER_MASK) > 3) {
>  		printk(KERN_DEBUG
>  		       "PCI: %s has unsupported PM cap regs version (%u)\n",
>  		       pci_name(dev), pmc & PCI_PM_CAP_VER_MASK);
> @@ -287,15 +287,19 @@
>  	 * This doesn't affect PME_Status, disables PME_En, and
>  	 * sets PowerState to 0.
>  	 */
> -	if (dev->current_state >= PCI_D3hot)
> +	printk("PCI: %s pmc: %04x, current_state, pmcsr: %08x", pci_name(dev), pmc, dev->current_state);
> +	if (dev->current_state >= PCI_D3hot) {
>  		pmcsr = 0;
> -	else {
> +		printk("0");
> +	} else {
>  		pci_read_config_word(dev, pm + PCI_PM_CTRL, &pmcsr);
> +		printk("%04x", pmcsr);
>  		pmcsr &= ~PCI_PM_CTRL_STATE_MASK;
>  		pmcsr |= state;
>  	}
>  
>  	/* enter specified state */
> +	printk(", new: %04x\n", pmcsr);
>  	pci_write_config_word(dev, pm + PCI_PM_CTRL, pmcsr);
>  
>  	/* Mandatory power management transition delays */
> 

I send Daniel the info privately, but just for your convenience, I put
it also on my homepage [1].


-Peter

[1]: http://wwwcip.informatik.uni-erlangen.de/~siprbaum/kernel/

...._1.txt = working version (first boot)
...._2.txt = non working version (second boot)


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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux