Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81915E75436 for ; Tue, 3 Oct 2023 08:58:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F9BD10E26A; Tue, 3 Oct 2023 08:58:55 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3992810E265 for ; Tue, 3 Oct 2023 08:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696323533; x=1727859533; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JpRoYmjDEiPhvXJ2nodWmnN8X65tGLmsE+tyW1nCVMY=; b=GHn5lv6eCCigQi4ew+RA/yfZxjSj7+7AuQ8CuN3TWLuAcz2mReuNLPCU PBjhN6YVuvFeaPAaKprI7m1+RAwY/HwoX7aqVmxgrKx0wrYth87Tdyxiv fGR988BNli//mVxgH/hkrfS40TmNOlVeIoifsUO96KdsCvL22QgvAkcXo ADpY4Vd2u3d/tACtLXMqrxpckZH0qNrBLzIUuNGDEcJreMQ0rpz2xfO8z fbvvz33nRtUHJqdnQ9aMAkTXC4aTAlXYkdxrnkg8iF5VmZtUnJNxR13uR RbmwvQGdCfkQayJQRiGQHgOns0t62Z0Ohna1YKnc2EHMBndQ23OFkNW+u g==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="362196925" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="362196925" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 01:58:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="816610951" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="816610951" Received: from akorotox-mobl.ger.corp.intel.com (HELO localhost) ([10.252.55.199]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 01:58:51 -0700 From: Jani Nikula To: intel-xe@lists.freedesktop.org Date: Tue, 3 Oct 2023 11:58:39 +0300 Message-Id: <20231003085839.2008415-3-jani.nikula@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231003085839.2008415-1-jani.nikula@intel.com> References: <20231003085839.2008415-1-jani.nikula@intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH 3/3] fixup! drm/xe/display: Implement display support X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jani.nikula@intel.com, Rodrigo Vivi Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" The display device and runtime info have been moved as part of struct intel_display, and the ones in struct xe_device are stale. Cc: Rodrigo Vivi Signed-off-by: Jani Nikula --- drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 5 +++-- drivers/gpu/drm/xe/xe_device_types.h | 2 -- 2 files changed, 3 insertions(+), 4 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 f739858d17e2..e7c9b4ea2153 100644 --- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h @@ -206,9 +206,10 @@ static inline void intel_runtime_pm_put(struct xe_runtime_pm *pm, bool wakeref) #define intel_step_name xe_step_name #define pdev_to_i915 pdev_to_xe_device -#define DISPLAY_INFO(xe) ((xe)->info.display) #define RUNTIME_INFO(xe) (&(xe)->info.i915_runtime) -#define DISPLAY_RUNTIME_INFO(xe) (&(xe)->info.display_runtime) + +#define DISPLAY_INFO(xe) ((xe)->display.info.__device_info) +#define DISPLAY_RUNTIME_INFO(xe) (&(xe)->display.info.__runtime_info) #define FORCEWAKE_ALL XE_FORCEWAKE_ALL #define HPD_STORM_DEFAULT_THRESHOLD 50 diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index 0717839ae964..62e1a875980b 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -240,8 +240,6 @@ struct xe_device { u8 enable_display:1; #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY) - const struct intel_display_device_info *display; - struct intel_display_runtime_info display_runtime; struct { u32 rawclk_freq; } i915_runtime; -- 2.39.2