Commit b86babc9 authored by Michal Wajdeczko's avatar Michal Wajdeczko
Browse files

drm/xe/guc: Unblock GuC buffer cache for all modes



Today we were using GuC buffer cache only in the PF mode, but
shortly we will want to use it also in native and VF mode.

Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://lore.kernel.org/r/20250512220018.172-2-michal.wajdeczko@intel.com
parent 5aee6e33
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -710,6 +710,10 @@ static int vf_guc_init_post_hwconfig(struct xe_guc *guc)
	if (err)
		return err;

	err = xe_guc_buf_cache_init(&guc->buf);
	if (err)
		return err;

	/* XXX xe_guc_db_mgr_init not needed for now */

	return 0;
+0 −4
Original line number Diff line number Diff line
@@ -37,10 +37,6 @@ int xe_guc_buf_cache_init(struct xe_guc_buf_cache *cache)
	struct xe_gt *gt = cache_to_gt(cache);
	struct xe_sa_manager *sam;

	/* XXX: currently it's useful only for the PF actions */
	if (!IS_SRIOV_PF(gt_to_xe(gt)))
		return 0;

	sam = __xe_sa_bo_manager_init(gt_to_tile(gt), SZ_8K, 0, sizeof(u32));
	if (IS_ERR(sam))
		return PTR_ERR(sam);