From nobody Wed May 18 21:29:05 2022 X-Original-To: net@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 E21F51B319FD for ; Wed, 18 May 2022 21:29:06 +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 4L3R2B4WH6z4bLs for ; Wed, 18 May 2022 21:29:06 +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 0E52010B54 for ; Wed, 18 May 2022 21:29:06 +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 24ILT51o047289 for ; Wed, 18 May 2022 21:29:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24ILT5Zg047288 for net@FreeBSD.org; Wed, 18 May 2022 21:29:05 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: net@FreeBSD.org Subject: [Bug 263820] dwc: dwc driver is not able to receive packets after adding new MAC address Date: Wed, 18 May 2022 21:29:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jiahali@blackberry.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652909346; 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: in-reply-to:in-reply-to:references:references; bh=K+kuL94h0I036Fvs9vFMXWI4wGfcyRW7ApsBlVELEsU=; b=Owv9mJYNr6OzvE0ad/oy288Fd+ls/o7uvFsiVheQlNGL/l7fE74gJvGUicO01We2rp9tRg 1l3AgSk1khKslqFhZvqQNEQpP5l+pXv2bb08kwohdyyEm87bv9MfLKUxAM7Chjr6peXskT M/6L7Tw/3DzF5vzihBo0Xoa23fGQpp8cxBGnJyeoj0iQHSnyQ/OKtUqZo1WhHe2BTheyo0 4w8rg20VO8omD+YjwUsxx2hEll69TPCtktO4sEi+p1duvMX2ee/ql6pnEZL4IJBWRcdcNI xVH4G+mcBT0EiA+Iv2AbNn9bABj0QZ9LuLwfqbb2qQW4uf5si2sKsIxvJ8qt0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652909346; a=rsa-sha256; cv=none; b=yjWePIzhnqOWvqZhYgGZEoH6b8PqrHWA7Nh3A+xt3b5RGzsqXz14mrKDgTGO2geJ/IhYXj 0sEuYeMZrBZm4A/yW9Pspru7ZF+3wnOB+mrs6vpD9yqdD8ACM30n++yDczvTOWQRaB8faI YsELtP5XIlHu62o640ngp2q61u1RkJIq/Cq9UP1kMWn8koUgsGjCLNltqkPAzGwH2Pkg1j gchJF2zt+QP2PGnDApOmxI2ipgY0YxEyrol7k5aAuvFNdV3tj2shyKsfA+6xULSFe63UOP h3Omi2CMT9KOZESrBR93LkIfJ2gMHixg211gM6+LohLOaSIVyJjABUPz6DCSHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263820 --- Comment #3 from Jiahao LI --- Created attachment 234029 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234029&action= =3Dedit Another approach to fix the problem I referred to other open-source software. In OpenBSD, they will configure t= he media, mii_mediachg, firstly before setting the dwc driver's registers. (https://github.com/openbsd/src/blob/master/sys/dev/fdt/if_dwge.c line 1080) I have also tried this in my hardware, RockPro64, and attached the patch. T= he patch can fix the problem. Intuitively, it looks like the setting of dwc dr= iver should be after the setting of media based on the two attached patches. --=20 You are receiving this mail because: You are the assignee for the bug.=