[Intel-xe] [PATCH 02/18] fixup! drm/xe/display: Implement display support
Lucas De Marchi
lucas.demarchi at intel.com
Wed May 3 15:37:37 UTC 2023
On Wed, May 03, 2023 at 08:21:17AM -0700, Lucas De Marchi wrote:
>On Wed, May 03, 2023 at 04:09:49PM +0300, Jani Nikula wrote:
>>Add compat intel_uncore.h glue layer to direct all uncore calls to xe
>>mmio.
>>
>>Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>>---
>>.../drm/xe/compat-i915-headers/intel_uncore.h | 99 +++++++++++++++++++
>>1 file changed, 99 insertions(+)
>>create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h
>>
>>diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h
>>new file mode 100644
>>index 000000000000..960e2327d217
>>--- /dev/null
>>+++ b/drivers/gpu/drm/xe/compat-i915-headers/intel_uncore.h
>>@@ -0,0 +1,99 @@
>>+/* SPDX-License-Identifier: MIT */
>>+/*
>>+ * Copyright © 2023 Intel Corporation
>>+ */
>>+
>>+#ifndef __INTEL_UNCORE_H__
>>+#define __INTEL_UNCORE_H__
>>+
>>+#include "xe_device.h"
>>+#include "xe_device_types.h"
>>+#include "xe_mmio.h"
>>+
>>+static inline struct xe_gt *__fake_uncore_to_gt(struct fake_uncore *uncore)
>>+{
>>+ struct xe_device *xe = container_of(uncore, struct xe_device, uncore);
>>+
>>+ return to_gt(xe);
>>+}
>>+
>>+static inline u32 intel_uncore_read(struct fake_uncore *uncore, i915_reg_t reg)
>>+{
>>+ return xe_mmio_read32(__fake_uncore_to_gt(uncore), reg.reg);
>
>
>humn... I think we will have to wait the move of display up in the
>branch. xe_mmio_read32 doesn't receive a u32 anymore. If we do a
>autosquash now we will have to fix the implicit-conflict/build-breakage
>in the patches in the middle.
oh well... I actually missed the update in xe-drm-next. display is
already moved up. Sorry for the noise.
Lucas De Marchi
More information about the Intel-xe
mailing list