Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3976460pxk; Tue, 29 Sep 2020 10:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5IbQfWjzqvwRmZIXpQEnBQIEO0rePdnb5it/NahaPiuzK4qWXNmKhq1P0Zzw1eggvGJK/ X-Received: by 2002:a50:ee15:: with SMTP id g21mr4599994eds.47.1601401719867; Tue, 29 Sep 2020 10:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601401719; cv=none; d=google.com; s=arc-20160816; b=Hbriac67liWhEU8NpvO+joM78ION4dz/LHCHjiVCHIuTW14FpYsqoH3ZRzRLcmC9P7 WYmfYbTnKggurcCy8ZEUWXUzqSmdXk6xtNfzs4boR1Fvaox1YOfwrOjNve8VNVP6mSgi 5F7Y8PNNOAHgs6SmyLE0XV6+ECdB5J6dDwvWZGWMCLLkjlrAixCnaPgUl3KFB6Q2T5t2 /M5senByMqudtO496ThetcAI7cKmHQBi9TAXd4K5G0iWU7ckVMwgBnA1UUdr6cL8TF5R YXh6tJ5s1mZgYJFeyLAsnRVk9Dd0qmMMkOWt5DGEElj6AU212fua/0kv7EQa9Ce3jJ2b MIVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oCfvHV+eKDJ81YLxCB6N47LJuI+3zUrT7MS+gF7gNr4=; b=WOz+6UezpAL5MGbITHluem/lY+xrq2gC4obKVTEz9NpoGIIJ5zWcDTk+7jb40bsQaC E0xX93B1fsw13ruEPA6f4PgKAwiuH+1GtmM/VJqxdEr7oOeSxDGNPlvvCdFj0mGZTcLu RyLT2I12OszCq09wDpzjC1KD5+Gk8welsPiKgpsD/owza3qPHym8C9d8Jn3lSKh3Ter6 xAn4uJwfEDTFrVzDwYeUUuCHKPUpbmlH3mVCqrDhFDK/VXku8SthJPP2KA4FHI5ggE2Z pwDCA3PYFxp/K9SGxWGGW13R5rIfPmeK0HQBXfFtpjPrV/yMRe8P4mIbYY3XA0VKc0nm tXvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NjIGhaXr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si3096028edv.189.2020.09.29.10.48.16; Tue, 29 Sep 2020 10:48:39 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=NjIGhaXr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729320AbgI2RrE (ORCPT + 99 others); Tue, 29 Sep 2020 13:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728386AbgI2RrE (ORCPT ); Tue, 29 Sep 2020 13:47:04 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE38C061755; Tue, 29 Sep 2020 10:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=oCfvHV+eKDJ81YLxCB6N47LJuI+3zUrT7MS+gF7gNr4=; b=NjIGhaXrWwlKfAho6RX83T5VBG 9kU191xaHfQf9xMkmFbUhsM8unnI6/Cu/ZcxCQa07jLGVfllxEv6zJQNU/QSetYE/OyO4R5J1nfJe tyQEzzf82Vu/tTa++E0RflrJePy3HLzmjShO5JUtUXPNOhAuwTkJScF1wDER73o3ROFT/gajTsenI 4XtDhwfOso7PtCEtkDtRszmeTq4W+xoyXI5+uhPwIQnUNCGNTfxG+kWAAPHV54h4cJDDstUqGHuct noGbPWU/Gu1kVxKq4X2UWJffCQAqVupBC4HQRqYLChEr/xqJzsRedUoGgfK4sRbhoX9/Ln5Cpce+T Ww2Yp2mA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNJiI-0000Hg-5T; Tue, 29 Sep 2020 17:46:54 +0000 Date: Tue, 29 Sep 2020 18:46:54 +0100 From: Christoph Hellwig To: Bjorn Helgaas Cc: Nitesh Narayan Lal , hch@infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, intel-wired-lan@lists.osuosl.org, frederic@kernel.org, mtosatti@redhat.com, sassmann@redhat.com, jesse.brandeburg@intel.com, lihong.yang@intel.com, jeffrey.t.kirsher@intel.com, jacob.e.keller@intel.com, jlelli@redhat.com, bhelgaas@google.com, mike.marciniszyn@intel.com, dennis.dalessandro@intel.com, thomas.lendacky@amd.com, jiri@nvidia.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, lgoncalv@redhat.com Subject: Re: [PATCH v4 4/4] PCI: Limit pci_alloc_irq_vectors() to housekeeping CPUs Message-ID: <20200929174654.GA773@infradead.org> References: <20200928183529.471328-5-nitesh@redhat.com> <20200928215931.GA2499944@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200928215931.GA2499944@bjorn-Precision-5520> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 04:59:31PM -0500, Bjorn Helgaas wrote: > [to: Christoph in case he has comments, since I think he wrote this code] I think I actually suggested this a few iterations back. > > + hk_cpus = housekeeping_num_online_cpus(HK_FLAG_MANAGED_IRQ); > > + > > + /* > > + * If we have isolated CPUs for use by real-time tasks, to keep the > > + * latency overhead to a minimum, device-specific IRQ vectors are moved > > + * to the housekeeping CPUs from the userspace by changing their > > + * affinity mask. Limit the vector usage to keep housekeeping CPUs from > > + * running out of IRQ vectors. > > + */ > > + if (hk_cpus < num_online_cpus()) { I woukd have moved the assignment to hk_cpus below the comment and just above the if, but that is really just a minor style preference. Otherwise this looks good: Acked-by: Christoph Hellwig