drm/xe/guc: Exclude indirect ring state page from ADS engine state size
authorSatyanarayana K V P <satyanarayana.k.v.p@intel.com>
Mon, 4 May 2026 09:49:26 +0000 (09:49 +0000)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 5 May 2026 17:50:53 +0000 (10:50 -0700)
commit3ec5f003f6c377beda8bd5438941f5a7795e1848
treec966afcd50a33b329041813514b57d49cf450b0d
parentead21111e275c89828dc13ac8cfa657971ec874c
drm/xe/guc: Exclude indirect ring state page from ADS engine state size

The engine state size reported to GuC via ADS should only include the
engine state portion and should not include the indirect ring state page
that comes after it in the context image. The GuC uses this size to
overwrite the engine state in the LRC on watchdog resets and we don't
want it to overwrite the indirect ring state as well.

Fixes: d6219e1cd5e3 ("drm/xe: Add Indirect Ring State support")
Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patch.msgid.link/20260504094924.3760713-4-satyanarayana.k.v.p@intel.com
drivers/gpu/drm/xe/xe_guc_ads.c
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_lrc.h