Skip to contentSkip to conversation

drm/amdgpu/psp: use define rather than magic number for mode1 reset

PATCH In review Alex Deucher 3 participants 3 messages Nov 16, 2018 – Nov 19, 2018 1 message not in the archive

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

PATCH 1/1 drm/amdgpu/psp: use define rather than magic number for mode1 reset

Use the define rather than hardcoded value.

---
 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +1 -1
index e1ebf770c303..940894e8c67e 100644
@@ -593,7 +593,7 @@ static int psp_v3_1_mode1_reset(struct psp_context *psp)
 	}
 
 	/*send the mode 1 reset command*/
-	WREG32(offset, 0x70000);
+	WREG32(offset, GFX_CTRL_CMD_ID_MODE1_RST);
 
 	mdelay(1000);
 
Signature · 6 lines
2.13.6

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

A message that is not in the archive (sent off-list or not yet received): 20181116182507.12709-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 16.11.18 um 19:25 schrieb Alex Deucher:

Quoted 3 lines

Use the define rather than hardcoded value.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +0 -0
index e1ebf770c303..940894e8c67e 100644

drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_mode1_reset(struct psp_context *psp) · line 599

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +1 -1
@@ -593,7 +593,7 @@ static int psp_v3_1_mode1_reset(struct psp_context *psp)
  	}
 
  	/*send the mode 1 reset command*/
-	WREG32(offset, 0x70000);
+	WREG32(offset, GFX_CTRL_CMD_ID_MODE1_RST);
 
  	mdelay(1000);
 

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

Reviewed-by Huang Rui
#3 lore raw
In reply to a message not in the archive
Quoted 9 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Alex Deucher
Sent: Saturday, November 17, 2018 2:25 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/psp: use define rather than magic number for mode1 reset

Quoted 3 lines

Use the define rather than hardcoded value.

Quoted 22 lines
---
 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c +1 -2
index e1ebf770c303..940894e8c67e 100644
@@ -593,7 +593,7 @@ static int psp_v3_1_mode1_reset(struct psp_context
 *psp)
 	}
 
 	/*send the mode 1 reset command*/
-	WREG32(offset, 0x70000);
+	WREG32(offset, GFX_CTRL_CMD_ID_MODE1_RST);
 
 	mdelay(1000);
 
--

2.13.6

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