Received: by 10.223.176.46 with SMTP id f43csp277925wra; Tue, 23 Jan 2018 20:54:34 -0800 (PST) X-Google-Smtp-Source: AH8x224r3pIJPKffmWRYLPHXPRRHsaxoX0gFL989YloGAkk6FLzKhSVlAT97r+EQU9TbrUUAUkaA X-Received: by 2002:a17:902:9a9:: with SMTP id 38-v6mr6933674pln.202.1516769674253; Tue, 23 Jan 2018 20:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516769674; cv=none; d=google.com; s=arc-20160816; b=COz8N2EhUvXAC1AyqzBiQLIWtPsLWAjSMerx4/ngkUl3dLujz1qREQEJHmmaPp/p81 uVegyS7ubf6JdOU6Z7kF6jizvdwbFmT/X36/HG4tXlhxHO7GvvsgqqAODmEu2NKYHX1s pcYRB1W1up3q9RTAeJPXCE3DxMbxRwE03+KdVRDPZVJ117Cin5hmuDij/I/iYXpd+4dz WidlzlTQCB5L4dNDLy7TVDsQDcC2o4aAuJbvuHrudwnQSYhIpa2BHlxfGHPrrTOZIjkv 0ptCXzbumRnjAfjG765ab2QsFrgW3VY3+Gqnw5812vJKzXlJJJvS9rLJnYa4+64mhfrp aOAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=YO+C72mwiwLhC2oLWwUXrHbmec9W4lkLJAsLHHeA+zU=; b=OIISrPeNxDY1MPDj9fXijtPcow58+rbEsGC64Vvxvt8za0e2hf8HMD/xhTdACjfO5t PuUX6M8nFCl4N81Em58oJkf7jxccFTshSMl+tg+PZANJPLxrwI3ytXFvdzxALfyI2cma UcDw9EfkReAPUFxoTXWWZqS+sU408p0Xreb9k+8hbSzcu9TrELIIz2oxF6ewDokb95av N+eW3+9wo0pl093edKm/rJ17WzJ5wB/HELlUX3LFd3CUUMZLXvrQEejcvjrfrQeH6Dkj RjO9+fchweMF+ivLFZDvWtKOPza8BxkV+t5xBtTspAzjmMBJWQIoP/hd9KLXVyrMl4Q7 5Low== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=cm6vbZ6l; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x15si15541945pgq.25.2018.01.23.20.54.20; Tue, 23 Jan 2018 20:54:34 -0800 (PST) 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=@microsoft.com header.s=selector1 header.b=cm6vbZ6l; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932608AbeAXEwf (ORCPT + 99 others); Tue, 23 Jan 2018 23:52:35 -0500 Received: from mail-sn1nam01on0105.outbound.protection.outlook.com ([104.47.32.105]:55328 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932445AbeAXEQB (ORCPT ); Tue, 23 Jan 2018 23:16:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YO+C72mwiwLhC2oLWwUXrHbmec9W4lkLJAsLHHeA+zU=; b=cm6vbZ6ljX3u7mb4Excw/tY7G0DD1GtRvfZBA/ZbM9WmxcwIRA6chGvzPt8dU/j0qnDMwfrSM7+BifNQRBedl2zJ9hBjBgZKKHPv1mtazjz9Dm1P+/4b/Z/YF+1xi0ipoShpdjNAq5HEvPFRx4hUGRTdDTwYcnspPAOtJ5j3ups= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1015.namprd21.prod.outlook.com (52.132.133.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.464.0; Wed, 24 Jan 2018 04:15:55 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::6485:b98:d15e:9da7%2]) with mapi id 15.20.0464.000; Wed, 24 Jan 2018 04:15:55 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Yan Markman , Antoine Tenart , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 066/100] net: mvpp2: do not disable GMAC padding Thread-Topic: [PATCH AUTOSEL for 4.14 066/100] net: mvpp2: do not disable GMAC padding Thread-Index: AQHTlMnlypYpRLWKrkaFUh9/HxHEpw== Date: Wed, 24 Jan 2018 04:14:58 +0000 Message-ID: <20180124041414.32065-66-alexander.levin@microsoft.com> References: <20180124041414.32065-1-alexander.levin@microsoft.com> In-Reply-To: <20180124041414.32065-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1015;6:ym4nGzZUT1BjolohQkNKVhyjhzYznJpBA20QN666Txag4HGXqn6KYIK6Ij1P/KU/aDk6dQH7XQwfHqrbgR3NdbiQPQ4buJ61XtpzXOOYtA+/B0SoVV31O0yWwKcPoBO5nqULxCHc2k4AZmw0ltaOrWzST4bI1XT2ZUpyhmjlk70kB5A/OPh1Rc8yNeZv0uRfASCvbd6S5+4gsaeLrWO7aFVNA/jcygqSXaifVBjAo0xIgfCVOXEB/4tRnZ/mPgFR3IWOL7X6UrNcY673R+sC+SolfltmxlLKBFIfksu8GRbBtdc7Xoe2pbe1Hv/O9QAFboSl6Ex6O0jsTBKz2V0r8JdMOjsKb9DHgvc4ugdojY+sjynlweSFf8jBpcnk4jR5;5:SKRAk6ln1C34redAQjZH1gfnHb9OKU3wtyzQABVjkdeQLqkD8cBMcP5kXlOvBtZS2dwnsZyFQASS+9Bjlw9XQF3wX9VTOU2fKs+BPYU5O1uOQPFgSinLpRsUVF7wXLqZqeWjE4+Gkg6eMZynFkFcAPbH6WpE+wD7q2goehNiMgY=;24:Xpm5JqinCmVlkNN1mkzs0kYM7+0nuzvsHelArJ2peWH9PURsf1R0I/tJ9Ujy6MFQk7dG9CzMrlLPaQ3HxzNrtCmJvtE8O42AbJxO+BI2kuE=;7:V7ujyFo/azHLZOzae0QxZ/OJ1KbZ8fRr943UJGbNqjNQI5sxigpuiYqzMQG9xLmBxl/UgX0f7JriTixp+nEoiL07lPemza7hFwEgshJBUpbWWK24ZaHU3EBPfkHIhz+doOuGuP3zydilEpPzPV61vAwXbVXnJgThz3McekDZzbOpHXfWEkysGwqL85hTDQ3mOs3JNcm9PgI3uavgyXDyu/XuVvntdpOgNEnG4Tm/YKSf4xsmrFtJo/0iy3C8T9o0 x-ms-office365-filtering-correlation-id: f94905fc-361a-4d19-e1d7-08d562e129d0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603307)(7193020);SRVR:DM5PR2101MB1015; x-ms-traffictypediagnostic: DM5PR2101MB1015: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(58145275503218); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231046)(2400081)(944501161)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1015;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1015; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(376002)(366004)(39860400002)(346002)(199004)(189003)(478600001)(106356001)(6512007)(53936002)(2900100001)(36756003)(102836004)(2950100002)(2501003)(10290500003)(97736004)(14454004)(81166006)(72206003)(8936002)(6486002)(1076002)(10090500001)(6346003)(26005)(54906003)(4326008)(575784001)(76176011)(99286004)(86362001)(3660700001)(105586002)(6116002)(8676002)(68736007)(22452003)(66066001)(25786009)(6506007)(5660300001)(305945005)(59450400001)(7736002)(3280700002)(5250100002)(2906002)(107886003)(86612001)(6436002)(316002)(81156014)(3846002)(110136005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1015;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-message-info: t4F49k9aZ7Xxt2x2fIKvVuWVk15JP+FRRwsrUNWgzb3GQMjE5bswzZ58B4TPmUHUh6W17Qy1EMHgA5oRYbIv5Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: f94905fc-361a-4d19-e1d7-08d562e129d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 04:14:58.6040 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yan Markman [ Upstream commit e749aca84b10f3987b2ee1f76e0c7d8aacc5653c ] Short fragmented packets may never be sent by the hardware when padding is disabled. This patch stop modifying the GMAC padding bits, to leave them to their reset value (disabled). Fixes: 3919357fb0bb ("net: mvpp2: initialize the GMAC when using a port") Signed-off-by: Yan Markman [Antoine: commit message] Signed-off-by: Antoine Tenart Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/mvpp2.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/ma= rvell/mvpp2.c index 8044cfb0b667..1dd3a1264a53 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -4552,11 +4552,6 @@ static void mvpp2_port_mii_gmac_configure_mode(struc= t mvpp2_port *port) MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE; val &=3D ~MVPP22_CTRL4_EXT_PIN_GMII_SEL; writel(val, port->base + MVPP22_GMAC_CTRL_4_REG); - - val =3D readl(port->base + MVPP2_GMAC_CTRL_2_REG); - val |=3D MVPP2_GMAC_DISABLE_PADDING; - val &=3D ~MVPP2_GMAC_FLOW_CTRL_MASK; - writel(val, port->base + MVPP2_GMAC_CTRL_2_REG); } else if (phy_interface_mode_is_rgmii(port->phy_interface)) { val =3D readl(port->base + MVPP22_GMAC_CTRL_4_REG); val |=3D MVPP22_CTRL4_EXT_PIN_GMII_SEL | @@ -4564,10 +4559,6 @@ static void mvpp2_port_mii_gmac_configure_mode(struc= t mvpp2_port *port) MVPP22_CTRL4_QSGMII_BYPASS_ACTIVE; val &=3D ~MVPP22_CTRL4_DP_CLK_SEL; writel(val, port->base + MVPP22_GMAC_CTRL_4_REG); - - val =3D readl(port->base + MVPP2_GMAC_CTRL_2_REG); - val &=3D ~MVPP2_GMAC_DISABLE_PADDING; - writel(val, port->base + MVPP2_GMAC_CTRL_2_REG); } =20 /* The port is connected to a copper PHY */ --=20 2.11.0