Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2092755ybi; Thu, 4 Jul 2019 05:07:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqySNf3KkIFS1NtBiQz2/kkSPU+XVKOxRgE4lnp4gJlcxLm6vGigVRf3hXZssQxZCFm6ShZ/ X-Received: by 2002:a17:90a:2224:: with SMTP id c33mr19343112pje.22.1562242077963; Thu, 04 Jul 2019 05:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562242077; cv=none; d=google.com; s=arc-20160816; b=F3Dc5jhTQUzvsNvmZk05Like1HqICV7y5qxQYP/MBLSTyHFuSMyG4K4gwNH9YjiLy1 xAEFYlfGPYlkgAFg4sQ1wtPjkZnHHqrichKPE3cg2TuQjsfBp5gLwurqAWTu7n1Vb/fZ AdEPb7pmHe5F53JHh1kP0hDHevWhkm54oSjku4sbgEB31Zs82GMVyMTAzpCWCXBswvdI 4kBTiq/8FEgn6HvUE2HZpktWeJOgAayB7d+bDAZrRMpbGH5VPDfU8fM8CgSzC27VGVlU wNa5X+XIlc41Esm9Nh684V2Xyv1cY7cTWH6q6v5Pg/FBXiTtJWneiXHRIUEUCLXg28sy sz4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uxpFByscFmeja4Az+eC/VgKMSPcSuPZ2lRulWYv7CMc=; b=iXwuLA7De2x9GdVMPTawIi69CrkcKn9bEVTiaGsurbx++WoXW77YJmSr//+v1nh35I bMlkJcPebrSTn07jarUKt7/CSWgU8l2Lwo/immE77Kvo6P4Mw8pVtj0QJbeYkCp8kjK1 Ss1mO6jiVT+NbgostqHXPtdYK5ff40nIa6huX08x7Rcp/YXM8JY8AxnRHBWzuwcqdPap OimtE6BUCrZtstqJ9i/78yUV5xJz+rylQIIz7KdlAzIYnQHQe3HfN0f4LFYzjBQ/GM4F nPmc90q2MErSgiY23wSYb1thEp4POPwE9VLvCt6w2XG1brWJosFbZB8ZrNz4IwMzO8XJ lWtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t63si5614263pfb.5.2019.07.04.05.07.41; Thu, 04 Jul 2019 05:07:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727693AbfGDMF1 (ORCPT + 99 others); Thu, 4 Jul 2019 08:05:27 -0400 Received: from foss.arm.com ([217.140.110.172]:39914 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727618AbfGDMF1 (ORCPT ); Thu, 4 Jul 2019 08:05:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8570D28; Thu, 4 Jul 2019 05:05:26 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDFA43F718; Thu, 4 Jul 2019 05:05:23 -0700 (PDT) Subject: Re: [RFC PATCH 2/6] sched/dl: Capacity-aware migrations To: Luca Abeni , linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , Ingo Molnar , Peter Zijlstra , Vincent Guittot , "Paul E . McKenney" , Joel Fernandes , Quentin Perret , Luc Van Oostenryck , Morten Rasmussen , Juri Lelli , Daniel Bristot de Oliveira , Patrick Bellasi , Tommaso Cucinotta References: <20190506044836.2914-1-luca.abeni@santannapisa.it> <20190506044836.2914-3-luca.abeni@santannapisa.it> From: Dietmar Eggemann Message-ID: Date: Thu, 4 Jul 2019 14:05:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190506044836.2914-3-luca.abeni@santannapisa.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/6/19 6:48 AM, Luca Abeni wrote: [...] > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > index 5b981eeeb944..3436f3d8fa8f 100644 > --- a/kernel/sched/deadline.c > +++ b/kernel/sched/deadline.c > @@ -1584,6 +1584,9 @@ select_task_rq_dl(struct task_struct *p, int cpu, int sd_flag, int flags) > if (sd_flag != SD_BALANCE_WAKE) > goto out; > > + if (dl_entity_is_special(&p->dl)) > + goto out; I wonder if this is really required. The if condition 1591 if (unlikely(dl_task(curr)) && 1592 (curr->nr_cpus_allowed < 2 || 1593 !dl_entity_preempt(&p->dl, &curr->dl)) && 1594 (p->nr_cpus_allowed > 1)) { further below uses '!dl_entity_preempt(&p->dl, &curr->dl))' which returns 'dl_entity_is_special(a) || ...' A BUG_ON(dl_entity_is_special(&p->dl)) in this if condition hasn't triggered on my platform yet. [...]