Skip to contentSkip to conversation

drm/amdgpu: enable tmz on renoir asics

PATCH In review Huang Rui 2 participants 2 messages Apr 16, 2021

Subsystems (2)
lore
Share & tools
lore

Huang Rui

author
#0 lore raw

PATCH 1/1 drm/amdgpu: enable tmz on renoir asics

The tmz function are verified on renoir chips as well. So enable it by default.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1 -1
index 1197f49eda18..c39ed9eb0987 100644
@@ -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:
Signature · 6 lines
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
maintainer Reviewed-by Tested-by Lang Yu on v1 1/1
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

________________________________
From: Huang, Ray <[email protected]>
Sent: Thursday, April 15, 2021 11:22 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Yu, Lang <[email protected]>; Huang, Ray <[email protected]>
Subject: [PATCH] drm/amdgpu: enable tmz on renoir asics

The tmz function are verified on renoir chips as well. So enable it by default.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1 -1
index 1197f49eda18..c39ed9eb0987 100644
@@ -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:

--
2.25.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx