Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp686296pxj; Thu, 20 May 2021 20:00:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg4n4P2IVxCHw11Ed94wk4i9B7QGn6Q05Hq6n3gSdQKuqqbqLgpzvU5FmyrWWOyCfOayDY X-Received: by 2002:a17:906:694b:: with SMTP id c11mr7631808ejs.420.1621566050772; Thu, 20 May 2021 20:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621566050; cv=none; d=google.com; s=arc-20160816; b=uUv6qn1dbsKdD8lwNNtwZmmvHydMwGPM+jegDctW/sdFPYfQqDnTd+uxWzWz7iFj89 Tj/wSRRLU+WND+1dK407uqD/G7GhyM9MYrg9U22gpnqIF/OaAlZGMGZJXOqDBgHdHwud joP73hptUspWiM1ssI93apgJRzMODLWhL+1h3NHEhLiFE+T4kNEQVwyDyAZpjeAtMaxt 7f97F28Z9RwxKyufhIsOmlYVPmedKgju8BVbNPTNgWgjnKf1MSPVbmd+iXX2XM7aKLFa 4lrcL5BAh3clj/zxMAgS2f84pm62nnIBAfkFHtTFsOiKVmlNKg9si5KvQiyxJ/Y4v8JK mOkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=FOIVdpfN2++n8/GKFmvYS9IGAgx5CHEBQ5+iuVYXyMs=; b=0KIsIV/lCJaL2/5gMkuc9x/spiYCZRigbiln/E/RH/p0ZjRRLbXuINfwvzVrqVXw8R aUFb9e9ey9htyD2DRJMKy0VeTezcazXrpt8lMf4sQQO4uLnog0yqumN02vPyeMy1jX42 IcvhukQECnpf6vTKhM/wVmH7+XNIoymhYqq0AVk85FUYlEhQseOGAMtLpJ+kXrtuUpB1 sZBd1PQCDVg4Pc1LyGIOjVybWSaO++MRIFI3Ia/NNr4zONO6qrNo+FThNRZJrzz3E+iC /1fAg4/CDSF3Ootv4RT2LRL7i1BZq91X6psrVB8ZfCtvOfh1cyy4xFC6V2GJFjuESNgn kq3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjIglvB2; 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 n8si3586152edt.540.2021.05.20.20.00.25; Thu, 20 May 2021 20:00:50 -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=WjIglvB2; 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 S238349AbhETMkf (ORCPT + 99 others); Thu, 20 May 2021 08:40:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:22884 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbhETMkW (ORCPT ); Thu, 20 May 2021 08:40:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621514340; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FOIVdpfN2++n8/GKFmvYS9IGAgx5CHEBQ5+iuVYXyMs=; b=WjIglvB2rR0C/TgNkenFOn3L0VkdblFfCXSMAQd1UQgBnX4B+/rAJKqyQVybicVssxehuS egPoP5K/gD9nC4i7xPHddlLs+KePeDZVVD9t7svAoK3ZzPIHJQX8RluuW7WVd3UzDKRN0h OtG3SiLLqkHy+UeAFHiZoC3JArgCPwM= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-467-IHjMS2YANSutbZKJrXs6zA-1; Thu, 20 May 2021 08:38:58 -0400 X-MC-Unique: IHjMS2YANSutbZKJrXs6zA-1 Received: by mail-ej1-f69.google.com with SMTP id gt39-20020a1709072da7b02903a8f7736a08so4947861ejc.1 for ; Thu, 20 May 2021 05:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FOIVdpfN2++n8/GKFmvYS9IGAgx5CHEBQ5+iuVYXyMs=; b=e+29dVnVYLmjpKQ3Dm7kqqyMhcuhoZFqrv+DkqbSKsmugjbm/ePXZt+g2Ib+ecj29p 4aeYJ6U2cGpckh8lBH4Q2d94zjaUrbtLDgpL84cneeVj61CYK5UPQqyTyq+iMbm498bY u3PjN4qeZHR5yOHQUUDwQoz2T6WsiBsgxwBqL6RbI6FGT3kBQiZblmoyMN4CDbJ31xww KFJ8MSh5u2CfLx5jO/PXwhQ8ZCMLyFH48u6tQnIES3XNe+wmaNamh0Os0n+p2Ee6fks8 3a4sHNv+5nyFI+onqjrgBG+GXxQlgUKjqo2uDgTEKRF/+eVfYMRLXacmxe+ZjFQe5KKO 28tg== X-Gm-Message-State: AOAM530G20HRqo5mha8ipJjfuQj9GjO+WLkxSWAjyhaIDnPQ/MrapmO2 nUQOhHOvhgZni8VJ4adTJ3dsU4HiPzKIg3qe4XvpY74+NtAsT9iuf0eIvz4lvk447Vm7lH8SfcM zNTL1NBQ8VX5hTvhOOipg8awy X-Received: by 2002:a05:6402:524b:: with SMTP id t11mr1868661edd.139.1621514337557; Thu, 20 May 2021 05:38:57 -0700 (PDT) X-Received: by 2002:a05:6402:524b:: with SMTP id t11mr1868641edd.139.1621514337375; Thu, 20 May 2021 05:38:57 -0700 (PDT) Received: from x1.bristot.me (host-87-19-51-73.retail.telecomitalia.it. [87.19.51.73]) by smtp.gmail.com with ESMTPSA id lv10sm1454309ejb.32.2021.05.20.05.38.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 05:38:57 -0700 (PDT) Subject: Re: [PATCH v6 13/21] sched: Admit forcefully-affined tasks into SCHED_DEADLINE To: Quentin Perret , Will Deacon Cc: Juri Lelli , 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 , Johannes Weiner , Ingo Molnar , Vincent Guittot , "Rafael J. Wysocki" , kernel-team@android.com References: <20210518094725.7701-1-will@kernel.org> <20210518094725.7701-14-will@kernel.org> <20210518102833.GA7770@willie-the-truck> <20210518105951.GC7770@willie-the-truck> <20210520101640.GA10065@willie-the-truck> From: Daniel Bristot de Oliveira Message-ID: Date: Thu, 20 May 2021 14:38:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/21 12:33 PM, Quentin Perret wrote: > On Thursday 20 May 2021 at 11:16:41 (+0100), Will Deacon wrote: >> Ok, thanks for the insight. In which case, I'll go with what we discussed: >> require admission control to be disabled for sched_setattr() but allow >> execve() to a 32-bit task from a 64-bit deadline task with a warning (this >> is probably similar to CPU hotplug?). > > Still not sure that we can let execve go through ... It will break AC > all the same, so it should probably fail as well if AC is on IMO > If the cpumask of the 32-bit task is != of the 64-bit task that is executing it, the admission control needs to be re-executed, and it could fail. So I see this operation equivalent to sched_setaffinity(). This will likely be true for future schedulers that will allow arbitrary affinities (AC should run on affinity change, and could fail). I would vote with Juri: "I'd go with fail hard if AC is on, let it pass if AC is off (supposedly the user knows what to do)," (also hope nobody complains until we add better support for affinity, and use this as a motivation to get back on this front). -- Daniel