[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F14445E.8040307@linux.intel.com>
Date: Mon, 16 Jan 2012 07:38:06 -0800
From: Darren Hart <dvhart@...ux.intel.com>
To: Tomoya MORINAGA <tomoya.rohm@...il.com>
CC: Alan Cox <alan@...rguk.ukuu.org.uk>,
David Miller <davem@...emloft.net>,
linux-kernel@...r.kernel.org, arjan@...ux.intel.com,
alan@...ux.intel.com, jeffrey.t.kirsher@...el.com,
paul.gortmaker@...driver.com, jdmason@...zu.us,
netdev@...r.kernel.org
Subject: Re: [PATCH] pch_gbe: Use a randomly generated MAC instead of failing
probe
On 01/15/2012 11:38 PM, Tomoya MORINAGA wrote:
> 2012/1/16 Darren Hart <darren.hart@...el.com>:
>> I have since resolved this particular issue. I did not disable the
>> pcieqos driver I forward ported. With that disabled, pch_phub works as
>> expected.
> Yes, you can not use both pcieqos and pch_phub at the same time.
> Because pcieqos is previous version of pch_phub which is upstreamed.
Right, they both claim the same PCI ID.
>
>> Which is to say it lists pch_mac, reads all 0's, and does
>> nothing on write (since the MAC ROM doesn't exist). Please see the patch
>> thread from Friday to address this using a random mac if the ROM is
>> missing or invalid.
> Saving MAC address into external ROM is generic method, I think.
> Though I know the ROM-less system using eg20t-pch, however I think
> this system is not common.
> So, I think pch_gbe shouldn't have auto-mac address assignment.
>
> BTW, as you know, a use can write MAC address using sysfs file system
> like below.
> echo aa:bb:cc:dd:ee:ff > pch_mac
Right, this doesn't work on the ROM-less system. At least, the
subsequent read returns all 0's. The same is true with the phub-util-mac
and pcieqos. I believe this is due to pci_map_rom failing.
Also, if you don't build the driver as a module, then the above still
isn't sufficient as the pci probe fails and the device isn't created.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists