From 8dad43209501bc72252df476d5cff88b38c46284 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 19 Jun 2023 00:38:02 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/amdgpu/amdgpu_gmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.20.1