All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Pearson <markpearson@lenovo.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: <mgross@linux.intel.com>, <platform-driver-x86@vger.kernel.org>
Subject: Re: [External] Re: [PATCH] Add support for DYTC MMC_GET BIOS API.
Date: Tue, 6 Apr 2021 11:25:15 -0400	[thread overview]
Message-ID: <187507f7-a111-90fe-5955-59115198f16d@lenovo.com> (raw)
In-Reply-To: <a9af6b1f-f667-99b5-efc4-11d7ae7afc3b@redhat.com>


On 06/04/2021 09:50, Hans de Goede wrote:
> Hi,
> 
> On 4/6/21 4:22 AM, Mark Pearson wrote:
>> The BIOS team have added a new API that allows us to retrieve the 
>> current performance profile without having to disable/enable CQL 
>> mode. Adding the changes to use this API.
>> 
>> Tested on P15 and X1C8
>> 
>> Signed-off-by: Mark Pearson <markpearson@lenovo.com> --- 
>> drivers/platform/x86/thinkpad_acpi.c | 24 ++++++++++++++++++++++-- 
>> 1 file changed, 22 insertions(+), 2 deletions(-)
>> 
>> diff --git a/drivers/platform/x86/thinkpad_acpi.c
>> b/drivers/platform/x86/thinkpad_acpi.c index 0d9e2ddbf..4eb1ad443
>> 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++
>> b/drivers/platform/x86/thinkpad_acpi.c @@ -10050,6 +10050,7 @@
>> static struct ibm_struct proxsensor_driver_data = { */
>> 
<snip>

>> @@ -10271,6 +10280,17 @@ static int tpacpi_dytc_profile_init(struct
>> ibm_init_struct *iibm) if (dytc_version >= 5) { 
>> dbg_printk(TPACPI_DBG_INIT, "DYTC version %d: thermal mode
>> available\n", dytc_version); +		/* +		 * Check if MMC_GET
>> functionality available +		 * Version > 6 and return success from
>> MMC_GET command +		 */ +		dytc_mmc_get_available = false; +		if
>> (dytc_version >= 6) { +			err = dytc_command(DYTC_CMD_MMC_GET,
>> &output); +			if (!err && ((output & DYTC_ERR_MASK) ==
>> DYTC_ERR_SUCCESS)) +				dytc_mmc_get_available = true; +		} +		err
>> = dytc_command(DYTC_CMD_QUERY, &output);
> 
> It seems this last:
> 
> err = dytc_command(DYTC_CMD_QUERY, &output);
> 
> Line snuck in as a copy and paste error? Or is this intentional ?
> 
> If this is intentional, may I ask why this is done / needed ?
> 
Well that's embarrassing - that is left over from some debug I
was running and it shouldn't be there.

I'll submit a new version with that removed.

Apologies - should have caught that one before pushing for review

Mark


      reply	other threads:[~2021-04-06 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-06  2:22 [PATCH] Add support for DYTC MMC_GET BIOS API Mark Pearson
2021-04-06 13:50 ` Hans de Goede
2021-04-06 15:25   ` Mark Pearson [this message]

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=187507f7-a111-90fe-5955-59115198f16d@lenovo.com \
    --to=markpearson@lenovo.com \
    --cc=hdegoede@redhat.com \
    --cc=mgross@linux.intel.com \
    --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.