Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH v3 0/3] Use Xe assert macros instead of XE_WARN_ON macro
@ 2023-09-07 12:23 Francois Dugast
  2023-09-07 12:23 ` [Intel-xe] [PATCH v3 1/3] drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string Francois Dugast
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Francois Dugast @ 2023-09-07 12:23 UTC (permalink / raw)
  To: intel-xe; +Cc: Francois Dugast, matthew.d.roper

Use the assert macros introduced by Michal Wajdeczko:
https://patchwork.freedesktop.org/series/121549/

Some occurrences of XE_WARN_ON are still present
as they will require a bit more refactoring.

v2:
- Move XE_WARN_ON -> drm_warn to a separate patch (Matt Roper)
- Only convert the instances where the condition evaluation is not
  strictly  needed (Matt Roper and Thomas Hellström)

v3:
- Rebase
- Keep WARN splats in xe_wopcm.c (Matt Roper)

Francois Dugast (2):
  drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string
  drm/xe: Use Xe assert macros instead of XE_WARN_ON macro

Michal Wajdeczko (1):
  drm/xe: Introduce Xe assert macros

 drivers/gpu/drm/xe/xe_assert.h              | 177 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_bb.c                  |   8 +-
 drivers/gpu/drm/xe/xe_bo.c                  |  67 ++++----
 drivers/gpu/drm/xe/xe_bo_evict.c            |   4 +-
 drivers/gpu/drm/xe/xe_device.c              |   6 +-
 drivers/gpu/drm/xe/xe_exec.c                |   2 +-
 drivers/gpu/drm/xe/xe_execlist.c            |  12 +-
 drivers/gpu/drm/xe/xe_force_wake.c          |   4 +-
 drivers/gpu/drm/xe/xe_force_wake.h          |   6 +-
 drivers/gpu/drm/xe/xe_ggtt.c                |  14 +-
 drivers/gpu/drm/xe/xe_gt.c                  |   1 +
 drivers/gpu/drm/xe/xe_gt_clock.c            |   2 +-
 drivers/gpu/drm/xe/xe_gt_debugfs.c          |   7 +-
 drivers/gpu/drm/xe/xe_gt_pagefault.c        |   3 +-
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c |  12 +-
 drivers/gpu/drm/xe/xe_guc.c                 |  24 +--
 drivers/gpu/drm/xe/xe_guc_ads.c             |  22 +--
 drivers/gpu/drm/xe/xe_guc_ct.c              |  31 ++--
 drivers/gpu/drm/xe/xe_guc_log.c             |   4 +-
 drivers/gpu/drm/xe/xe_guc_pc.c              |   2 +-
 drivers/gpu/drm/xe/xe_guc_submit.c          |  74 ++++----
 drivers/gpu/drm/xe/xe_huc.c                 |   3 +-
 drivers/gpu/drm/xe/xe_hw_engine.c           |  11 +-
 drivers/gpu/drm/xe/xe_lrc.c                 |   9 +-
 drivers/gpu/drm/xe/xe_migrate.c             |  31 ++--
 drivers/gpu/drm/xe/xe_mocs.c                |   2 +-
 drivers/gpu/drm/xe/xe_pt.c                  |  14 +-
 drivers/gpu/drm/xe/xe_ring_ops.c            |  13 +-
 drivers/gpu/drm/xe/xe_sched_job.c           |   2 +-
 drivers/gpu/drm/xe/xe_uc.c                  |   2 +-
 drivers/gpu/drm/xe/xe_uc_fw.c               |  16 +-
 drivers/gpu/drm/xe/xe_vm.c                  |  72 ++++----
 drivers/gpu/drm/xe/xe_vm.h                  |   2 +-
 drivers/gpu/drm/xe/xe_vm_madvise.c          |   2 +-
 34 files changed, 439 insertions(+), 222 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_assert.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-09-11 17:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-07 12:23 [Intel-xe] [PATCH v3 0/3] Use Xe assert macros instead of XE_WARN_ON macro Francois Dugast
2023-09-07 12:23 ` [Intel-xe] [PATCH v3 1/3] drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string Francois Dugast
2023-09-07 12:23 ` [Intel-xe] [PATCH v3 2/3] drm/xe: Introduce Xe assert macros Francois Dugast
2023-09-11 17:12   ` Rodrigo Vivi
2023-09-07 12:23 ` [Intel-xe] [PATCH v3 3/3] drm/xe: Use Xe assert macros instead of XE_WARN_ON macro Francois Dugast
2023-09-07 23:39 ` [Intel-xe] ✓ CI.Patch_applied: success for Use Xe assert macros instead of XE_WARN_ON macro (rev3) Patchwork
2023-09-07 23:40 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-07 23:41 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-07 23:47 ` [Intel-xe] ✗ CI.Build: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox