Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3473624rwo; Mon, 24 Jul 2023 11:31:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFP7DQaGneQaitb98LXW83g4J4nMoUiRJN8kq3Qndwrv4ZtH4kb0ctolzWAoZ6+sr1xWYOc X-Received: by 2002:ac2:48aa:0:b0:4fd:d481:ff35 with SMTP id u10-20020ac248aa000000b004fdd481ff35mr5661658lfg.42.1690223517468; Mon, 24 Jul 2023 11:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690223517; cv=none; d=google.com; s=arc-20160816; b=TQza0ruqOJ+tyCtXhwnP+NJcp1mH4FAayG2VOlmTS3exCsoS47EzCfl6RK6rNNEsVU NLkTNDIJhHZRWuAKAS0ik+q1HWWMjyidEj9pPCAgfKt821O2729bNZ0EhEwHpOrX2bhc tfXK8rDYyZ0yzzPjDevzb52TCBuZ08Iy1yunWeT3eDUSfgZDHuy8IvOcFCBc2K4u3EP4 DUh9EvOVcidvipJ6T3waBWldiyJfQnMbe9rj6QjrM73fjzNejcG//WzuHM7r+vNoJBLt Rs0/QMXtBJmCv52COxmEKX1dQ1vS16LQMNo0mNXWlJSP51XTccX9T/wNOGnC5bRf+lnK XjdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=32U6yCkZVuDpFb2hkBFYYNntUUSd7o83qM4BEEfKucg=; fh=JwxuziqZ94nwplQ0GToc4TLFS350wqa3HHVk9EadgbU=; b=1BJ3I4pkqy/UlpZFK8QjiT9Rw9SH6pvIwqWJmlW4ca5FaSYuYRJtbAEUcpOgg2baZi +9ow0CuwEILRKE+rYXDDLzKDmR+a2VznDIxHKmgT7y50BxpxRxpcPWRFQO7SMgfaPVMO C/sKPbwgL1Xiz/h6dc2TWTWs5VYvh8KGM50Ry8UMb+SuCUENwEnn9sWeNU1NdddJd8d+ vKhaJPSMFeWSLln/Gl6JLZNgjrc3SZlx8YkMB+2a4L6g9SDJocrqNPs0TL9TfVCkq3Af KzD74pqKJJgS6m96uTVdDHV5jHJW0Q0j3qVLWtXqKaOk2Dn8aipO25OLOpE7D6dez7/K Bo1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d26-20020aa7ce1a000000b0052237839228si1288139edv.562.2023.07.24.11.31.33; Mon, 24 Jul 2023 11:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232023AbjGXR5J (ORCPT + 99 others); Mon, 24 Jul 2023 13:57:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjGXR4w (ORCPT ); Mon, 24 Jul 2023 13:56:52 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93FBC4C0C for ; Mon, 24 Jul 2023 10:54:57 -0700 (PDT) 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 2E05CFEC; Mon, 24 Jul 2023 10:55:40 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2B7453F5A1; Mon, 24 Jul 2023 10:54:56 -0700 (PDT) Message-ID: <1e675286-b4b8-5abd-dd4c-3f2ffdaf12c1@arm.com> Date: Mon, 24 Jul 2023 19:54:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH] sched/fair: Fix impossible migrate_util scenario in load balance Content-Language: en-US To: Qais Yousef Cc: Vincent Guittot , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org References: <20230716014125.139577-1-qyousef@layalina.io> <20230718161829.ws3vn3ufnod6kpxh@airbuntu> <20230718172522.s4gcfx3ppljwbks7@airbuntu> <20230721105711.nzunqdtdaevmrgyg@airbuntu> <20230721220430.qv6eqo4dosfrsilo@airbuntu> <20230724161038.nreywdwayiq2ypty@airbuntu> From: Dietmar Eggemann In-Reply-To: <20230724161038.nreywdwayiq2ypty@airbuntu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/07/2023 18:10, Qais Yousef wrote: > On 07/24/23 14:58, Dietmar Eggemann wrote: >> On 22/07/2023 00:04, Qais Yousef wrote: >>> On 07/21/23 15:52, Vincent Guittot wrote: >>>> Le vendredi 21 juil. 2023 à 11:57:11 (+0100), Qais Yousef a écrit : >>>>> On 07/20/23 14:31, Vincent Guittot wrote: [...] > So I actually moved everything to a single cluster and this indeed solves the > lb() issue. But then when I tried to look at DT mainline I saw that the DTs > still define separate cluster for each uArch, and this got me confused whether > I did the right thing or not. And made me wonder whether the fix is to change > DT or port Sudeep's/Ionela's patch? IMHO, you have to change DT. > I did some digging and I think the DT, like the ones in mainline by the look of > it, stayed the way it was historically defined. This would be a "mistake" for Arm DynamIQ based systems. We use QC RB5 in our testing and this board schedules only within a MC sched domain (I guess it's: arch/arm64/boot/dts/qcom/qrb5165-rb5.dts -> sm8250.dtsi) > So IIUC the impacts are on system pre-simplified EM (should have been phased > out AFAIK). And on different presentation on sysfs topology which can > potentially break userspace deps, right? I think this is not a problem too, but > can be famous last words as usual :-) The only thing I remember was when we hinted at this issue to Android folks a couple of years ago, they said they have to stay with the phantom domain due to dependencies from vendor specific code other than related to the EM. IMHO, for Pixel6 the DT cpu-map information is in: private/gs-google/arch/arm64/boot/dts/google/gs101-cpu.dtsi of the android-kernel. [...]