From nobody Tue Jun 14 21:26:26 2022 X-Original-To: freebsd-arm@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 3D911850455 for ; Tue, 14 Jun 2022 21:26:26 +0000 (UTC) (envelope-from bugzilla-noreply@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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LN1hd6z5lz4kwS for ; Tue, 14 Jun 2022 21:26:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CBACA120BA for ; Tue, 14 Jun 2022 21:26:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25ELQPWw058925 for ; Tue, 14 Jun 2022 21:26:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25ELQPBa058924 for freebsd-arm@FreeBSD.org; Tue, 14 Jun 2022 21:26:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 264673] aw_if_dwc does not support current versions of u-boot Date: Tue, 14 Jun 2022 21:26:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: src-2016@bikker.homeunix.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655241986; 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=AYj/ogjLe1FrwBi78Sw9HAZGdeXg2DTnoahF4i6Bd0Q=; b=fI84jydHcN0uheGcH+D3g5Jy/zORZNMTAJmWJLH9pCu8OKwjgwePzsZO5RWoEaE9y58pfP HF/rA/hNZnYDWeTCeWprP45v+SvjMshqQYsjtXrG/UF0StU9z1LCxaarSVd29uNcGEgiaH Nd/RQmjTDb24ivC82SpPEclSn2BlkVnRMkE3YarvhnDwUolcZORKj3oQlK/AfbHLdNf/bE 6D2gWemOxdJajEzuNeUsSe/uGLj1SG5BsoHVfb0jETUZnQRirTbbPk2PU72tKqvHuQWJsy n5oE/3OFHFzYqxGSL4oWtFPyO/YWDIIZAxD4wRBN55qjdkX9Dcidsf/QtwJERQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655241986; a=rsa-sha256; cv=none; b=PNCfVCusU9SHyihf+U1uxifH7NWcmpVViGcc2dCfahRahMhQUQi4W+eptQQtP6+EvDwOh2 nKg0A8dgnNDKoglx2AhhGIpUz+y2ffTd+dcyHH5BCwRh7jOzQRceqNTz3RDFkuerEi5wl2 zL9eZvAmKYmInFAxFSmQqGrloOswBVcxM7ijGqS1wGOPP/Sj43r3fwsUWF784Woe9J2s+K FU24pQK1fKBrSRt7RD7vGyEMWNqabEJC5VQenWdVAA7HZfQV9s4JK/lD0Tt0RPBx/WGPJd A+IF4vlj/tV1T3UL/TzVLlcN89+ND1cNO2R50Ejat9dIDOm7Bs98uzZsAXo3HQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264673 Bug ID: 264673 Summary: aw_if_dwc does not support current versions of u-boot Product: Base System Version: 13.1-RELEASE Hardware: arm OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: src-2016@bikker.homeunix.net Created attachment 234692 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234692&action= =3Dedit aw_if_dwc and rgephy patch for rgmii-id mode Current u-boot uses phy connection mode "rgmii-id" for some boards. Driver aw_if_dwc.c does not support that and erroneously falls back to mii mode. This breaks network access for several boards including allwinner a20. Failure verified on pcduino3-nano with dwc boot message: dwc0: Can't reset DWC. 2 problems: First: src/sys/arm/allwinner/aw_if_dwc.c incorrectly assumes that fdt suppl= ied phy-mode is always "mii", unless it literally is "rgmii". For supplied phy-= mode "rgmii-id" it falls back to default "mii" and selects wrong clock. Remedy is simple - instead of 'strcmp(phy_type, "rgmii")' check for any rgm= ii interface version via 'strncmp(phy_id, "rgmii" ,5)'. which matches also "rgmii-id". Second: None of the phy drivers support rgmii-id. The supplied patch adds rgmii-id support for rgephy (realtek 8211E). This was tested to work on pcduino3-nano --=20 You are receiving this mail because: You are the assignee for the bug.=