[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250228121353.1442591-1-andrealmeid@igalia.com>
Date: Fri, 28 Feb 2025 09:13:51 -0300
From: André Almeida <andrealmeid@...lia.com>
To: dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
kernel-dev@...lia.com,
amd-gfx@...ts.freedesktop.org,
intel-xe@...ts.freedesktop.org,
intel-gfx@...ts.freedesktop.org
Cc: Alex Deucher <alexander.deucher@....com>,
'Christian König' <christian.koenig@....com>,
siqueira@...lia.com,
airlied@...il.com,
simona@...ll.ch,
Raag Jadav <raag.jadav@...el.com>,
rodrigo.vivi@...el.com,
jani.nikula@...ux.intel.com,
André Almeida <andrealmeid@...lia.com>
Subject: [PATCH 0/2] drm: Create an app info option for wedge events
This patchset implements a request made by Xaver Hugl about wedge events:
"I'd really like to have the PID of the client that triggered the GPU
reset, so that we can kill it if multiple resets are triggered in a
row (or switch to software rendering if it's KWin itself) and show a
user-friendly notification about why their app(s) crashed, but that
can be added later."
>From https://lore.kernel.org/dri-devel/CAFZQkGwJ4qgHV8WTp2=svJ_VXhb-+Y8_VNtKB=jLsk6DqMYp9w@mail.gmail.com/
This patchset depends on https://lore.kernel.org/dri-devel/20250225010221.537059-1-andrealmeid@igalia.com/
For testing, I've used amdgpu's debug_mask options debug_disable_soft_recovery
and debug_disable_gpu_ring_reset to test both wedge event paths in the driver.
To trigger a ring timeout, I used this app:
https://gitlab.freedesktop.org/andrealmeid/gpu-timeout
Thanks!
André Almeida (2):
drm: Create an app info option for wedge events
drm/amdgpu: Make use of drm_wedge_app_info
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 19 +++++++++++++++++--
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 ++++
drivers/gpu/drm/drm_drv.c | 16 +++++++++++++---
drivers/gpu/drm/i915/gt/intel_reset.c | 3 ++-
drivers/gpu/drm/xe/xe_device.c | 3 ++-
include/drm/drm_device.h | 8 ++++++++
include/drm/drm_drv.h | 3 ++-
7 files changed, 48 insertions(+), 8 deletions(-)
--
2.48.1
Powered by blists - more mailing lists