mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	drm/xe: Fix MOCS debugfs LNCF readout
With only XE_FW_GT taken LNCF registers read back as all zeroes, leading
to a wild goose chase trying to figure out why is register programming
incorrect.
Fix it by grabbing XE_FORCEWAKE_ALL for affected platforms.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250307111402.26577-2-tvrtko.ursulin@igalia.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit 1182bc74b3)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
			
			
This commit is contained in:
		
							parent
							
								
									cedf23842d
								
							
						
					
					
						commit
						298661cd9c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -781,7 +781,9 @@ void xe_mocs_dump(struct xe_gt *gt, struct drm_printer *p)
 | 
			
		|||
	flags = get_mocs_settings(xe, &table);
 | 
			
		||||
 | 
			
		||||
	xe_pm_runtime_get_noresume(xe);
 | 
			
		||||
	fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
 | 
			
		||||
	fw_ref = xe_force_wake_get(gt_to_fw(gt),
 | 
			
		||||
				   flags & HAS_LNCF_MOCS ?
 | 
			
		||||
				   XE_FORCEWAKE_ALL : XE_FW_GT);
 | 
			
		||||
	if (!fw_ref)
 | 
			
		||||
		goto err_fw;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue