From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2E2F606A31F for ; Fri, 27 Nov 2026 15:35:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Vtb7fU6D Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A6879112BBE; Fri, 27 Nov 2026 15:34:58 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6AF40112BBB; Fri, 27 Nov 2026 15:34:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795793693; x=1827329693; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=0Idf2NoSj5zkmIhfkV237YGsm95wxcGfsO3dHuzsBVs=; b=Vtb7fU6DD/a4CBxE+UpIOs8vZdEkYxHCqswdiimIGOJcfvnBawd3lVKe c+6mpnXCyVwNEj0H2XPdrMNSnnhI9z5+kRhcQv5So/R6K7fd58jH+Rlxy R66pem0dhunrkmHGFoXyV7LtCmqsVGl6nqZyghIywx0nrEQjq5FvL1uTp DCKjKlTLZlYxBqiUw75XGX4NM+6aquoKg3bL16RzTeZ3HBywfj5pTKTQm rWU+eh/fPlUbiuwDTFdSBydatzi9eTl5gKeVYHQI4Pan96qXSIalbIONH N8RE+IVY2ViQyeBWwjiZJ5AjB4aOzDlvu0OVArdIKsnMYPck/2TYQLQwc A==; X-CSE-ConnectionGUID: 3vJrWlRKQYSbRvkMvkUywQ== X-CSE-MsgGUID: SS1yq5JoR5yQexBTb1Mbug== X-IronPort-AV: E=McAfee;i="6800,10657,11979"; a="4553018" X-IronPort-AV: E=Sophos;i="6.27,237,1787036400"; d="scan'208";a="4553018" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2026 07:34:52 -0800 X-CSE-ConnectionGUID: Cs2KpByMSHSc6AJwKrdzhA== X-CSE-MsgGUID: rqBSykj2TV6rQ3uh3VsLbw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,237,1787036400"; d="scan'208";a="12207560" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.245.172]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2026 07:34:50 -0800 Date: Fri, 27 Nov 2026 17:34:46 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Jani Nikula Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Subject: Re: [PATCH 6/7] drm/xe: Nuke the compat uncore stuff Message-ID: References: <20261126212728.9034-1-ville.syrjala@linux.intel.com> <20261126212728.9034-7-ville.syrjala@linux.intel.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, Nov 27, 2026 at 05:14:22PM +0200, Jani Nikula wrote: > On Thu, 26 Nov 2026, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > 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. No worries. I knew it was there and sent anyway. > > compat intel_uncore_trace.h should also be removed, either in this patch > or alreayd in patch 2. I guess I'll suck it into this one. > > Another comment inline below, other than that, > > Reviewed-by: Jani Nikula > > > Signed-off-by: Ville Syrjälä > > --- > > .../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. Ack. > > And yay!!! Getting rid of this stuff is a major milestone long time > coming! Indeed. Thanks for the review. > > > - > > -#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 -- Ville Syrjälä Intel