From nobody Fri Nov 13 11:17:32 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4jQvqc3FtGz70NGk for ; Fri, 13 Nov 2026 11:17:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jQvqc29l5z4LRJ for ; Fri, 13 Nov 2026 11:17:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794568652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lfFA+TaAIB4c1tOM0XZNLMZF4odjEdHfCZWbjOLYKjc=; b=rwma25KX1nFw9urMToxO2uRbXR8FKHiTZ9jrwC3Ms7v6T0LGW4cj8LYJSPjkJF83OBW/DS mnVKCNA39qT+uiM1KMbKV5Wy9MjnAz27jI92BPZNKkxcabxGkXrePfLvKMU0ALVYdr4YQ2 606Ip9BZwhdjDfBJH+OoRbn6Yt+7/qsqpOdInmArPVlDYd57HU2/DOquvoPg7EL8eZfa7m nQPYccJBtjXE3El+zq/UTmXFVAouLNQuP1wX3HVEEMPYVWTxaqvOvG9U0qRPx8eO4CAY89 zDQrGkm4lhocFlODVVSyXFiMU0TFpJWAGBIkcRrrin+joxnFqauzBoTJ9UEAEA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1794568652; b=ZRcXXR94keJXlJY+b/tE/lnBjMqar5UQ2HVuHXB1ovxQ6A4RB6BBogDWTbM+3e9x/qfjh7 yg7ub3P31XW0PT9QDEqJt5QhE0UMkohd/E498fKFMAGGDDzNR0+biVNVSeUYxnn+BNXfKS Dnw3JIQhTtqXIan5y4FpXW4O9Wbby0uzT1yEQ9Jlz3wC8TFGgFU81ma3RuA4JzhScxE8I4 XNSLe8LQlpv1fFuACeW8DOZmlC5rWsCLVBpEjipPNh+G7OjocNQyMap7hP7abeRBRdWWVT WecTKprcNuevHAjRuk0Ed/j5+Cy3gVjbHOwLzk8SE1h6MiSiBV5hbSoHOUrVvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794568652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lfFA+TaAIB4c1tOM0XZNLMZF4odjEdHfCZWbjOLYKjc=; b=XUIu59P69rD1OiLegnG1mstQ3G9eADfcKA1l2ihJfcSL2Bq8g9WpGZmE4CamtJ0PQU6T8B xJOjSWadnN5bpvV0Co2DxNSGHo8eaNFMrEI4E3nCTgc3oQLeouAH3gALMsOT8GwfvQ6ZIe EToItcC/02CFqpLnd3PVSn0qr5yOZw7yAE9Ue7Td035kqCZu3RVls+vKcXYoJ2DGy9dHns tyxiQ7tmTaZPVd/O2uQoVipl03zi+Hdih2pWr8HmhRFckOvV1O9XkVapfzO8a1wQbIb9IN ct3RfkM3PaAzX3sOSbrtXwtiOKguT2OBrNBEHUmGW73hEp7npsDj9xzZ2L62mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4jQvqc1rpzzYJY for ; Fri, 13 Nov 2026 11:17:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 11e35 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 13 Nov 2026 11:17:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: deedeb1e4160 - main - awg: Use the MAC address of the FDT List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: deedeb1e4160509f0074d0055340c130c72466ce Auto-Submitted: auto-generated Date: Fri, 13 Nov 2026 11:17:32 +0000 Message-Id: <6af6f1cc.11e35.2fe5f69e@gitrepo.freebsd.org> The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=deedeb1e4160509f0074d0055340c130c72466ce commit deedeb1e4160509f0074d0055340c130c72466ce Author: Emmanuel Vadot AuthorDate: 2026-11-13 10:46:33 +0000 Commit: Emmanuel Vadot CommitDate: 2026-11-13 11:17:07 +0000 awg: Use the MAC address of the FDT The firmware gives the MAC address of the controller in the FDT, in the mac-address or local-mac-address property. awg(4) only used the address in the registers, which is set when the firmware used the controller, and the one created from the SID. On the Pine H64 the firmware does not initialise the Ethernet and the SID driver does not support the H6, so a random address was created and it changed at every boot. Use fdt_ether_get_addr(), it takes the address of the FDT and keeps the current one when there is none. Tested on: H6 --- sys/arm/allwinner/if_awg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/arm/allwinner/if_awg.c b/sys/arm/allwinner/if_awg.c index 3459779743ba..24956c124580 100644 --- a/sys/arm/allwinner/if_awg.c +++ b/sys/arm/allwinner/if_awg.c @@ -51,6 +51,8 @@ #include +#include + #include #include @@ -1992,6 +1994,9 @@ awg_attach(device_t dev) return (error); } + /* The MAC address of the FDT, if any, is the one to use */ + fdt_ether_get_addr(ofw_bus_get_node(dev), sc->ifp, eaddr); + /* Attach ethernet interface */ ether_ifattach(sc->ifp, eaddr);