Skip to contentSkip to conversation

drm/amdgpu: add warning for GRBM 1-cycle delay issue in gfx9

PATCH In review Zhu, Changfeng 2 participants 2 messages Nov 5, 2019 1 message not in the archive

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

PATCH 2/2 drm/amdgpu: add warning for GRBM 1-cycle delay issue in gfx9

From: changzhu <[email protected]>

It needs to add warning to update firmware in gfx9 in case that firmware is too old to have function to realize dummy read in cp firmware.

Change-Id I6aef94f0823138f244f1eedb62fde833dd697023
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +7 -0
index 9d5f900e3e1c..f2deb225c8a9 100644
@@ -982,6 +982,13 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
 	adev->gfx.me_fw_write_wait = false;
 	adev->gfx.mec_fw_write_wait = false;
 
+	if ((adev->gfx.mec_fw_version < 0x000001a5) ||
+	    (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");
+
 	switch (adev->asic_type) {
 	case CHIP_VEGA10:
 		if ((adev->gfx.me_fw_version >= 0x0000009c) &&
Signature · 6 lines
2.17.1

_______________________________________________
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): [email protected]

Reviewed-by Christian König
#2 lore raw

Am 05.11.19 um 12:42 schrieb Zhu, Changfeng:

Quoted 8 lines

From: changzhu <[email protected]>

It needs to add warning to update firmware in gfx9 in case that firmware is too old to have function to realize dummy read in cp firmware.

Change-Id I6aef94f0823138f244f1eedb62fde833dd697023
Quoted 12 lines
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 +++++++
  1 file changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
index 9d5f900e3e1c..f2deb225c8a9 100644
@@ -982,6 +982,13 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
  	adev->gfx.me_fw_write_wait = false;
  	adev->gfx.mec_fw_write_wait = false;
 

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 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +7 -0
+	if ((adev->gfx.mec_fw_version < 0x000001a5) ||
+	    (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");
+
  	switch (adev->asic_type) {
  	case CHIP_VEGA10:
  		if ((adev->gfx.me_fw_version >= 0x0000009c) &&

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