Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp560953rwb; Wed, 16 Nov 2022 04:50:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf4iCy7rxJ3UJ+8+XkGY7pr90SVUqxQHoqLMZcbbgpzOBYT4nHNlEUHBfgrg4ZTS4O1TFmcK X-Received: by 2002:a65:580b:0:b0:434:c0ca:b376 with SMTP id g11-20020a65580b000000b00434c0cab376mr19501349pgr.180.1668603043700; Wed, 16 Nov 2022 04:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668603043; cv=none; d=google.com; s=arc-20160816; b=OwUrtTIZMM/LIPB0OMsW5xiTonpOIxrM2neIexe5znQ+gmYZhSqH5KlUwcg/Qk1g3V aZ3vqr8j+t9RHHsyY8U+OGqBoOubVjBuNT5YWxoffeSHcJ4eM5FJGAPSL3122Zj+8S6h 8ClWuE7nEMVEPhV5oew0RJrt7H0KMKh1v0PUX1bHlV/hqA1WsQFnSORUbPRee4kJc1zZ NbpeS1oYIo3gayKhIk2tn4fingEdyVmy6rSHzA3i94hJq/m6mCO/8Uo/XI5mlKAJddZW GD75c+tyqhh98joeWt2oADyobFvHCHniNFfxFmRv6E+bx164MzPWf1EXEt8M2NcDVLvb 1png== 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=DtHTndxp6c1HNqAeEKXSFgko/No7KqzQ+LhHAWL5OjE=; b=wl7eGKJokDQZGzriQCB/s+OpS9J8LRk7c7tD7LRW53DmBbi0yPdpc23qQsovIMDF+F RIzQcmCVU3A6EGjdxEXzDp5knE2Q7Pee4skYXu06U5KG4cCqp/3SgQwlNiI1r+zDmGO8 Sbw3FImSdaAJ68SOOIQcD+epgOpprf+9ceBZfcUFATlGZDzLIqPBcCrB0S18gzu+QDw5 1J7PZoYo5oIExrhsjTAKo0RnMpZrxqR5vBG1xsv7GKCNgvDYD/JZ30K+8tQdORERxWDN o5o7qjWSUJA2cj8mw69RtwJu80lbPmUq3K6PpBvJeT9GH7YPaga5xwiVLgzZknHEGMxd /Gfg== 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 f66-20020a636a45000000b0047679c22ad6si9266534pgc.237.2022.11.16.04.50.31; Wed, 16 Nov 2022 04:50:43 -0800 (PST) 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 S230122AbiKPLxs (ORCPT + 91 others); Wed, 16 Nov 2022 06:53:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbiKPLxP (ORCPT ); Wed, 16 Nov 2022 06:53:15 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F1953F056; Wed, 16 Nov 2022 03:43:56 -0800 (PST) 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 876AC1477; Wed, 16 Nov 2022 03:44:02 -0800 (PST) Received: from [10.57.6.51] (unknown [10.57.6.51]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3DA443F663; Wed, 16 Nov 2022 03:43:52 -0800 (PST) Message-ID: <880b7332-562c-4934-4e92-493b112568c9@arm.com> Date: Wed, 16 Nov 2022 11:43:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v1] Revert "cpufreq: schedutil: Move max CPU capacity to sugov_policy" Content-Language: en-US To: Saravana Kannan , Sam Wu Cc: "Rafael J. Wysocki" , Viresh Kumar , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , "Isaac J . Manjarres" , kernel-team@android.com, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221110195732.1382314-1-wusamuel@google.com> From: Lukasz Luba In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 11/15/22 22:35, Saravana Kannan wrote: > On Thu, Nov 10, 2022 at 11:57 AM Sam Wu wrote: >> >> This reverts commit 6d5afdc97ea71958287364a1f1d07e59ef151b11. >> >> On a Pixel 6 device, it is observed that this commit increases >> latency by approximately 50ms, or 20%, in migrating a task >> that requires full CPU utilization from a LITTLE CPU to Fmax >> on a big CPU. Reverting this change restores the latency back >> to its original baseline value. >> >> Fixes: 6d5afdc97ea7 ("cpufreq: schedutil: Move max CPU capacity to sugov_policy") >> Cc: Lukasz Luba >> Cc: Saravana Kannan >> Cc: Isaac J. Manjarres >> Signed-off-by: Sam Wu > > Rafael, can we pick this up please? > > Lukasz, no objections to the idea itself, but it's causing regression > and we'd like to revert and then fix it. If you see this in mainline kernel, then I'm fine with reverting it. Then I will have to trace why this CPU capacity value can change over time in mainline kernel (while it shouldn't, because we register the cpufreq policy and the governor later, after we calculate the capacity in arch_topology.c). Maybe something has changed in mainline in the meantime in this CPU capacity setup code, which caused this side effect. I know that android-mainline has some different setup code for those custom vendor governors. I just want to eliminate this bit and be on the same page. Regards, Lukasz > > -Saravana >