From: Eric Huang Date: Thu, 25 May 2017 19:50:30 +0000 (-0400) Subject: drm/amd/powerplay: fix soft pptable size for Vega10 X-Git-Tag: v4.13-rc1~45^2~24^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4edc8f7a389eb324bfd10d798d701a0ffdee16a3;p=platform%2Fkernel%2Flinux-exynos.git drm/amd/powerplay: fix soft pptable size for Vega10 It is to fix bug of sysfs entry pp_table which had size 0 of output before. Signed-off-by: Eric Huang Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c index 3c177d6..2b892e4 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c @@ -54,6 +54,7 @@ static const void *get_powerplay_table(struct pp_hwmgr *hwmgr) &size, &frev, &crev); hwmgr->soft_pp_table = table_address; /*Cache the result in RAM.*/ + hwmgr->soft_pp_table_size = size; } return table_address;