Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2991348ybv; Mon, 24 Feb 2020 15:58:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwxIxuJEmoi4APYa0xYpTDdSa4ElOxObBhNZEhquqOFzAR4VBzgEsrro9MvqZBYG0Ns1U78 X-Received: by 2002:a05:6830:138b:: with SMTP id d11mr39874252otq.38.1582588692659; Mon, 24 Feb 2020 15:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582588692; cv=none; d=google.com; s=arc-20160816; b=sGY/+7i+ISaVJwVTvrfOcO5ou+y0PgculLN6mq7dZ+lKoX/GMoP+owfKeqFe8xBiG8 hT+oHEyGLB7iKWD4tdv54pDX4ScyXE1ifdymxmT6YToYgAdcjS9LVNnLMFf1rFuBXM49 jAkj8DwoTae6sDZlZys1gfZhhesGnEvV+RtfzluFTjnn7Fm9oEc7nqc4n7oDx7YYkhrH ZKmldgfwEKHnmmSDHrB+yUpDd1Jd4afK7qAzirfQXG/moILmVipnNg9VXDV9r3O67YE3 oD2w1yUhYQ+Ghz4eo49aRWzDe8xbmLxorqv4h4oSuyatV/bzyJUg7NhbHdLS4ZSn8O3e 1A3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=CqieUl+jBlAbwvJufoMKdaWiCvMyZZmPHn8pxLLM7h8=; b=V0SX9rmBLRB/Ff5xDFi03jC9Z9cr3CBnR78U36RJPiYeSaN7e6vWFR48h5bMyyYj91 cqd6jzSmrESrnl4q769OseiKnyS4Ny0yvUUp76GCKxV5i5V0mqkKw1ORZlFhjcUmTAcT qqQWpViu6OzHfm5WXdcPv/81mrU4l1LLboTzexxXONdrQFErcy/5d04iLqOnkRCbI4wf mElbWnaWXqxgComyuhutAwltrkP/Tb03YUZm1HrvYJ6RwTY6Vh89rxXCW53qlYNZ11I4 IAqhyeMN0mMZO4We/w639JQ0NK/yQ1hGPNaaRaXui8nVUknbVtoMcOZ14nYUlGCOaquy fgzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H4QmnGRq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si6715093oti.291.2020.02.24.15.57.56; Mon, 24 Feb 2020 15:58:12 -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=@gmail.com header.s=20161025 header.b=H4QmnGRq; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728376AbgBXX4k (ORCPT + 99 others); Mon, 24 Feb 2020 18:56:40 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35152 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgBXX4k (ORCPT ); Mon, 24 Feb 2020 18:56:40 -0500 Received: by mail-wm1-f67.google.com with SMTP id m3so1053139wmi.0; Mon, 24 Feb 2020 15:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=CqieUl+jBlAbwvJufoMKdaWiCvMyZZmPHn8pxLLM7h8=; b=H4QmnGRqnIsqApz0w95u5syLy4ZXEp7B6h+/NcX774qJfNa338N4qQ1XN6glS90Ltl s8yf9WcShB47P+eEGXTUPaPVHPKWhhADeb4MnIkXO3xN5S8ETcxiFSsxKWEPZ9smy6ne qXzkhn6EnqqT/d9CCZafOmRvrJB5jKjRloJfNt4NsY4GAhaOVj0KsUbluiKlHZUYuTss N7XFUu1NN7WzBCm5DUaNhZ7H8DKvfsLSw9Vp+JzXc07+EJeGFegHtysQB8sgZ7e199S/ UEqRuhXykIJ6z2qH9B0WUf9Zh0grv7cbwT4T5884KTo/EuA88IAidAjwYwRJOpW0nJVk v4Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CqieUl+jBlAbwvJufoMKdaWiCvMyZZmPHn8pxLLM7h8=; b=CsMP4dLfFcPdh/hEKnMjx7nm0kcac8/2A4msej8b0YCB3IZ3HOPb2pO5kF3RM9WeNL b4MUBUWjdsx8VAMwLgFnhJiqCu0kIIldMOlaHYcvw5Wg/ZNVnZCHUhsYi4KPlgggfZzD 3vitMDzumQp4hHt6SLtd0Y2lhkiUk63yfIxEmPK64I1e3E9IGpuNX98tDgFNi5egKEE2 3QBdsNBRSanauoaDlw2ntxWa38y2G6yd01Awx3Xz1ZGBr3Jy0T4RZ3Y7582BnCs8fkOe V2AJ3pXhMjfIwh0B0iCDyIIhb84N3L1u9/EqIjvwqjnPzTiN3OKJijSZSd9Ha+Tdr2S0 0y6w== X-Gm-Message-State: APjAAAVOFx2agrlg02jia8nvgTclbOJ1DTSq++uQi7y1DpP0jpmXmcSV UykFd3AZqv6pvS9XiU/hJYh7M3oR X-Received: by 2002:a05:600c:1007:: with SMTP id c7mr1419958wmc.158.1582588597682; Mon, 24 Feb 2020 15:56:37 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id d9sm21424459wrx.94.2020.02.24.15.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 15:56:37 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , "David S. Miller" , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net] net: dsa: bcm_sf2: Forcibly configure IMP port for 1Gb/sec Date: Mon, 24 Feb 2020 15:56:32 -0800 Message-Id: <20200224235632.5163-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are still experiencing some packet loss with the existing advanced congestion buffering (ACB) settings with the IMP port configured for 2Gb/sec, so revert to conservative link speeds that do not produce packet loss until this is resolved. Fixes: 8f1880cbe8d0 ("net: dsa: bcm_sf2: Configure IMP port for 2Gb/sec") Fixes: de34d7084edd ("net: dsa: bcm_sf2: Only 7278 supports 2Gb/sec IMP port") Signed-off-by: Florian Fainelli --- drivers/net/dsa/bcm_sf2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index d1955543acd1..b0f5280a83cb 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -69,8 +69,7 @@ static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) /* Force link status for IMP port */ reg = core_readl(priv, offset); reg |= (MII_SW_OR | LINK_STS); - if (priv->type == BCM7278_DEVICE_ID) - reg |= GMII_SPEED_UP_2G; + reg &= ~GMII_SPEED_UP_2G; core_writel(priv, reg, offset); /* Enable Broadcast, Multicast, Unicast forwarding to IMP port */ -- 2.17.1