Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5452904imm; Tue, 16 Oct 2018 10:26:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV60IIGe/S7AH7zvw32xle5eK8bUAxskhm/bRWTMh3OeCzBLrH6H+LfSxB9j5f9hV5r8obnF0 X-Received: by 2002:a17:902:6102:: with SMTP id t2-v6mr21740823plj.278.1539710785042; Tue, 16 Oct 2018 10:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710785; cv=none; d=google.com; s=arc-20160816; b=fh47OF4lO6yi3sUWoXRek/5N2hRM7FWAfBr9TEb5Gtt7ffFgdpYO6f1CwSUcoTiuM8 jj0IQMUEixecl/zyUYD4iAUEcdRje0xortbT8A1CZyusJPNLvC6SHiVcwcd2tZjC7AGx 7yDlx6EP2Ne8BLt9huRBRprtjt5M6YwaV1Og5cbX6uUNo/syNJkU/qqVg1ZKhQk8H5x6 twXEqAdDs0ydmtBB3EN392QPXPcHf6Unn7nmVoOA0pEbN07lrU7nsCs3E1feGUBLMw8q Qv8Ae2JeS8n25k4Jfow7e1HztuUMyPqLPpiePwOH5qzRi9xxDfQUBa9xhsG3DD28lUsA h3WA== 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=Mc1RYaaQwu3O6OSXllRNL95Sy4whJ5/L/gXnJlOrvXM=; b=QKScLeJnfVzvAeFnGsBqtu2A96f15hsMxlx1Jo99klSnDwjtHbeqFebAVHqO9wQ9sN m0+tHUO2AwflxvUT5Lpv03Ukw4WdTttpfTiQCwn+EY71j1cECP+iXpftm10G14wrMom9 /1XqSdixKZYniZBzJqizdIX9ixcrVguY9MoRdxaZDRRPZDFJQ1l0kZsJy1vWt0g52kMY hDUHqTEDYtXhaBnZqHUfpr0y8ei4vy3CPDsWHSZNonq2n68YKOAarQj4rjaNVJuv97Ho z9S9gBsV7pq5pq+t9oKlYwJ8GBd6K9hL8daamGGuHQDPYz83CLAuSljaTgA9gm2te6fX itTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cKbfd1Ca; 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 m37-v6si15009881plg.228.2018.10.16.10.26.08; Tue, 16 Oct 2018 10:26:25 -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=cKbfd1Ca; 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 S1731703AbeJQBP4 (ORCPT + 99 others); Tue, 16 Oct 2018 21:15:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:34606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbeJQBP4 (ORCPT ); Tue, 16 Oct 2018 21:15:56 -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 BF8C020866; Tue, 16 Oct 2018 17:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710670; bh=y9QUlj5XxsY8qGJo2N13+KepIDvXMcNxryrJ/Yv7lFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cKbfd1CanfB7s9ExE/lj1+VK3UY4OKaUyQzebxPRL7tbPabgIrC0c7lpEJMOmo9z2 P6RGPuvxfOxM4dPD68NLmEwAqG63WrPtT/gsd6ObWn3ZrtHrLKgQFJI+VyAPEAtbNu M+dUF0xspXPR+47Mj3wDOTaYzyozBBUeI2Wxnz0s= 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.9 10/71] net: macb: disable scatter-gather for macb on sama5d3 Date: Tue, 16 Oct 2018 19:09:07 +0200 Message-Id: <20181016170539.923289281@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@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.9-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 @@ -2861,6 +2861,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, @@ -2925,6 +2932,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 },