From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A80497B for ; Wed, 9 Mar 2022 15:06:44 +0000 (UTC) Received: by mail-wr1-f47.google.com with SMTP id k24so3507802wrd.7 for ; Wed, 09 Mar 2022 07:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=moBcVO4/zcOx1GJWJOPQodSwqeyH9qKr37XAEJrs55w=; b=xTq9TsVY/e7a+L5/g45+gc7gQhtImlgR1X9hdvm84A4/6Vl3Iqjis+Tqk39QWte43u oZTwCMdaVapSCYGJf5qYGvuHqUpQtMgvPITM83Y9nY1pIe0mwT9347zp/W+vPvF57/Q5 VK6euyNQZTLDLAIUoIxAr7yomegfvfxIUHHPVoP9iZXx1TNmvjkKMyNGhIw3RAUXgDNg k2JrovZm5nFVGUccwogG8+RTUnjLOZNnm31RCPDjsQ/jqkiEXNtGSz+pEZwt3LmIfPb7 SDPybDoEBNFZ1hWJzPMx356BloxJJycPi02zw2dvk8W+lgGTPR2/We0IBcBzZD6K/MCN vIJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=moBcVO4/zcOx1GJWJOPQodSwqeyH9qKr37XAEJrs55w=; b=NWLC1+PkkghBvBgswBuDQ4UjLPidhOIlseWwtXxiljtH4LAeK67EhVeOa9u0sweFjd sco9Mz7G8bTUQtVjKLUhvX31rAX1Kbr+i8Y/KL9yKdtS4ObUvY38gQzlYFjJanCSXiPT /QPVXvJuGxEHrgw7CEAfZ96wneYVNsJKJK6+Q082GtRyv/ztbwo87CaG2tZN2KkJav9H /8XatkpkERppn5Utc3MK0vF0UGy4PJkVDf7OF411xcR+XvZO6kBnqVmr56XNxTcAT77V gi+Hp+rhEUNsv3wEZtlwZgUCo9N9j6sA3JFjOnxCuamhfie0XAJORfgT7hiVntjYzyTE +Jig== X-Gm-Message-State: AOAM530Qo99TyDTKSOy1RqzXDpIDOtCa5wIz6cuL7g/61mIINgwd2hcl oPFaf5Si6fDVeYVdPpEyOdKD5Q== X-Google-Smtp-Source: ABdhPJw3bLQRbTPx1PwgjgPNUkIGCdNA73k7avZT6ToJuXxNgNm6Pq2L+rTAc5AkxwLjddmhLmJn1w== X-Received: by 2002:a05:6000:1ac5:b0:1ea:7870:d7eb with SMTP id i5-20020a0560001ac500b001ea7870d7ebmr45585wry.171.1646838402736; Wed, 09 Mar 2022 07:06:42 -0800 (PST) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id q23-20020a1cf317000000b003815206a638sm5264634wmq.15.2022.03.09.07.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 07:06:42 -0800 (PST) References: <1jczjzt05k.fsf@starbuckisacylon.baylibre.com> <6b04d864-7642-3f0a-aac0-a3db84e541af@gmail.com> <1e828df4-7c5d-01af-cc49-3ef9de2cf6de@gmail.com> <1j8rts76te.fsf@starbuckisacylon.baylibre.com> <435b2a9d-c3c6-a162-331f-9f47f69be5ac@gmail.com> User-agent: mu4e 1.6.10; emacs 27.1 From: Jerome Brunet To: Erico Nunes , Heiner Kallweit Cc: Martin Blumenstingl , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu , Kevin Hilman , Neil Armstrong , linux-amlogic@lists.infradead.org, netdev@vger.kernel.org, "open list:ARM/Rockchip SoC..." , linux-sunxi@lists.linux.dev Subject: Re: net: stmmac: dwmac-meson8b: interface sometimes does not come up at boot Date: Wed, 09 Mar 2022 15:57:27 +0100 In-reply-to: Message-ID: <1j5yonnp1a.fsf@starbuckisacylon.baylibre.com> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Wed 09 Mar 2022 at 15:45, Erico Nunes wrote: > On Sun, Mar 6, 2022 at 1:56 PM Heiner Kallweit wrote: >> You could try the following (quick and dirty) test patch that fully mimics >> the vendor driver as found here: >> https://github.com/khadas/linux/blob/buildroot-aml-4.9/drivers/amlogic/ethernet/phy/amlogic.c >> >> First apply >> https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=a502a8f04097e038c3daa16c5202a9538116d563 >> This patch is in the net tree currently and should show up in linux-next >> beginning of the week. >> >> On top please apply the following (it includes the test patch your working with). > > I triggered test jobs with this configuration (latest mainline + > a502a8f0409 + test patch for vendor driver behaviour), and the results > are pretty much the same as with the previous test patch from this > thread only. > That is, I never got the issue with non-functional link up anymore, > but I get the (rare) issue with link not going up. > The reproducibility is still extremely low, in the >1% range. Low reproducibility means the problem is still there, or at least not understood completly. I understand the benefit from the user standpoint. Heiner if you are going to continue from the test patch you sent, I would welcome some explanation with each of the changes. We know very little about this IP and I'm not very confortable with tweaking/aligning with AML sdk "blindly" on a driver that has otherwise been working well so far. Thx > > So at this point, I'm not sure how much more effort to invest into > this. Given the rate is very low and the fallback is it will just > reset the link and proceed to work, I think the situation would > already be much better with the solution from that test patch being > merged. If you propose that as a patch separately, I'm happy to test > the final submitted patch again and provide feedback there. Or if > there is another solution to try, I can try with that too. > > Thanks > > > Erico