From: Xiangliang Yu Date: Tue, 29 Nov 2016 08:53:52 +0000 (+0800) Subject: drm/amd/powerplay: cut digest part X-Git-Tag: v4.10-rc1~154^2~7^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed91dd49ba194abdcc99145ef233ac62f444f5a0;p=platform%2Fkernel%2Flinux-exynos.git drm/amd/powerplay: cut digest part For virtualization, FW size need to cut its digest part. Signed-off-by: Frank Min Signed-off-by: Monk Liu Signed-off-by: Xiangliang Yu Reviewed-by: Alex Deucher Acked-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c index c9bd1cf5..877445d 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c @@ -372,6 +372,10 @@ static int smu7_populate_single_firmware_entry(struct pp_smumgr *smumgr, entry->image_addr_low = smu_lower_32_bits(info.mc_addr); entry->meta_data_addr_high = 0; entry->meta_data_addr_low = 0; + + /* digest need be excluded out */ + if (cgs_is_virtualization_enabled(smumgr->device)) + info.image_size -= 20; entry->data_size_byte = info.image_size; entry->num_register_entries = 0; }