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-Url: https://git.stricted.de/?a=commitdiff_plain;h=4edc8f7a389eb324bfd10d798d701a0ffdee16a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 3c177d6b8071..2b892e47d8dc 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;