Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp534244pxb; Wed, 3 Mar 2021 09:03:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKFo8YmmOhZsea4sP3KlOhH9xf2Vf4Eu1ewbErgI43P+ALRfloui/GNx5X/1dDCZpJO3RD X-Received: by 2002:a50:ee19:: with SMTP id g25mr182083eds.351.1614791005196; Wed, 03 Mar 2021 09:03:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614791005; cv=none; d=google.com; s=arc-20160816; b=TwZ0wJPbFVGenYi/Eh6zYs+opDkzBczcuMTcIvrPMFJTN7ve1AMcOJvsKZm5Q79JJx WxEU754f4T41inPrB+5KY6oLQ8BSdyI7HNleLbcAyQgHdbdkp1t2MAi2lOTVaQyRYXtB dCLOmy3bJf9VGkKlosXc6ZnV9d3PpvpYx3fLubwF1Pajqf3EGdvzwR7G0eimEk2VHutE h4zOqoZHmJScNKakUbHtlpp5kbxwyhprjlmNiMs7u3LilIA/udJS0m4eZf9gagfCWBtG NayBJrM4d71FIMblauvYqM/c+lz9NO1iGwkqbxA+qILlRmg2mb0Mnh8RNzUIVcbbvVjU avBw== 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=N9dDHIYpA1roTCHDaQqgYbZMXEdk0UrycqKPHJiQk1Y=; b=xUbiq7uQVOmfgY7cBp6txKxh+iN/eNIqdRmCBpWQBER3uRmK7nEsXVU2k9w8SnxOJb 818AgpkEuKzF2eEZmP2NgC7v3E7s0hYqvd0gRxKVSuj8fQhzIm+Yo/C0qEeHwEJ4gxr8 ATZtktYn3IC4DghHmxYZeIVKapwlmIZ/guLnceSEnCFl47D96EKhwNKNn+JU/oqq0VpS Gekvid+ZxLKRfhO8IPoh5wdnZxEXdQhNsiFkPnEbf2kfPfLpu0blzNjd3pJfuFZDlYQs qwkuV7d4kLS0vvDEuTypCiB4s9LJKc3f81GgRO/7IJhfmNz5lsonGFbW0LNTQzgKb8pr na+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RKoY8Cz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si14840632edg.300.2021.03.03.09.01.57; Wed, 03 Mar 2021 09:03:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RKoY8Cz2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1345359AbhCBAkk (ORCPT + 99 others); Mon, 1 Mar 2021 19:40:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:48122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239994AbhCASfN (ORCPT ); Mon, 1 Mar 2021 13:35:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 165A965015; Mon, 1 Mar 2021 17:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614618648; bh=y0uM8dT4BHC+eUDgC+Lr0jtDktjYvd9gt5X7yTLVvfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RKoY8Cz2ljw7upDaFwdjSvycU6i03gmQLRRy9PjKnKMxFku4JzSwO3+jabz7HxGTN eQveYWgDU8OE7dkdQcAWHgCGUQM1kIXiyDfRqKNhnB5/WdtbLZfT0X3C71aPvyPyt9 SAbhy9DXuONUYqsZn7yRVDq87dXigNTIaL8GQWDY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Chevallier , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 134/663] net: mvneta: Remove per-cpu queue mapping for Armada 3700 Date: Mon, 1 Mar 2021 17:06:22 +0100 Message-Id: <20210301161148.382847468@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161141.760350206@linuxfoundation.org> References: <20210301161141.760350206@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Chevallier [ Upstream commit cf9bf871280d9e0a8869d98c2602d29caf69dfa3 ] According to Errata #23 "The per-CPU GbE interrupt is limited to Core 0", we can't use the per-cpu interrupt mechanism on the Armada 3700 familly. This is correctly checked for RSS configuration, but the initial queue mapping is still done by having the queues spread across all the CPUs in the system, both in the init path and in the cpu_hotplug path. Fixes: 2636ac3cc2b4 ("net: mvneta: Add network support for Armada 3700 SoC") Signed-off-by: Maxime Chevallier Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/marvell/mvneta.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index ceb4f27898002..c6b735b305156 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -3409,7 +3409,9 @@ static int mvneta_txq_sw_init(struct mvneta_port *pp, return -ENOMEM; /* Setup XPS mapping */ - if (txq_number > 1) + if (pp->neta_armada3700) + cpu = 0; + else if (txq_number > 1) cpu = txq->id % num_present_cpus(); else cpu = pp->rxq_def % num_present_cpus(); @@ -4187,6 +4189,11 @@ static int mvneta_cpu_online(unsigned int cpu, struct hlist_node *node) node_online); struct mvneta_pcpu_port *port = per_cpu_ptr(pp->ports, cpu); + /* Armada 3700's per-cpu interrupt for mvneta is broken, all interrupts + * are routed to CPU 0, so we don't need all the cpu-hotplug support + */ + if (pp->neta_armada3700) + return 0; spin_lock(&pp->lock); /* -- 2.27.0