Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp787505rwb; Sat, 5 Aug 2023 00:41:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrNCWBB1r337PDiA9veBMcFMdHtSeKAvv/dDQZkPuiBW+EiWFlas9H37c2ki7WcfO+ip23 X-Received: by 2002:a54:4419:0:b0:3a4:91a:224a with SMTP id k25-20020a544419000000b003a4091a224amr5512920oiw.34.1691221283075; Sat, 05 Aug 2023 00:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691221283; cv=none; d=google.com; s=arc-20160816; b=hsHvGc5d5PB7Ja72iZ2UESJ41PkF3XnypmzjCA6CQXyekUv2PaBF4+mZAAugu2Ak5P 6Pp4jeU5eUItuRHbQK0zKVG2NWQNxaTIfAQ9DyS9dp1J6KiSbUQO2+uR9EDl8B412nFg APuZ1K7SjshNwzbvLvisS4vnFwgxkHXis59FNZ7Rp4EVpdK/rCw2zh+2WX/NGdU1waq1 cOBnBzABlNcZG3C51uASWmtNGHNlyZM3E0VQWESfpkDy+/VuAJRr6fw+2c6JDG7Nnq5k 9eV8QvsEEndkpD6i6EyR1+rdL/yaON+pzlXwtzkT4JHRoVKcu0+RHRbvRVyantsmuIyM qn8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:references :in-reply-to:mime-version:dkim-signature; bh=GakJ4004HfKzStoDWvRep5JehYxyKkuk704LbpteieY=; fh=TX3ozuE1c0uTPGiPYiwPp3HRdGOGxhKNeW+X7rPCPtk=; b=0rA+auefLZDsqc9TiR46hiWvVIgrwwX/szdkp0iQ9YYG24AaQits2eGGmi9LL75q/N 9ka7fO/wP1jkiKy0Bi5DPeE/ec18UOy1Ikjb+Uu+toZJ57Ep6nirnM7outP4oidrFIK2 WPB6ihSSRjpk5u4Fye1nx8DSTqGHEvvI+rFWekvyZD8C6xeqrfCBOYKDNC/A8/SDFGHh 6tkgLyDxQgKsA3MGpDeOH7VN2krMwFmloo2fqop/MGT0f7CsWvXEZl9lnCpNgUHNe3Nn 4nNwBo6knHr7gbV34164sqQpMyucROe6fzuB5mXZ70FJdgYt2Ck1JUr1qDzj3yTF9ZMB GMSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@draconx-ca.20221208.gappssmtp.com header.s=20221208 header.b=iXBxP50Z; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct19-20020a056a000f9300b0068709367573si1133615pfb.203.2023.08.05.00.41.11; Sat, 05 Aug 2023 00:41:23 -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=@draconx-ca.20221208.gappssmtp.com header.s=20221208 header.b=iXBxP50Z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229741AbjHEG5R (ORCPT + 99 others); Sat, 5 Aug 2023 02:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbjHEG5P (ORCPT ); Sat, 5 Aug 2023 02:57:15 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E665E70 for ; Fri, 4 Aug 2023 23:57:14 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-4475df91bb1so1243833137.3 for ; Fri, 04 Aug 2023 23:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20221208.gappssmtp.com; s=20221208; t=1691218633; x=1691823433; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GakJ4004HfKzStoDWvRep5JehYxyKkuk704LbpteieY=; b=iXBxP50Z/hxP49Fr1mP4ijKIdFt/Wca0mrpbiwcgNitt4mM0w/27tDndE7fedOi+fV X8RBY/eFIIrVU0tcQ9uiBw7+rvw7bzf8kgcCLHginYB6tqEfTm6Hmp4EGx4/qYsZrf+b vUfqarqvWrTEH5wemNLD7aGkB1zWAZxLI4HB+4emq7fYwEKSQ6EzliqIFDx8AM8zl5p9 guEdKZZ0/o3Sq4G0XPzmD2VVAD1qd4XsbRr2J+OftEDTAoKUehZeLxpQcHrYPdK1KzIL c/IxVaztYohQe7k8/+dHV/jeLdE6BdKTD/pcBCLgi5TlR70HI0frWYUogaQh+PN5Ch5c nY2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691218633; x=1691823433; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GakJ4004HfKzStoDWvRep5JehYxyKkuk704LbpteieY=; b=cevQ7Q9SktepX2lz3cSaNwhwdraNVfq2eBuAzWvh3G5rHaWEYhTiX2ICKqfCpdEZcz EyOyZpUkTd+IY2xO+orZRyj8DO78T/+jBwvvXb7r394OuwFHh/PUU6H7P+tADSlE/plC ujV3eKRT9UpDFPZAkdpf7nx1Qp9+W6yM9WL7z7XuGM65ZHiHiyebplodzo1xpkKI/tHG 2Bi/g5UpfyjMYkkXUsH7mDDJOuctw1ZevRejqM6zoOmBJS7t3yFFaZz8dsUXN11t+ONn TL0SuXPnkZyFoL1UR6FoEIHNjU9dy0g8lokD/73fplPHpy17Vbgun8gddDN9/7wI3dcE hIvQ== X-Gm-Message-State: AOJu0YxYXO8DkRwf73yfNyH1AVzNsRJ/36CunIE2sWhscmo9X/ir0KUF Y2xSMFJB7hnikdjEGIVhaFJX0jd9ehpc8dwEftpOyA== X-Received: by 2002:a1f:bf0e:0:b0:487:177a:d0f8 with SMTP id p14-20020a1fbf0e000000b00487177ad0f8mr2419082vkf.1.1691218633382; Fri, 04 Aug 2023 23:57:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:6209:0:b0:794:1113:bb24 with HTTP; Fri, 4 Aug 2023 23:57:12 -0700 (PDT) X-Originating-IP: [24.53.241.2] In-Reply-To: References: From: Nick Bowler Date: Sat, 5 Aug 2023 02:57:12 -0400 Message-ID: Subject: Re: PROBLEM: Broken or delayed ethernet on Xilinx ZCU104 since 5.18 (regression) To: "Russell King (Oracle)" Cc: Rob Herring , Saravana Kannan , 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" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 2023-08-04, Russell King (Oracle) wrote: > I think we need to rewind a tad. > > My understanding is that this uses the Cadence macb driver. Correct. > In your original message, you said that the ethernet driver wasn't > being bound to the driver. [...] > So, I think that the deferred probing has nothing to do with PHYs, and > that's just a wild goose chase. > > I think instead we need to be concentrating on what's going on with > the ethernet driver, and why the ethernet driver is deferring its > probe. Is macb_probe() getting called at all? I added some prints to the driver. The macb_probe is called five times on this one device initially at boot, then ten seconds later it is called one last time, returning -EPROBE_DEFER each time. > How far through macb_probe() do we get before we defer? The result is the same for all six calls. The macb_mdiobus_register function returns -EPROBE_DEFER, which comes from the topmost call to of_mdiobus_register within that function. That is, this is the part that returns -EPROBE_DEFER: child = of_get_child_by_name(np, "mdio"); if (child) { int ret = of_mdiobus_register(bp->mii_bus, child); of_node_put(child); return ret; } > I think those are the key questions that need answering. > > Maybe, if you can get access to the machine while the driver is > deferring, /sys/kernel/debug/devices_deferred might give some > useful information, but that's just a hope. This just contains one line: ff0e0000.ethernet which is the name of the ethernet device that is not working. Thanks, Nick