From: Jani Nikula <jani.nikula@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: jani.nikula@intel.com, Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: [Intel-xe] [PATCH v2 7/9] fixup! drm/xe/display: Implement display support
Date: Wed, 9 Aug 2023 22:04:51 +0300 [thread overview]
Message-ID: <20230809190453.1927134-7-jani.nikula@intel.com> (raw)
In-Reply-To: <20230809190453.1927134-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.
v2: Rebase, retain __i915_inject_probe_error()
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> # v1
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
drivers/gpu/drm/xe/Makefile | 4 +-
drivers/gpu/drm/xe/display/ext/i915_utils.c | 22 +++++++++
.../drm/xe/display/ext/intel_device_info.c | 46 -------------------
3 files changed, 24 insertions(+), 48 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 c91bb7ddcf1d..1353d65fee5c 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..981edc2788bc
--- /dev/null
+++ b/drivers/gpu/drm/xe/display/ext/i915_utils.c
@@ -0,0 +1,22 @@
+// 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();
+}
+
+/* i915 specific, just put here for shutting it up */
+int __i915_inject_probe_error(struct drm_i915_private *i915, int err,
+ const char *func, int line)
+{
+ return 0;
+}
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 fcea9cd93aba..000000000000
--- a/drivers/gpu/drm/xe/display/ext/intel_device_info.c
+++ /dev/null
@@ -1,46 +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();
-}
-
-/* i915 specific, just put here for shutting it up */
-int __i915_inject_probe_error(struct drm_i915_private *i915, int err,
- const char *func, int line)
-{
- return 0;
-}
--
2.39.2
next prev parent reply other threads:[~2023-08-09 19:05 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 19:04 [Intel-xe] [PATCH v2 1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h Jani Nikula
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 2/9] drm/i915/display: add I915 conditional build to intel_dvo.h Jani Nikula
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 3/9] drm/i915/display: add I915 conditional build to intel_sdvo.h Jani Nikula
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 4/9] drm/i915/display: add I915 conditional build to intel_tv.h Jani Nikula
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 5/9] drm/i915/display: add I915 conditional build to vlv_dsi_pll.h Jani Nikula
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 6/9] fixup! drm/xe/display: Implement display support Jani Nikula
2023-08-09 19:04 ` Jani Nikula [this message]
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 8/9] " Jani Nikula
2023-08-09 19:04 ` [Intel-xe] [PATCH v2 9/9] fixup! drm/i915/display: Remaining changes to make xe compile Jani Nikula
2023-08-09 19:07 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [v2,1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h Patchwork
2023-08-09 19:07 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-09 19:08 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-09 19:12 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-08-09 19:13 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-08-09 19:13 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-08-09 20:00 ` [Intel-xe] ✗ CI.BAT: failure " Patchwork
2023-08-10 21:41 ` Rodrigo Vivi
2023-08-11 0:29 ` Rodrigo Vivi
2023-08-11 8:54 ` Jani Nikula
2023-08-10 13:28 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [v2,1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h (rev2) Patchwork
2023-08-10 13:28 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-10 13:29 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-10 13:33 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-08-10 13:34 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-08-10 13:34 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-08-10 21:46 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [v2,1/9] drm/i915/display: add I915 conditional build to g4x_hdmi.h (rev3) Patchwork
2023-08-10 21:46 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-08-10 21:47 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-08-10 21:51 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-08-10 21:52 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-08-10 21:52 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-08-10 22:29 ` [Intel-xe] ○ CI.BAT: info " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2023-11-14 13:04 [Intel-xe] [PATCH v2 0/9] Intel_fbdev.c refactoring Jouni Högander
2023-11-14 13:04 ` [Intel-xe] [PATCH v2 7/9] fixup! drm/xe/display: Implement display support Jouni Högander
2023-12-04 6:49 [Intel-xe] [PATCH v2 0/9] Intel_fb.c refactoring Jouni Högander
2023-12-04 6:49 ` [Intel-xe] [PATCH v2 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=20230809190453.1927134-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