diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-09 09:59:36 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-10-09 09:59:36 -0700 | 
| commit | fd330b1bc2f5840d68cbfa61c60573b4250bf14f (patch) | |
| tree | 63026ee0ce63a9462169b1419159c2d4468961ed /drivers/gpu/drm/amd/amdgpu/soc15.c | |
| parent | 583090b1b8232e6eae243a9009699666153a13a9 (diff) | |
| parent | dded93ffbb8c4a578adf13b54cd62519908a23f8 (diff) | |
Merge tag 'drm-fixes-2020-10-09' of git://anongit.freedesktop.org/drm/drm
Pull amdgpu drm fixes from Dave Airlie:
 "Fixes trickling in this week.
  Alex had a final fix for the newest GPU they introduced in rc1, along
  with one build regression and one crasher fix.
  Cross my fingers that's it for 5.9:
   - Fix a crash on renoir if you override the IP discovery parameter
   - Fix the build on ARC platforms
   - Display fix for Sienna Cichlid"
* tag 'drm-fixes-2020-10-09' of git://anongit.freedesktop.org/drm/drm:
  drm/amd/display: Change ABM config init interface
  drm/amdgpu/swsmu: fix ARC build errors
  drm/amdgpu: fix NULL pointer dereference for Renoir
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 84d811b6e48b..c28ebf41530a 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -694,12 +694,12 @@ static void soc15_reg_base_init(struct amdgpu_device *adev)  		 * it doesn't support SRIOV. */  		if (amdgpu_discovery) {  			r = amdgpu_discovery_reg_base_init(adev); -			if (r) { -				DRM_WARN("failed to init reg base from ip discovery table, " -					 "fallback to legacy init method\n"); -				vega10_reg_base_init(adev); -			} +			if (r == 0) +				break; +			DRM_WARN("failed to init reg base from ip discovery table, " +				 "fallback to legacy init method\n");  		} +		vega10_reg_base_init(adev);  		break;  	case CHIP_VEGA20:  		vega20_reg_base_init(adev);  | 
