All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Francois Dugast <francois.dugast@intel.com>,
	intel-xe@lists.freedesktop.org
Cc: Francois Dugast <francois.dugast@intel.com>, rodrigo.vivi@intel.com
Subject: Re: [Intel-xe] [PATCH v3 2/3] drm/xe: Prefer WARN() over BUG() to avoid crashing the kernel
Date: Tue, 01 Aug 2023 17:01:30 +0300	[thread overview]
Message-ID: <877cqex3np.fsf@intel.com> (raw)
In-Reply-To: <20230727145530.7-3-francois.dugast@intel.com>

On Thu, 27 Jul 2023, Francois Dugast <francois.dugast@intel.com> wrote:
> Replace calls to XE_BUG_ON() with calls XE_WARN_ON() which in turn calls
> WARN() instead of BUG(). BUG() crashes the kernel and should only be
> used when it is absolutely unavoidable in case of catastrophic and
> unrecoverable failures, which is not the case here.
>
> Signed-off-by: Francois Dugast <francois.dugast@intel.com>
> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>  drivers/gpu/drm/i915/display/intel_display.c |  2 +-

This seems to have been merged already, but it's really not helping us
to touch i915 and xe in the same commits unless it's absolutely
necessary. The i915 display part especially should've been a fixup patch
to something else.


BR,
Jani.

>  drivers/gpu/drm/xe/xe_bb.c                   |  8 +--
>  drivers/gpu/drm/xe/xe_bo.c                   | 52 +++++++++---------
>  drivers/gpu/drm/xe/xe_bo.h                   | 14 ++---
>  drivers/gpu/drm/xe/xe_bo_evict.c             |  4 +-
>  drivers/gpu/drm/xe/xe_execlist.c             | 14 ++---
>  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                 | 12 ++---
>  drivers/gpu/drm/xe/xe_gt_clock.c             |  4 +-
>  drivers/gpu/drm/xe/xe_gt_debugfs.c           |  2 +-
>  drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c  | 12 ++---
>  drivers/gpu/drm/xe/xe_guc.c                  | 22 ++++----
>  drivers/gpu/drm/xe/xe_guc_ads.c              | 14 ++---
>  drivers/gpu/drm/xe/xe_guc_ct.c               | 22 ++++----
>  drivers/gpu/drm/xe/xe_guc_hwconfig.c         |  2 +-
>  drivers/gpu/drm/xe/xe_guc_log.c              |  4 +-
>  drivers/gpu/drm/xe/xe_guc_submit.c           | 48 ++++++++---------
>  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             |  2 +-
>  drivers/gpu/drm/xe/xe_lrc.c                  |  8 +--
>  drivers/gpu/drm/xe/xe_macros.h               |  1 -
>  drivers/gpu/drm/xe/xe_migrate.c              | 34 ++++++------
>  drivers/gpu/drm/xe/xe_pt.c                   | 22 ++++----
>  drivers/gpu/drm/xe/xe_res_cursor.h           | 12 ++---
>  drivers/gpu/drm/xe/xe_ring_ops.c             |  8 +--
>  drivers/gpu/drm/xe/xe_sched_job.c            |  2 +-
>  drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c       |  4 +-
>  drivers/gpu/drm/xe/xe_uc_fw.c                | 16 +++---
>  drivers/gpu/drm/xe/xe_uc_fw.h                |  2 +-
>  drivers/gpu/drm/xe/xe_vm.c                   | 56 ++++++++++----------
>  drivers/gpu/drm/xe/xe_wait_user_fence.c      |  2 +-
>  drivers/gpu/drm/xe/xe_wopcm.c                | 18 +++----
>  34 files changed, 221 insertions(+), 222 deletions(-)
>

-- 
Jani Nikula, Intel Open Source Graphics Center

  reply	other threads:[~2023-08-01 14:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-27 14:55 [Intel-xe] [PATCH v3 0/3] Remove use of BUG_ON Francois Dugast
2023-07-27 14:55 ` [Intel-xe] [PATCH v3 1/3] drm/xe/macro: Remove unused constant Francois Dugast
2023-07-27 14:55 ` [Intel-xe] [PATCH v3 2/3] drm/xe: Prefer WARN() over BUG() to avoid crashing the kernel Francois Dugast
2023-08-01 14:01   ` Jani Nikula [this message]
2023-08-01 14:39     ` Vivi, Rodrigo
2023-07-27 14:55 ` [Intel-xe] [PATCH v3 3/3] drm/xe: Use regular WARN_ON() instead of driver-specific XE_WARN_ON() Francois Dugast
2023-08-01 10:41   ` Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cqex3np.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=francois.dugast@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.