Re: [PATCH] pch_gbe: Use a randomly generated MAC instead of failing probe
From: Darren Hart <hidden>
Date: 2012-01-16 15:38:30
Also in:
lkml
On 01/15/2012 11:38 PM, Tomoya MORINAGA wrote:
2012/1/16 Darren Hart [off-list ref]:quoted
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.
quoted
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