patches.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines
@ 2024-06-11 17:34 Tony Luck
  2024-06-12  8:08 ` Greg Kroah-Hartman
  2024-06-12  8:10 ` Hans de Goede
  0 siblings, 2 replies; 6+ messages in thread
From: Tony Luck @ 2024-06-11 17:34 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Mauro Carvalho Chehab, Hans de Goede,
	linux-kernel, patches
  Cc: linux-media, linux-staging, Tony Luck, Andy Shevchenko

New CPU #defines encode vendor and family as well as model.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
---

Mauro, Hans, Greg: Which one of you owns this one. Can you take
a look please. Let me know if changes are needed.

 .../atomisp/include/linux/atomisp_platform.h  | 27 ++++++++-----------
 1 file changed, 11 insertions(+), 16 deletions(-)

diff --git a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
index 0e3f6fb78483..fdeb247036b0 100644
--- a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
+++ b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
@@ -18,7 +18,7 @@
 #ifndef ATOMISP_PLATFORM_H_
 #define ATOMISP_PLATFORM_H_
 
-#include <asm/intel-family.h>
+#include <asm/cpu_device_id.h>
 #include <asm/processor.h>
 
 #include <linux/i2c.h>
@@ -178,22 +178,17 @@ void atomisp_unregister_subdev(struct v4l2_subdev *subdev);
 int v4l2_get_acpi_sensor_info(struct device *dev, char **module_id_str);
 
 /* API from old platform_camera.h, new CPUID implementation */
-#define __IS_SOC(x) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \
-		     boot_cpu_data.x86 == 6 &&                       \
-		     boot_cpu_data.x86_model == (x))
-#define __IS_SOCS(x,y) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \
-		        boot_cpu_data.x86 == 6 &&                       \
-		        (boot_cpu_data.x86_model == (x) || \
-		         boot_cpu_data.x86_model == (y)))
-
-#define IS_MFLD	__IS_SOC(INTEL_FAM6_ATOM_SALTWELL_MID)
-#define IS_BYT	__IS_SOC(INTEL_FAM6_ATOM_SILVERMONT)
-#define IS_CHT	__IS_SOC(INTEL_FAM6_ATOM_AIRMONT)
-#define IS_MRFD	__IS_SOC(INTEL_FAM6_ATOM_SILVERMONT_MID)
-#define IS_MOFD	__IS_SOC(INTEL_FAM6_ATOM_AIRMONT_MID)
+#define __IS_SOC(x) (boot_cpu_data.x86_vfm == x)
+#define __IS_SOCS(x, y) (boot_cpu_data.x86_vfm == x || boot_cpu_data.x86_vfm == y)
+
+#define IS_MFLD	__IS_SOC(INTEL_ATOM_SALTWELL_MID)
+#define IS_BYT	__IS_SOC(INTEL_ATOM_SILVERMONT)
+#define IS_CHT	__IS_SOC(INTEL_ATOM_AIRMONT)
+#define IS_MRFD	__IS_SOC(INTEL_ATOM_SILVERMONT_MID)
+#define IS_MOFD	__IS_SOC(INTEL_ATOM_AIRMONT_MID)
 
 /* Both CHT and MOFD come with ISP2401 */
-#define IS_ISP2401 __IS_SOCS(INTEL_FAM6_ATOM_AIRMONT, \
-			     INTEL_FAM6_ATOM_AIRMONT_MID)
+#define IS_ISP2401 __IS_SOCS(INTEL_ATOM_AIRMONT, \
+			     INTEL_ATOM_AIRMONT_MID)
 
 #endif /* ATOMISP_PLATFORM_H_ */
-- 
2.45.0


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

