Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10239496rwb; Fri, 25 Nov 2022 02:39:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf7th7sWTSDuLHNPp7vI9qZPHt6fNgLOovIS70A/LfyiP8wupUYezKjS0qkNr07n4zcaoJvK X-Received: by 2002:a17:907:9c0a:b0:7ae:1e53:8dd4 with SMTP id ld10-20020a1709079c0a00b007ae1e538dd4mr30797321ejc.42.1669372750648; Fri, 25 Nov 2022 02:39:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669372750; cv=none; d=google.com; s=arc-20160816; b=amvDfrU5MLh1omsev0aVsxdJcWSAesskMTpwVgPae4DdxPR1JtZOtgiAR47jvQrr/G hrC3QjJUQCZXsrmqjjX4Js/LxAFQuTT+B/YprDN1+BeUxXp5ASSZXRLvPw9/jRGoJ5ZH +n+THBdfY+nl3Wa3PNUoc4Ur/t906zgcqfL/2gIY6qICyl+NbpD29HR6jIHR1KDihdUb 5OYGGsqTPWy4tEhfWbIa7f+0uMddoTtdVuwKpbWdETav6hnm+RZJbQKkFPssWzjCJ4QB vGIv7X6XyHH1tEJwKX+PUUBlvBscnswZ0tb1aHZs73IPe0qPBszHBz+uEk5XF6BhQf+o RtEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=sWYE/iIwCBvIU0xfDNveElelu0+FYSafuJcobyMBNYw=; b=gm+blGY0P2fuz+Vgb4ESmLGB7SUY2+Uiz0Nfwdg+4csQhTyS41jaWMamW7ppuMCwCw rTQif3pQQcH/7psz42XIrkUyz1RT7LZo21V/9bQoyRF14xNFQBPwnrS/KJDXP1Us6/W5 1pc4Tp8SKbJKu7i6M6YAw3/nuvV80DKv4/IbHDsG4gi8tcww7JB4owBcYudRcM3huXKj KFIAmu6MhXLmK62WRFeo6BWrkoy3RdRUuqiMdm+RlWpK+2CZPfro0LyIfx6g67VyacCM lGUGEbqiESc3JL0J1UAbgllY1IMqldaf5QqUHLiZ4FHrMVc1qBENRLPqyJKD0qNWo62b YxSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=C+oiFxD0; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="wiDYy/Yy"; 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 d12-20020a170906640c00b007ae545e330dsi2460442ejm.210.2022.11.25.02.38.49; Fri, 25 Nov 2022 02:39:10 -0800 (PST) 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=@arndb.de header.s=fm3 header.b=C+oiFxD0; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="wiDYy/Yy"; 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 S229755AbiKYKCt (ORCPT + 86 others); Fri, 25 Nov 2022 05:02:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKYKCr (ORCPT ); Fri, 25 Nov 2022 05:02:47 -0500 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D20FB4B4; Fri, 25 Nov 2022 02:02:45 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 709865C009B; Fri, 25 Nov 2022 05:02:42 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Fri, 25 Nov 2022 05:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1669370562; x=1669456962; bh=sWYE/iIwCB vIU0xfDNveElelu0+FYSafuJcobyMBNYw=; b=C+oiFxD0ZqCbkXOpvygFUOnO7O bSJ+1QmD2EvTApYfH8/4uFWWcAKR5NhzDD92jb1q/mfnXbgXVecsdwHhfmwMxrq4 ck/yh1BktL/NvzprB0boZ7L+MdUJ4lHwQdbplWZch5+fj55xPnMEiTaLe1yLtWDd YI57gzoGLDpg0LxV8i1Uk7zOb7R4qBB+3lVxSDbHOEm8Ueo+M/n/NLI38aE097d0 aVmQc0WvWNQd7NE+t682JUReleLk9AYeaiF+Hi1AkbVkQavZH0jAI2eu7P1Wnx6g OX/qm8v75+kYVyEsTtt8aTuNdVGyimhauGE3F+BQrnOjsd7oKwSfsSPL2+Fg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669370562; x=1669456962; bh=sWYE/iIwCBvIU0xfDNveElelu0+F YSafuJcobyMBNYw=; b=wiDYy/YysHRfab9xMajQeRyxikkuhZyszOQkwwJdYfdU UgwqobLJ5xNIugL3Mbwmk5C2VK49S5hkADKoWu3uq6Yv8W276VzDWGFE18wgZeRJ x5tL2bQu+F5RlDKCvmboVcFt6Eebbtkc74+Ehidm5Qx9o0SYG+cxg3tkZvxhFVnj YgzE4fatoIir0zPxEaisi1/Y8gUnLfzTVuzXJfp16fsnyfEAzKo6yYMORCrM1+Lg AoE0SjAN4nrLfODbVq82Ew+3GxBkCLVZ/xBWeKa1jJSmScYNJTf9gEwQFP627cJ5 LswIJqcVvssBJA+bbohMghGyfwsgLgrftdwp7PRMAg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieehgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5993FB60086; Fri, 25 Nov 2022 05:02:40 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20221123084557.945845710@linuxfoundation.org> Date: Fri, 25 Nov 2022 11:02:19 +0100 From: "Arnd Bergmann" To: "Naresh Kamboju" , "Greg Kroah-Hartman" , YueHaibing Cc: stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, "Linus Torvalds" , "Andrew Morton" , "Guenter Roeck" , shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, "Pavel Machek" , "Jon Hunter" , "Florian Fainelli" , "Sudip Mukherjee" , srw@sladewatkins.net, rwarsow@gmx.de, Netdev , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , =?UTF-8?Q?Daniel_D=C3=ADaz?= Subject: Re: [PATCH 5.10 000/149] 5.10.156-rc1 review Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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, Nov 25, 2022, at 09:05, Naresh Kamboju wrote: > On Fri, 25 Nov 2022 at 12:57, Greg Kroah-Hartman wrote: >> On Thu, Nov 24, 2022 at 09:17:36PM +0530, Naresh Kamboju wrote: >> > >> > Daniel bisected this reported problem and found the first bad commit, >> > >> > YueHaibing >> > net: broadcom: Fix BCMGENET Kconfig >> >> But that is in 5.10.155, 5.15.79, 6.0.9, and 6.1-rc5. It is not new to >> this -rc release. > > It started from 5.10.155 and this is only seen on 5.10 and other > branches 5.15, 6.0 and mainline are looking good. I think the original patch is wrong and should be fixed upstream. The backported patch in question is a one-line Kconfig change doing diff --git a/drivers/net/ethernet/broadcom/Kconfig b/drivers/net/ethernet/broadcom/Kconfig index f4e1ca68d831..55dfdb34e37b 100644 --- a/drivers/net/ethernet/broadcom/Kconfig +++ b/drivers/net/ethernet/broadcom/Kconfig @@ -77,7 +77,7 @@ config BCMGENET select BCM7XXX_PHY select MDIO_BCM_UNIMAC select DIMLIB - select BROADCOM_PHY if ARCH_BCM2835 + select BROADCOM_PHY if (ARCH_BCM2835 && PTP_1588_CLOCK_OPTIONAL) help This driver supports the built-in Ethernet MACs found in the Broadcom BCM7xxx Set Top Box family chipset. which fixes the build on kernels that contain 99addbe31f55 ("net: broadcom: Select BROADCOM_PHY for BCMGENET") and enable BCMGENET=y but PTP_1588_CLOCK_OPTIONAL=m, which otherwise leads to a link failure. The patch unfortunately solves it by replacing it with a runtime failure by no longer linking in the PHY driver (as found by Naresh). I think the correct fix would be to propagate the dependency down to BCMGENET: diff --git a/drivers/net/ethernet/broadcom/Kconfig b/drivers/net/ethernet/broadcom/Kconfig index f4e1ca68d831..f4ca0c6c0f51 100644 --- a/drivers/net/ethernet/broadcom/Kconfig +++ b/drivers/net/ethernet/broadcom/Kconfig @@ -71,6 +71,7 @@ config BCM63XX_ENET config BCMGENET tristate "Broadcom GENET internal MAC support" depends on HAS_IOMEM + depends on PTP_1588_CLOCK_OPTIONAL || !ARCH_BCM2835 select MII select PHYLIB select FIXED_PHY With this change, the broken config is no longer possible, instead forcing BCMGENET to be =m when building for ARCH_BCM2835 with PTP_1588_CLOCK=m. Arnd