drm/xe/guc: Allow to initialize submission with limited set of IDs
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 21 May 2024 09:25:17 +0000 (11:25 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 May 2024 10:53:43 +0000 (12:53 +0200)
commit7065b19bd542e5dfdcfc421aed4ab9e4fefa19cc
treeb9ef3e675794412542750402e7abe326e3374115
parentf7e20cfb59c9f6dad45539286a1c804b24fd86c7
drm/xe/guc: Allow to initialize submission with limited set of IDs

While PF and native drivers may initialize submission code to use
all available GuC contexts IDs, the VF driver may only use limited
number of IDs. Update init function to accept number of context
IDs available for use.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521092518.624-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_guc_submit.h