Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3366726ybc; Thu, 14 Nov 2019 08:05:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyE/+FhBl4tXsFGYLGHeDIp7sZwFon/NEPR1D6dq58iSI2B65NAm5aPElzhc7Ayp23I9qwG X-Received: by 2002:a50:e68c:: with SMTP id z12mr2180367edm.53.1573747537735; Thu, 14 Nov 2019 08:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573747537; cv=none; d=google.com; s=arc-20160816; b=eoIyqdYDq6vXwz6QyuvISAz899yZ9+8Q0okn+8sekhkOz4huWV0Ir9ov/wdb/BGEFB e9uC8qOVMwWsLGriO0t3vM4Z6tqjkEA97orx0Ve1YoWFA1vIb1zWs92BRj6kw0N2kJbq nDyoDxevggzlDqyZucYmaJtiGke3uzujxt75Qo/mJBO48c7/HjE5OAnXuHuLh7yqmBLH ywxmKgXB8tAMe6FV1EK+3kWI0ItkEdoTUlUviVYSOeTLo83EIWpJJZHLxmuHDOeUDajx OucfEQyXm3w6NMN9gjipNSw8zXcQcY8iB6N4Mni6x+Iu6F12s13+pPV3ljuzrggcsOzx aG9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=dcLImgKJBVyIgA0dkKOtTWuKz8BTxcJazQdXR1QQ+F4=; b=WkvUPOvmJ0IEqLP7vtbmEBPEXOJXBiTOFk+8YMCu+wv7zKpp0TwRX3HsHwvYOVh3gV TspZTX/tAxrrUfXLEInwN2JCN+aOHeEdv0p9LZ2p1jhmkRAxorA8R7F1AaPVdXV/qsBe xJF0+Hm3PxCU6Vl6HojkkAPNtNLxNB8btypEWmQJ9HMFCjmDxvQlAZvbjHv/HdNCXY5A h2pCKCT9UcHdBQiKD4WUCCxwVpBW9dQwwNh43fCAcAfC/W2wsgiT3iyh5IN0GrzFr8RW 0iYhpzm7Tjz7HZMIAUscn4HL7TuRfKNCp4EKrkBXROXWXW89Kzs9jdtkOUSB0ugHCeNy Ib5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si3627486ejz.392.2019.11.14.08.05.10; Thu, 14 Nov 2019 08:05:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726766AbfKNQDx (ORCPT + 99 others); Thu, 14 Nov 2019 11:03:53 -0500 Received: from foss.arm.com ([217.140.110.172]:45590 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfKNQDx (ORCPT ); Thu, 14 Nov 2019 11:03:53 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E4531328; Thu, 14 Nov 2019 08:03:52 -0800 (PST) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 717EF3F52E; Thu, 14 Nov 2019 08:03:51 -0800 (PST) Subject: Re: [PATCH v2] sched/topology, cpuset: Account for housekeeping CPUs to avoid empty cpumasks From: Valentin Schneider To: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Cc: lizefan@huawei.com, tj@kernel.org, hannes@cmpxchg.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org, Dietmar.Eggemann@arm.com, morten.rasmussen@arm.com, qperret@google.com, =?UTF-8?Q?Michal_Koutn=c3=bd?= References: <20191104003906.31476-1-valentin.schneider@arm.com> Message-ID: Date: Thu, 14 Nov 2019 16:03:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191104003906.31476-1-valentin.schneider@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11/2019 00:39, Valentin Schneider wrote: > Michal noted that a cpuset's effective_cpus can be a non-empy mask, but > because of the masking done with housekeeping_cpumask(HK_FLAG_DOMAIN) > further down the line, we can still end up with an empty cpumask being > passed down to partition_sched_domains_locked(). > > Do the proper thing and don't just check the mask is non-empty - check > that its intersection with housekeeping_cpumask(HK_FLAG_DOMAIN) is > non-empty. > > Fixes: cd1cb3350561 ("sched/topology: Don't try to build empty sched domains") > Reported-by: Michal Koutný Michal, could I nag you for a reviewed-by? I'd feel a bit more confident with any sort of approval from folks who actually do use cpusets. > Signed-off-by: Valentin Schneider