[Intel-xe] [PATCH 1/4] drm/xe: Introduce dedicated function to read fuse registers

Michal Wajdeczko michal.wajdeczko at intel.com
Wed Nov 15 14:38:35 UTC 2023


Fuse registers are not very special and usually could be read
directly using ordinary xe_mmio_read32(), except when driver is
running as VF, where those registers will not be exposed by the
HW and other mechanism must be used to obtain fuse values.

Define dedicated helper that we will in the driver to access fuse
registers and that we will later update it with VF specific code.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
---
 drivers/gpu/drm/xe/xe_mmio.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_mmio.h b/drivers/gpu/drm/xe/xe_mmio.h
index ae09f777d711..5a7e174ffbb6 100644
--- a/drivers/gpu/drm/xe/xe_mmio.h
+++ b/drivers/gpu/drm/xe/xe_mmio.h
@@ -141,4 +141,9 @@ int xe_mmio_probe_vram(struct xe_device *xe);
 int xe_mmio_tile_vram_size(struct xe_tile *tile, u64 *vram_size, u64 *tile_size, u64 *tile_base);
 u64 xe_mmio_read64_2x32(struct xe_gt *gt, struct xe_reg reg);
 
+static inline u32 xe_mmio_fuse_read32(struct xe_gt *gt, struct xe_reg reg)
+{
+	return xe_mmio_read32(gt, reg);
+}
+
 #endif
-- 
2.25.1



More information about the Intel-xe mailing list