Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp593408ybz; Wed, 15 Apr 2020 14:45:21 -0700 (PDT) X-Google-Smtp-Source: APiQypKfEHZNcxu/+A/4DXmkzgZhtU3PR10ar1mpxtwhTTAoXAbJ/lSRNV38gT5bzCwXw7R6Rg+K X-Received: by 2002:aa7:c781:: with SMTP id n1mr27629304eds.136.1586987121100; Wed, 15 Apr 2020 14:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987121; cv=none; d=google.com; s=arc-20160816; b=YfYlkg9EaZzvi1vKGZQ10blq5mbKe08pvsbyFY5iTjDpZlpn5w5ksjL5d4x8PtVlHN JkoCUS1vkp59cVZdmtxpwxHMEXx3Gp/pD0hzmwI4RQbqZBn5LGej6v9I6QOded06rO3Z z1Zlktgv44kE9nOer1Y7Sz63DhxkIpQiSpTGbTAs9pBo73SLwctRP2x714MdSB8POC18 T9NzKN3xIBld/dzll7mGtgUXxtCqCUukxSuvo7Zlg5WFkI7DJ379EdNltQic9VRQ1R6g 9bFI7sNMkE3kO7bR9jzWe4bFHDpMIKdcNk6yNYQT/TU0HZz7SmBhDANYWgYgy1PeMgmP ttYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CeYFMA3vTi7v+CFHvhlqsz0AKcZo4dHuPMudOhCnNZg=; b=fUZX+vg2UVKL9iNCL0IwVt7oGE4MiumPrLQf0wpqaY4LrHoE1vOrD7SezDe40ylGKn vTAHsXoRVVrO3zFMrQLL4hroFzoHCs7/P43fUeaVs4ZR5TxQCbuGtVSS7zRR08NaLz5J FSvYrKFjpMVsF4zcPoDaVuZ8yUJxPNpkdNOemswChgHtRnz/D58SZrgxpSZuDYWU9Mu6 aLNzJkmKgWVa5uJJzPDqikiOoBTd3txgOrbiNXMjv8lNUk6cqUrKs9D0dGSuLyhVFl0d ZRxu/4AFRkK1CGiWd4/L4x0ktF3cMUaypZEgTg9xXGOKiHBpWS8GWv9/cLK17TpqndNw Y+NQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si8716057edn.114.2020.04.15.14.44.57; Wed, 15 Apr 2020 14:45:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440768AbgDNPlk (ORCPT + 99 others); Tue, 14 Apr 2020 11:41:40 -0400 Received: from foss.arm.com ([217.140.110.172]:58718 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440742AbgDNPlZ (ORCPT ); Tue, 14 Apr 2020 11:41:25 -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 33EC830E; Tue, 14 Apr 2020 08:41:24 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2F5483F73D; Tue, 14 Apr 2020 08:41:22 -0700 (PDT) Date: Tue, 14 Apr 2020 16:41:19 +0100 From: Qais Yousef To: Valentin Schneider Cc: Dietmar Eggemann , luca abeni , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Steven Rostedt , Daniel Bristot de Oliveira , Wei Wang , Quentin Perret , Alessio Balsini , Pavan Kondeti , Patrick Bellasi , Morten Rasmussen , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] sched/deadline: Improve admission control for asymmetric CPU capacities Message-ID: <20200414154119.sffnwggqdibdwpp7@e107158-lin.cambridge.arm.com> References: <20200408095012.3819-1-dietmar.eggemann@arm.com> <20200408095012.3819-3-dietmar.eggemann@arm.com> <20200408153032.447e098d@nowhere> <31620965-e1e7-6854-ad46-8192ee4b41af@arm.com> <20200414114032.wigdlnegism6qqns@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/14/20 15:29, Valentin Schneider wrote: > > On 14/04/20 12:40, Qais Yousef wrote: > > > > I haven't followed this discussion closely, so I could be missing something > > here. > > > > In sched_cpu_dying() we call set_rq_offline() which clears the cpu in > > rq->rd->online. > > > > So the way I read the code > > > > rd->online = cpumask_and(rd->span, cpu_active_mask) > > > > But I could have easily missed some detail. > > > > sched_cpu_dying() is wayyyy below sched_cpu_deactivate(). This doesn't help > at all for the dl_cpu_busy() check in sched_cpu_deactivate(). It'd makes more sense to introduce rd->active then rather than a PERCPU global variable IMHO. > > > Regardless, it seems to me that DL is working around something not right in the > > definition of rd->span or using the wrong variable. > > > > What DL is doing now is fine, it only needs to be aligned with the active > mask (which it is). We're making things a bit trickier by adding capacity > values into the mix. I'm still worried that others might be affected by a similar problem. Will dig deeper next week when I'm back from hols. Thanks -- Qais Yousef