From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69E13C433F5 for ; Thu, 28 Oct 2021 17:29:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4AFCF6058D for ; Thu, 28 Oct 2021 17:29:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230448AbhJ1Rbw (ORCPT ); Thu, 28 Oct 2021 13:31:52 -0400 Received: from mail-oi1-f173.google.com ([209.85.167.173]:39793 "EHLO mail-oi1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhJ1Rbv (ORCPT ); Thu, 28 Oct 2021 13:31:51 -0400 Received: by mail-oi1-f173.google.com with SMTP id n11so1195905oig.6; Thu, 28 Oct 2021 10:29:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cJt3G+GdNt+Ox5hsmaGyEcU5SKbxURazSkdwkNcOPCk=; b=HFjj2NUoVkShwbVfNSc2jaOm6kOrUv9++zfewmUpYKWzSsEJChxr/DgmdRGKwnpDU9 kqMoJEc/3K8wUQpeu5F8draRjfL4X+miEzFaDi3DDGuhS8j5Vi/sUL+wNA3cWbTolt1X FaN8IcSulRc90vsijSuBjeVrhai9mHj2DcVk0Flzkg0OmEoeWp14L03aKRR+Opi4CUTs hK/2XvyXKMJvKCex6TXf+Qbpg4GxID2N2MMyBxgrAKqZHS0z5VI+aE051SOEodSpMM9J T1M4HWaLqneK0/l2tzgCC4LbOpBJlIHr18g5nULyQm+ErmNzNsr2HmOOMdnFPakggZoZ yWEw== X-Gm-Message-State: AOAM531aBpeGDXJ2p8hddeTtm671FETLqod1MyXn7e10XA9W3KUmlYnm uDqWyUzPPcZX/SDq3k2DGGyBz0Cr60VhXy865xg= X-Google-Smtp-Source: ABdhPJwoUfEUI7tKuvxHbmK/1KdZTjAcC1nJ8fehr91sNap54RlSZcnRFdlJsWYTDrssp3oH2H1BfFRFmcQ7Uo5d//w= X-Received: by 2002:a05:6808:e90:: with SMTP id k16mr3985669oil.166.1635442163793; Thu, 28 Oct 2021 10:29:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 28 Oct 2021 19:29:12 +0200 Message-ID: Subject: Re: problem in changing from active to passive mode To: Julia Lawall Cc: Doug Smythies , Srinivas Pandruvada , Len Brown , "Rafael J. Wysocki" , Viresh Kumar , Linux PM list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 28, 2021 at 7:10 PM Julia Lawall wrote: > > > Now, for your graph 3, are you saying this pseudo > > code of the process is repeatable?: > > > > Power up the system, booting kernel 5.9 > > switch to passive/schedutil. > > wait X minutes for system to settle > > do benchmark, result ~13 seconds > > re-boot to kernel 5.15-RC > > switch to passive/schedutil. > > wait X minutes for system to settle > > do benchmark, result ~40 seconds > > re-boot to kernel 5.9 > > switch to passive/schedutil. > > wait X minutes for system to settle > > do benchmark, result ~28 seconds > > In the first boot of 5.9, the des (desired?) field of the HWP_REQUEST > register is 0 and in the second boot (after booting 5.15 and entering > passive mode) it is 10. I don't know though if this is a bug or a > feature... It looks like a bug. I think that the desired value is not cleared on driver exit which should happen. Let me see if I can do a quick patch for that.