All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/amdgpu: disable GFXOFF around debugfs access to MMIO
@ 2020-02-19 15:04 Tom St Denis
  2020-02-19 15:07 ` Alex Deucher
  0 siblings, 1 reply; 18+ messages in thread
From: Tom St Denis @ 2020-02-19 15:04 UTC (permalink / raw)
  To: amd-gfx; +Cc: Tom St Denis

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
index 7379910790c9..66f763300c96 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
@@ -169,6 +169,7 @@ static int  amdgpu_debugfs_process_reg_op(bool read, struct file *f,
 	if (pm_pg_lock)
 		mutex_lock(&adev->pm.mutex);
 
+	amdgpu_gfx_off_ctrl(adev, false);
 	while (size) {
 		uint32_t value;
 
@@ -192,6 +193,8 @@ static int  amdgpu_debugfs_process_reg_op(bool read, struct file *f,
 	}
 
 end:
+	amdgpu_gfx_off_ctrl(adev, true);
+
 	if (use_bank) {
 		amdgpu_gfx_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff);
 		mutex_unlock(&adev->grbm_idx_mutex);
-- 
2.24.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-02-22  2:21 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19 15:04 [PATCH] drm/amd/amdgpu: disable GFXOFF around debugfs access to MMIO Tom St Denis
2020-02-19 15:07 ` Alex Deucher
2020-02-19 15:09   ` Tom St Denis
2020-02-21 14:34     ` Huang Rui
2020-02-21 14:35       ` Tom St Denis
2020-02-21 14:44         ` Huang Rui
2020-02-21 15:18       ` 回复: " Liu, Monk
2020-02-21 15:23         ` Huang Rui
2020-02-21 15:27           ` Christian König
2020-02-21 15:39             ` Deucher, Alexander
2020-02-21 15:43               ` Christian König
2020-02-21 15:56                 ` Deucher, Alexander
2020-02-21 16:04                   ` Christian König
2020-02-21 16:06                     ` Tom St Denis
2020-02-21 16:10                       ` Christian König
2020-02-22  2:21               ` 回复: " Liu, Monk
2020-02-21 15:49             ` Huang Rui
2020-02-22  2:19           ` 回复: " Liu, Monk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.