Skip to contentSkip to conversation

drm/amdgpu/virtual_dce: drop error message in hw_init

PATCH In review Alex Deucher 2 participants 2 messages Aug 28, 2019 – Aug 29, 2019 1 message not in the archive

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

PATCH 1/1 drm/amdgpu/virtual_dce: drop error message in hw_init

No need to add new asic cases. This is a sw display implementation, so just drop the error message so when we add new asics, all we have to do is add the virtual dce IP module.

---
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -10
index 6dadbed7ce43..fe242cc7c04f 100644
@@ -452,17 +452,8 @@ static int dce_virtual_hw_init(void *handle)
 #endif
 		/* no DCE */
 		break;
-	case CHIP_VEGA10:
-	case CHIP_VEGA12:
-	case CHIP_VEGA20:
-	case CHIP_ARCTURUS:
-	case CHIP_RENOIR:
-	case CHIP_NAVI10:
-	case CHIP_NAVI14:
-	case CHIP_NAVI12:
-		break;
 	default:
-		DRM_ERROR("Virtual display unsupported ASIC type: 0x%X\n", adev->asic_type);
+		break;
 	}
 	return 0;
 }
Signature · 6 lines
2.20.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): 20190828135610.3827-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org

Reviewed-by Xiaojie Yuan
#2 lore raw

BR,
Xiaojie

Quoted 42 lines · Alex Deucher

No need to add new asic cases. This is a sw display implementation, so just drop the error message so when we add new asics, all we have to do is add the virtual dce IP module.

---
drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 11 +----------

1 file changed, 1 insertion(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/dce_virtual.c +1 -10
index 6dadbed7ce43..fe242cc7c04f 100644
@@ -452,17 +452,8 @@ static int dce_virtual_hw_init(void *handle)
 #endif
       /* no DCE */
       break;
-    case CHIP_VEGA10:
-    case CHIP_VEGA12:
-    case CHIP_VEGA20:
-    case CHIP_ARCTURUS:
-    case CHIP_RENOIR:
-    case CHIP_NAVI10:
-    case CHIP_NAVI14:
-    case CHIP_NAVI12:
-        break;
   default:
-        DRM_ERROR("Virtual display unsupported ASIC type: 0x%X\n", adev->asic_type);
+        break;
   }
   return 0;
 }
Signature · 6 lines
2.20.1

_______________________________________________
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