mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	drm/amdgpu: set Vega20 LBPW as disabled at default
For Vega20, LBPW feature is disabled at default. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
		
							parent
							
								
									2d3030a00e
								
							
						
					
					
						commit
						3482d2d9b0
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -2499,6 +2499,20 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
 | 
				
			||||||
			return r;
 | 
								return r;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (amdgpu_lbpw == -1) {
 | 
				
			||||||
 | 
							switch (adev->asic_type) {
 | 
				
			||||||
 | 
							case CHIP_RAVEN:
 | 
				
			||||||
 | 
								amdgpu_lbpw = 1;
 | 
				
			||||||
 | 
								break;
 | 
				
			||||||
 | 
							case CHIP_VEGA20:
 | 
				
			||||||
 | 
								amdgpu_lbpw = 0;
 | 
				
			||||||
 | 
								break;
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								amdgpu_lbpw = 0;
 | 
				
			||||||
 | 
								break;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (adev->asic_type == CHIP_RAVEN ||
 | 
						if (adev->asic_type == CHIP_RAVEN ||
 | 
				
			||||||
	    adev->asic_type == CHIP_VEGA20) {
 | 
						    adev->asic_type == CHIP_VEGA20) {
 | 
				
			||||||
		if (amdgpu_lbpw != 0)
 | 
							if (amdgpu_lbpw != 0)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue