Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4432811imw; Tue, 19 Jul 2022 06:34:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vnxjFZ9gjRFR83fl6+3JkKwa6MBeKzr4bUZeutrcg9e1I/I/dlouiO6Sw4JOA8FJBXWRdx X-Received: by 2002:a05:6402:e93:b0:43b:6a49:7e88 with SMTP id h19-20020a0564020e9300b0043b6a497e88mr11440683eda.132.1658237678447; Tue, 19 Jul 2022 06:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658237678; cv=none; d=google.com; s=arc-20160816; b=v5f3e/d0pXuJFOFgkvuER8PdWI5WVE4Xp+4elQrn3UpPPAJHFsZc3iM8QWYTEKRRH0 ol273/4lVre7SufK+zJqy5/Kb26vdT7xMk93jGw7M3udm5eNKChOmsRqq5Vz5GAikq8a NmlCaN15dH/F43eqVOWC5NWhmzdtD37PfOJUP+CyBPtn8AZgsGdJ8I9QVRb3IogZrVJY y4WPsq1Li1NFGl4W6xtFlrPa2br+7qJjI87FAwrIGKEFIsEBefHKtxjutgYGMP5D2tif D3naokNlAK7F3/nOVM0pRXTY9BPh/gDcyJ2zYkgYkBbz/ZIZRfwHkbG8DDdocoNiDLS8 c76w== 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=zSMrpjbJl+7JiJgoyZQ0w5TCG6gwO3741hatbPc90Ww=; b=fXKxbAcptszln/i09sVH1dmiY/FfWCy1r4YxxwUo7Mc+7+cvxIEDUWvwCu44JxUmtb fSkplMOst35RA4hlu6n8Aw/eOnhM79kc2ibMNZQ35kXf2CypTdm/kiWaFvq6/XgljsCA Djm4kr80QxEYkrS1r8oP/zOxYi32g+fBGcEsly6gZ6I3ZUo+/roalNDz/G0V4AQ5ao1o FLafLKCSkJoStlN9cTlpxzklYYy94iYAIrdbrVUWy6I34Tz6tCwGMMK7NmbiLC9puRka q1vh6FCWFlntIYfdnc0ZfKUzufS0hrRKfjdZuQWjtxNtRPg/ZlDazX1pqEcIqKxxl4qq GpLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B4AaJe5O; 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 h7-20020a056402280700b0043a88f655efsi16876074ede.300.2022.07.19.06.34.12; Tue, 19 Jul 2022 06:34:38 -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=B4AaJe5O; 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 S238737AbiGSML1 (ORCPT + 99 others); Tue, 19 Jul 2022 08:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238800AbiGSMJm (ORCPT ); Tue, 19 Jul 2022 08:09:42 -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 B4BBB50732; Tue, 19 Jul 2022 05:02:41 -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 D85DBB81B2C; Tue, 19 Jul 2022 12:02:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4052EC341C6; Tue, 19 Jul 2022 12:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232158; bh=abuv2G4a+3kPQ4K/+ciHhydB7EHCOnoXovDGLggx34M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B4AaJe5OcqL2ggjuVk6eFzKPHi9bD+6IWnTd/n+6/fgfK5tOOgP+hgrphl5paL7sy JZL+32UShRp8Cg/4SnLTPG+u8FMTLjncVtQx+daxiyyNVyzIhuuHJ35tvYAnSjeoNk q8U1IfEWsoCs/stlPLcgplmlIqnN0pLYTrBA8yJE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jon Hunter , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.4 25/71] net: stmmac: dwc-qos: Disable split header for Tegra194 Date: Tue, 19 Jul 2022 13:53:48 +0200 Message-Id: <20220719114554.676335939@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114552.477018590@linuxfoundation.org> References: <20220719114552.477018590@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.8 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 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: Jon Hunter [ Upstream commit 029c1c2059e9c4b38f97a06204cdecd10cfbeb8a ] There is a long-standing issue with the Synopsys DWC Ethernet driver for Tegra194 where random system crashes have been observed [0]. The problem occurs when the split header feature is enabled in the stmmac driver. In the bad case, a larger than expected buffer length is received and causes the calculation of the total buffer length to overflow. This results in a very large buffer length that causes the kernel to crash. Why this larger buffer length is received is not clear, however, the feedback from the NVIDIA design team is that the split header feature is not supported for Tegra194. Therefore, disable split header support for Tegra194 to prevent these random crashes from occurring. [0] https://lore.kernel.org/linux-tegra/b0b17697-f23e-8fa5-3757-604a86f3a095@nvidia.com/ Fixes: 67afd6d1cfdf ("net: stmmac: Add Split Header support and enable it in XGMAC cores") Signed-off-by: Jon Hunter Link: https://lore.kernel.org/r/20220706083913.13750-1-jonathanh@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c index dd9967aeda22..0f0094ced776 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c @@ -357,6 +357,7 @@ static void *tegra_eqos_probe(struct platform_device *pdev, data->fix_mac_speed = tegra_eqos_fix_speed; data->init = tegra_eqos_init; data->bsp_priv = eqos; + data->sph_disable = 1; err = tegra_eqos_init(pdev, eqos); if (err < 0) -- 2.35.1