* Re: [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines
  2024-06-11 17:34 [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines Tony Luck
@ 2024-06-12  8:08 ` Greg Kroah-Hartman
  2024-06-12  8:10 ` Hans de Goede
  1 sibling, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2024-06-12  8:08 UTC (permalink / raw)
  To: Tony Luck
  Cc: Mauro Carvalho Chehab, Hans de Goede, linux-kernel, patches,
	linux-media, linux-staging, Andy Shevchenko

On Tue, Jun 11, 2024 at 10:34:06AM -0700, Tony Luck wrote:
> New CPU #defines encode vendor and family as well as model.
> 
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
> Acked-by: Hans de Goede <hdegoede@redhat.com>
> ---
> 
> Mauro, Hans, Greg: Which one of you owns this one. Can you take
> a look please. Let me know if changes are needed.
> 
>  .../atomisp/include/linux/atomisp_platform.h  | 27 ++++++++-----------
>  1 file changed, 11 insertions(+), 16 deletions(-)

Not me!  :)

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

* Re: [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines
  2024-06-11 17:34 [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines Tony Luck
  2024-06-12  8:08 ` Greg Kroah-Hartman
@ 2024-06-12  8:10 ` Hans de Goede
  2024-06-12 15:24   ` Mauro Carvalho Chehab
  1 sibling, 1 reply; 6+ messages in thread
From: Hans de Goede @ 2024-06-12  8:10 UTC (permalink / raw)
  To: Tony Luck, Greg Kroah-Hartman, Mauro Carvalho Chehab,
	linux-kernel, patches
  Cc: linux-media, linux-staging, Andy Shevchenko

Hi Tony,

On 6/11/24 7:34 PM, Tony Luck wrote:
> New CPU #defines encode vendor and family as well as model.
> 
> Signed-off-by: Tony Luck <tony.luck@intel.com>
> Reviewed-by: Andy Shevchenko <andy@kernel.org>
> Acked-by: Hans de Goede <hdegoede@redhat.com>
> ---
> 
> Mauro, Hans, Greg: Which one of you owns this one. Can you take
> a look please. Let me know if changes are needed.

I'll pick this one up. But atomisp support is a side project,
so I only work on this every few weeks.

My intent is to get this send to Mauro (media-next) in time
for the 6.11 merge window.

Regards,

Hans



> 
>  .../atomisp/include/linux/atomisp_platform.h  | 27 ++++++++-----------
>  1 file changed, 11 insertions(+), 16 deletions(-)
> 
> diff --git a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
> index 0e3f6fb78483..fdeb247036b0 100644
> --- a/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
> +++ b/drivers/staging/media/atomisp/include/linux/atomisp_platform.h
> @@ -18,7 +18,7 @@
>  #ifndef ATOMISP_PLATFORM_H_
>  #define ATOMISP_PLATFORM_H_
>  
> -#include <asm/intel-family.h>
> +#include <asm/cpu_device_id.h>
>  #include <asm/processor.h>
>  
>  #include <linux/i2c.h>
> @@ -178,22 +178,17 @@ void atomisp_unregister_subdev(struct v4l2_subdev *subdev);
>  int v4l2_get_acpi_sensor_info(struct device *dev, char **module_id_str);
>  
>  /* API from old platform_camera.h, new CPUID implementation */
> -#define __IS_SOC(x) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \
> -		     boot_cpu_data.x86 == 6 &&                       \
> -		     boot_cpu_data.x86_model == (x))
> -#define __IS_SOCS(x,y) (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL && \
> -		        boot_cpu_data.x86 == 6 &&                       \
> -		        (boot_cpu_data.x86_model == (x) || \
> -		         boot_cpu_data.x86_model == (y)))
> -
> -#define IS_MFLD	__IS_SOC(INTEL_FAM6_ATOM_SALTWELL_MID)
> -#define IS_BYT	__IS_SOC(INTEL_FAM6_ATOM_SILVERMONT)
> -#define IS_CHT	__IS_SOC(INTEL_FAM6_ATOM_AIRMONT)
> -#define IS_MRFD	__IS_SOC(INTEL_FAM6_ATOM_SILVERMONT_MID)
> -#define IS_MOFD	__IS_SOC(INTEL_FAM6_ATOM_AIRMONT_MID)
> +#define __IS_SOC(x) (boot_cpu_data.x86_vfm == x)
> +#define __IS_SOCS(x, y) (boot_cpu_data.x86_vfm == x || boot_cpu_data.x86_vfm == y)
> +
> +#define IS_MFLD	__IS_SOC(INTEL_ATOM_SALTWELL_MID)
> +#define IS_BYT	__IS_SOC(INTEL_ATOM_SILVERMONT)
> +#define IS_CHT	__IS_SOC(INTEL_ATOM_AIRMONT)
> +#define IS_MRFD	__IS_SOC(INTEL_ATOM_SILVERMONT_MID)
> +#define IS_MOFD	__IS_SOC(INTEL_ATOM_AIRMONT_MID)
>  
>  /* Both CHT and MOFD come with ISP2401 */
> -#define IS_ISP2401 __IS_SOCS(INTEL_FAM6_ATOM_AIRMONT, \
> -			     INTEL_FAM6_ATOM_AIRMONT_MID)
> +#define IS_ISP2401 __IS_SOCS(INTEL_ATOM_AIRMONT, \
> +			     INTEL_ATOM_AIRMONT_MID)
>  
>  #endif /* ATOMISP_PLATFORM_H_ */


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

* Re: [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines
  2024-06-12  8:10 ` Hans de Goede
@ 2024-06-12 15:24   ` Mauro Carvalho Chehab
  2024-06-13 15:35     ` Luck, Tony
  0 siblings, 1 reply; 6+ messages in thread
From: Mauro Carvalho Chehab @ 2024-06-12 15:24 UTC (permalink / raw)
  To: Hans de Goede
  Cc: Tony Luck, Greg Kroah-Hartman, Mauro Carvalho Chehab,
	linux-kernel, patches, linux-media, linux-staging,
	Andy Shevchenko

Em Wed, 12 Jun 2024 10:10:14 +0200
Hans de Goede <hdegoede@redhat.com> escreveu:

> Hi Tony,
> 
> On 6/11/24 7:34 PM, Tony Luck wrote:
> > New CPU #defines encode vendor and family as well as model.
> > 
> > Signed-off-by: Tony Luck <tony.luck@intel.com>
> > Reviewed-by: Andy Shevchenko <andy@kernel.org>
> > Acked-by: Hans de Goede <hdegoede@redhat.com>
> > ---
> > 
> > Mauro, Hans, Greg: Which one of you owns this one. Can you take
> > a look please. Let me know if changes are needed.  
> 
> I'll pick this one up. But atomisp support is a side project,
> so I only work on this every few weeks.
> 
> My intent is to get this send to Mauro (media-next) in time
> for the 6.11 merge window.

Hans,

It seems that you already acked to this one, right?

If so, please add my acked-by, if this will end being merged
via some other tree.

Tony,

I don't object having this merged via your tree with Hans
ack.

We may also have it merged on media via Hans tree. He usually
send me one or two pull requests per Kernel cycle with lots
of atomisp patches on it.

Regards,
Mauro

Thanks,
Mauro

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

* RE: [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines
  2024-06-12 15:24   ` Mauro Carvalho Chehab
@ 2024-06-13 15:35     ` Luck, Tony
  2024-06-13 19:48       ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 6+ messages in thread
From: Luck, Tony @ 2024-06-13 15:35 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Hans de Goede
  Cc: Greg Kroah-Hartman, Mauro Carvalho Chehab,
	linux-kernel@vger.kernel.org, patches@lists.linux.dev,
	linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
	Andy Shevchenko

> > My intent is to get this send to Mauro (media-next) in time
> > for the 6.11 merge window.
>
> Hans,
>
> It seems that you already acked to this one, right?
>
> If so, please add my acked-by, if this will end being merged
> via some other tree.
>
> Tony,
>
> I don't object having this merged via your tree with Hans
> ack.
>
> We may also have it merged on media via Hans tree. He usually
> send me one or two pull requests per Kernel cycle with lots
> of atomisp patches on it.

The only tree I currently have that feeds to linux-next is the RAS tree
I share with Boris. This doesn't belong there.

I'm asking various subsystem maintainers to take these through
the appropriate trees and having quite good success. This patch
is one of seven looking for a home.

So please take it through the media tree.

Thanks

-Tony

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

* Re: [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines
  2024-06-13 15:35     ` Luck, Tony
@ 2024-06-13 19:48       ` Mauro Carvalho Chehab
  0 siblings, 0 replies; 6+ messages in thread
From: Mauro Carvalho Chehab @ 2024-06-13 19:48 UTC (permalink / raw)
  To: Luck, Tony
  Cc: Hans de Goede, Greg Kroah-Hartman, Mauro Carvalho Chehab,
	linux-kernel@vger.kernel.org, patches@lists.linux.dev,
	linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
	Andy Shevchenko

Em Thu, 13 Jun 2024 15:35:57 +0000
"Luck, Tony" <tony.luck@intel.com> escreveu:

> > > My intent is to get this send to Mauro (media-next) in time
> > > for the 6.11 merge window.  
> >
> > Hans,
> >
> > It seems that you already acked to this one, right?
> >
> > If so, please add my acked-by, if this will end being merged
> > via some other tree.
> >
> > Tony,
> >
> > I don't object having this merged via your tree with Hans
> > ack.
> >
> > We may also have it merged on media via Hans tree. He usually
> > send me one or two pull requests per Kernel cycle with lots
> > of atomisp patches on it.  
> 
> The only tree I currently have that feeds to linux-next is the RAS tree
> I share with Boris. This doesn't belong there.
> 
> I'm asking various subsystem maintainers to take these through
> the appropriate trees and having quite good success. This patch
> is one of seven looking for a home.
> 
> So please take it through the media tree.

Ok!

I'll pick it and merge it.

Hans, no need to pick it on your tree ;-)

Regards,
Mauro

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

end of thread, other threads:[~2024-06-13 19:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-11 17:34 [PATCH v6 05/49 RESEND] media: atomisp: Switch to new Intel CPU model defines Tony Luck
2024-06-12  8:08 ` Greg Kroah-Hartman
2024-06-12  8:10 ` Hans de Goede
2024-06-12 15:24   ` Mauro Carvalho Chehab
2024-06-13 15:35     ` Luck, Tony
2024-06-13 19:48       ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).