Skip to contentSkip to conversation

drm/amdgpu: Enable translate_further to extend UTCL2 reach

PATCH In review Joseph Greathouse 5 participants 5 messages Aug 4, 2022 – Aug 8, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: Enable translate_further to extend UTCL2 reach

Enable translate_further on Arcturus and Aldebaran server chips in order to increase the UTCL2 reach from 8 GiB to 64 GiB, which is more in line with the amount of framebuffer DRAM in the devices.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
index 22761a3bb818..ab89d91975ab 100644
@@ -1624,12 +1624,15 @@ static int gmc_v9_0_sw_init(void *handle)
 			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 47);
 		else
 			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+		if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
+			adev->gmc.translate_further = adev->vm_manager.num_level > 1;
 		break;
 	case IP_VERSION(9, 4, 1):
 		adev->num_vmhubs = 3;
 
 		/* Keep the vm size same with Vega20 */
 		amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+		adev->gmc.translate_further = adev->vm_manager.num_level > 1;
 		break;
 	default:
 		break;
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Joseph Greathouse

Enable translate_further on Arcturus and Aldebaran server chips in order to increase the UTCL2 reach from 8 GiB to 64 GiB, which is more in line with the amount of framebuffer DRAM in the devices.

Quoted 24 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
index 22761a3bb818..ab89d91975ab 100644
@@ -1624,12 +1624,15 @@ static int gmc_v9_0_sw_init(void *handle)
  			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 47);
  		else
  			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+		if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
+			adev->gmc.translate_further = adev->vm_manager.num_level > 1;
  		break;
  	case IP_VERSION(9, 4, 1):
  		adev->num_vmhubs = 3;
 
  		/* Keep the vm size same with Vega20 */
  		amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+		adev->gmc.translate_further = adev->vm_manager.num_level > 1;
  		break;
  	default:
  		break;
#2 lore raw

[AMD Official Use Only - General]

You can throw an Acked-by Kent Russell <[email protected]> as well . Not sure if there's someone who wants to provide a more concrete RB.

Kent

Quoted 48 lines

-----Original Message-----
From: Kuehling, Felix <[email protected]>
Sent: Thursday, August 4, 2022 2:54 PM
To: Greathouse, Joseph <[email protected]>; amd- [email protected]
Cc: Russell, Kent <[email protected]>; Koenig, Christian <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: Enable translate_further to extend UTCL2 reach

Quoted 6 lines · Joseph Greathouse

Enable translate_further on Arcturus and Aldebaran server chips in order to increase the UTCL2 reach from 8 GiB to 64 GiB, which is more in line with the amount of framebuffer DRAM in the devices.

Review

Quoted 5 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
  1 file changed, 3 insertions(+)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

Quoted 7 lines

index 22761a3bb818..ab89d91975ab 100644

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0 -0
@@ -1624,12 +1624,15 @@ static int gmc_v9_0_sw_init(void *handle)
  			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 47);
  		else
  			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static int gmc_v9_0_sw_init(void *handle) · line 1636

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
+		if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
+			adev->gmc.translate_further = adev-
 vm_manager.num_level > 1;
  		break;
  	case IP_VERSION(9, 4, 1):
  		adev->num_vmhubs = 3;
 
  		/* Keep the vm size same with Vega20 */
  		amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+		adev->gmc.translate_further = adev->vm_manager.num_level >

1;

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0 -0
  		break;
  	default:

break;

#3 lore raw

I can't 100% judge if the IP version check is sufficient or not, so keep an eye open for regression reports when this goes upstream.

Apart from that Acked-by: Christian König <[email protected]> as well.

Christian.

Am 08.08.22 um 15:12 schrieb Russell, Kent:

Quoted 53 lines

[AMD Official Use Only - General]

You can throw an Acked-by Kent Russell <[email protected]> as well . Not sure if there's someone who wants to provide a more concrete RB.

Kent

Quoted 47 lines

-----Original Message-----
From: Kuehling, Felix <[email protected]>
Sent: Thursday, August 4, 2022 2:54 PM
To: Greathouse, Joseph <[email protected]>; amd- [email protected]
Cc: Russell, Kent <[email protected]>; Koenig, Christian <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: Enable translate_further to extend UTCL2 reach

Quoted 6 lines · Joseph Greathouse

Enable translate_further on Arcturus and Aldebaran server chips in order to increase the UTCL2 reach from 8 GiB to 64 GiB, which is more in line with the amount of framebuffer DRAM in the devices.

Review

Quoted 5 lines
---
   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
   1 file changed, 3 insertions(+)
(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

Quoted 7 lines

index 22761a3bb818..ab89d91975ab 100644

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0 -0
@@ -1624,12 +1624,15 @@ static int gmc_v9_0_sw_init(void *handle)
   			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 47);
   		else
   			amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static int gmc_v9_0_sw_init(void *handle) · line 1636

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
+		if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
+			adev->gmc.translate_further = adev-
 vm_manager.num_level > 1;
   		break;
   	case IP_VERSION(9, 4, 1):
   		adev->num_vmhubs = 3;
 
   		/* Keep the vm size same with Vega20 */
   		amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+		adev->gmc.translate_further = adev->vm_manager.num_level >

1;

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0 -0
   		break;
   	default:
   		break;
maintainer Reviewed-by on v1 1/1
#4 lore raw
In reply to Joseph Greathouse

[Public]

________________________________
From: amd-gfx <[email protected]> on behalf of Joseph Greathouse <[email protected]>
Sent: Thursday, August 4, 2022 12:01 PM
To: [email protected] <[email protected]>
Cc: Russell, Kent <[email protected]>; Greathouse, Joseph <[email protected]>; Koenig, Christian <[email protected]>
Subject: [PATCH] drm/amdgpu: Enable translate_further to extend UTCL2 reach

Enable translate_further on Arcturus and Aldebaran server chips in order to increase the UTCL2 reach from 8 GiB to 64 GiB, which is more in line with the amount of framebuffer DRAM in the devices.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
index 22761a3bb818..ab89d91975ab 100644
@@ -1624,12 +1624,15 @@ static int gmc_v9_0_sw_init(void *handle)
                         amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 47);
                 else
                         amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+               if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(9, 4, 2))
+                       adev->gmc.translate_further = adev->vm_manager.num_level > 1;
                 break;
         case IP_VERSION(9, 4, 1):
                 adev->num_vmhubs = 3;
 
                 /* Keep the vm size same with Vega20 */
                 amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+               adev->gmc.translate_further = adev->vm_manager.num_level > 1;
                 break;
         default:
                 break;

--
2.20.1