Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1658500pxj; Wed, 19 May 2021 10:49:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBjZvZj2XEAmd1OTnSEsK9N8mLkqlTWQp/+jpYyUSblZwmzwedTj8lS40oH8Cw2XRi4Xsd X-Received: by 2002:a5d:848a:: with SMTP id t10mr727601iom.68.1621446553530; Wed, 19 May 2021 10:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621446553; cv=none; d=google.com; s=arc-20160816; b=ON6GzVP7hB77p14KCez+yUJPuX3YPYsfG/j1+W9gF79jpMkk430ck1MLcsttbyPxlO racqnbQHkloYajTAGPU4lUCPqo+4X1V8tnvDU3dP3r2a+YR6Pgg2nqpyMmJTDYq6SH28 pdUflttCrHzcrNxEd8hTsHf14aGr45/j83Wrnu4j16WpZLqosQ1EJ470KM+WUO+1C6AP Hak4fX6SxHV+I8ibTrhVTUvnTG1sS6PCGpZV8sY6Pk44w+KSgjPss1bRJzFe3RK7JWTA OZPWMu6Yk0Hm2lOIvlwlpQMoUp0gRzSly05nFjGDS5bbbLMxfgv2fZyeE0GG2dOcKZx5 iVqA== 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=70ytm4W0WP5qG41Y6kcb7UDXaJDfERJqeAyjJPyIpfw=; b=lL+49r/huzYWjxLLQ4qFsCckPLNqbQQDPjfLjJJOEi5hS969ysw9eT/PG7pfRPSrCb onPw/GGaKxvEq5YYzLIRj4yKwFvCzqk11rAQ0av+HDnzH4w4FbzRKogqPT5BJiLwy6DC T0ZK6J3dTWjOtrwF+JM2PC8cMU7Xl3huwTPwPojhQ1jFvHCMsPGiTk4RgxwvT+gYrohf HlPqAfKybAdJE0YFBfn8LyfoCYqFQRyn08cyBkK53JLG6Elt37UbuFawfT6FM4ngUGu4 SR0QSSlA51Y7/3M1G+4SDCtB5ea5P6Hl5l0IsEdD795zvThxCjaDpwEGUu+ZzZbN4XYX 8Cpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Uv+GAHDg; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si24370793ioe.51.2021.05.19.10.49.01; Wed, 19 May 2021 10:49:13 -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=@google.com header.s=20161025 header.b=Uv+GAHDg; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242831AbhERKWL (ORCPT + 99 others); Tue, 18 May 2021 06:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241390AbhERKWG (ORCPT ); Tue, 18 May 2021 06:22:06 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF1CC061573 for ; Tue, 18 May 2021 03:20:46 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id a4so9617233wrr.2 for ; Tue, 18 May 2021 03:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=70ytm4W0WP5qG41Y6kcb7UDXaJDfERJqeAyjJPyIpfw=; b=Uv+GAHDgcZbUm2zGwTW9XJE77SnSSgIbjr+0yXlS/BSOwyDCahG2BrBG+B9fx6xgUR 2d251BjxqiRP4QngXmg+RT9+RE4bpEIUWUHajM6o5N++rP60IeKJlN16BAjIbHOKFfqY yYZ29frKkzKR/9/FqWAlqWUrvck9BOXa7/H3Myboh3FX01spR2lEAqXTVTGvZPueICFS 8Y4V6d3EpeYXGaalsYUrZy28VFc3WlTbjvO0BtzGsS52CYmtGulBczIP4qzktdRHssoI JLbGdka9F+jonY6DG3pkKZ/V9CGDrECIYPd0xg06JlH+TpoLBTE2oYkuS5rR02qyztEe ldzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=70ytm4W0WP5qG41Y6kcb7UDXaJDfERJqeAyjJPyIpfw=; b=H6CViPf//tCAtsOVJLQA1eYe6ho0uF6y8/m4u1Y3/2Ix+V6FcZqJo0Gy2bNC8GUz+8 Tsu64Po0iThswQQxYe1IsKZL/7tQfc4lOKyCrdj+6JPyPVQfRTeHKEmRfQGoHNarIRN7 OgsbBvCT1JarHJCN6K6HMahcShWau4qlDuHCnkNcv7nBp2AOog3m4oCbTHeZy1xpcuGc mXcbHW+Br7Ja1+ey8tRpn0PjtDEJWOpDARextoBb6Hw2pFCGNPN1NHMEnAX2weRMSnP6 9qQBv9FHsoIBSdNtgm3XmQ6Q+L39adImBDRGoTKmfvaE9OLRjw/Olav9ePAuSnxtO7uJ pykQ== X-Gm-Message-State: AOAM531nLKtAwrGmaeOKyFrb73z3IvdpBodXVCS55jlrNLv1bX8ohkU4 OZY0i+TXEAtnpNqTNSp6NKZsjJkac8x+PQ== X-Received: by 2002:a5d:47ae:: with SMTP id 14mr5879747wrb.190.1621333245170; Tue, 18 May 2021 03:20:45 -0700 (PDT) Received: from google.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id o8sm2569124wrx.4.2021.05.18.03.20.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 03:20:44 -0700 (PDT) Date: Tue, 18 May 2021 10:20:38 +0000 From: Quentin Perret To: Will Deacon 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 , Tejun Heo , Li Zefan , Johannes Weiner , Ingo Molnar , Juri Lelli , Vincent Guittot , "Rafael J. Wysocki" , kernel-team@android.com Subject: Re: [PATCH v6 13/21] sched: Admit forcefully-affined tasks into SCHED_DEADLINE Message-ID: References: <20210518094725.7701-1-will@kernel.org> <20210518094725.7701-14-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210518094725.7701-14-will@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 18 May 2021 at 10:47:17 (+0100), Will Deacon wrote: > On asymmetric systems where the affinity of a task is restricted to > contain only the CPUs capable of running it, admission to the deadline > scheduler is likely to fail because the span of the sched domain > contains incompatible CPUs. Although this is arguably the right thing to > do, it is inconsistent with the case where the affinity of a task is > restricted after already having been admitted to the deadline scheduler. > > For example, on an arm64 system where not all CPUs support 32-bit > applications, a 64-bit deadline task can exec() a 32-bit image and have > its affinity forcefully restricted. So I guess the alternative would be to fail exec-ing into 32bit from a 64bit DL task, and then drop this patch? The nice thing about your approach is that existing applications won't really notice a difference (execve would still 'work'), but on the cons side it breaks admission control, which is sad. I don't expect this weird execve-to-32bit pattern from DL to be that common in practice (at the very least not in Android), so maybe we could start with the stricter version (fail the execve), and wait to see if folks complain? Making things stricter later will be harder. Thoughts? Thanks, Quentin