Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Ville Syrjala <ville.syrjala@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 6/7] drm/xe: Nuke the compat uncore stuff
Date: Fri, 27 Nov 2026 17:14:22 +0200	[thread overview]
Message-ID: <c6ccb1acac119f29861c3dc666c3175d60d9e87f@intel.com> (raw)
In-Reply-To: <20261126212728.9034-7-ville.syrjala@linux.intel.com>

On Thu, 26 Nov 2026, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> The display code no longer uses any uncore stuff, so nuke the
> compatibility layer from xe.

I was a bit eager with merging commit a54880740531 ("drm/xe: remove
unused fake uncore lock") so this needs a rebase. Sorry.

compat intel_uncore_trace.h should also be removed, either in this patch
or alreayd in patch 2.

Another comment inline below, other than that,

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
>  .../drm/xe/compat-i915-headers/intel_uncore.h | 66 -------------------
>  drivers/gpu/drm/xe/display/xe_display.c       |  3 -
>  drivers/gpu/drm/xe/xe_device_types.h          | 13 ----
>  3 files changed, 82 deletions(-)
>  delete mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h
>
> diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h
> deleted file mode 100644
> index 707f7ad0378d..000000000000
> --- a/drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h
> +++ /dev/null
> @@ -1,66 +0,0 @@
> -/* SPDX-License-Identifier: MIT */
> -/*
> - * Copyright © 2023 Intel Corporation
> - */
> -
> -#ifndef __INTEL_UNCORE_H__
> -#define __INTEL_UNCORE_H__
> -
> -#include "i915_reg_defs.h"
> -#include "xe_device.h"
> -#include "xe_device_types.h"
> -#include "xe_mmio.h"
> -
> -static inline struct intel_uncore *to_intel_uncore(struct drm_device *drm)
> -{
> -	return &to_xe_device(drm)->uncore;
> -}
> -
> -static inline struct xe_mmio *__compat_uncore_to_mmio(struct intel_uncore *uncore)
> -{
> -	struct xe_device *xe = container_of(uncore, struct xe_device, uncore);
> -
> -	return xe_root_tile_mmio(xe);
> -}
> -
> -static inline u8 intel_uncore_read8(struct intel_uncore *uncore,
> -				    i915_reg_t i915_reg)
> -{
> -	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));
> -
> -	return xe_mmio_read8(__compat_uncore_to_mmio(uncore), reg);
> -}
> -
> -static inline void intel_uncore_write8(struct intel_uncore *uncore,
> -				       i915_reg_t i915_reg, u8 val)
> -{
> -	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));
> -
> -	xe_mmio_write8(__compat_uncore_to_mmio(uncore), reg, val);
> -}
> -
> -static inline u16 intel_uncore_read16(struct intel_uncore *uncore,
> -				      i915_reg_t i915_reg)
> -{
> -	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));
> -
> -	return xe_mmio_read16(__compat_uncore_to_mmio(uncore), reg);
> -}
> -
> -static inline u32 intel_uncore_read_fw(struct intel_uncore *uncore,
> -				       i915_reg_t i915_reg)
> -{
> -	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));
> -
> -	return xe_mmio_read32(__compat_uncore_to_mmio(uncore), reg);
> -}
> -
> -static inline void intel_uncore_write_fw(struct intel_uncore *uncore,
> -					 i915_reg_t i915_reg, u32 val)
> -{
> -	struct xe_reg reg = XE_REG(i915_mmio_reg_offset(i915_reg));
> -
> -	xe_mmio_write32(__compat_uncore_to_mmio(uncore), reg, val);
> -}
> -
> -#endif /* __INTEL_UNCORE_H__ */
> diff --git a/drivers/gpu/drm/xe/display/xe_display.c b/drivers/gpu/drm/xe/display/xe_display.c
> index 5ace8295b498..6a179d0683e5 100644
> --- a/drivers/gpu/drm/xe/display/xe_display.c
> +++ b/drivers/gpu/drm/xe/display/xe_display.c
> @@ -85,9 +85,6 @@ int xe_display_init_early(struct xe_device *xe)
>  	if (!xe->info.probe_display)
>  		return 0;
>  
> -	/* Fake uncore lock */
> -	spin_lock_init(&xe->uncore.lock);
> -
>  	intel_display_driver_early_probe(display);
>  
>  	intel_display_device_info_runtime_init(display);
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 9e0d7d3d07d5..abc70c949b2c 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -649,19 +649,6 @@ struct xe_device {
>  #endif
>  
>  	/* private: */

The above blank line and comment need to go as well, they're just for
indicating the display stuff isn't documented here.

And yay!!! Getting rid of this stuff is a major milestone long time
coming!

> -
> -#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
> -	/*
> -	 * Any fields below this point are the ones used by display.
> -	 * They are temporarily added here so xe_device can be desguised as
> -	 * drm_i915_private during build. After cleanup these should go away,
> -	 * migrating to the right sub-structs
> -	 */
> -
> -	struct intel_uncore {
> -		spinlock_t lock;
> -	} uncore;
> -#endif
>  };
>  
>  /**

-- 
Jani Nikula, Intel

  reply	other threads:[~2026-11-27 15:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 21:27 [PATCH 0/7] drm/i915/de: Nuke uncore Ville Syrjala
2026-11-26 21:27 ` [PATCH 1/7] drm/i915/de: Move the register tracepoint to display Ville Syrjala
2026-11-27 14:32   ` Jani Nikula
2026-11-26 21:27 ` [PATCH 2/7] drm/i915/de: Pimp the intel_reg_rw tracepoint printf format Ville Syrjala
2026-11-27 14:36   ` Jani Nikula
2026-11-26 21:27 ` [PATCH 3/7] drm/i915/de: Convert intel_de_read_fw() into a vfunc Ville Syrjala
2026-11-27 14:38   ` Jani Nikula
2026-11-26 21:27 ` [PATCH 4/7] drm/i915/de: Use raw readl()/writel()/etc for register access in display Ville Syrjala
2026-11-27 14:54   ` Jani Nikula
2026-11-26 21:27 ` [PATCH 5/7] drm/i915/de: Add intel_parent_mmio_regs() interface Ville Syrjala
2026-11-27 14:56   ` Jani Nikula
2026-11-26 21:27 ` [PATCH 6/7] drm/xe: Nuke the compat uncore stuff Ville Syrjala
2026-11-27 15:14   ` Jani Nikula [this message]
2026-11-26 21:27 ` [PATCH 7/7] drm/i915/de: Document intel_de_write8()'s usage restrictions Ville Syrjala
2026-11-27 15:15   ` Jani Nikula
2026-11-26 23:43 ` ✗ CI.checkpatch: warning for drm/i915/de: Nuke uncore Patchwork
2026-11-26 23:46 ` ✓ CI.KUnit: success " Patchwork
2026-11-27  0:24 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-27 12:20 ` ✗ 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=c6ccb1acac119f29861c3dc666c3175d60d9e87f@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox