The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* linux-next: semantic conflict between the pm and tip trees
@ 2026-11-24 14:56 Sasha Levin
  2026-11-24 15:06 ` Jürgen Groß
  2026-11-25 10:06 ` Ingo Molnar
  0 siblings, 2 replies; 3+ messages in thread
From: Sasha Levin @ 2026-11-24 14:56 UTC (permalink / raw)
  To: Mark Brown
  Cc: Rafael J. Wysocki, Jez Ng, Ricardo Neri, Juergen Gross,
	Ingo Molnar, Daniel Lezcano, x86, linux-pm,
	Linux Next Mailing List, Linux Kernel Mailing List

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;


-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: semantic conflict between the pm and tip trees
  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ß
  2026-11-25 10:06 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Jürgen Groß @ 2026-11-24 15:06 UTC (permalink / raw)
  To: Sasha Levin, Mark Brown
  Cc: Rafael J. Wysocki, Jez Ng, Ricardo Neri, Ingo Molnar,
	Daniel Lezcano, x86, linux-pm, Linux Next Mailing List,
	Linux Kernel Mailing List


[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next: semantic conflict between the pm and tip trees
  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ß
@ 2026-11-25 10:06 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2026-11-25 10:06 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Mark Brown, Rafael J. Wysocki, Jez Ng, Ricardo Neri,
	Juergen Gross, Daniel Lezcano, x86, linux-pm,
	Linux Next Mailing List, Linux Kernel Mailing List


* Sasha Levin <sashal@kernel.org> 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;

LGTM, thank you!

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-25 10:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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ß
2026-11-25 10:06 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox