Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3785590pxb; Tue, 19 Apr 2022 09:46:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzk0lryuaegrSOxY0fbSNrppD90PjcjCnHvR/gzNSOsHXIF+luuSqYns9z1d/ixXK+hpCv X-Received: by 2002:a63:1b5e:0:b0:3aa:593c:9392 with SMTP id b30-20020a631b5e000000b003aa593c9392mr524145pgm.470.1650386773391; Tue, 19 Apr 2022 09:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650386773; cv=none; d=google.com; s=arc-20160816; b=lz5ghkKnkXAYgEw5mSzqCPu76dO7LlRa3I8o+o+MUalGd6zA3CyauzLvYdjjslSN4j L0bu16uxVNIhh34fkZQMrVN0L98WdLWXpmzwdV7tJoJGm3oL/jzfoyYBMQQo7DQ2xtci mbeYQ1YZPdzwLZqk+FRI09KAT9oPalu34qNB9tlXvXPmPGuF//GzcnjNjZdsE943jPV3 XkcBa37wOVlxmLMJt3crUt8yW8ZHBvJ+vbEmdULUiXn3hoo4bimPIwiflPWIsIOxOiq7 VrXLXfmgIBQ9iHtSF5MPyEUnRptBktTu6fmUrX0edAoV2SuZrDMguvUAD+kTxQ2HM8Ed aJ1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bKmUDM3BIJw2swuXeqQ4OPcwFwK6k6599k8T87wfAgE=; b=GFvyzkOChusyePboefA1w2e3VlUOo9M7SuvCnoO9SCp1PVnXO4sj11GGVrtRTf3VAO rH4NCsmQLPfFIfYGkVD8Qj+X4EQrrdgRYpGcAJ0c3Klpql+w9o1UAmMI3qDKSNZppbRs 6+3AUuM2mrUYXkEmEaZQF5yuYGxGq3q3TslT3XSbVRJHoSUEALSV8xAGjJU39CkrmO0k WJtpx9Ot7xG1nh0vN/0wQIhURxewoPPIAh6DALwNWnlS+38WpxdbvjzdcKybrMaDd9Ni b/8eff4GncdlYU1ly3xKIQM8vXp+5eUAugRBMg6MhnnBWZU/ICuki8xXxkcA0fxOVOh6 /CYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C6Kuo9O6; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a639348000000b003a99c678853si7529752pgm.590.2022.04.19.09.45.57; Tue, 19 Apr 2022 09:46:13 -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=@linuxfoundation.org header.s=korg header.b=C6Kuo9O6; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235984AbiDRMae (ORCPT + 99 others); Mon, 18 Apr 2022 08:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239029AbiDRM1k (ORCPT ); Mon, 18 Apr 2022 08:27:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CC481EAC0; Mon, 18 Apr 2022 05:21:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 28A2BB80EDA; Mon, 18 Apr 2022 12:21:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E8DCC385A8; Mon, 18 Apr 2022 12:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284469; bh=cFl5lG2Pg2Qjf6ZNnxY9+UwfUX2+53t0n2KYI4zhjVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C6Kuo9O6hq9R5GCGrucJi0GwyekRfBD8Y2sHQdo6qQYg8z63dnq5PFQAaRz4GyX8K 4olcjdk3DLH34BgIjwKQ1gChas8hDsIe7w7lRQdNqy+7UXO6P3Qe3cfZ/GC/B3mSxl /Ydy3HDHIxhpvCA65cCDPRhscG/dh+2q0W6LjpEA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeremy Linton , Florian Fainelli , Paolo Abeni , Sasha Levin Subject: [PATCH 5.17 125/219] net: bcmgenet: Revert "Use stronger register read/writes to assure ordering" Date: Mon, 18 Apr 2022 14:11:34 +0200 Message-Id: <20220418121210.396217125@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Jeremy Linton [ Upstream commit 2df3fc4a84e917a422935cc5bae18f43f9955d31 ] It turns out after digging deeper into this bug, that it was being triggered by GCC12 failing to call the bcmgenet_enable_dma() routine. Given that a gcc12 fix has been merged [1] and the genet driver now works properly when built with gcc12, this commit should be reverted. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105160 https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=aabb9a261ef060cf24fd626713f1d7d9df81aa57 Fixes: 8d3ea3d402db ("net: bcmgenet: Use stronger register read/writes to assure ordering") Signed-off-by: Jeremy Linton Acked-by: Florian Fainelli Link: https://lore.kernel.org/r/20220412210420.1129430-1-jeremy.linton@arm.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index bd5998012a87..2da804f84b48 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -76,7 +76,7 @@ static inline void bcmgenet_writel(u32 value, void __iomem *offset) if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) __raw_writel(value, offset); else - writel(value, offset); + writel_relaxed(value, offset); } static inline u32 bcmgenet_readl(void __iomem *offset) @@ -84,7 +84,7 @@ static inline u32 bcmgenet_readl(void __iomem *offset) if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) return __raw_readl(offset); else - return readl(offset); + return readl_relaxed(offset); } static inline void dmadesc_set_length_status(struct bcmgenet_priv *priv, -- 2.35.1