drm/amd/display: enable S/G for RAVEN chip
authorShirish S <shirish.s@amd.com>
Tue, 16 Jul 2019 09:19:48 +0000 (14:49 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 04:23:12 +0000 (23:23 -0500)
enables gpu_vm_support in dm and adds
AMDGPU_GEM_DOMAIN_GTT as supported domain

v2:
Move BO placement logic into amdgpu_display_supported_domains

v3:
Use amdgpu_bo_validate_uswc in amdgpu_display_supported_domains.

v4:
amdgpu_bo_validate_uswc moved to sepperate patch.

Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index ddd8f5b0f2d39d8c41c83cd31bf55448aea3ce68..8b06150080aa5904cfd7dbc7d3c7a0f1b1df2287 100644 (file)
@@ -507,7 +507,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev)
         * APUs. So force the BO placement to VRAM in case this architecture
         * will not allow USWC mappings.
         */
-       if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type < CHIP_RAVEN &&
+       if (adev->asic_type >= CHIP_CARRIZO && adev->asic_type <= CHIP_RAVEN &&
            adev->flags & AMD_IS_APU && amdgpu_bo_support_uswc(0) &&
            amdgpu_device_asic_has_dc_support(adev->asic_type))
                domain |= AMDGPU_GEM_DOMAIN_GTT;
index e177be3421a4c090fd249dc817785d47029e77c0..356d77387c42f6fb1b8204238d6421ceb752ac7e 100644 (file)
@@ -688,7 +688,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
         */
        if (adev->flags & AMD_IS_APU &&
            adev->asic_type >= CHIP_CARRIZO &&
-           adev->asic_type < CHIP_RAVEN)
+           adev->asic_type <= CHIP_RAVEN)
                init_data.flags.gpu_vm_support = true;
 
        if (amdgpu_dc_feature_mask & DC_FBC_MASK)