Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/display: Create a dummy version for vga decode

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>

authored by

Uma Shankar and committed by
Rodrigo Vivi
c79802d1 08ea5ea2

+17
+1
drivers/gpu/drm/xe/Makefile
··· 152 152 display/xe_hdcp_gsc.o \ 153 153 display/xe_plane_initial.o \ 154 154 display/xe_display_rps.o \ 155 + display/xe_display_misc.o \ 155 156 display/intel_fbdev_fb.o \ 156 157 display/intel_fb_bo.o \ 157 158 display/ext/i915_irq.o \
+16
drivers/gpu/drm/xe/display/xe_display_misc.c
··· 1 + // SPDX-License-Identifier: MIT 2 + /* 3 + * Copyright © 2023 Intel Corporation 4 + */ 5 + 6 + #include "intel_display_types.h" 7 + 8 + struct pci_dev; 9 + 10 + unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode); 11 + 12 + unsigned int intel_gmch_vga_set_decode(struct pci_dev *pdev, bool enable_decode) 13 + { 14 + /* ToDo: Implement the actual handling of vga decode */ 15 + return 0; 16 + }