Browse Source

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 <JinHuiEric.Huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Eric Huang 8 years ago
parent
commit
4edc8f7a38
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c

+ 1 - 0
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;