Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp632128lqo; Fri, 10 May 2024 09:48:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQhan6+72CI75Hg92kUwmOvZ42/jt+pxQU9y0d9o4BGdMPMyx4VYaAENzSScdH3uRskiS4MjY475s2BusHw8AF0b1qs5OvEzyjGOtypA== X-Google-Smtp-Source: AGHT+IEZ09ngCciQUqWzMv0yD382gzS88XU4mD2/EzqbeLR2jdeEQPEnAFn97Q8fA40Cy3ZhAAxK X-Received: by 2002:a05:6358:9494:b0:192:75c4:2edc with SMTP id e5c5f4694b2df-193bcfd1c27mr401541455d.25.1715359680334; Fri, 10 May 2024 09:48:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715359680; cv=pass; d=google.com; s=arc-20160816; b=OqYH/FUCzAZHEqFoEKBdyW2OevznD9jqykQ4RyHiy4C7J48WrAJzC5lGgiWnFufJD/ pNYJLouSy0LxZkfanleYewzRyw2lfvaDyw0hNMAh1hTP6ZL6eb5UucYwnEwbxQkyyCEP dOTShpBtVigvIVgZj6Gfxh+wf/A0CIG+NQI64QsgzE+aA3A1HzKh2Wtg7fRW0p2BxqxI x/WG7p3qBbLYSqd28LHjdBiLC4rQiwRZWibHWwg0MqSWar2Wi1KSUJ+P8EgRbgwrmQ0i VeCgzUDz33qHLEHD4tUNRqUg4T+fHhU8ASA6j3aHnjDTNYS5wS8HIh9G0FDhGGiKUex8 hZDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AXhE8Z4r56FLxSoR0TnD4DsXP0A+Ch4RHuNCYA34EcU=; fh=HaIYPvYINuv07hkjvrt0zB+4fOrqY8cZXenhXoFefHo=; b=CbCwvUnP0D8GTEs2YGSzpKSc4EC9Hw68+bzZz6hbhLRCda8NaYXI8g7rNLyJMeDoBK 0y4ecOZIY234Q750znkrx+Psn0v2wel8aG9ACA2R48D+GH+Ug1Y6i/WOgXGZuvpdZBeo B8u8SfrHzk1v9ZNZzsjWo0UdjHVJZcwbaPRpfafrXQRZKTSlSqEWHskbX6RvOEC6Kig3 9QJ5jTGDzeZudQxv9cZrB1J/KEnDKMjrGpJBKMaBvc1KXTFa8W/cAkCrqYZYd8kcXxLR /0chz6mIokXbmGXsFHaksrVM+vcgJy4LY2jsLQMhSdMGAykib8713gZePYiUDylr5h7Y 5aoQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WY/crXVN"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412958ca4si3937366a12.627.2024.05.10.09.48.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 09:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WY/crXVN"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176029-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E94F028288E for ; Fri, 10 May 2024 16:47:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01DA1175A6; Fri, 10 May 2024 16:47:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WY/crXVN" 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 1B06314F90 for ; Fri, 10 May 2024 16:47:53 +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=1715359674; cv=none; b=ILz3e23Mvn2vRSx6nv6xEtaG9PZUzPee7y1zboPiKaqPCEPzx9GnDjv+n9aUXbIC2YLMSoUcjc5C9O3S6YUfZdy+CtMe+49Bw8zaVIurUmz2YDW6CaYqrqgb71lnk/3mBQ8W0YoJegKLB+J47GbG9pWA9o1EBGzc/ojbVwWxWMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715359674; c=relaxed/simple; bh=AXvy8iePiTOupLl+xIgUoqVuOZkGTeicUhCyXcPDZvg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=czKI5cVCj/Nk1qQaAE8Vj7RXtqAj3/fu3oU5nI2vNsza1fVhyuK8R17aZQ4CwbCHGFgiK2Ln9BnNnU4EOMLKk08e4ZY3PKh0+4SA2c4LmQ5vfihBObHQPp49lqdlye93fX7dfloevz+or07M2zO0mNEwB/FZBSvBQ0YkRn157eI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WY/crXVN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 296F3C113CC; Fri, 10 May 2024 16:47:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715359673; bh=AXvy8iePiTOupLl+xIgUoqVuOZkGTeicUhCyXcPDZvg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WY/crXVN7AYFzKzJa0xILepwhVwlZt+UG7mUNyhm1z69vKhAukhsbMzIhESPUEGCi EynVeviFFA+ua3hcDOIxZcnBjObuhmdgWuYUX8lPHchn8UnTYTWV96DPSZT1jZhJuB /PcB00x+G6GEUs6uBkt/wXayQ/qBg93ZCY/lH88yhCzSHH+x56WwygcSzoobhXsxgR iNBhIdozZpH1K4/tNEjbSj5AfzWYXYhlSzVwxTlsq6pEgOC7fVgW3eq0ApPmbii/df SwrW+TpR2ErPEVNLft+9c/+ag3fAxJS+QbYz+LHDQu378sPb8rooTdb+ABZfJBx3us XYIINZ3CB+h0A== Date: Fri, 10 May 2024 10:47:50 -0600 From: Keith Busch To: Ming Lei Cc: Keith Busch , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, hch@lst.de, tglx@linutronix.de Subject: Re: [PATCH 1/2] genirq/affinity: remove rsvd check against minvec Message-ID: References: <20240510141459.3207725-1-kbusch@meta.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 10, 2024 at 11:15:54PM +0800, Ming Lei wrote: > On Fri, May 10, 2024 at 07:14:58AM -0700, Keith Busch wrote: > > 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 minvec, unsigned int maxvec, > > unsigned int resv = affd->pre_vectors + affd->post_vectors; > > unsigned int set_vecs; > > > > - if (resv > minvec) > > - return 0; > > - > > This behavior is introduced in 6f9a22bc5775 ("PCI/MSI: Ignore affinity if pre/post > vector count is more than min_vecs"), which is one bug fix. Thanks for the pointer. Probably best I avoid messing with irq code just for this use case, so I can have the driver disable the PCI_IRQ_AFFINTY flag instead ... assuming hch doesn't "nak" it. :)