drm/amdgpu: enable tmz on renoir asics
authorHuang Rui <ray.huang@amd.com>
Wed, 14 Apr 2021 10:45:54 +0000 (18:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:35:36 +0000 (21:35 -0400)
The tmz functions are verified on renoir chips as well. So enable it by
default.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Tested-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c

index 1197f49eda185b2019ada23ceee1c01462c3e45b..c39ed9eb0987dfde3c035b7085531c79b44837cf 100644 (file)
@@ -487,6 +487,7 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
 {
        switch (adev->asic_type) {
        case CHIP_RAVEN:
+       case CHIP_RENOIR:
                if (amdgpu_tmz == 0) {
                        adev->gmc.tmz_enabled = false;
                        dev_info(adev->dev,
@@ -497,7 +498,6 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
                                 "Trusted Memory Zone (TMZ) feature enabled\n");
                }
                break;
-       case CHIP_RENOIR:
        case CHIP_NAVI10:
        case CHIP_NAVI14:
        case CHIP_NAVI12: