Skip to contentSkip to conversation

drm/amdgpu: correct comment to clear up the confusion

PATCH In review Guchun Chen 2 participants 2 messages Feb 11, 2020

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

PATCH 1/1 drm/amdgpu: correct comment to clear up the confusion

Former comment looks to be one intended behavior in code, actually it's not. So correct it.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6 -1
index af341a272e30..82476f6acfad 100644
@@ -4374,7 +4374,12 @@ static int gfx_v9_0_ecc_late_init(void *handle)
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 	int r;
 
-	/* limit gds clearing operation in cold boot sequence */
+	/*
+	 * Temp workaround to fix the issue that CP firmware fails to
+	 * update read pointer when CPDMA is writing clearing operation
+	 * to GDS in suspend/resume sequence on several cards. So just
+	 * limit this operation in cold boot sequence.
+	 */
 	if (!adev->in_suspend) {
 		r = gfx_v9_0_do_edc_gds_workarounds(adev);
 		if (r)
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
maintainer Acked-by on v1 1/1
#1 lore raw

Am 11.02.20 um 05:16 schrieb Guchun Chen:

Quoted 5 lines

Former comment looks to be one intended behavior in code, actually it's not. So correct it.

Quoted 12 lines
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
index af341a272e30..82476f6acfad 100644
@@ -4374,7 +4374,12 @@ static int gfx_v9_0_ecc_late_init(void *handle)
  	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
  	int r;
 

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static int gfx_v9_0_ecc_late_init(void *handle) · line 4385

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +6 -1
-	/* limit gds clearing operation in cold boot sequence */
+	/*
+	 * Temp workaround to fix the issue that CP firmware fails to
+	 * update read pointer when CPDMA is writing clearing operation
+	 * to GDS in suspend/resume sequence on several cards. So just
+	 * limit this operation in cold boot sequence.
+	 */
  	if (!adev->in_suspend) {
  		r = gfx_v9_0_do_edc_gds_workarounds(adev);
  		if (r)

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