drm/amdgpu: enable tmz by default for GC 11.0.1
authorjsg <jsg@openbsd.org>
Mon, 19 Jun 2023 00:38:02 +0000 (00:38 +0000)
committerjsg <jsg@openbsd.org>
Mon, 19 Jun 2023 00:38:02 +0000 (00:38 +0000)
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

index 82be027..c19241f 100644 (file)
@@ -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.
                 */