Skip to contentSkip to conversation

drm/amdgpu: Add support to clock gating for sdma 5.2.7

PATCH In review Krunal Patel 2 participants 4 messages Nov 7, 2022 – Dec 5, 2022

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

PATCH 1/1 drm/amdgpu: Add support to clock gating for sdma 5.2.7

With this change it will add support for clock gating for sdma 5.2.7

- Additional changes are to re-arrange the chip version sequentially.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +3 -2
index 809eca54fc61..404b255cb4e0 100644
@@ -1647,12 +1647,13 @@ static int sdma_v5_2_set_clockgating_state(void *handle,
 
 	switch (adev->ip_versions[SDMA0_HWIP][0]) {
 	case IP_VERSION(5, 2, 0):
-	case IP_VERSION(5, 2, 2):
 	case IP_VERSION(5, 2, 1):
+	case IP_VERSION(5, 2, 2):
+	case IP_VERSION(5, 2, 3):
 	case IP_VERSION(5, 2, 4):
 	case IP_VERSION(5, 2, 5):
 	case IP_VERSION(5, 2, 6):
-	case IP_VERSION(5, 2, 3):
+	case IP_VERSION(5, 2, 7):
 		sdma_v5_2_update_medium_grain_clock_gating(adev,
 				state == AMD_CG_STATE_GATE);
 		sdma_v5_2_update_medium_grain_light_sleep(adev,
Signature · 1 line
2.25.1
#1 lore raw

[AMD Official Use Only - General]

+Likun, Hawking

Hi,

Can you please help with the review of the patch?

Thanks and regards
Krunal
________________________________
From: Patel, Krunalkumar Mukeshkumar <[email protected]>
Sent: Monday, November 7, 2022 1:35:01 PM
To: Deucher, Alexander <[email protected]>; Pan, Xinhui <[email protected]>; Koenig, Christian <[email protected]>
Cc: [email protected] <[email protected]>; S, Shirish <[email protected]>; Patel, Krunalkumar Mukeshkumar <[email protected]>
Subject: [PATCH] drm/amdgpu: Add support to clock gating for sdma 5.2.7

With this change it will add support for clock gating for sdma 5.2.7

- Additional changes are to re-arrange the chip version sequentially.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +3 -2
index 809eca54fc61..404b255cb4e0 100644
@@ -1647,12 +1647,13 @@ static int sdma_v5_2_set_clockgating_state(void *handle,
 
         switch (adev->ip_versions[SDMA0_HWIP][0]) {
         case IP_VERSION(5, 2, 0):
-       case IP_VERSION(5, 2, 2):
         case IP_VERSION(5, 2, 1):
+       case IP_VERSION(5, 2, 2):
+       case IP_VERSION(5, 2, 3):
         case IP_VERSION(5, 2, 4):
         case IP_VERSION(5, 2, 5):
         case IP_VERSION(5, 2, 6):
-       case IP_VERSION(5, 2, 3):
+       case IP_VERSION(5, 2, 7):
                 sdma_v5_2_update_medium_grain_clock_gating(adev,
                                 state == AMD_CG_STATE_GATE);
                 sdma_v5_2_update_medium_grain_light_sleep(adev,

--
2.25.1

#2 lore raw

[AMD Official Use Only - General]

Looks good to me, this patch is Reviewed-by: Likun Gao <[email protected]<mailto:[email protected]>>

Regards,
Likun

From: Patel, Krunalkumar Mukeshkumar <[email protected]>
Sent: Tuesday, November 8, 2022 11:46 AM
To: Deucher, Alexander <[email protected]>; Pan, Xinhui <[email protected]>; Koenig, Christian <[email protected]>; Gao, Likun <[email protected]>; Zhang, Hawking <[email protected]>
Cc: [email protected]; S, Shirish <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: Add support to clock gating for sdma 5.2.7

[AMD Official Use Only - General]

+Likun, Hawking

Hi,

Can you please help with the review of the patch?

Thanks and regards
Krunal
________________________________
From: Patel, Krunalkumar Mukeshkumar <[email protected]<mailto:[email protected]>>
Sent: Monday, November 7, 2022 1:35:01 PM
To: Deucher, Alexander <[email protected]<mailto:[email protected]>>; Pan, Xinhui <[email protected]<mailto:[email protected]>>; Koenig, Christian <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; S, Shirish <[email protected]<mailto:[email protected]>>; Patel, Krunalkumar Mukeshkumar <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdgpu: Add support to clock gating for sdma 5.2.7

With this change it will add support for clock gating for sdma 5.2.7

- Additional changes are to re-arrange the chip version sequentially.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +3 -2
index 809eca54fc61..404b255cb4e0 100644
@@ -1647,12 +1647,13 @@ static int sdma_v5_2_set_clockgating_state(void *handle,
 
         switch (adev->ip_versions[SDMA0_HWIP][0]) {
         case IP_VERSION(5, 2, 0):
-       case IP_VERSION(5, 2, 2):
         case IP_VERSION(5, 2, 1):
+       case IP_VERSION(5, 2, 2):
+       case IP_VERSION(5, 2, 3):
         case IP_VERSION(5, 2, 4):
         case IP_VERSION(5, 2, 5):
         case IP_VERSION(5, 2, 6):
-       case IP_VERSION(5, 2, 3):
+       case IP_VERSION(5, 2, 7):
                 sdma_v5_2_update_medium_grain_clock_gating(adev,
                                 state == AMD_CG_STATE_GATE);
                 sdma_v5_2_update_medium_grain_light_sleep(adev,

--
2.25.1

#3 lore raw

[AMD Official Use Only - General]

[ABANDON] The changes are not required at the moment. As the patch is not merged I would like to mark this as abandoned.

Thanks

From: Gao, Likun <[email protected]>
Sent: Tuesday, November 8, 2022 10:14 AM
To: Patel, Krunalkumar Mukeshkumar <[email protected]>; Deucher, Alexander <[email protected]>; Pan, Xinhui <[email protected]>; Koenig, Christian <[email protected]>; Zhang, Hawking <[email protected]>
Cc: [email protected]; S, Shirish <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: Add support to clock gating for sdma 5.2.7

[AMD Official Use Only - General]

Looks good to me, this patch is Reviewed-by: Likun Gao <[email protected]<mailto:[email protected]>>

Regards,
Likun

From: Patel, Krunalkumar Mukeshkumar <[email protected]<mailto:[email protected]>>
Sent: Tuesday, November 8, 2022 11:46 AM
To: Deucher, Alexander <[email protected]<mailto:[email protected]>>; Pan, Xinhui <[email protected]<mailto:[email protected]>>; Koenig, Christian <[email protected]<mailto:[email protected]>>; Gao, Likun <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>; S, Shirish <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH] drm/amdgpu: Add support to clock gating for sdma 5.2.7

[AMD Official Use Only - General]

+Likun, Hawking

Hi,

Can you please help with the review of the patch?

Thanks and regards
Krunal
________________________________
From: Patel, Krunalkumar Mukeshkumar <[email protected]<mailto:[email protected]>>
Sent: Monday, November 7, 2022 1:35:01 PM
To: Deucher, Alexander <[email protected]<mailto:[email protected]>>; Pan, Xinhui <[email protected]<mailto:[email protected]>>; Koenig, Christian <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; S, Shirish <[email protected]<mailto:[email protected]>>; Patel, Krunalkumar Mukeshkumar <[email protected]<mailto:[email protected]>>
Subject: [PATCH] drm/amdgpu: Add support to clock gating for sdma 5.2.7

With this change it will add support for clock gating for sdma 5.2.7

- Additional changes are to re-arrange the chip version sequentially.

---
 drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +3 -2
index 809eca54fc61..404b255cb4e0 100644
@@ -1647,12 +1647,13 @@ static int sdma_v5_2_set_clockgating_state(void *handle,
 
         switch (adev->ip_versions[SDMA0_HWIP][0]) {
         case IP_VERSION(5, 2, 0):
-       case IP_VERSION(5, 2, 2):
         case IP_VERSION(5, 2, 1):
+       case IP_VERSION(5, 2, 2):
+       case IP_VERSION(5, 2, 3):
         case IP_VERSION(5, 2, 4):
         case IP_VERSION(5, 2, 5):
         case IP_VERSION(5, 2, 6):
-       case IP_VERSION(5, 2, 3):
+       case IP_VERSION(5, 2, 7):
                 sdma_v5_2_update_medium_grain_clock_gating(adev,
                                 state == AMD_CG_STATE_GATE);
                 sdma_v5_2_update_medium_grain_light_sleep(adev,

--
2.25.1