Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/guc: Do not assert CTB state while sending MMIO

During VF post-migration recovery, MMIO communication channel to GuC
is used, despite CTB channel being enabled. This behavior is rooted
in the save-restore architecture specification.

Therefore, a VF driver cannot assert that CTB is disabled while sending
MMIO messages to GuC. Such assertion needs to be PF only, or be removed.

This patch simply removes the assertion.

Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Suggested-by: Michał Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241107151357.1623733-2-tomasz.lis@intel.com

authored by

Tomasz Lis and committed by
Michal Wajdeczko
f7278da7 fb3cb67e

-1
-1
drivers/gpu/drm/xe/xe_guc.c
··· 945 945 946 946 BUILD_BUG_ON(VF_SW_FLAG_COUNT != MED_VF_SW_FLAG_COUNT); 947 947 948 - xe_assert(xe, !xe_guc_ct_enabled(&guc->ct)); 949 948 xe_assert(xe, len); 950 949 xe_assert(xe, len <= VF_SW_FLAG_COUNT); 951 950 xe_assert(xe, len <= MED_VF_SW_FLAG_COUNT);