Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp530236lqo; Fri, 10 May 2024 07:15:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjb+amyGbyd/9vQsFEYHBKlszgHlaA9l5E5vGF3D9TtdnvmNqHEqUazwsFASLJZj5FqTUpajzEKRitWwgFOhuvIYAUCST2bEwXWqpZvw== X-Google-Smtp-Source: AGHT+IFE0himx6HYwe8FrQJhf+2Pic33P5g9zA0FWQ7pzLWTRn6Zyec1ECwAZc8tvyEO7NAOUWB4 X-Received: by 2002:a05:6830:44f:b0:6f0:e8fe:8a2c with SMTP id 46e09a7af769-6f0e92c8e2cmr3112053a34.26.1715350541897; Fri, 10 May 2024 07:15:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715350541; cv=pass; d=google.com; s=arc-20160816; b=mJ1DxJue3UK/eTmgca/v7J6lhHUxxnieFNvybeRG0D/6cIhl1498LXN5yYIwNCy/QD l7yL6RlwUFUU5ZheLvByKx0xR7mAyDIqpoprA+wz2cCgbePD4pguZ53o9HIbovMpNbTY 3ACoG6lLjPuPvus8c2HzSWLLQ/YrIw8sZgV3Xs3CvCXPBQJ4K7DOosLIRqqwbWAtaQHZ CRPuGN9bp3l0Dd71vJw9DaA29/oQS39mZB8nXqDhM4yPdSoTsb1AgA6hbnY7/0ydIaEK xVdSSHXMGScViQ0u0IKsyUw41SSU1HTgmLnp2nbgybQjTP96oSP7IJK0z2dFi8jtB+tv 25Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=pJiOW9sE/PxdcId7oxzz3zrqGCgVWqbLvPZXlyFVYsk=; fh=vLoDgPyKsbaShCOE3UX0jSQdBQHngCBVDbXq0Lm/pjM=; b=lAPc7o/Hz1c847GDQj7Fx5B/uNioBE8TH14gf8Ug49msSVR6xNvu2/moeCT2a06jkw VEdWfY1olM+Ukme46m4A8axZ4nr4IGZvp0shWfr8QE9K2VgOlizvnfUJ/euzRCsg9cv5 96xCynIDH8il6srZ2R5MNMXIV7ltChYbbVTOuC+lo6MjvdI8ubn6NiUveRDvoLb6qTpI EEjjRDvNyM4kCWQLKNNekD/EBSFAR8723lM86kuiLyVpnF76+LFZsmKoLATgCRC8t+VZ riPcGHPMEsLFyrDhw/fWgCMS3qY1VIVL63sEmrb6iMFDxsVJOCAG2LFvVoQ3umL77QL5 DCyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b=ZZwFCyJV; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); spf=pass (google.com: domain of linux-kernel+bounces-175874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=meta.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d6e88si9798326d6.40.2024.05.10.07.15.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 07:15:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b=ZZwFCyJV; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.com); spf=pass (google.com: domain of linux-kernel+bounces-175874-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175874-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=meta.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 818831C21ECE for ; Fri, 10 May 2024 14:15:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56FD217082F; Fri, 10 May 2024 14:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.b="ZZwFCyJV" Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) (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 9BF5816EC0B for ; Fri, 10 May 2024 14:15:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.145.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350525; cv=none; b=qJ0lq04vrD6+yjVer2MfTl8LP5bI+ma0GPoVk11pxg0s3DDYzonNN4dRjUxg51Z60v3DIYoPSbxzxVpyyfd+0cUD+rHr2lwRqcVy/oYCDwYHdY/l9kwyA1vvCSP5M9fNBV2zuB5zE/B7gd8iTX5GM26wS7A4Xgo3uBsIkMEr+os= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350525; c=relaxed/simple; bh=Nq4HIfkNCerf+mgvCrnFqmakKaJLJNkaKiinm4/ynHE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ldaHQnItAjpwoh18ysHBhQXK8JCgZDUWcF3V1cjEQFt4YzKZhTkQejr8tQEhBXynr1ml/uMGTzbG9J1Nnzo/KWZjd4R9QJdc6YmOo5I81PTFEbdCmRxVNu36YiTdc8EYk/COtd129KuPDR8rnGm/aU9ZU5AtWC7mZ8ha+jbTgDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com; spf=pass smtp.mailfrom=meta.com; dkim=pass (2048-bit key) header.d=meta.com header.i=@meta.com header.b=ZZwFCyJV; arc=none smtp.client-ip=67.231.145.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=meta.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=meta.com Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44A0Pv84003998 for ; Fri, 10 May 2024 07:15:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=s2048-2021-q4; bh=pJiOW9sE/PxdcId7oxzz3zrqGCgVWqbLvPZXlyFVYsk=; b=ZZwFCyJVSVrD2aR2quQHmmPAwgEWW0b524hLtu6Tt2VbokYnsqwbYO8Nb0MT6r8k8R6a GEYLQJFDdEo/jk/5lvPSKt01sUBenVEQ9N7rgJ4Nk78shtW2sIc/RhmEd2AsI66cjj0q 1lkCJVNTAPZ7t9YBslQuRu4nQitSpAmjxuLTq9+r3Rc7XoH/i0wFjXM3ZKOkCzwwtJs9 PEBeIZQfPi40NA+bcm2T7TVTr3UMKGI1EB2jhxkuAMzIGVli/IXs/W4/17Pr6QGt6y8j uKwv8hWQ7obg6jgxHpheq7IVXsLQ1Od10kgfnP5qvzeQDdmuiddgQ61RU/3ZboexRMAx VA== Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3y16pwbkpw-15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 10 May 2024 07:15:22 -0700 Received: from twshared19845.02.ash8.facebook.com (2620:10d:c085:108::150d) by mail.thefacebook.com (2620:10d:c085:21d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 10 May 2024 07:15:10 -0700 Received: by devbig032.nao3.facebook.com (Postfix, from userid 544533) id 7BF682633F51; Fri, 10 May 2024 07:15:06 -0700 (PDT) From: Keith Busch To: , CC: , , , Keith Busch Subject: [PATCH 1/2] genirq/affinity: remove rsvd check against minvec Date: Fri, 10 May 2024 07:14:58 -0700 Message-ID: <20240510141459.3207725-1-kbusch@meta.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-GUID: qDskdO2yiMR8Pb9eK6aYr2t-boa-l_qH X-Proofpoint-ORIG-GUID: qDskdO2yiMR8Pb9eK6aYr2t-boa-l_qH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-10_10,2024-05-10_02,2023-05-22_02 From: Keith Busch The reserved vectors are just the desired vectors that don't need to be managed. Signed-off-by: Keith Busch --- kernel/irq/affinity.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/irq/affinity.c b/kernel/irq/affinity.c index 44a4eba80315c..74b7cccb51a16 100644 --- a/kernel/irq/affinity.c +++ b/kernel/irq/affinity.c @@ -113,9 +113,6 @@ unsigned int irq_calc_affinity_vectors(unsigned int m= invec, unsigned int maxvec, unsigned int resv =3D affd->pre_vectors + affd->post_vectors; unsigned int set_vecs; =20 - if (resv > minvec) - return 0; - if (affd->calc_sets) { set_vecs =3D maxvec - resv; } else { --=20 2.43.0