Skip to contentSkip to conversation

drm/amdgpu: add missing df counter disable write

PATCH In review Jonathan Kim 3 participants 3 messages Feb 23, 2021 – Mar 1, 2021

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

PATCH 1/1 drm/amdgpu: add missing df counter disable write

Request to stop DF performance counters is missing the actual write to the controller register.

---
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/df_v3_6.c +2 -0
index 6b4b30a8dce5..44109a6b8f44 100644
@@ -568,6 +568,8 @@ static int df_v3_6_pmc_stop(struct amdgpu_device *adev, uint64_t config,
 		if (ret)
 			return ret;
 
+		df_v3_6_perfmon_wreg(adev, lo_base_addr, lo_val,
+							hi_base_addr, hi_val);
 
 		if (is_remove) {
 			df_v3_6_reset_perfmon_cntr(adev, config, counter_idx);
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jonathan Kim

Request to stop DF performance counters is missing the actual write to the controller register.

Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/df_v3_6.c +2 -1
index 6b4b30a8dce5..44109a6b8f44 100644
@@ -568,6 +568,8 @@ static int df_v3_6_pmc_stop(struct amdgpu_device *adev, uint64_t config,
                if (ret)
                        return ret;
 
+               df_v3_6_perfmon_wreg(adev, lo_base_addr, lo_val,
+                                                       hi_base_addr, hi_val);
 
                if (is_remove) {
                        df_v3_6_reset_perfmon_cntr(adev, config, counter_idx);
--

2.17.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by Acked-by Alex Deucher
#2 lore raw

[AMD Official Use Only - Internal Distribution Only]

-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Thursday, February 25, 2021 4:27 PM
To: Kim, Jonathan <[email protected]>
Cc: amd-gfx list <[email protected]>; Kasiviswanathan, Harish <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: add missing df counter disable write

Quoted 6 lines · Jonathan Kim

Request to stop DF performance counters is missing the actual write to the controller register.

Quoted 20 lines
---
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/df_v3_6.c +2 -1
index 6b4b30a8dce5..44109a6b8f44 100644
@@ -568,6 +568,8 @@ static int df_v3_6_pmc_stop(struct amdgpu_device *adev, uint64_t config,
                if (ret)
                        return ret;
 
+               df_v3_6_perfmon_wreg(adev, lo_base_addr, lo_val,
+                                                       hi_base_addr, hi_val);
 
                if (is_remove) {
                        df_v3_6_reset_perfmon_cntr(adev, config, counter_idx);
--

2.17.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7CHarish.Kasiviswanathan%40amd.com%7Cb6226ef6319b42b8211008d8d9d41a5d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637498852287647783%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=VEuHTYnsJLYbTSmMhu7NEWUaLndUfOh8XKiqJy1%2Fjyk%3D&amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx