From: Heiner Kallweit <hkallweit1@gmail.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>, nic_swsd@realtek.com
Cc: netdev@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Keith Hui <buurin@gmail.com>
Subject: Re: r8169: MAC address programmed by coreboot to onboard RTL8111F does not persist
Date: Sat, 22 Mar 2025 14:04:59 +0100 [thread overview]
Message-ID: <065dabff-dfcc-4a86-ba0e-e3d6de2d21fc@gmail.com> (raw)
In-Reply-To: <49df3c73-f253-4b48-b86d-fa8ec3a20d2c@molgen.mpg.de>
On 22.03.2025 09:50, Paul Menzel wrote:
> Dear Linux folks,
>
>
> Keith Hui reported the issue *MAC address programmed by coreboot to onboard RTL8111F does not persist* [1] below when using coreboot:
>
Why do you consider this a bug? IOW: Where is it specified otherwise?
>> I am producing a coreboot port on Asus P8Z77-V LE PLUS on which this
>> issue is observed. It has a RTL8111F ethernet controller without
>> EEPROM for vital product data.
>>
>> I enabled the rtl8168 driver in coreboot so I can configure the LEDs
>> and MAC address. Lights work great, but the MAC address always
>> revert to 00:00:00:00:00:05 by the Linux r8169 kernel module. I
>> would then have to reassign its proper MAC address using ip link
>> change eno0 address <mac>.
>>
r8169 in a first place reads the factory-programmed MAC from the chip.
If this is 00:00:00:00:00:05, then this seems to be an issue with your
board.
>> The device appears to be taking the address I programmed, but r8169
>> reverts it both on init and teardown, insisting that
>> 00:00:00:00:00:05 is its permanent MAC address.
>>
>> Survival of coreboot programmed MAC address before r8169 driver is
>> confirmed by a debug read back I inserted in the coreboot rtl81xx
>> driver, as well as by temporarily blacklisting r8169.
>>
>> Vendor firmware is unaffected.
>
What do you mean with this? What vendor firmware are you referring to?
> Do you have an idea, where in the Linux driver that happens?
>
See rtl_init_mac_address() in r8169, and rtl8168_get_mac_address()
in Realtek's r8168 driver.
>
> Kind regards,
>
> Paul
>
>
> [1]: https://ticket.coreboot.org/issues/579#change-2029
next prev parent reply other threads:[~2025-03-22 13:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-22 8:50 Paul Menzel
2025-03-22 13:04 ` Heiner Kallweit [this message]
2025-04-24 7:09 ` Paul Menzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=065dabff-dfcc-4a86-ba0e-e3d6de2d21fc@gmail.com \
--to=hkallweit1@gmail.com \
--cc=buurin@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nic_swsd@realtek.com \
--cc=pmenzel@molgen.mpg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®