Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1815753pxb; Thu, 28 Oct 2021 10:31:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7GEQ622KJraqZXDnhD1Y/42jL1gIm6AH4SjRjYLDk04bgw8k2W3+JpNHKj5aSDLaIdLGz X-Received: by 2002:a17:902:9b8a:b0:13f:c286:a060 with SMTP id y10-20020a1709029b8a00b0013fc286a060mr5016622plp.66.1635442315592; Thu, 28 Oct 2021 10:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635442315; cv=none; d=google.com; s=arc-20160816; b=DtB62vWO8gUeSl1JssvTg2gcNs7ZWjsmQPzGIod3eJXagxfb0ZO9N9D6PzLJ2tLtpT MCQl5XYwbUJUO6/ksR3kNgxFiW5BYVLGSvWplCHqFrIGfAX8I36fB+q7YzVBwAAVXO2r FjeilL04WgHQrAULoC+M2dKuXQW/UxMvu+2Z7xTV3+oQYZlpf/5fqE5I0w+FL4BRyhW9 8Y8RshvXeb10sn8ta1jv9XlrKYr8+6gLw1AwYmYzkbcNORfPOd6X/4MNOUnkw40AJSdJ amTRbK4Jz/rhfhPNfHGE3k9VBHGMSED2ZruGhKUmbJqEBZwaIbGdMFQB23A2M5gttP+c aF5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=cJt3G+GdNt+Ox5hsmaGyEcU5SKbxURazSkdwkNcOPCk=; b=ci7pVX74iGmXEcuFPt8x5niJgguzfFkJPbACKBay10jmOujh/+s11TFwaHNPDACQhg sXifVRXEqdPaTTtUvXfI/hRyz/RpeUok2jXfXxF4mFVIemffnoXJdAxfIF0q6/jE40ml rMUacsengCDZubOuSFdtzAoNp4XlFWxRvwjv9LAA9IvkDmJAxPjf5q4N+T78KQvPutSL Y2sFjTiF41pTD76QJ14l2wd/aDioOGbL16nWJvcpFlk3HqeZIfPGGGi6GYnl7YvL/ZAM mrH293qUbuuc4aGNWbrxwrCfzuJoLdOqlCIuR69Wb1i/9d/K0olU16SWxlu7C437gvsu VPVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si4203176pfl.338.2021.10.28.10.31.41; Thu, 28 Oct 2021 10:31:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbhJ1Rbv (ORCPT + 99 others); Thu, 28 Oct 2021 13:31:51 -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-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.