From patchwork Wed Nov 17 19:44:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Cox X-Patchwork-Id: 1556365 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=RJpbKr8m; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HvYL33c41z9sR4 for ; Thu, 18 Nov 2021 06:44:58 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mnQrO-0001M7-6d; Wed, 17 Nov 2021 19:44:46 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mnQrM-0001M0-HL for kernel-team@lists.ubuntu.com; Wed, 17 Nov 2021 19:44:44 +0000 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 4FCF04001F for ; Wed, 17 Nov 2021 19:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1637178284; bh=3rG2CdhYpUhuemKW2RJ/WiQD6Fb2NqCwdqiBQF31aD4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=RJpbKr8m6T6ydZNYr82IvChzv1c4pWFJWeod9hvbA5NwKd/2BF/QhPcNtWUTjY8ma N4OIjxFhIz1taGi/TevLDmldxFe5Oi5j7jscy2CqxH7j1/4vkBMD7+QmKc7J0cW2Sj pxEagb4+GvEr9MxUImJoc1aDWjE3t4lWLFg9GlnRCfnz2Oj3MgDmP/W5RiEi75i3GD kWntqGjiRlLmJKfoDgS2opdJ+6f1Go2EVF+X7i7riAJoJ7XdOMYTYqDaANWK34q34O uaWMl9kUKtAnuy43kxxN0U0FUMDTWdHQ5f/gpeo9Ys8OLnh6HNwUFJ/Rd33gt5J1Ce Jdide4eNl6TbA== Received: by mail-io1-f71.google.com with SMTP id z21-20020a5e8615000000b005e22e531c8aso2129497ioj.13 for ; Wed, 17 Nov 2021 11:44:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3rG2CdhYpUhuemKW2RJ/WiQD6Fb2NqCwdqiBQF31aD4=; b=4CMbUQawUnR4YS5VcmQTuhZvljJ8ZSWddl1oFiByv8CTlzQf1wENCMI/G763tisWOL /R+BjvDfhD7GnNp8r2vU4fyUz1b8eNzuPRpWp8U8oDBCtrqStVB46iZcWMh4Ux3LItJN 7R8qmGTe49tl7MBeUQ8jxwp3uXb9+22E4aOZSKlLavEx75KIdAv0WYTQ/iLkRmRC9VI9 +TH4K4Arb2gXguTFLsrZz4MjVnRtGlQ3bMO+L11jy9ULwWg3HAWmZFoLWDpfX+vgAFQS 8PzclO8pw+fqyR7FWqBmJ6JlfselDlki1s9+rG2VxgE93QZvDL+PuyQ4gG+uMA6hkJQN tTaQ== X-Gm-Message-State: AOAM533adOOI2GbzmX6bwmOGyiUvyVUtlg2BjMorKcBC4xQB3p1cjB0V MopM8qXUZrBq543FTcLaemGZh+55YlLE6nwQvIVrOL/h90BKHsEnIG2XNby/QpTy24m0j+fx6w7 qPKaHNc9QgdFiEmxtMb+r1yILvkgisXjW2fUtfRg6Gg== X-Received: by 2002:a05:6602:2e81:: with SMTP id m1mr12799257iow.55.1637178280536; Wed, 17 Nov 2021 11:44:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnKCGCLdhI79kxNGudxYYlstKuFWQ2SUtYSQ0ii4fvBCzRjO3+t879M3nJFsDJ+IMGPhfDvw== X-Received: by 2002:a05:6602:2e81:: with SMTP id m1mr12799241iow.55.1637178280363; Wed, 17 Nov 2021 11:44:40 -0800 (PST) Received: from localhost.localdomain ([108.175.235.223]) by smtp.gmail.com with ESMTPSA id o1sm448620ilj.41.2021.11.17.11.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Nov 2021 11:44:39 -0800 (PST) From: Philip Cox To: kernel-team@lists.ubuntu.com Subject: [SRU][H, I][PATCH 0/1 v2] cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline Date: Wed, 17 Nov 2021 14:44:34 -0500 Message-Id: <20211117194435.175399-1-philip.cox@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: "Rafael J. Wysocki" BugLink: https://bugs.launchpad.net/bugs/1950584 [Impact] "Commit a365ab6b9dfb ("cpufreq: intel_pstate: Implement the ->adjust_perf() callback") caused intel_pstate to use nonzero HWP desired values in certain usage scenarios, but it did not prevent them from being leaked into the confugirations in which HWP desired is expected to be 0" I believe I'm seeing this issue on my laptop during suspend/resume. The upstream fix is: commit dbea75fe18f60e364de6d994fc938a24ba249d81 Author: Rafael J. Wysocki Date: Wed Nov 3 19:43:47 2021 +0100 cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline [Fix] dbea75fe18f60e364de6d994fc938a24ba249d81 cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline Changes from v1: - v1 was a backport into hirsute, and impish as separate patches. v2 is a clean cherry-pick that merges and builds clean in both hirsute, and impish. Acked-by: Tim Gardner