drm/xe: Don't ask for bug reports on force probed platforms
Subsystems (2)
Rodrigo Vivi
maintainerPATCH 1/1 drm/xe: Don't ask for bug reports on force probed platforms
Platforms that require force_probe are not yet officially supported, and users enabling them do so at their own risk. Only point to the issue tracker when a device gets wedged on supported platforms.
Suggested-by Jani Nikula <[email protected]>
Assisted-by LLM
Signed-off-by Rodrigo Vivi <[email protected]>
--- drivers/gpu/drm/xe/xe_device.c | 8 +++++--- drivers/gpu/drm/xe/xe_device_types.h | 2 ++ drivers/gpu/drm/xe/xe_pci.c | 1 + 3 files changed, 8 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_device.c +5 -3
@@ -1429,9 +1429,11 @@ void xe_device_declare_wedged(struct xe_device *xe)xe_log_err_fatal (xe,WEDGED , -EIO ,"Device declared wedged!\n" );xe_err_once (xe,"IOCTLs and executions are now blocked!\n" -"For recovery procedure, refer to %s\n" -"Please file a _new_ bug report at %s\n" , -WEDGED_URL ,XE_BUG_URL ); +"For recovery procedure, refer to %s\n" , +WEDGED_URL ); +if (!xe->info.require_force_probe) +xe_err_once (xe,"Please file a _new_ bug report at %s\n" , +XE_BUG_URL ); }for_each_gt (gt, xe, id)
drivers/gpu/drm/xe/xe_device_types.h +2 -0
@@ -246,6 +246,8 @@ struct xe_device {* state the firmware or bootloader left it in. */ u8 probe_display:1; +/** @info.require_force_probe: platform requires force_probe */ + u8 require_force_probe:1;/** @info.skip_guc_pc: Skip GuC based PM feature init */ u8 skip_guc_pc:1;/** @info.skip_pcode: skip access to PCODE uC */
drivers/gpu/drm/xe/xe_pci.c +1 -0
@@ -820,6 +820,7 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.has_sriov =xe_configfs_primary_gt_allowed (to_pci_dev (xe->drm.dev)) && desc->has_sriov; xe->info.has_sysctrl = desc->has_sysctrl; + xe->info.require_force_probe = desc->require_force_probe; xe->info.skip_guc_pc = desc->skip_guc_pc; xe->info.skip_pcode = desc->skip_pcode; xe->info.needs_scratch = desc->needs_scratch;
Signature · 1 line
2.55.0