All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 1/2] drm/xe/compat: remove unused platform macros
Date: Fri, 1 Aug 2025 11:21:52 -0400	[thread overview]
Message-ID: <aIzbkP65RdbiFI4O@intel.com> (raw)
In-Reply-To: <4507b49ead12c997de4615fa6ec277e666e5226a.1753965351.git.jani.nikula@intel.com>

On Thu, Jul 31, 2025 at 03:36:15PM +0300, Jani Nikula wrote:
> After refactors, a lot of platform macros have become unused. Remove
> them before new users have a chance to pop up.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

I trust your compiler! :)

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  .../gpu/drm/xe/compat-i915-headers/i915_drv.h | 21 -------------------
>  1 file changed, 21 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> index 9b7572e06f34..d8cd66a96621 100644
> --- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
> @@ -26,34 +26,13 @@ static inline struct drm_i915_private *to_i915(const struct drm_device *dev)
>  #define IS_I915G(dev_priv)	(dev_priv && 0)
>  #define IS_I915GM(dev_priv)	(dev_priv && 0)
>  #define IS_PINEVIEW(dev_priv)	(dev_priv && 0)
> -#define IS_IVYBRIDGE(dev_priv)	(dev_priv && 0)
>  #define IS_VALLEYVIEW(dev_priv)	(dev_priv && 0)
>  #define IS_CHERRYVIEW(dev_priv)	(dev_priv && 0)
>  #define IS_HASWELL(dev_priv)	(dev_priv && 0)
>  #define IS_BROADWELL(dev_priv)	(dev_priv && 0)
> -#define IS_SKYLAKE(dev_priv)	(dev_priv && 0)
>  #define IS_BROXTON(dev_priv)	(dev_priv && 0)
> -#define IS_KABYLAKE(dev_priv)	(dev_priv && 0)
>  #define IS_GEMINILAKE(dev_priv)	(dev_priv && 0)
> -#define IS_COFFEELAKE(dev_priv)	(dev_priv && 0)
> -#define IS_COMETLAKE(dev_priv)	(dev_priv && 0)
> -#define IS_ICELAKE(dev_priv)	(dev_priv && 0)
> -#define IS_JASPERLAKE(dev_priv)	(dev_priv && 0)
> -#define IS_ELKHARTLAKE(dev_priv)	(dev_priv && 0)
> -#define IS_TIGERLAKE(dev_priv)	IS_PLATFORM(dev_priv, XE_TIGERLAKE)
> -#define IS_ROCKETLAKE(dev_priv)	IS_PLATFORM(dev_priv, XE_ROCKETLAKE)
> -#define IS_DG1(dev_priv)        IS_PLATFORM(dev_priv, XE_DG1)
> -#define IS_ALDERLAKE_S(dev_priv) IS_PLATFORM(dev_priv, XE_ALDERLAKE_S)
> -#define IS_ALDERLAKE_P(dev_priv) (IS_PLATFORM(dev_priv, XE_ALDERLAKE_P) || \
> -				  IS_PLATFORM(dev_priv, XE_ALDERLAKE_N))
>  #define IS_DG2(dev_priv)	IS_PLATFORM(dev_priv, XE_DG2)
> -#define IS_METEORLAKE(dev_priv) IS_PLATFORM(dev_priv, XE_METEORLAKE)
> -#define IS_LUNARLAKE(dev_priv) IS_PLATFORM(dev_priv, XE_LUNARLAKE)
> -#define IS_BATTLEMAGE(dev_priv)  IS_PLATFORM(dev_priv, XE_BATTLEMAGE)
> -#define IS_PANTHERLAKE(dev_priv) IS_PLATFORM(dev_priv, XE_PANTHERLAKE)
> -
> -#define IS_HASWELL_ULT(dev_priv) (dev_priv && 0)
> -#define IS_BROADWELL_ULT(dev_priv) (dev_priv && 0)
>  
>  #define IS_MOBILE(xe) (xe && 0)
>  
> -- 
> 2.39.5
> 

  reply	other threads:[~2025-08-01 15:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-31 12:36 [PATCH 0/2] drm/xe/compat: cleanups Jani Nikula
2025-07-31 12:36 ` [PATCH 1/2] drm/xe/compat: remove unused platform macros Jani Nikula
2025-08-01 15:21   ` Rodrigo Vivi [this message]
2025-08-04  8:29     ` Jani Nikula
2025-07-31 12:36 ` [PATCH 2/2] drm/xe/compat: stop including i915_utils.h from compat i915_drv.h Jani Nikula
2025-08-01 15:22   ` Rodrigo Vivi
2025-07-31 13:40 ` ✓ i915.CI.BAT: success for drm/xe/compat: cleanups Patchwork
2025-07-31 15:41 ` ✓ CI.KUnit: " Patchwork
2025-07-31 16:49 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-31 18:51 ` ✓ i915.CI.Full: " Patchwork
2025-07-31 18:55 ` ✗ Xe.CI.Full: failure " Patchwork

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=aIzbkP65RdbiFI4O@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /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.