drm/xe/display: Create a dummy version for vga decode
authorUma Shankar <uma.shankar@intel.com>
Fri, 6 Oct 2023 11:56:45 +0000 (17:26 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:44:32 +0000 (11:44 -0500)
This introduces an exclusive version of vga decode for xe.
Rest of the display changes will be re-used from i915.

Currently it adds just a dummy implementation. VGA decode
needs to be handled correctly in i915, proper implementation
will be adopted once the i915 changes are finalized and merged
in upstream.

v2: Addressed Arun's review comments

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Arun R Murthy <arun.r.mruthy@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/display/xe_display_misc.c [new file with mode: 0644]

index 2777cbf07cc6e5185e27ceab6bd923a9e71df449..41d92014a45c6abb456ea11224a4b3235d3731c6 100644 (file)
@@ -152,6 +152,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \
        display/xe_hdcp_gsc.o \
        display/xe_plane_initial.o \
        display/xe_display_rps.o \
+       display/xe_display_misc.o \
        display/intel_fbdev_fb.o \
        display/intel_fb_bo.o \
        display/ext/i915_irq.o \
diff --git a/drivers/gpu/drm/xe/display/xe_display_misc.c b/drivers/gpu/drm/xe/display/xe_display_misc.c
new file mode 100644 (file)
index 0000000..242c2ef
--- /dev/null
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+
+#include "intel_display_types.h"
+
+struct pci_dev;
+
+unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode);
+
+unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode)
+{
+       /* ToDo: Implement the actual handling of vga decode */
+       return 0;
+}