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)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 8 May 2025 19:44:34 +0000 (12:44 -0700)
commit51c0ee84e4dc339287b2d7335f2b54d747794c83
treeb3bb7111063116e330983d9d39eed0ec9a9f5ff1
parent391008f34e711253c5983b0bf52277cc43723127
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>
(cherry picked from commit 70a2585e582058e94fe4381a337be42dec800337)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/tests/xe_mocs.c