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

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/soc_remapper: Initialize SoC remapper during Xe probe

SoC remapper is used to map different HW functions in the SoC to their
respective drivers. Initialize SoC remapper during driver load.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Link: https://patch.msgid.link/20251223183943.3175941-6-umesh.nerlige.ramappa@intel.com

+46
+1
drivers/gpu/drm/xe/Makefile
··· 116 116 xe_sa.o \ 117 117 xe_sched_job.o \ 118 118 xe_shrinker.o \ 119 + xe_soc_remapper.o \ 119 120 xe_step.o \ 120 121 xe_survivability_mode.o \ 121 122 xe_sync.o \
+5
drivers/gpu/drm/xe/xe_device.c
··· 62 62 #include "xe_pxp.h" 63 63 #include "xe_query.h" 64 64 #include "xe_shrinker.h" 65 + #include "xe_soc_remapper.h" 65 66 #include "xe_survivability_mode.h" 66 67 #include "xe_sriov.h" 67 68 #include "xe_svm.h" ··· 989 988 return err; 990 989 991 990 xe_nvm_init(xe); 991 + 992 + err = xe_soc_remapper_init(xe); 993 + if (err) 994 + return err; 992 995 993 996 err = xe_heci_gsc_init(xe); 994 997 if (err)
+6
drivers/gpu/drm/xe/xe_device_types.h
··· 578 578 struct mutex lock; 579 579 } pmt; 580 580 581 + /** @soc_remapper: SoC remapper object */ 582 + struct { 583 + /** @soc_remapper.lock: Serialize access to SoC Remapper's index registers */ 584 + spinlock_t lock; 585 + } soc_remapper; 586 + 581 587 /** 582 588 * @pm_callback_task: Track the active task that is running in either 583 589 * the runtime_suspend or runtime_resume callbacks.
+21
drivers/gpu/drm/xe/xe_soc_remapper.c
··· 1 + // SPDX-License-Identifier: MIT 2 + /* 3 + * Copyright © 2025 Intel Corporation 4 + */ 5 + 6 + #include "xe_soc_remapper.h" 7 + 8 + /** 9 + * xe_soc_remapper_init() - Initialize SoC remapper 10 + * @xe: Pointer to xe device. 11 + * 12 + * Initialize SoC remapper. 13 + * 14 + * Return: 0 on success, error code on failure 15 + */ 16 + int xe_soc_remapper_init(struct xe_device *xe) 17 + { 18 + spin_lock_init(&xe->soc_remapper.lock); 19 + 20 + return 0; 21 + }
+13
drivers/gpu/drm/xe/xe_soc_remapper.h
··· 1 + /* SPDX-License-Identifier: MIT */ 2 + /* 3 + * Copyright © 2025 Intel Corporation 4 + */ 5 + 6 + #ifndef _XE_SOC_REMAPPER_H_ 7 + #define _XE_SOC_REMAPPER_H_ 8 + 9 + #include "xe_device_types.h" 10 + 11 + int xe_soc_remapper_init(struct xe_device *xe); 12 + 13 + #endif