[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c0c4d40546e77f6c4428ed3df1530e74e38ed5ab.camel@intel.com>
Date: Wed, 24 Apr 2024 13:32:40 +0000
From: "Winiarska, Iwona" <iwona.winiarska@...el.com>
To: "linux@...ck-us.net" <linux@...ck-us.net>, "Luck, Tony"
<tony.luck@...el.com>
CC: "patches@...ts.linux.dev" <patches@...ts.linux.dev>,
"linux-hwmon@...r.kernel.org" <linux-hwmon@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"jdelvare@...e.com" <jdelvare@...e.com>
Subject: Re: [PATCH v3 50/74] x86/cpu/vfm: Update drivers/hwmon/peci/cputemp.c
On Mon, 2024-04-22 at 22:19 +0000, Luck, Tony wrote:
> > > Unfortunately, it ended up being simplified to just include arch/x86
> > > directly.
> >
> > Reading through that other thread (Iwona: thanks for the link) it seems that
> > moving
> > the x86 include files out of arch/x86/include/asm has been soundly rejected.
> >
> > I'm going to take Iwona's advice above and copy the VFM_* macros.
>
> Iwona,
>
> I just pushed what might become v4 of this series to:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git
> new_families_v4
>
> If you have a moment, could you please check whether the peci bits build on
> a non-x86 system.
It still doesn't compile because X86_VENDOR_INTEL is missing in
include/linux/peci-cpu.h:
We need something like:
diff --git a/include/linux/peci-cpu.h b/include/linux/peci-cpu.h
index 218fc9372..38cb61203 100644
--- a/include/linux/peci-cpu.h
+++ b/include/linux/peci-cpu.h
@@ -6,6 +6,9 @@
#include <linux/types.h>
+/* Copied from x86 <asm/processor.h> */
+#define X86_VENDOR_INTEL 0
+
/* Copied from x86 <asm/cpu_device_id.h> */
#define VFM_MODEL_BIT 0
#define VFM_FAMILY_BIT 8
Thanks
-Iwona
>
> Thanks
>
> -Tony
Powered by blists - more mailing lists