mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/xe: add xe_device_wa infrastructure
There are some workarounds that must be appplied before gt init, wa_15015404425 for example. Instead of sprinking them conditionally throughout the driver as we did for i915 generate an oob.rules file reusing the RTP infrastructure to make these easier to track. v2: rename xe_soc_wa to xe_device_wa v5: derive prefix from argument rather than hard coding the values. v6: split out xe_gen-wa_oob changes Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250709221605.172516-3-matthew.s.atwood@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
parent
b0a2ee5567
commit
f037e0b78e
|
|
@ -21,6 +21,13 @@ $(obj)/generated/%_wa_oob.c $(obj)/generated/%_wa_oob.h: $(obj)/xe_gen_wa_oob \
|
|||
$(src)/xe_wa_oob.rules
|
||||
$(call cmd,wa_oob)
|
||||
|
||||
generated_device_oob := $(obj)/generated/xe_device_wa_oob.c $(obj)/generated/xe_device_wa_oob.h
|
||||
quiet_cmd_device_wa_oob = GEN $(notdir $(generated_device_oob))
|
||||
cmd_device_wa_oob = mkdir -p $(@D); $^ $(generated_device_oob)
|
||||
$(obj)/generated/%_device_wa_oob.c $(obj)/generated/%_device_wa_oob.h: $(obj)/xe_gen_wa_oob \
|
||||
$(src)/xe_device_wa_oob.rules
|
||||
$(call cmd,device_wa_oob)
|
||||
|
||||
# Please keep these build lists sorted!
|
||||
|
||||
# core driver code
|
||||
|
|
@ -340,4 +347,4 @@ $(obj)/%.hdrtest: $(src)/%.h FORCE
|
|||
$(call if_changed_dep,hdrtest)
|
||||
|
||||
uses_generated_oob := $(addprefix $(obj)/, $(xe-y))
|
||||
$(uses_generated_oob): $(obj)/generated/xe_wa_oob.h
|
||||
$(uses_generated_oob): $(obj)/generated/xe_wa_oob.h $(obj)/generated/xe_device_wa_oob.h
|
||||
|
|
|
|||
0
drivers/gpu/drm/xe/xe_device_wa_oob.rules
Normal file
0
drivers/gpu/drm/xe/xe_device_wa_oob.rules
Normal file
Loading…
Reference in New Issue
Block a user