From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E12B5145B07; Thu, 11 Apr 2024 10:08:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712830082; cv=none; b=jNv+F+SVx8GZGtTc77ANcyu/nz8u86Jqr6jgQk0ozRA4xCA9i5NV/us2kLbyi9FkxzVciIIo3lz4eR6Tfk8OyHyoDDjwmgVF+WQUzIMuo0T9KofHKHwLZtQ4lqGxMoWSPsGpLRf5rEBfWQ4v4otc9RhnN6IT8Z//X5QhipGN1t8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712830082; c=relaxed/simple; bh=jTJJlW2VilnMqez2ByoC4imH4qJd95H16MhYewezftg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C8qc/sjMWsJIOneWJqX2gHBdRqMysbWeVRViOLK3r9qw98gfGBI/mOxpTuAYes/QxfkjBbcI2JaV3GNOaEiTNyV00u+vzkBk3m/kqEKXj10Q5FCs7M8zTIwPc7rsdbdFz9iZEPfWLQbmUIrk2pFbUKkmwEQGQ21/L+4rS2gCKqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gcHq/Kuv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gcHq/Kuv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12D4BC433C7; Thu, 11 Apr 2024 10:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712830081; bh=jTJJlW2VilnMqez2ByoC4imH4qJd95H16MhYewezftg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gcHq/Kuv/0z+qagDpjjljpIy4+nzcsPUUvi4R443mu/+aOZmJqgCi4ccRubwm1s8r OOqYuV9YfLSSY/MDDoCmPOMRjWCX40ubz8pZDtkm0tgdARjbMh+2RRUVJBe9/VgnUr 0o6X8nO5VtL1beSYJd7KqMcHOlRIT55mecXh9xFw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shannon Nelson , Brett Creeley , Jacob Keller , "David S. Miller" , Sasha Levin Subject: [PATCH 6.8 029/143] ionic: set adminq irq affinity Date: Thu, 11 Apr 2024 11:54:57 +0200 Message-ID: <20240411095421.789490490@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240411095420.903937140@linuxfoundation.org> References: <20240411095420.903937140@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shannon Nelson [ Upstream commit c699f35d658f3c21b69ed24e64b2ea26381e941d ] We claim to have the AdminQ on our irq0 and thus cpu id 0, but we need to be sure we set the affinity hint to try to keep it there. Signed-off-by: Shannon Nelson Reviewed-by: Brett Creeley Reviewed-by: Jacob Keller Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.c b/drivers/net/ethernet/pensando/ionic/ionic_lif.c index fcb44ceeb6aa5..44d30115ded13 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.c @@ -3391,9 +3391,12 @@ static int ionic_lif_adminq_init(struct ionic_lif *lif) napi_enable(&qcq->napi); - if (qcq->flags & IONIC_QCQ_F_INTR) + if (qcq->flags & IONIC_QCQ_F_INTR) { + irq_set_affinity_hint(qcq->intr.vector, + &qcq->intr.affinity_mask); ionic_intr_mask(idev->intr_ctrl, qcq->intr.index, IONIC_INTR_MASK_CLEAR); + } qcq->flags |= IONIC_QCQ_F_INITED; -- 2.43.0