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=-5.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 21604C433B4 for ; Thu, 20 May 2021 12:40:36 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 A111A60200 for ; Thu, 20 May 2021 12:40:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A111A60200 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OhpDKj9ZV9s2ASue/f8H10JrU3IPdJCztFOn/fmI1gE=; b=TTExIKRgRT4rKLWGyDMYrpWT7C RLb+ZHTWGWsPD8erLxw6r9CvIJ3wQy+FnqjnWh8lSialBLd7fm1tb3b8XtBwYeq80aFgTePt1CgPU 9DBKN6jEugDdccFW2O42yRB44fUdEnDBzGIAw6uHI/kqLwaZUK12dJbszdGoLx1saaCn5x/i9mkbs p39hWz5qDOWVTMNDvJzwgyd9nOgC4LYJl274UIsmy+okCW+2K6JWBbIkrOqXv0rrcQAvq/7cHYLRI eaEZI5ClImf82EsSiW6OHXoZ3xaJlwffxSpaGjLRMeH99jqrB495IfAJ9ipfqVqgtGSTS5gY8n32d cIf3fNHg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljhxE-000sAY-Ah; Thu, 20 May 2021 12:39:08 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljhxB-000s3f-50 for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 12:39:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=FOIVdpfN2++n8/GKFmvYS9IGAgx5CHEBQ5+iuVYXyMs=; b=sqYUzd1VV7UFizGIdLJe6cSYCE z0f63Sxdex15vXsL4DVWg72NswHzFwavds+VE9iNVrpunq8mYw29a4OvkDQPmu2YwG00A4RCCk7dy 3/in00H71nryrsOhOfuKihBm2NuNEJqfn4j59FZ+IehOdoUQrCK7hSB2DjcwL6cYrBhWyMv11mRXB 3TxkBICeCe3zXi7kHIp1o7o7zPHLY70HGRbGNZfwqGISWe3weC8JHYq8SCyDMHILWhXpcWCqkRAej 9WGU2hRj3xLevzlFSLcPblZYs7JsJtKrHB9SIhfTwkv5pbM2qDVBsswtZDDoHvgGl9/J6tyGLvSNB D1TbzEKQ==; Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljhx8-00GKM2-F2 for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 12:39:03 +0000 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-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-178-BAAWIdGiMpG1rk2d3n7vOw-1; Thu, 20 May 2021 08:38:58 -0400 X-MC-Unique: BAAWIdGiMpG1rk2d3n7vOw-1 Received: by mail-ed1-f71.google.com with SMTP id y17-20020a0564023591b02903886c26ada4so9451282edc.5 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=tJbwqjyC9bNegwUh0kni5eb2XFeHmr5qYNFSRj4Rgjb4Y+u1vMn9ok2GxJYyn1QFVH FFa1sueL689/Ubr8YN7Fr6tx0uokVrIUGlGXuB8kWfxrziN//IZ+96IyI5Yb2+Dwbu3k 0YtofLZvf6eZfO8l4452H9aVVEZtR0reo5iiYpZcHxYUqMQJmhO6bRpNItQIn3Ou9qt6 Nj9Pxdqy2e2ScVwZUGsRK973XozLD/4vviGEldpWeGQ/UGmrflPHEpA13CIOGN1SAJZo dsLNa87jJZZIHgJDUjdxmrB/vPvBthvMa4ATQjd1XcV3CHvOQEHeyguF9EZ9urKeMuhS IKzw== X-Gm-Message-State: AOAM5308V3Z2kIvAK7WJaxSL56OoZ3UQcF5FHlE/gMRZwkN+jI/tCeX2 F0206M111V1zdW6KdL6TVQ77aRXHRIXqD/S8fEhkqkzWpEZrvYJpTqXOmG/MRv1ae+qWBFSmIFL 4NOz2qR78FQ+JuCumLDgF/7hp/IyJt7ziwCA= X-Received: by 2002:a05:6402:524b:: with SMTP id t11mr1868651edd.139.1621514337556; Thu, 20 May 2021 05:38:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyVTDOjgeaqCpwILha+/83d56/oX5zK6fUGvNZ2QZlK9m9LPZmG+LUPF/8nzE9gRj9uvKGtw== 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: Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bristot@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_053902_627940_E4B5DDB3 X-CRM114-Status: GOOD ( 17.58 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel