diff options
author | Matthew Auld <matthew.auld@intel.com> | 2024-02-02 17:14:36 +0000 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2024-02-06 10:36:03 +0000 |
commit | 8087199cd5951c1eba26003b3e4296dbb2110adf (patch) | |
tree | f279ee59d417610e741f636f215358f4fc7f3c4a /tools/perf/scripts/python/check-perf-trace.py | |
parent | 5ad6af5c91e9b942c44b657122270d935db3a813 (diff) |
drm/xe/vm: don't ignore error when in_kthread
If GUP fails and we are in_kthread, we can have pinned = 0 and ret = 0.
If that happens we call sg_alloc_append_table_from_pages() with n_pages
= 0, which is not well behaved and can trigger:
kernel BUG at include/linux/scatterlist.h:115!
depending on if the pages array happens to be zeroed or not. Even if we
don't hit that it crashes later when trying to dma_map the returned
table.
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240202171435.427630-2-matthew.auld@intel.com
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions