Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: jani.nikula@intel.com, rodrigo.vivi@intel.com
Subject: [Intel-xe] [PATCH 7/9] fixup! drm/xe/display: Implement display support
Date: Tue,  8 Aug 2023 14:45:33 +0300	[thread overview]
Message-ID: <20230808114535.1600595-7-jani.nikula@intel.com> (raw)
In-Reply-To: <20230808114535.1600595-1-jani.nikula@intel.com>

While it would be preferrable to get rid of the file altogether, in the
mean time rename ext/intel_device_info.c to ext/i915_utils.c to better
reflect what it's about.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/xe/Makefile                   |  4 +-
 drivers/gpu/drm/xe/display/ext/i915_utils.c   | 15 +++++++
 .../drm/xe/display/ext/intel_device_info.c    | 39 -------------------
 3 files changed, 17 insertions(+), 41 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/display/ext/i915_utils.c
 delete mode 100644 drivers/gpu/drm/xe/display/ext/intel_device_info.c

diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 1b59702cd9f9..a05bd3d3179f 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -147,8 +147,8 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
 	display/xe_plane_initial.o \
 	display/xe_display_rps.o \
 	display/ext/i915_irq.o \
-	display/ext/intel_clock_gating.o \
-	display/ext/intel_device_info.o
+	display/ext/i915_utils.o \
+	display/ext/intel_clock_gating.o
 
 # SOC code shared with i915
 xe-$(CONFIG_DRM_XE_DISPLAY) += \
diff --git a/drivers/gpu/drm/xe/display/ext/i915_utils.c b/drivers/gpu/drm/xe/display/ext/i915_utils.c
new file mode 100644
index 000000000000..f97c909e931f
--- /dev/null
+++ b/drivers/gpu/drm/xe/display/ext/i915_utils.c
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+
+#include "i915_drv.h"
+
+bool i915_vtd_active(struct drm_i915_private *i915)
+{
+	if (device_iommu_mapped(i915->drm.dev))
+		return true;
+
+	/* Running as a guest, we assume the host is enforcing VT'd */
+	return i915_run_as_guest();
+}
diff --git a/drivers/gpu/drm/xe/display/ext/intel_device_info.c b/drivers/gpu/drm/xe/display/ext/intel_device_info.c
deleted file mode 100644
index 5adda84dab31..000000000000
--- a/drivers/gpu/drm/xe/display/ext/intel_device_info.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright © 2016 Intel Corporation
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the "Software"),
- * to deal in the Software without restriction, including without limitation
- * the rights to use, copy, modify, merge, publish, distribute, sublicense,
- * and/or sell copies of the Software, and to permit persons to whom the
- * Software is furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice (including the next
- * paragraph) shall be included in all copies or substantial portions of the
- * Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- *
- */
-
-#include "intel_cdclk.h"
-#include "intel_de.h"
-#include "intel_display.h"
-#include "i915_drv.h"
-#include "i915_reg.h"
-#include <drm/drm_drv.h>
-
-bool i915_vtd_active(struct drm_i915_private *i915)
-{
-	if (device_iommu_mapped(i915->drm.dev))
-		return true;
-
-	/* Running as a guest, we assume the host is enforcing VT'd */
-	return i915_run_as_guest();
-}
-- 
2.39.2


  parent reply	other threads:[~2023-08-08 11:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-08 11:45 [Intel-xe] [PATCH 1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 2/9] drm/i915/display: add I915 conditional build to intel_dvo.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 3/9] drm/i915/display: add I915 conditional build to intel_sdvo.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 4/9] drm/i915/display: add I915 conditional build to intel_tv.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 5/9] drm/i915/display: add I915 conditional build to vlv_dsi_pll.h Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 6/9] fixup! drm/xe/display: Implement display support Jani Nikula
2023-08-08 11:45 ` Jani Nikula [this message]
2023-08-08 11:45 ` [Intel-xe] [PATCH 8/9] " Jani Nikula
2023-08-08 11:45 ` [Intel-xe] [PATCH 9/9] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-08-08 20:50   ` Rodrigo Vivi
2023-08-08 12:02 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h Patchwork
2023-08-08 12:02 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-08 12:04 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-08 12:07 ` [Intel-xe] ✗ CI.Build: failure " Patchwork
2023-08-09 12:28 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h (rev2) Patchwork
2023-08-09 12:29 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-09 12:30 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-09 12:33 ` [Intel-xe] ✗ CI.Build: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2023-08-11  9:35 [Intel-xe] [PATCH 0/9] drm/xe: i915 irq backports + display cleanups Jani Nikula
2023-08-11  9:35 ` [Intel-xe] [PATCH 7/9] fixup! drm/xe/display: Implement display support Jani Nikula
2023-11-14 11:00 [Intel-xe] [PATCH 0/9] Intel_fbdev.c refactoring Jouni Högander
2023-11-14 11:00 ` [Intel-xe] [PATCH 7/9] fixup! drm/xe/display: Implement display support Jouni Högander

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