summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-06-19 00:38:03 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-06-19 00:38:03 +0000
commit8ee7a1356336c9bff59da6372ca94019012f1a5f (patch)
treeb41031a9f4c86631f1b131be4bc66e9f5feb76c8
parent250f0c766fcb221f1d87f8c4dcf667fd63a39fbe (diff)
drm/amdgpu: enable tmz by default for GC 11.0.1
From Ikshwaku Chauhan 2f91f92bd870684173e1fa27927ae8ba99fe463c in linux-6.1.y/6.1.33 663b930e24842f3d3bb79418bb5cd8d01b40c559 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
index 82be027f661..c19241fedf7 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c
@@ -526,6 +526,8 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
case IP_VERSION(9, 3, 0):
/* GC 10.3.7 */
case IP_VERSION(10, 3, 7):
+ /* GC 11.0.1 */
+ case IP_VERSION(11, 0, 1):
if (amdgpu_tmz == 0) {
adev->gmc.tmz_enabled = false;
dev_info(adev->dev,
@@ -548,7 +550,6 @@ void amdgpu_gmc_tmz_set(struct amdgpu_device *adev)
case IP_VERSION(10, 3, 1):
/* YELLOW_CARP*/
case IP_VERSION(10, 3, 3):
- case IP_VERSION(11, 0, 1):
case IP_VERSION(11, 0, 4):
/* Don't enable it by default yet.
*/