drm/xe/guc: Introduce the GuC Buffer Cache
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 20 Dec 2024 19:42:01 +0000 (20:42 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 18 Jan 2025 23:12:03 +0000 (00:12 +0100)
commit696bfdf273eab9ce3dd2ff51d26ca30f7924a4bb
tree8c28e353b46a7b529f3181e9a0b671fdf9d21ee3
parentc49ca671818a325f2221f0bda8af96e339272a5e
drm/xe/guc: Introduce the GuC Buffer Cache

The purpose of the GuC Buffer Cache is to maintain a set ofreusable
buffers that could be used while sending some of the CTB H2G actions
that require separate buffer with indirect data. Currently only few
PF actions need this so initialize it only when running as a PF.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241220194205.995-9-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc_buf.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_buf.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_buf_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_guc_types.h