Linux Power Management development
 help / color / mirror / Atom feed
From: "Jürgen Groß" <jgross@suse.com>
To: Sasha Levin <sashal@kernel.org>, Mark Brown <broonie@kernel.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
	Jez Ng <jez@sfcompute.com>,
	Ricardo Neri <ricardo.neri-calderon@linux.intel.com>,
	Ingo Molnar <mingo@kernel.org>,
	Daniel Lezcano <daniel.lezcano@kernel.org>,
	x86@kernel.org, linux-pm@vger.kernel.org,
	Linux Next Mailing List <linux-next@vger.kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: linux-next: semantic conflict between the pm and tip trees
Date: Tue, 24 Nov 2026 16:06:23 +0100	[thread overview]
Message-ID: <e7199286-e2f4-417d-b670-af0322145ec4@suse.com> (raw)
In-Reply-To: <20261124145646.3655959-1-sashal@kernel.org>


[-- Attachment #1.1: Type: text/plain, Size: 1141 bytes --]

On 24.11.26 15:56, Sasha Levin wrote:
> Hi Mark,
> 
> The current pm tree has a semantic conflict with the tip tree that
> breaks the x86 build:
> 
>    drivers/thermal/intel/intel_hfi.c:407:38: error: too many arguments to function call, expected single argument 'msr', have 2 arguments
> 
> 437ce3015e51 ("thermal: intel: hfi: Disable HFI on shutdown and kexec")
> in the pm tree uses rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG, msr_val), and
> e7f9f17e0013 ("treewide: Convert rdmsrq() from a macro to an inline
> function") in the tip tree makes rdmsrq() take only the MSR and return
> the value.
> 
> The fix for the merge:
> 
> diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/intel_hfi.c
> --- a/drivers/thermal/intel/intel_hfi.c
> +++ b/drivers/thermal/intel/intel_hfi.c
> @@ -404,7 +404,7 @@ static bool hfi_disable_if_enabled(void)
>   {
>   	u64 msr_val;
> 
> -	rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG, msr_val);
> +	msr_val = rdmsrq(MSR_IA32_HW_FEEDBACK_CONFIG);
>   	if (!(msr_val & HW_FEEDBACK_CONFIG_HFI_ENABLE_BIT))
>   		return false;
> 
> 

The fix seems to be correct.


Juergen

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

      reply	other threads:[~2026-11-24 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 14:56 linux-next: semantic conflict between the pm and tip trees Sasha Levin
2026-11-24 15:06 ` Jürgen Groß [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=e7199286-e2f4-417d-b670-af0322145ec4@suse.com \
    --to=jgross@suse.com \
    --cc=broonie@kernel.org \
    --cc=daniel.lezcano@kernel.org \
    --cc=jez@sfcompute.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=rafael@kernel.org \
    --cc=ricardo.neri-calderon@linux.intel.com \
    --cc=sashal@kernel.org \
    --cc=x86@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox