]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Release runtime pm for error path of xe_devcoredump_read()
authorShuicheng Lin <shuicheng.lin@intel.com>
Mon, 7 Jul 2025 00:49:14 +0000 (00:49 +0000)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 11 Jul 2025 03:59:38 +0000 (20:59 -0700)
commit253a174c06f8c37aa71521623205b890022b6987
treebc74c2fc5d3161ed37b753d33fd7ca888185f289
parent6d33df611a39a1b4ad9f2b609ded5d6efa04d97e
drm/xe: Release runtime pm for error path of xe_devcoredump_read()

xe_pm_runtime_put() is missed to be called for the error path in
xe_devcoredump_read().
Add function description comments for xe_devcoredump_read() to help
understand it.

v2: more detail function comments and refine goto logic (Matt)

Fixes: c4a2e5f865b7 ("drm/xe: Add devcoredump chunking")
Cc: stable@vger.kernel.org
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250707004911.3502904-6-shuicheng.lin@intel.com
(cherry picked from commit 017ef1228d735965419ff118fe1b89089e772c42)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_devcoredump.c