diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-07-06 13:43:55 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-14 11:06:27 -0400 |
commit | 833fa075b87c36be437a941393d750c36022d902 (patch) | |
tree | 0c9fc2e87a4bf35a1b89f9209b54813b48d80da0 /drivers/gpu/drm/amd/amdgpu/soc15.c | |
parent | 12097c6d67ba851d7eea7ab82b7ba70019347bfd (diff) | |
download | lwn-833fa075b87c36be437a941393d750c36022d902.tar.gz lwn-833fa075b87c36be437a941393d750c36022d902.zip |
drm/amdgpu/soc15: init nbio registers for vega10
Call nbio init registers on hw_init to set up any
nbio registers that need initialization at hw init time.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc15.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 0d9a3dd302a7..8dc023296773 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -727,6 +727,9 @@ static int soc15_common_hw_init(void *handle) soc15_pcie_gen3_enable(adev); /* enable aspm */ soc15_program_aspm(adev); + /* setup nbio registers */ + if (!(adev->flags & AMD_IS_APU)) + nbio_v6_1_init_registers(adev); /* enable the doorbell aperture */ soc15_enable_doorbell_aperture(adev, true); |