File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -775,22 +775,23 @@ void xe_mocs_init(struct xe_gt *gt)
775
775
void xe_mocs_dump (struct xe_gt * gt , struct drm_printer * p )
776
776
{
777
777
struct xe_device * xe = gt_to_xe (gt );
778
+ enum xe_force_wake_domains domain ;
778
779
struct xe_mocs_info table ;
779
780
unsigned int fw_ref , flags ;
780
781
781
782
flags = get_mocs_settings (xe , & table );
782
783
784
+ domain = flags & HAS_LNCF_MOCS ? XE_FORCEWAKE_ALL : XE_FW_GT ;
783
785
xe_pm_runtime_get_noresume (xe );
784
- fw_ref = xe_force_wake_get (gt_to_fw (gt ),
785
- flags & HAS_LNCF_MOCS ?
786
- XE_FORCEWAKE_ALL : XE_FW_GT );
787
- if (!fw_ref )
786
+ fw_ref = xe_force_wake_get (gt_to_fw (gt ), domain );
787
+
788
+ if (!xe_force_wake_ref_has_domain (fw_ref , domain ))
788
789
goto err_fw ;
789
790
790
791
table .ops -> dump (& table , flags , gt , p );
791
792
792
- xe_force_wake_put (gt_to_fw (gt ), fw_ref );
793
793
err_fw :
794
+ xe_force_wake_put (gt_to_fw (gt ), fw_ref );
794
795
xe_pm_runtime_put (xe );
795
796
}
796
797
You can’t perform that action at this time.
0 commit comments