]> www.infradead.org Git - linux.git/commit
drm/xe/guc: Add capture size check in GuC log buffer
authorZhanjun Dong <zhanjun.dong@intel.com>
Fri, 4 Oct 2024 19:34:25 +0000 (12:34 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 8 Oct 2024 16:34:28 +0000 (09:34 -0700)
commit84d15f426110c9f39cedf499b04d7b3642dca428
tree5af8e3e542ffa4b86a2360fa81d8950c9a3e0e22
parentb170d696c1e2226713471d810c63b1162335079f
drm/xe/guc: Add capture size check in GuC log buffer

Capture-nodes generated by GuC are placed in the GuC capture ring
buffer which is a sub-region of the larger Guc-Log-buffer.
Add capture output size check before allocating the shared buffer.

Signed-off-by: Zhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241004193428.3311145-4-zhanjun.dong@intel.com
drivers/gpu/drm/xe/abi/guc_log_abi.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_capture.c
drivers/gpu/drm/xe/xe_guc_log.c
drivers/gpu/drm/xe/xe_guc_log.h