Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp617102pxk; Wed, 23 Sep 2020 11:23:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmkxYaeG9DiC0/o4ZM7uCx1///vyBk9T6acgDn0NQO/zu5NDTMU2B1JsorgNiz2qBCzVD0 X-Received: by 2002:aa7:d3da:: with SMTP id o26mr606856edr.169.1600885392579; Wed, 23 Sep 2020 11:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600885392; cv=none; d=google.com; s=arc-20160816; b=p8F5uI6MEKTEsgp+oqjbk10StcnledSzvQtyycgefIScrRw7CVZTwKBWn6lGbrPqNc rAblY8Ig5ebQhlUUXtac0705S92o9dmEZC6OOunUd4z8oFlgzqWZE1XpzSmpsZio3RuI ++vuLg1ts5Oim3iyPa/42Hnohn0wnYkzPzx5DV7XCF5f1SvL8uQJt/udEpZyfjIOswMS QpaQo4JVMm9DPfTImYw6tk1Rba9S9KYwyEej3YIBBPNrvRjUm637v45UKc9xB8M/37K2 zUsueoWrYGiy+tAUKSpC1EMl5nPtBon76V7r10UktUsr45YibPFLCGT0gQGYpVJL6UW+ WwXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature; bh=0T1Uh3UwpP4BgdwzDRoRFpQxgh2o5L+P6husKrn72sA=; b=VN+zG19BuXwR55a7lOnvNEm5apBrtpaUEJgG/0LhzaqM9FEip5Xn96pBVFPbeWKoCj rtK+GVyCXvOSj/EXZ/2ruGGuWekD7ka+mcXRp3bBUDdmmCiBLWxoB/PRn7qMCd9SStxH ENRhMMxSPamAcFqqWsqCX9clR9xUfNFBfTO2+bTMr+ArblYgtZTWGJYbyMtnV7N1EyY4 P92KZ3RzhkRhvPkocWxpUqx04qUK2dMvdYV48H7aW528XxUeMXC+0RfBv+949nUVbIMV /lAKSwHQj54+dBVDj7iOmVW12u+mcIiTSG4IERvDN2OQeHy3rwh9rM33nKfirczLKbVD qz6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HnCsW2iF; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt16si439249ejb.314.2020.09.23.11.22.48; Wed, 23 Sep 2020 11:23:12 -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=@redhat.com header.s=mimecast20190719 header.b=HnCsW2iF; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726769AbgIWSSD (ORCPT + 99 others); Wed, 23 Sep 2020 14:18:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29109 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgIWSRm (ORCPT ); Wed, 23 Sep 2020 14:17:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600885061; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:in-reply-to:in-reply-to:references:references; bh=0T1Uh3UwpP4BgdwzDRoRFpQxgh2o5L+P6husKrn72sA=; b=HnCsW2iFW0uAxIYuqJGIf4PhiQZj4xmvvFsqi9zErlshcjPjglhMJjJwh7TYe2SoAXTptz ZloGenem2dyQRO+1WGAxJHZ+vgxzAtw2exf+g0CgohNzm23PQsXR0vkHl1j1Kkaw1zyo9j GhnJR8fjWXMo+mI1HfUc8Nz6W3C72+U= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-107-0cfgVWp3PuyEcRa8Ao44zg-1; Wed, 23 Sep 2020 14:17:37 -0400 X-MC-Unique: 0cfgVWp3PuyEcRa8Ao44zg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C5F3164094; Wed, 23 Sep 2020 18:17:34 +0000 (UTC) Received: from virtlab719.virt.lab.eng.bos.redhat.com (virtlab719.virt.lab.eng.bos.redhat.com [10.19.153.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id EE4DD5C1C7; Wed, 23 Sep 2020 18:17:32 +0000 (UTC) From: Nitesh Narayan Lal To: 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, helgaas@kernel.org, nitesh@redhat.com, jeffrey.t.kirsher@intel.com, jacob.e.keller@intel.com, jlelli@redhat.com, hch@infradead.org, bhelgaas@google.com, mike.marciniszyn@intel.com, dennis.dalessandro@intel.com, thomas.lendacky@amd.com, jerinj@marvell.com, mathias.nyman@intel.com, jiri@nvidia.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org Subject: [PATCH v2 2/4] sched/isolation: Extend nohz_full to isolate managed IRQs Date: Wed, 23 Sep 2020 14:11:24 -0400 Message-Id: <20200923181126.223766-3-nitesh@redhat.com> In-Reply-To: <20200923181126.223766-1-nitesh@redhat.com> References: <20200923181126.223766-1-nitesh@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend nohz_full feature set to include isolation from managed IRQS. This is required specifically for setups that only uses nohz_full and still requires isolation for maintaining lower latency for the listed CPUs. Having this change will ensure that the kernel functions that were using HK_FLAG_MANAGED_IRQ to derive cpumask for pinning various jobs/IRQs do not enqueue anything on the CPUs listed under nohz_full. Suggested-by: Frederic Weisbecker Signed-off-by: Nitesh Narayan Lal --- kernel/sched/isolation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c index 5a6ea03f9882..9df9598a9e39 100644 --- a/kernel/sched/isolation.c +++ b/kernel/sched/isolation.c @@ -141,7 +141,7 @@ static int __init housekeeping_nohz_full_setup(char *str) unsigned int flags; flags = HK_FLAG_TICK | HK_FLAG_WQ | HK_FLAG_TIMER | HK_FLAG_RCU | - HK_FLAG_MISC | HK_FLAG_KTHREAD; + HK_FLAG_MISC | HK_FLAG_KTHREAD | HK_FLAG_MANAGED_IRQ; return housekeeping_setup(str, flags); } -- 2.18.2