]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu/soc15: init nbio registers for vega10
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Jul 2017 17:43:55 +0000 (13:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:27 +0000 (11:06 -0400)
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>
drivers/gpu/drm/amd/amdgpu/soc15.c

index 0d9a3dd302a77db0f4754c3c018c308a8428a91a..8dc023296773a4fe22c198b3da3a644c659dc2b1 100644 (file)
@@ -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);