]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/amdgpu: Add to initialization of mmVCE_VCPU_CNTL register
authorAlan Harrison <Alan.Harrison@amd.com>
Thu, 9 Feb 2017 21:01:57 +0000 (16:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Feb 2017 17:41:07 +0000 (12:41 -0500)
Add a bit needed during initialization into the driver, where it is supposed
to be.  Currently, this is happening in the VCE firmware, and although
functional, this is the correct place to perform this initialization.

Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alan Harrison <Alan.Harrison@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c

index a8c40eebdd786057bc4f00dcd5291bcd0997b125..a78298529f07f5aaf501e8fa0eebb9f690ca8877 100644 (file)
@@ -510,6 +510,8 @@ static void vce_v3_0_mc_resume(struct amdgpu_device *adev, int idx)
        WREG32(mmVCE_LMI_SWAP_CNTL, 0);
        WREG32(mmVCE_LMI_SWAP_CNTL1, 0);
        WREG32(mmVCE_LMI_VM_CTRL, 0);
+       WREG32_OR(mmVCE_VCPU_CNTL, 0x00100000);
+
        if (adev->asic_type >= CHIP_STONEY) {
                WREG32(mmVCE_LMI_VCPU_CACHE_40BIT_BAR0, (adev->vce.gpu_addr >> 8));
                WREG32(mmVCE_LMI_VCPU_CACHE_40BIT_BAR1, (adev->vce.gpu_addr >> 8));