[Intel-xe] [PATCH v3 0/3] Remove use of BUG_ON
Francois Dugast
francois.dugast at intel.com
Thu Jul 27 14:55:27 UTC 2023
After offline discussions and feedback on the first series, taking a step back
here and only address the issue of misusing BUG_ON() in situations where it is
not needed.
Proper error handling with recovery code and switching to drm_err* require case
by case analysis and fix, so this will be done in another series.
v2: Use regular WARN_ON() (Rodrigo Vivi)
Francois Dugast (3):
drm/xe/macro: Remove unused constant
drm/xe: Prefer WARN() over BUG() to avoid crashing the kernel
drm/xe: Use regular WARN_ON() instead of driver-specific XE_WARN_ON()
drivers/gpu/drm/i915/display/intel_display.c | 2 +-
drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +-
drivers/gpu/drm/xe/display/xe_fb_pin.c | 2 +-
drivers/gpu/drm/xe/xe_bb.c | 8 +-
drivers/gpu/drm/xe/xe_bo.c | 66 +++++++--------
drivers/gpu/drm/xe/xe_bo.h | 14 ++--
drivers/gpu/drm/xe/xe_bo_evict.c | 4 +-
drivers/gpu/drm/xe/xe_debugfs.c | 4 +-
drivers/gpu/drm/xe/xe_device.c | 8 +-
drivers/gpu/drm/xe/xe_dma_buf.c | 2 +-
drivers/gpu/drm/xe/xe_engine.c | 2 +-
drivers/gpu/drm/xe/xe_exec.c | 2 +-
drivers/gpu/drm/xe/xe_execlist.c | 16 ++--
drivers/gpu/drm/xe/xe_force_wake.c | 4 +-
drivers/gpu/drm/xe/xe_force_wake.h | 4 +-
drivers/gpu/drm/xe/xe_ggtt.c | 18 ++---
drivers/gpu/drm/xe/xe_gt.c | 22 ++---
drivers/gpu/drm/xe/xe_gt_clock.c | 4 +-
drivers/gpu/drm/xe/xe_gt_debugfs.c | 4 +-
drivers/gpu/drm/xe/xe_gt_pagefault.c | 2 +-
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 12 +--
drivers/gpu/drm/xe/xe_guc.c | 26 +++---
drivers/gpu/drm/xe/xe_guc.h | 2 +-
drivers/gpu/drm/xe/xe_guc_ads.c | 16 ++--
drivers/gpu/drm/xe/xe_guc_ct.c | 28 +++----
drivers/gpu/drm/xe/xe_guc_hwconfig.c | 2 +-
drivers/gpu/drm/xe/xe_guc_log.c | 4 +-
drivers/gpu/drm/xe/xe_guc_pc.c | 16 ++--
drivers/gpu/drm/xe/xe_guc_submit.c | 62 +++++++--------
drivers/gpu/drm/xe/xe_huc.c | 2 +-
drivers/gpu/drm/xe/xe_hw_engine.c | 10 +--
drivers/gpu/drm/xe/xe_hw_fence.c | 8 +-
drivers/gpu/drm/xe/xe_lrc.c | 8 +-
drivers/gpu/drm/xe/xe_macros.h | 4 -
drivers/gpu/drm/xe/xe_migrate.c | 40 +++++-----
drivers/gpu/drm/xe/xe_mocs.c | 4 +-
drivers/gpu/drm/xe/xe_pt.c | 32 ++++----
drivers/gpu/drm/xe/xe_range_fence.c | 2 +-
drivers/gpu/drm/xe/xe_reg_sr.c | 4 +-
drivers/gpu/drm/xe/xe_res_cursor.h | 14 ++--
drivers/gpu/drm/xe/xe_ring_ops.c | 8 +-
drivers/gpu/drm/xe/xe_sched_job.c | 2 +-
drivers/gpu/drm/xe/xe_sync.c | 4 +-
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 4 +-
drivers/gpu/drm/xe/xe_uc.c | 4 +-
drivers/gpu/drm/xe/xe_uc_debugfs.c | 2 +-
drivers/gpu/drm/xe/xe_uc_fw.c | 18 ++---
drivers/gpu/drm/xe/xe_uc_fw.h | 2 +-
drivers/gpu/drm/xe/xe_vm.c | 84 ++++++++++----------
drivers/gpu/drm/xe/xe_vm.h | 2 +-
drivers/gpu/drm/xe/xe_vm_madvise.c | 2 +-
drivers/gpu/drm/xe/xe_wait_user_fence.c | 2 +-
drivers/gpu/drm/xe/xe_wopcm.c | 18 ++---
53 files changed, 317 insertions(+), 321 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list