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

drm/xe/display: Add Xe implementation for fence checks used by fbc code

Xe doesn't support legacy fences. Implement legacy fence and fence
id checks accordingly.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Jouni Högander and committed by
Rodrigo Vivi
08ea5ea2 c890be73

+14
+1
drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
··· 24 24 #include "i915_gpu_error.h" 25 25 #include "i915_reg_defs.h" 26 26 #include "i915_utils.h" 27 + #include "intel_gt_types.h" 27 28 #include "intel_step.h" 28 29 #include "intel_uc_fw.h" 29 30 #include "intel_uncore.h"
+2
drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
··· 24 24 25 25 #define i915_ggtt_clear_scanout(bo) do { } while (0) 26 26 27 + #define i915_vma_fence_id(vma) -1 28 + 27 29 static inline u32 i915_ggtt_offset(const struct i915_vma *vma) 28 30 { 29 31 return vma->node.start;
+11
drivers/gpu/drm/xe/compat-i915-headers/intel_gt_types.h
··· 1 + /* SPDX-License-Identifier: MIT */ 2 + /* 3 + * Copyright © 2023 Intel Corporation 4 + */ 5 + 6 + #ifndef __INTEL_GT_TYPES__ 7 + #define __INTEL_GT_TYPES__ 8 + 9 + #define intel_gt_support_legacy_fencing(gt) 0 10 + 11 + #endif