]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amd/powerplay: fix soft pptable size for Vega10
authorEric Huang <JinHuiEric.Huang@amd.com>
Thu, 25 May 2017 19:50:30 +0000 (15:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 May 2017 18:16:31 +0000 (14:16 -0400)
It is to fix bug of sysfs entry pp_table which had size 0 of output before.

Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c

index 3c177d6b80711937b1ca6138fba71714c115b425..2b892e47d8dc1e06631dc3e56321fcdcfa7837c9 100644 (file)
@@ -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;