Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp222436rwe; Fri, 26 Aug 2022 04:01:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+Ej6NdcCe3sKUvfuuzxHj7+NwToCmKEhy7YPP7Vvl9/ZOdjFv5cUqijqom6z8PTWIEGEa X-Received: by 2002:a17:907:971d:b0:73d:78c8:77b5 with SMTP id jg29-20020a170907971d00b0073d78c877b5mr5137423ejc.631.1661511669806; Fri, 26 Aug 2022 04:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661511669; cv=none; d=google.com; s=arc-20160816; b=yNYQn3c7NVz9u5gpGTezqUZhDsOclUBuIcuYYHwvQDFKyFMfRk/FUnEYVO5iGNMk7F tuSOjfyOMOuzdHPVjMncxXw/oUe/DuHxbux8duHRUCtKVtuUEDHIIJqnCyMUwIVKFSd8 pQC0mL8Vb8ALYY6UzTpzhnuCNqwN9ycQdhqnO+UdGHNicLrfXkOeUhTIld3z6Il7zyon sois3jNRtACb7LL9uZFEKgNDDUrD3ShjDHGAd1xJS3ab9EE545ZUmfE3zLeRvDEUD9Cp YLFuaSbAe134PXgoK14ZmhKgonl5COe1Jicv1hU2rjjtkbw3B+0FJLdQaBziHVVxm9wj UlSw== 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:dkim-signature; bh=EQ1zneK9DxbiINAMLJbVkqYItLnLRxocRocpFZJXiBQ=; b=vfPtpP0A8L8krikydnYe2u7xB4Fl4mwAQjtluNBmb/Tqq1y5tb/VL+LLxzcoG1SEf2 lEntSyThAYRAE5H5AbgA9VyobnCChVoYPyyYO8810pXoXcaAJowYAOmzrFf7t6CwvE30 1RoA2BkXBdBgbndwF6f2s23j/GfLrIZjXpZcURrIQ7fmh0L787kUdnR4REgVCYN7n5s3 PSgndNZ/cvSK5oKiJHPa2V00f2Ihtl+4cWcsmPyuk/Bc+XjHE6u4elIKOPPdyRDM3Y6+ 12y2sy+uTqb1W8tBUdJ8GSpmisyqP033W8nWecTw/UONh8oAzrqxRaWZezFjxCi9tqQD pTIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LdwJdE1I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a056402358f00b0043dc410c5ddsi1507186edc.484.2022.08.26.04.00.43; Fri, 26 Aug 2022 04:01:09 -0700 (PDT) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LdwJdE1I; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343993AbiHZKyg (ORCPT + 99 others); Fri, 26 Aug 2022 06:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243036AbiHZKyf (ORCPT ); Fri, 26 Aug 2022 06:54:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3C44D271 for ; Fri, 26 Aug 2022 03:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661511272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EQ1zneK9DxbiINAMLJbVkqYItLnLRxocRocpFZJXiBQ=; b=LdwJdE1IK2cgTTJMznXMNG7oUKLKZEZtxBJiDd0acYYzRtYNEAFqbmTtqAMGo4+VbLSXzT HhTiJ3OaRvtkkVBto/j1AMO2DLQeNLKs4iEIzplpNGxZpL3qvELX5FDZuwAXg+x4TRgtkT 6CwIrdsBuk+C/4ZaESHPk+6s/lLA7xI= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-648-aBgRRYxqNM6aJ3J0pSQCCQ-1; Fri, 26 Aug 2022 06:54:31 -0400 X-MC-Unique: aBgRRYxqNM6aJ3J0pSQCCQ-1 Received: by mail-ej1-f70.google.com with SMTP id sa33-20020a1709076d2100b0073d83e062c8so476989ejc.0 for ; Fri, 26 Aug 2022 03:54:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=EQ1zneK9DxbiINAMLJbVkqYItLnLRxocRocpFZJXiBQ=; b=XXAYJ8SNo+xjzT9TFld1pFn4JpAsI8W5suG8n7QfbnvFh2XquxKn1hV09/bbJrdXZh 89Azp8NjKivmUCMcTgtorboEN8/guhnOo6kLF3qS81zQyiFy4xxyNyA4f1+4/75zXUjj hCeBknJBvOgAC7+NVT2rPZtm3/r8TDz5Cg/4SVSQEKejRrWM7wmO50NQJyunHZ0M4Xo1 D44SGdDgeSZskD3Dg7p/MI/HVnzX7WLJh+AYWN80TZBuATk3Ez+rTcmZruxnIchUZLGF SkOKeQVzuOK7Ie0KZ8uripVXO+r/tYYq5tZwZz7ZrWMnSmfjFJ+D5WrxWSG0CepUwRb6 a60w== X-Gm-Message-State: ACgBeo1H2qu1HHv+6C7VYVSyT9tqDerrrnQfYj3s8+y2XLs4yD2MBnxe mM1mN8D441w27a8YsCnQS1ap/s0xJebzC2shKj8D0xzy2KXUKPnRgelgOGBiSvDmTIxZytKUI1p 2n5Bdluorrvkf7PZDM+tXsqQP X-Received: by 2002:a17:907:c24:b0:73d:7c20:cc45 with SMTP id ga36-20020a1709070c2400b0073d7c20cc45mr5307343ejc.294.1661511270509; Fri, 26 Aug 2022 03:54:30 -0700 (PDT) X-Received: by 2002:a17:907:c24:b0:73d:7c20:cc45 with SMTP id ga36-20020a1709070c2400b0073d7c20cc45mr5307323ejc.294.1661511270291; Fri, 26 Aug 2022 03:54:30 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id eq23-20020a170907291700b0073d234e994csm738434ejc.185.2022.08.26.03.54.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Aug 2022 03:54:29 -0700 (PDT) Message-ID: <8f54d308-7db1-d7d2-abd7-c57c028a28b8@redhat.com> Date: Fri, 26 Aug 2022 12:54:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2] platform/x86: thinkpad_acpi: Explicitly set to balanced mode on startup Content-Language: en-US To: Mario Limonciello , Mark Pearson , Henrique de Moraes Holschuh , Mark Gross Cc: madcatx@atlas.cz, ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220819180101.6383-1-mario.limonciello@amd.com> From: Hans de Goede In-Reply-To: <20220819180101.6383-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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, On 8/19/22 20:01, Mario Limonciello wrote: > It was observed that on a Thinkpad T14 Gen1 (AMD) that the platform > profile is starting up in 'low-power' mode after refreshing what the > firmware had. This is most likely a firmware bug, but as a harmless > workaround set the default profile to 'balanced' at thinkpad_acpi startup. > > Reported-by: madcatx@atlas.cz > Link: https://bugzilla.kernel.org/show_bug.cgi?id=216347 > Signed-off-by: Mario Limonciello > --- > v1->v2 > * Only run on AMD systems (PSC mode) Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note I will also add this to the fixes branch and I will include this in the next fixes pull-req for 6.0 . Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > > drivers/platform/x86/thinkpad_acpi.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c > index 22d4e8633e30..2dbb9fc011a7 100644 > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -10592,10 +10592,9 @@ static int tpacpi_dytc_profile_init(struct ibm_init_struct *iibm) > /* Ensure initial values are correct */ > dytc_profile_refresh(); > > - /* Set AMT correctly now we know current profile */ > - if ((dytc_capabilities & BIT(DYTC_FC_PSC)) && > - (dytc_capabilities & BIT(DYTC_FC_AMT))) > - dytc_control_amt(dytc_current_profile == PLATFORM_PROFILE_BALANCED); > + /* Workaround for https://bugzilla.kernel.org/show_bug.cgi?id=216347 */ > + if (dytc_capabilities & BIT(DYTC_FC_PSC)) > + dytc_profile_set(NULL, PLATFORM_PROFILE_BALANCED); > > return 0; > }