From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD4B9C47082 for ; Mon, 7 Jun 2021 17:05:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ACD6D60FEF for ; Mon, 7 Jun 2021 17:05:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ACD6D60FEF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CVTCxoKElaSlqAmrUW3PjIonMq5h/8HmSH0H53zggK8=; b=AP2KPRjhtORn/Z /K1QeeOfiRzYI89hNF22UGjLQNpglvwfSWvKhe1JF/b4Z+Is1EBfaVqVv3y+GH2h7/cYu3Jgc9cgg eXD/n/RY+sMQNCk6osJuAps4BSDerDyIa+S2jwCqklMm9pOPccpuiFNtlsUwK76naUY2LqrfQs6CU 65v5d6mxZTW3fqm53jBoZUTGriPgyTnIyDCcVqNJqUlPUEtX2dKQIpXIRh2yPfHAyUTa68JaT00XL 9+UwOkX06ppsLlc+kBMxb8iOOPI9SoyS/g6n3CVGRyActHt1LXoAqzvLlOtkwQqrnlpApN90iEoUz UrFfidS9mpx3hoL+I9Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqIfj-004fXR-Ic; Mon, 07 Jun 2021 17:04:19 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqIfa-004fUs-DB for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 17:04:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id C0D9461029; Mon, 7 Jun 2021 17:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623085450; bh=zzJQore+lowtcv9O6JHxDMZEcl4v02jxhUQCoAvfyv0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WJR0xm+/yPCNzt4iDQlYCm2qtSjaU1XWDaEE6B6p9XKO2C26x9DHdooWSxqDsDRT+ AWID0+IdNcriBy360Z0sX07evETUwSvycTZwLsKRiXQXcforpxx6R7eboVitosTEFB LYV7HX3VldkR0gQ8vCNok+/jaRY0yYu7WetiSbhbcGf3o/xTnkQNE98877KqzxgI/e 1xshDzdYPfCxJz7RPE5rygSyGkucTOGBHCZv0hSGHT9Bk4iF1Jwwj5a6j6jNJiGaXQ IIRurX4C0zKIhGUEFhRDpJyBzHtKSEhHO9MDksr4j4uPPAEOb56qa9OeLmXeeqqKsh 2uIOjoW37m6dw== Date: Mon, 7 Jun 2021 18:04:03 +0100 From: Will Deacon To: Valentin Schneider Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Marc Zyngier , Greg Kroah-Hartman , Peter Zijlstra , Morten Rasmussen , Qais Yousef , Suren Baghdasaryan , Quentin Perret , Tejun Heo , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , "Rafael J. Wysocki" , Dietmar Eggemann , Daniel Bristot de Oliveira , kernel-team@android.com Subject: Re: [PATCH v8 05/19] sched: Introduce task_cpu_possible_mask() to limit fallback rq selection Message-ID: <20210607170403.GA7650@willie-the-truck> References: <20210602164719.31777-1-will@kernel.org> <20210602164719.31777-6-will@kernel.org> <878s3peesp.mognet@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <878s3peesp.mognet@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210607_100410_493000_12945A5C X-CRM114-Status: GOOD ( 20.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 04, 2021 at 06:10:46PM +0100, Valentin Schneider wrote: > On 02/06/21 17:47, Will Deacon wrote: > > Asymmetric systems may not offer the same level of userspace ISA support > > across all CPUs, meaning that some applications cannot be executed by > > some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do > > not feature support for 32-bit applications on both clusters. > > > > On such a system, we must take care not to migrate a task to an > > unsupported CPU when forcefully moving tasks in select_fallback_rq() > > in response to a CPU hot-unplug operation. > > > > Introduce a task_cpu_possible_mask() hook which, given a task argument, > > allows an architecture to return a cpumask of CPUs that are capable of > > executing that task. The default implementation returns the > > cpu_possible_mask, since sane machines do not suffer from per-cpu ISA > > limitations that affect scheduling. The new mask is used when selecting > > the fallback runqueue as a last resort before forcing a migration to the > > first active CPU. > > > > Nit: Some uses of this mask (cpu_is_allowed(), __set_cpus_allowed_ptr()) > don't apply to kthreads. This makes sense for the 32-bit@EL0 faff, but it > wouldn't hurt to point this out somewhere IMO. That's a good point: even after these patches, we still assume the kernel (and therefore kthreads) can run on all CPUs. I'll expand the comment. > Also, that's an odd place for the definitions, but IIRC there isn't a much > better choice. Short of adding a new header just for this, I couldn't find anything, no. > Reviewed-by: Valentin Schneider Thanks! Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel