Skip to contentSkip to conversation

drm/amd/display: add GTT domain support for dcn 3.1.5

PATCH Superseded Yifan Zhang 4 participants 5 messages Feb 21, 2022 – Feb 22, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: add GTT domain support for dcn 3.1.5

From: "Tianci.Yin" <[email protected]>

this patch adds GTT domain support for dcn 3.1.5

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -0
index 9709368b4915..88ee1224541c 100644
@@ -523,6 +523,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
 			case IP_VERSION(3, 0, 1):
 			case IP_VERSION(3, 1, 2):
 			case IP_VERSION(3, 1, 3):
+			case IP_VERSION(3, 1, 5):
 				domain |= AMDGPU_GEM_DOMAIN_GTT;
 				break;
 			default:
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yifan Zhang
Sent: Monday, February 21, 2022 6:15 PM
To: [email protected]
Cc: Li, Sun peng (Leo) <[email protected]>; Zhang, Yifan <[email protected]>; Yin, Tianci (Rico) <[email protected]>; Wentland, Harry <[email protected]>
Subject: [PATCH] drm/amd/display: add GTT domain support for dcn 3.1.5

From: "Tianci.Yin" <[email protected]>

this patch adds GTT domain support for dcn 3.1.5

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -0
index 9709368b4915..88ee1224541c 100644
@@ -523,6 +523,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
 			case IP_VERSION(3, 0, 1):
 			case IP_VERSION(3, 1, 2):
 			case IP_VERSION(3, 1, 3):
+			case IP_VERSION(3, 1, 5):
 				domain |= AMDGPU_GEM_DOMAIN_GTT;
 				break;
 			default:
Signature · 1 line
2.25.1
#2 lore raw
In reply to Yifan Zhang
Quoted 16 lines · Yifan Zhang

From: "Tianci.Yin" <[email protected]>

this patch adds GTT domain support for dcn 3.1.5

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -0
index 9709368b4915..88ee1224541c 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev, · line 526

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -0
@@ -523,6 +523,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
                        case IP_VERSION(3, 0, 1):
                        case IP_VERSION(3, 1, 2):
                        case IP_VERSION(3, 1, 3):
+                       case IP_VERSION(3, 1, 5):

Should also add 3.1.6 as well?

Alex

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -1
                                domain |= AMDGPU_GEM_DOMAIN_GTT;
                                break;
                        default:
--

2.25.1

#3 lore raw

Am 21.02.22 um 15:27 schrieb Alex Deucher:

Quoted 11 lines · Yifan Zhang
Quoted 10 lines

From: "Tianci.Yin" <[email protected]>

this patch adds GTT domain support for dcn 3.1.5

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 10 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev, · line 526

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -0
index 9709368b4915..88ee1224541c 100644
@@ -523,6 +523,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
                         case IP_VERSION(3, 0, 1):
                         case IP_VERSION(3, 1, 2):
                         case IP_VERSION(3, 1, 3):
+                       case IP_VERSION(3, 1, 5):

Should also add 3.1.6 as well?

I'm really wondering if that check shouldn't be something like >= IP_VERSION(3, 1, 0) instead.

Christian.

Quoted 10 lines

Alex

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -1
                                 domain |= AMDGPU_GEM_DOMAIN_GTT;
                                 break;
                         default:
--

2.25.1

#4 lore raw

[AMD Official Use Only]

Hi Christian,

We'd like to enable display S/G only for APUs which have smaller VRAM. If >= IP_VERSION(3, 1, 0) is used, new dGPUs will be included. That's not our intention.

BRs,
Yifan

-----Original Message-----
From: Christian König <[email protected]>
Sent: Tuesday, February 22, 2022 2:15 AM
To: Alex Deucher <[email protected]>; Zhang, Yifan <[email protected]>
Cc: Li, Sun peng (Leo) <[email protected]>; Yin, Tianci (Rico) <[email protected]>; Wentland, Harry <[email protected]>; amd-gfx list <[email protected]>
Subject: Re: [PATCH] drm/amd/display: add GTT domain support for dcn 3.1.5

Am 21.02.22 um 15:27 schrieb Alex Deucher:

Quoted 11 lines · Yifan Zhang
Quoted 10 lines

From: "Tianci.Yin" <[email protected]>

this patch adds GTT domain support for dcn 3.1.5

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 11 lines

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev, · line 526

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +1 -0
index 9709368b4915..88ee1224541c 100644
@@ -523,6 +523,7 @@ uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev,
                         case IP_VERSION(3, 0, 1):
                         case IP_VERSION(3, 1, 2):
                         case IP_VERSION(3, 1, 3):
+                       case IP_VERSION(3, 1, 5):

Should also add 3.1.6 as well?

I'm really wondering if that check shouldn't be something like >= IP_VERSION(3, 1, 0) instead.

Christian.

Quoted 10 lines

Alex

Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -1
                                 domain |= AMDGPU_GEM_DOMAIN_GTT;
                                 break;
                         default:
--

2.25.1