Skip to contentSkip to conversation

drm/amdgpu/gfx: simplify old firmware warning

PATCH In review Alex Deucher 2 participants 2 messages Jan 6, 2020

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

PATCH 1/1 drm/amdgpu/gfx: simplify old firmware warning

Put it on one line to avoid whitespace issues when printing in the log.

---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 +--
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -2
index 5b05334a2548..379e46c1b7f6 100644
@@ -577,8 +577,7 @@ static void gfx_v10_0_check_fw_write_wait(struct amdgpu_device *adev)
 	}
 
 	if (adev->gfx.cp_fw_write_wait == false)
-		DRM_WARN_ONCE("Warning: check cp_fw_version and update it to realize \
-			      GRBM requires 1-cycle delay in cp firmware\n");
+		DRM_WARN_ONCE("CP firmware version too old, please update!");
 }
 
 
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -2
index 35384f543664..1cae356b1ae0 100644
@@ -988,8 +988,7 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
 	    (adev->gfx.mec_feature_version < 46) ||
 	    (adev->gfx.pfp_fw_version < 0x000000b7) ||
 	    (adev->gfx.pfp_feature_version < 46))
-		DRM_WARN_ONCE("Warning: check cp_fw_version and update it to realize \
-			      GRBM requires 1-cycle delay in cp firmware\n");
+		DRM_WARN_ONCE("CP firmware version too old, please update!");
 
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
Signature · 6 lines
2.24.1

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

Am 06.01.20 um 20:58 schrieb Alex Deucher:

Quoted 4 lines

Put it on one line to avoid whitespace issues when printing in the log.

Quoted 24 lines
---
  drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 +--
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c  | 3 +--
  2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -2
index 5b05334a2548..379e46c1b7f6 100644
@@ -577,8 +577,7 @@ static void gfx_v10_0_check_fw_write_wait(struct amdgpu_device *adev)
  	}
 
  	if (adev->gfx.cp_fw_write_wait == false)
-		DRM_WARN_ONCE("Warning: check cp_fw_version and update it to realize \
-			      GRBM requires 1-cycle delay in cp firmware\n");
+		DRM_WARN_ONCE("CP firmware version too old, please update!");
  }
 
 
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
index 35384f543664..1cae356b1ae0 100644

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev) · line 994

Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -2
@@ -988,8 +988,7 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
  	    (adev->gfx.mec_feature_version < 46) ||
  	    (adev->gfx.pfp_fw_version < 0x000000b7) ||
  	    (adev->gfx.pfp_feature_version < 46))
-		DRM_WARN_ONCE("Warning: check cp_fw_version and update it to realize \
-			      GRBM requires 1-cycle delay in cp firmware\n");
+		DRM_WARN_ONCE("CP firmware version too old, please update!");
 
  	switch (adev->asic_type) {
  	case CHIP_VEGA10:

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