Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp94949rwb; Fri, 4 Aug 2023 09:38:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8QpTjxd5Cw9yDUVJE4rMDRhKqdRi4tRwg2/Hl0nTSR36BS2YzrUKysS9W5L3jPxjOzU7b X-Received: by 2002:a05:6a00:cc6:b0:67a:8fc7:1b61 with SMTP id b6-20020a056a000cc600b0067a8fc71b61mr2861747pfv.11.1691167111870; Fri, 04 Aug 2023 09:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691167111; cv=none; d=google.com; s=arc-20160816; b=a9PbChVZVTxa/tYT9b7yIA5+JJCnaaW9oQ9kgYd8TEDTzAvHtEeatSr77kzVTbM1GZ OIpTebMVsTsr+a1fR/enwrRdmlJSE9fYgoIe6RiF9KkAq6/tv1FvOPJ04vfqtxPmIk9k 0rgwdRWJ1oLC9cpjQVBEbUixVfJn4HxNH3eYW6Qe9i5QoqV6UkN+jfHK4/7dmWx4fiHz ldv1DAlMGSaff7vHOgNZsa1EEDxMrpYydjYImX347kbehhHNtEryPPvVfQUC9ZtMu2FA 007AB1M5GFi1nIfDHgKUS2ZQRgM6YU6+Kr0XEwML2ZM36T3abxJ671Bkb9J9dI35ArUL a1qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MweN5TkGBHRUDAuQH1Q15HLNrVdAttLGZrDsxjp22TY=; fh=myNw3tbLLidHGo9weu6Wav22kvrLOLvORtr+Z41pJRk=; b=byxiug6KGAP7c7zDLk5oBlJk5vW5zYfbF4OwfpeMj9QsB6LpXL2meEMR+chpsq4Abt zZGcTzOIcD4jmNU6RRORa5EJTANa2vUoquQ6LLAVaGUwcG+TKzJV3xsCeXBjJbjSHOks 9gmMZAiucahtjCRf8EGtLv/f4cdwOdmSmezUNKkuxCYQnF4BfDAWzBB2hxKx2rXk/c5V BcdvLS8B5dtNdGtCbTp9eJVsQfP6yJnt6sz8Sh6drSQahf6Z9r1XHyguruPjkVrrgxs8 zDaxdVMib3IAOS2Afv4rF6H1Fk7ZB/Kt5mnxmIr+9+7htzNAglClFmtheTfEy5phEOrd /ZBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="db/QpyGW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a056a00230700b00682759c6440si1973671pfh.40.2023.08.04.09.38.18; Fri, 04 Aug 2023 09:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="db/QpyGW"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232245AbjHDPwp (ORCPT + 99 others); Fri, 4 Aug 2023 11:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbjHDPwh (ORCPT ); Fri, 4 Aug 2023 11:52:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F121849D7 for ; Fri, 4 Aug 2023 08:52:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8178C6209F for ; Fri, 4 Aug 2023 15:52:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E50B5C433CA; Fri, 4 Aug 2023 15:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691164354; bh=LOq7RS20TqfH4Hdkn/iEhzGYnzzqU4MxbtyZDje5DTM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=db/QpyGWZiGv+hOkDcQmId64EfLtCECXdj6SVN9iqNnUz87wDzhSDSDKkPqhesxXc XkYO8574UAfmZclBZdnsGi8VAqj7rHu/+xeRD5KvG+ijc7xo9ROK2jfD8yKTKqRCsq zX7BT0Uug6JnRWvDTte1vdDZs+zBhkIs/jjQPHMmwIvSG5BIkp48BbFKST0uVCujlZ cjAylaRSCFsl6gdna/65Ckv7KfS6T+R/op7i0mliGSpS53yTpBcmy7X+2F4JyUZyFj GtkGEVfoBBfJpXmPTUq+8Kd9wNfncXOGt2deJxPXuSrP9bccesOId7cwFMM5+Q17UG R0JgvLmb+aF9g== Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2b9b9f0387dso35377221fa.0; Fri, 04 Aug 2023 08:52:34 -0700 (PDT) X-Gm-Message-State: AOJu0YwqQwElZ+9EW5E8jDLO+uma3SHv/xdX+z8dcOj3ad9CUYgwuOPY Qezacz6yOc2vvZJLp6AO/yw0rB+E2HANBn2XmQ== X-Received: by 2002:a2e:9d5a:0:b0:2b9:53bd:47a7 with SMTP id y26-20020a2e9d5a000000b002b953bd47a7mr1705190ljj.30.1691164352899; Fri, 04 Aug 2023 08:52:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Fri, 4 Aug 2023 09:52:20 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: PROBLEM: Broken or delayed ethernet on Xilinx ZCU104 since 5.18 (regression) To: Nick Bowler Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, regressions@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 4, 2023 at 9:27=E2=80=AFAM Nick Bowler wro= te: > > Hi, > > With recent kernels (5.18 and newer) the ethernet is all wonky on my > ZCU104 board. > > There is some behaviour inconsistency between kernel versions identified > during bisection, so maybe there is more than one issue with the ethernet= ? > > 6.5-rc4: after 10 seconds, the following message is printed: > > [ 10.761808] platform ff0e0000.ethernet: deferred probe pending > > but the network device seemingly never appears (I waited about a minute= ). > > 6.1 and 6.4: after 10 seconds, the device suddenly appears and starts > working (but this is way too late). 10 sec is probably the deferred probe timeout. You can set this to less time on the kernel command line. > 5.18: the device never appears and no unusual messages are printed > (I waited ten minutes). > > With 5.17 and earlier versions, the eth0 device appears without any delay= . > > Unfortunately, as bisection closed on the problematic section, all the > built kernels became untestable as they appear to crash during early > boot. Nevertheless, I manually selected a commit that sounded relevant: > > commit e461bd6f43f4e568f7436a8b6bc21c4ce6914c36 > Author: Robert Hancock > Date: Thu Jan 27 10:37:36 2022 -0600 > > arm64: dts: zynqmp: Added GEM reset definitions > > Reverting this fixes the problem on 5.18. Reverting this fixes the > problem on 6.1. Reverting this fixes the problem on 6.4. In all of > these versions, with this change reverted, the network device appears > without delay. With the above change, the kernel is going to be waiting for the reset driver which either didn't exist or wasn't enabled in your config (maybe kconfig needs to be tweaked to enable it automatically). There's not really a better solution than the probe timeout when the DT was incomplete and new dependencies get added. > Unfortunately, it seems this is not sufficient to correct the problem on > 6.5-rc4 -- there is no apparent change in behaviour, so maybe there is > a new, different problem? Probably. You might check what changed with fw_devlink in that period. (Offhand, I don't recall many changes) > I guess I can kick off another bisection to find out when this revert > stops fixing things... That always helps. Rob