Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp493630rwb; Wed, 16 Nov 2022 03:53:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5i8l6pVRz9pyBLv4B+BPUZjdGXMWk2KZMY3jTXQb5JsvJl3Mw4cSTS5hZvYtgcwpDv49rL X-Received: by 2002:a17:902:6a8c:b0:188:6c5b:ffb0 with SMTP id n12-20020a1709026a8c00b001886c5bffb0mr8654434plk.125.1668599580655; Wed, 16 Nov 2022 03:53:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668599580; cv=none; d=google.com; s=arc-20160816; b=kIwBD0SwoY1tDfL1smrM+n5j1ePzjyeUufl8eex8NwAZyz33Pik3x10uHS1aLJ+RCT db7+yYcDjX0586s3x687riraYsDXHzgIwXHxYS1h1p+0xGv9JvRl4aKjyApOpXqgwd9w MkeRev8e+LGbriEUqKKyFT2Hllk/CTqlRhjWuI1LkEqrYd1q3aHt9IzPAs9Gv0qicrXC laWw0itgH+c7qubR8hP3CVnlhUPW9EzD6lr1HazeXpIhIakIuCyuS/Pf6HoZ/sLiB+Wa Y+Rdrl2iKsPOjrI8REjBkYq8HlcyCg4D9qMB2ejc7+aZJ9esJmqMmOar236A9JS9a9Zt sKkg== 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 :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id; bh=urbwpEGOtSTlILZPMrTUmpAPBnRGzI9h7ix4wS23wRo=; b=XuBgrbXn7RmmcpzZl2o72wBGZqZGHVyHp98nEZij3bblv67jJN8dmTzK4yK8K8wrBI jUr2HwiYGGw7u0Q5A90HnqRZLYm8sajRoG9o1E41ls/2jOJfOj7m1D38/BYg4EHm/9HS Io8RT6YJ4a8EPcnK8Yz+VWGDLu5BIfY34F+dDiR94bW0C0LopWUHH8X4xeZ79sB8ETfc 1ZebLWaNBQRXPdREiIA4nTaHBOJyPRhzccEK2mPBnJ9kSKpK2dT1I9OUk4+/D/Bz58DP EVe0mR946bnaWw6eOiAYgYs75wyJ/XTbtw2zV5EnxhfL2UVdgTksU3UNHemFWvGwAxM1 xmCA== 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 q11-20020a170902dacb00b00186b069c0e1si16666256plx.282.2022.11.16.03.52.49; Wed, 16 Nov 2022 03:53:00 -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 S233638AbiKPLtn (ORCPT + 91 others); Wed, 16 Nov 2022 06:49:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238483AbiKPLsy (ORCPT ); Wed, 16 Nov 2022 06:48:54 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 014AF29825; Wed, 16 Nov 2022 03:35:45 -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 1120A1477; Wed, 16 Nov 2022 03:35:51 -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 01FCC3F663; Wed, 16 Nov 2022 03:35:40 -0800 (PST) Message-ID: <205c3ebf-5a0b-883e-a9db-731e04bac728@arm.com> Date: Wed, 16 Nov 2022 11:35:38 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 From: Lukasz Luba Subject: Re: [PATCH v1] Revert "cpufreq: schedutil: Move max CPU capacity to sugov_policy" To: Sam Wu Cc: Saravana Kannan , Ingo Molnar , Dietmar Eggemann , "Isaac J . Manjarres" , kernel-team@android.com, Mel Gorman , Juri Lelli , Ben Segall , Steven Rostedt , Vincent Guittot , Valentin Schneider , Peter Zijlstra , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Daniel Bristot de Oliveira , Viresh Kumar References: <20221110195732.1382314-1-wusamuel@google.com> Content-Language: en-US In-Reply-To: <20221110195732.1382314-1-wusamuel@google.com> 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 Hi Sam, On 11/10/22 19:57, 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. Which mainline kernel version you use in pixel6? Could you elaborate a bit how is it possible? Do you have the sg_policy setup properly (and at right time)? Do you have the cpu capacity from arch_scale_cpu_capacity() set correctly and at the right time during this cpufreq governor setup? IIRC in Android there is a different code for setting up the cpufreq sched governor clones. In mainline we don't have to do those tricks, so this might be the main difference. Could you trace the value that is read from arch_scale_cpu_capacity() and share it with us? I suspect this value changes in time in your kernel. Regards, Lukasz