]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Use managed BO in memirq
authorIlia Levi <ilia.levi@intel.com>
Wed, 4 Dec 2024 11:16:55 +0000 (13:16 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 5 Dec 2024 15:37:53 +0000 (07:37 -0800)
commit919c2b586f620d884f95a97b3d5f665b4ee27228
tree2ea9374a3ea89abedb67c15cced5d925ecc9c1bc
parent7cbd0f7cfa2685860f85f0d4fbf817d287b65bcf
drm/xe: Use managed BO in memirq

When probe has an error, the current scheme causes a page fault during
resource unwinding. This happens because GTTMMADR_BAR gets unmapped
before the allocated BO is released via drmm. Switching to a managed BO
that is released via devm solves this ordering issue.

Signed-off-by: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241204111655.1293-1-ilia.levi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_memirq.c