Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4449495imw; Tue, 19 Jul 2022 06:52:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQ5fZzqRRzcvrr7hy3lnxudfTJlCeKMb0ePKRAsEWzvV/YYJeeAl15Bqu6yvXxbCgOW3OE X-Received: by 2002:a05:6402:430a:b0:43a:9ece:d6f8 with SMTP id m10-20020a056402430a00b0043a9eced6f8mr44260884edc.361.1658238757276; Tue, 19 Jul 2022 06:52:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238757; cv=none; d=google.com; s=arc-20160816; b=HJ/A/XAs+RSixH+sFUQUuIuslyGMOR8M2xL6V1X6EN96UxeE7iKOEmrlmYt9Biq3rL rTVY2i75Npn6YjxGD5/W7GEBwWSGp6fLlgzeVJagzwzsNGVcIK0W1M4gHVGQqcSgYPq1 UkuU369Uj06c+2eGMXv19SlmnaF0Cf4vXSw79XdgGwhJjroLc0mm9XS/+dnCZO2xXdlJ JHE+03J+NjythGzv+v8k36EQh0g9jhkBHmSbgs4eD7Jn6gxFnj363jxVQlcRFi018OOV cVnnbQMbpRXRYZu+fdEuegU2nZn73ShlTCrn4jx5hXwraOzdxVc60olBl+4xGq4xOLtt mzDA== 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=LkJPfIhsRzC67H03q2Qvh7zrFXz79Pl0gew7QOJ1ZGQ=; b=mY3VpmY4Rlckxdv8PrnFGffdCePGl1VzXK9ra37X1Y1iMvrCGlqVzMe0VXcdf0t633 a8qjYepANWlWgDQSPWVXkLbzJ8dR7aQ9wS7SoJyi9glMZco1Qil1MXZp7jgYoOwzHn0c OYzgT7aJxz+aRz0hGFSxlSbMm4XWeOCMwakChp84y/JDVMhTagXgcHhl7s30+9AT1NIs pp1jCB2M8DQ2Ta677EwJ3LOLkZgDjoCXdx1lHBDfPDNCLU3H3O/L9dl8f98SRC1ATWKB btmPoDMccbL+LgsJnfNEx4a6GuJc8kOB3kj6rixR/U8uegBzA+9NSAAJ15rr0v/Ti7OJ B6Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Gl6RKx86; 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 x10-20020a05640226ca00b0043a66b4e28fsi23366903edd.377.2022.07.19.06.52.12; Tue, 19 Jul 2022 06:52:37 -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=Gl6RKx86; 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 S239461AbiGSMTR (ORCPT + 99 others); Tue, 19 Jul 2022 08:19:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238655AbiGSMRO (ORCPT ); Tue, 19 Jul 2022 08:17:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F08C9564E8; Tue, 19 Jul 2022 05:06:33 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DC3FA61764; Tue, 19 Jul 2022 12:06:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA9EFC341CA; Tue, 19 Jul 2022 12:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232392; bh=hqZHr9AFycMkemc5LZ4XJPWtp9VZEGQgL46fSDiJWYU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gl6RKx86NEWwpYatVjm7nV+WrLMO89wOje3DWdynUZbAybRVGX2pastTb2wBWy25B dH9WzgyEYGRLx91LjFAfzWttIDs1ximdnZnKusP7pdDCa49a4Wb9J/bpzoqYJofP+V X3+63XwG3IsQGTTflqhruTrbkMvkpXR2bBpKMzBo= 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.10 041/112] net: stmmac: dwc-qos: Disable split header for Tegra194 Date: Tue, 19 Jul 2022 13:53:34 +0200 Message-Id: <20220719114630.320761159@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@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 2342d497348e..fd1b0cc6b5fa 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c @@ -363,6 +363,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