From: Mark Pearson <markpearson@lenovo.com>
To: <markpearson@lenovo.com>
Cc: <hdegoede@redhat.com>, <markgross@kernel.org>,
<platform-driver-x86@vger.kernel.org>,
Mario Limonciello <mario.limonciello@amd.com>
Subject: [PATCH 4/4] platform/x86: thinkpad-acpi: Enable AMT by default on supported systems
Date: Fri, 3 Jun 2022 13:02:12 -0400 [thread overview]
Message-ID: <20220603170212.164963-4-markpearson@lenovo.com> (raw)
In-Reply-To: <20220603170212.164963-1-markpearson@lenovo.com>
By default the ACPI platform profile starts in balanced mode. On
supported systems AMT is supposed to be enabled in balanced mode
by default.
When checking the capabilities during initialization, set up AMT to be
enabled if it's supported.
Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
---
drivers/platform/x86/thinkpad_acpi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index f11866225ef3..ae819ece9900 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -10597,6 +10597,11 @@ 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);
+
return 0;
}
--
2.36.1
next prev parent reply other threads:[~2022-06-03 17:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-03 17:02 [PATCH 1/4] platform/x86: thinkpad-acpi: profile capabilities as integer Mark Pearson
2022-06-03 17:02 ` [PATCH 2/4] platform/x86: thinkpad-acpi: Add support for automatic mode transitions Mark Pearson
2022-06-03 17:02 ` [PATCH 3/4] platform/x86: thinkpad-acpi: Add support for hotkey 0x131a Mark Pearson
2022-06-03 17:14 ` Limonciello, Mario
2022-06-03 17:21 ` [External] " Mark Pearson
2022-06-03 17:22 ` Limonciello, Mario
2022-06-03 17:02 ` Mark Pearson [this message]
2022-06-22 9:51 ` [PATCH 1/4] platform/x86: thinkpad-acpi: profile capabilities as integer Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220603170212.164963-4-markpearson@lenovo.com \
--to=markpearson@lenovo.com \
--cc=hdegoede@redhat.com \
--cc=mario.limonciello@amd.com \
--cc=markgross@kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.