Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2258782imm; Thu, 18 Oct 2018 11:32:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Iw/aFzEMe+BL59KYPbI4LzYtHaPvBoHIFcRAszVCem8HdfVKmG3IaAYcLEuyoErQQgD6Y X-Received: by 2002:a62:a50d:: with SMTP id v13-v6mr31336485pfm.18.1539887569349; Thu, 18 Oct 2018 11:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539887569; cv=none; d=google.com; s=arc-20160816; b=z89/bx11aUh3aDC/uJGQPq7UXjlWkYtEcgKeigeyFKXxNdm087hEPmYpkrluFzy+e2 RfWeAJ6FHx/7Ha4N//R3YHi7jh5SW+ODscQz0+znHM0IDrwQ/At3NCJk4VqGV5+EibYV lcBq3sUoRBiWy3UEGrHWVEh3pjD68x2NRIFDy7lJNM/a/PwNC9qQjtJqCgpxa6Ywyex3 gTb0lVitIgCCRsQjU8E1Rf29Xg75Rv57imScbnDqaFr/9S4OhdN7F14z9eeEvFHWyygh /D6g5lQi6TFuoqSaDgDSVX6WFFxIeIAConcOSjNdpvGZzdVeQXiJI3uwhYw22NX7Nm9k cWHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7PihD2eog1qpq87zvgjacjqiuceGaCQ65eaNvGD0L9Y=; b=MUiSVJsV0v5bADlobKpzbNHE7yDbEAfCZ+jhNL3i0X6HbGiJpJH1rtkv3Z2LhW7nvp FWsLPPSOzeD/pQoiAtpcC7NdozhAHEwKxl6rCZccMzs8E7MjJkWiEGEh03+iQuIdHIqI 3wM9neSckVnLOqaP3btDh+DdsKUt3V5klDCDBPuon6Dghz3Vl94f4hDl2MOWfp7A1QjZ cYd8KrkE+WvA9m3lJXwqqptgO4om97tOsx99KcvC90C3s3tkOsu+l4jFsYhssMeztlbV +eT3rwmTf2T4zOTPCOXHLamVCCkk3fRhOY75An/78RyjmaTSLUsMJjyktm8RAQ4srtnO 72bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fM8yO/Yd"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay1-v6si20674876plb.410.2018.10.18.11.32.33; Thu, 18 Oct 2018 11:32:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fM8yO/Yd"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730482AbeJSCIg (ORCPT + 99 others); Thu, 18 Oct 2018 22:08:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:57688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbeJSCIf (ORCPT ); Thu, 18 Oct 2018 22:08:35 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A585121476; Thu, 18 Oct 2018 18:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539885988; bh=j/JtuT//iQ6yLnXRNmIF3i9sGv/0xEZNK+TvCs+foVw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fM8yO/YdXXhbCaHyw6qYmYjj+NQbcOA93xoxXilb3FO1i8vsADN8n1Z+MvTemkHev 5YZKER0UfojtYm8emimpZ039sC0T3JxAIbtszpTWmxDsaq4RyOX2Is8uy1k8Zf0tnh pdauQzyDw93LBiD14MA08WSatCQjdy2axvSUM3tI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Ferre , "David S. Miller" , Sasha Levin Subject: [PATCH 4.4 07/48] net: macb: disable scatter-gather for macb on sama5d3 Date: Thu, 18 Oct 2018 19:54:42 +0200 Message-Id: <20181018175428.298908222@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181018175427.133690306@linuxfoundation.org> References: <20181018175427.133690306@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nicolas Ferre [ Upstream commit eb4ed8e2d7fecb5f40db38e4498b9ee23cddf196 ] Create a new configuration for the sama5d3-macb new compatibility string. This configuration disables scatter-gather because we experienced lock down of the macb interface of this particular SoC under very high load. Signed-off-by: Nicolas Ferre Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/cadence/macb.c | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -2743,6 +2743,13 @@ static const struct macb_config at91sam9 .init = macb_init, }; +static const struct macb_config sama5d3macb_config = { + .caps = MACB_CAPS_SG_DISABLED + | MACB_CAPS_USRIO_HAS_CLKEN | MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII, + .clk_init = macb_clk_init, + .init = macb_init, +}; + static const struct macb_config pc302gem_config = { .caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE, .dma_burst_length = 16, @@ -2801,6 +2808,7 @@ static const struct of_device_id macb_dt { .compatible = "cdns,gem", .data = &pc302gem_config }, { .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config }, { .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config }, + { .compatible = "atmel,sama5d3-macb", .data = &sama5d3macb_config }, { .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config }, { .compatible = "cdns,at91rm9200-emac", .data = &emac_config }, { .compatible = "cdns,emac", .data = &emac_config },