Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: intel-xe@lists.freedesktop.org
Subject: [Intel-xe] [CI 17/17] drm/xe: Disable panic_on_warn for testing purposes.
Date: Wed,  6 Dec 2023 13:58:17 +0100	[thread overview]
Message-ID: <20231206125818.4164-17-thomas.hellstrom@linux.intel.com> (raw)
In-Reply-To: <20231206125818.4164-1-thomas.hellstrom@linux.intel.com>

Turn off panic_on_warn and add some debugging printouts.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
 drivers/gpu/drm/xe/xe_device.c       | 3 ++-
 drivers/gpu/drm/xe/xe_ttm_sys_mgr.c  | 2 ++
 drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 3 +++
 kernel/panic.c                       | 1 +
 4 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 8423c817111b..73a99c1a0172 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -191,6 +191,7 @@ static void xe_device_destroy(struct drm_device *dev, void *dummy)
 	if (xe->unordered_wq)
 		destroy_workqueue(xe->unordered_wq);
 
+	pr_info("TTM device fini.\n");
 	ttm_device_fini(&xe->ttm);
 }
 
@@ -400,7 +401,7 @@ int xe_device_probe(struct xe_device *xe)
 	u8 id;
 
 	xe_pat_init_early(xe);
-
+	panic_on_warn = 0;
 	xe->info.mem_region_mask = 1;
 	err = xe_display_init_nommio(xe);
 	if (err)
diff --git a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
index 3e1fa0c832ca..2183ec7989f9 100644
--- a/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
+++ b/drivers/gpu/drm/xe/xe_ttm_sys_mgr.c
@@ -88,6 +88,8 @@ static void ttm_sys_mgr_fini(struct drm_device *drm, void *arg)
 	struct ttm_resource_manager *man = &xe->mem.sys_mgr;
 	int err;
 
+	drain_workqueue(xe->ttm.wq);
+	pr_info("TT mgr fini. BO count is %d\n", atomic_read(&ttm_glob.bo_count));
 	ttm_resource_manager_set_used(man, false);
 
 	err = ttm_resource_manager_evict_all(&xe->ttm, man);
diff --git a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
index 953e5dc0fd80..22b6b7897339 100644
--- a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
+++ b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
@@ -316,6 +316,9 @@ static void ttm_vram_mgr_fini(struct drm_device *dev, void *arg)
 	struct xe_ttm_vram_mgr *mgr = arg;
 	struct ttm_resource_manager *man = &mgr->manager;
 
+	drain_workqueue(xe->ttm.wq);
+	pr_info("VRAM mgr fini. BO count is %d\n", atomic_read(&ttm_glob.bo_count));
+
 	ttm_resource_manager_set_used(man, false);
 
 	if (ttm_resource_manager_evict_all(&xe->ttm, man))
diff --git a/kernel/panic.c b/kernel/panic.c
index bc59531848e4..1c8057027f20 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -59,6 +59,7 @@ static int pause_on_oops_flag;
 static DEFINE_SPINLOCK(pause_on_oops_lock);
 bool crash_kexec_post_notifiers;
 int panic_on_warn __read_mostly;
+EXPORT_SYMBOL_GPL(panic_on_warn);
 unsigned long panic_on_taint;
 bool panic_on_taint_nousertaint = false;
 static unsigned int warn_limit __read_mostly;
-- 
2.42.0


  parent reply	other threads:[~2023-12-06 12:58 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-06 12:58 [Intel-xe] [CI 01/17] drm/gpuvm: convert WARN() to drm_WARN() variants Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 02/17] drm/gpuvm: don't always WARN in drm_gpuvm_check_overflow() Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 03/17] drm/gpuvm: export drm_gpuvm_range_valid() Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 04/17] drm/nouveau: make use of drm_gpuvm_range_valid() Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 05/17] drm/gpuvm: add common dma-resv per struct drm_gpuvm Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 06/17] drm/nouveau: make use of the GPUVM's shared dma-resv Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 07/17] drm/gpuvm: add drm_gpuvm_flags to drm_gpuvm Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 08/17] drm/nouveau: separately allocate struct nouveau_uvmm Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 09/17] drm/gpuvm: reference count drm_gpuvm structures Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 10/17] drm/gpuvm: add an abstraction for a VM / BO combination Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 11/17] drm/gpuvm: track/lock/validate external/evicted objects Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 12/17] drm/xe: Adjust to "drm/gpuvm: add common dma-resv per struct drm_gpuvm" Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 13/17] drm/xe: Adjust to commit "drm/gpuvm: add drm_gpuvm_flags to drm_gpuvm" Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 14/17] drm/xe: Adjust to commit drm/gpuvm: reference count drm_gpuvm structures Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 15/17] drm/xe: Adjust to commit "drm/gpuvm: add an abstraction for a VM/BO combination" Thomas Hellström
2023-12-06 12:58 ` [Intel-xe] [CI 16/17] drm/xe: Use DRM_GPUVM_RESV_PROTECTED for gpuvm Thomas Hellström
2023-12-06 12:58 ` Thomas Hellström [this message]
2023-12-06 14:10 ` [Intel-xe] ✓ CI.Patch_applied: success for series starting with [CI,01/17] drm/gpuvm: convert WARN() to drm_WARN() variants Patchwork
2023-12-06 14:11 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-12-06 14:12 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-12-06 14:19 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-12-06 14:20 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-12-06 14:21 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-12-06 15:00 ` [Intel-xe] ✗ CI.BAT: failure " Patchwork

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=20231206125818.4164-17-thomas.hellstrom@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox