drm/xe/tests/mocs: Hold XE_FORCEWAKE_ALL for LNCF regs
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Mon, 28 Apr 2025 08:23:57 +0000 (13:53 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Tue, 29 Apr 2025 12:29:53 +0000 (17:59 +0530)
commit70a2585e582058e94fe4381a337be42dec800337
tree39412501398675cb4ec12e10c6b9fa5443d2e8e2
parent1bb53d05ba71b684f61bd11df8b99fe75ce52754
drm/xe/tests/mocs: Hold XE_FORCEWAKE_ALL for LNCF regs

LNCF registers report wrong values when XE_FORCEWAKE_GT
only is held. Holding XE_FORCEWAKE_ALL ensures correct
operations on LNCF regs.

V2(Himal):
 - Use xe_force_wake_ref_has_domain

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1999
Fixes: a6a4ea6d7d37 ("drm/xe: Add mocs kunit")
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250428082357.1730068-1-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/tests/xe_mocs.c