From: Huang Rui Date: Wed, 20 Feb 2019 12:20:00 +0000 (+0800) Subject: drm/amd/powerplay: skip od feature on navi10 for the moment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5ba80a0a816f85b9037cc2424b7ba5c6c96c7a3e;p=linux.git drm/amd/powerplay: skip od feature on navi10 for the moment OD feature isn't enabled on navi10 so skip it for the moment. Signed-off-by: Huang Rui Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c index 96719703d7b67..14c0a7a2d9a55 100644 --- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c @@ -1618,6 +1618,13 @@ static int smu_v11_0_set_od8_default_settings(struct smu_context *smu, struct smu_table_context *table_context = &smu->smu_table; int ret; + /** + * TODO: Enable overdrive for navi10, that replies on smc/pptable + * support. + */ + if (smu->adev->asic_type == CHIP_NAVI10) + return 0; + if (initialize) { if (table_context->overdrive_table) return -EINVAL;