drm/xe/devcoredump: Print errno if VM snapshot was not captured
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 7 Mar 2024 13:52:28 +0000 (05:52 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 22 Mar 2024 15:08:47 +0000 (08:08 -0700)
commite5f661bb56d49f05d095b3d40e27c0ce8039aef0
tree0e12c814f94338d999f5c0e5694dadc38c61e0dd
parent241dea210153fe12dc7814b14d8cd9ee76c8510d
drm/xe/devcoredump: Print errno if VM snapshot was not captured

My testing machine has only 8GB of RAM and while running piglit tests
I can reach the OOM cache in xe_vm_snapshot_capture() snap allocaiton
sometimes.

So to differentiate the OOM from race between capture and UMDs
unbinbind VMs here I'm adding a '[0].error: -12' to devcoredump.

v2:
- fix returned errno values

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240307135229.41973-2-jose.souza@intel.com
drivers/gpu/drm/xe/xe_devcoredump.c
drivers/gpu/drm/xe/xe_vm.c