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=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 ABEA4C388F7 for ; Tue, 10 Nov 2020 09:53:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E36E20797 for ; Tue, 10 Nov 2020 09:53:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yp6fPt02" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726721AbgKJJx4 (ORCPT ); Tue, 10 Nov 2020 04:53:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:55830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbgKJJx4 (ORCPT ); Tue, 10 Nov 2020 04:53:56 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B09F20780; Tue, 10 Nov 2020 09:53:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605002035; bh=p0jnGkb4pdN3N6lz9q+O5UWX5vyGxnkD1ZvR1w/KJ54=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Yp6fPt02nKPTeSDTkjYbMFakobpp8vbvRIYgeuZcBclQj/r/Sjax7qTeKf5biVv74 DbEV/gYn18PSsKPDJAYdPW+0CETTbqXPCO9IF75trLK97Sge0xIz5Ewm8hTTOTW89x tKAi8nP+ZIYd7RgG/pBBduFym8V163YvLUuF8n3w= Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kcQLZ-009PET-Ai; Tue, 10 Nov 2020 09:53:53 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Nov 2020 09:53:53 +0000 From: Marc Zyngier To: Greg Kroah-Hartman Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Peter Zijlstra , Morten Rasmussen , Qais Yousef , Suren Baghdasaryan , Quentin Perret , kernel-team@android.com Subject: Re: [PATCH v2 5/6] arm64: Advertise CPUs capable of running 32-bit applications in sysfs In-Reply-To: References: <20201109213023.15092-1-will@kernel.org> <20201109213023.15092-6-will@kernel.org> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: gregkh@linuxfoundation.org, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, peterz@infradead.org, morten.rasmussen@arm.com, qais.yousef@arm.com, surenb@google.com, qperret@google.com, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On 2020-11-10 09:36, Greg Kroah-Hartman wrote: [...] > While punting the logic out to userspace is simple for the kernel, and > of course my first option, I think this isn't going to work in the > long-run and the kernel will have to "know" what type of process it is > scheduling in order to correctly deal with this nightmare as userspace > can't do that well, if at all. For that to happen, we must first decide which part of the userspace ABI we are prepared to compromise on. The most obvious one would be to allow overriding the affinity on exec, but I'm pretty sure it has bad interactions with cgroups, on top of violating the existing ABI which mandates that the affinity is inherited across exec. There may be other options (always make at least one 32bit-capable CPU part of the process affinity?), but they all imply some form of userspace visible regressions. Pick your poison... :-/ M. -- Jazz is not dead. It just smells funny...