Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp577471ybg; Thu, 19 Mar 2020 05:09:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtcONE3j0kcjyCLZ13Qt2pxVGaXrOzTLwXHUP+lZB/iDOFXaIYtz9hk9DJt48OOpO0LZ4V6 X-Received: by 2002:a05:6808:5c7:: with SMTP id d7mr2084636oij.136.1584619753855; Thu, 19 Mar 2020 05:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584619753; cv=none; d=google.com; s=arc-20160816; b=gEnwxCnyAarcq6PVPNaISml7PvqcIpwq2XfVo+3TggkcHgqtUttFRIeodfombaq8Cq 4LM7wsTXI1/y47pEciuSeV++a+x/VF/OShIhh3DqxipzzeV9OaZvgelLcQT1axkgo4YW tp6WOL2dEe+E3rdoiILrj2cxNcFjvvvCto8Om1cEsinrqAmuullhD8VlQZUWpxtf5Wtk fx4FfwTwUxixJA7s1i9gWsEiOQocNkm3HJQvzyD5gulVHMTDYmsuhC4MXJ+oS3PeI7WB Kb6glBV67y04SX1zfnaY9IbOFvMsq/QAQCUTb1Dot1e0iFgraL8jZYp2U4qRBab0QrT2 cyUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=NE/D0vXJm0zMHPT7dNongw5J9rIVvOQhMYPdq5QsfCw=; b=E6Ljt5MrWcHn0ETIjIqy32MK350avOD9XB7SDKI6fyJc3ub7QXkaeWzeJXuk9P0TcH DbnrJuUExfe2qhYC9qpcG3hXlSUZdqJ0jLcx5YB1CUPnRgUsyEFEib0b7VpWFCpPRGQW njPiERjyGvegABDaCLLqEUgtW5V8z9HyDyXkxc23e75b3r/+eoX2YKpjH5gTAKsY+eqq H1IPlh+UMZb2+yRLf9hcVNuK+7bEfzjrQmsIML3EJO8SY2i+Vy1nFdE4EOmhq2McppP6 AQjPrbCsAJC4jpYjw/EubXypErIJwETMpU0/AD70PuwP62BwM/xc73i3M6mZMjA4VhM9 cv+Q== 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 z204si1023574oiz.133.2020.03.19.05.08.53; Thu, 19 Mar 2020 05:09:13 -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 S1727101AbgCSMHM (ORCPT + 99 others); Thu, 19 Mar 2020 08:07:12 -0400 Received: from foss.arm.com ([217.140.110.172]:34092 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgCSMHM (ORCPT ); Thu, 19 Mar 2020 08:07:12 -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 846EE31B; Thu, 19 Mar 2020 05:07:11 -0700 (PDT) Received: from e113632-lin (unknown [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAB883F305; Thu, 19 Mar 2020 05:07:10 -0700 (PDT) References: <20200311181601.18314-1-valentin.schneider@arm.com> <20200311181601.18314-9-valentin.schneider@arm.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Dietmar Eggemann Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org, vincent.guittot@linaro.org Subject: Re: [PATCH v2 8/9] sched/fair: Split select_task_rq_fair want_affine logic In-reply-to: Date: Thu, 19 Mar 2020 12:06:48 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19 2020, Dietmar Eggemann wrote: >> + */ >> for_each_domain(cpu, tmp) { >> - /* >> - * If both 'cpu' and 'prev_cpu' are part of this domain, >> - * cpu is a valid SD_WAKE_AFFINE target. >> - */ >> - if (want_affine && (tmp->flags & SD_WAKE_AFFINE) && >> + if ((tmp->flags & SD_WAKE_AFFINE) && >> cpumask_test_cpu(prev_cpu, sched_domain_span(tmp))) { >> if (cpu != prev_cpu) >> new_cpu = wake_affine(tmp, p, cpu, prev_cpu, sync); >> >> - sd = NULL; /* Prefer wake_affine over balance flags */ >> + /* Prefer wake_affine over SD lookup */ > > I assume that 'balance flags' stands for (wakeup) load balance, i.e. > find_idlest_xxx() path. So why change it? > > You mean the comment part, right? I was hoping to clarify it a bit - if we go through the want_affine condition, we'll override whatever SD we picked with the highest_flag_domain() lookup (and the cached version in 9/9). Hence me referring to the SD lookup there. > [...]