diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-07-29 07:15:52 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-08 11:33:03 -0400 |
commit | 93bdacd1bd7b81921c165e94bbe3dcefd6f88dc1 (patch) | |
tree | 8c70634129735aebb1154fc5e7410e36a6c6b9a8 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
parent | 08bd8b9f6f11e5b4f13580805ef3a38848e7fed7 (diff) |
drm/amd/powerplay: pass sub_device_id and sub_vendor_id to powerplay.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index a9b3adc81420..85288502ad05 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -52,6 +52,9 @@ static int amdgpu_powerplay_init(struct amdgpu_device *adev) | |||
52 | pp_init->chip_family = adev->family; | 52 | pp_init->chip_family = adev->family; |
53 | pp_init->chip_id = adev->asic_type; | 53 | pp_init->chip_id = adev->asic_type; |
54 | pp_init->device = amdgpu_cgs_create_device(adev); | 54 | pp_init->device = amdgpu_cgs_create_device(adev); |
55 | pp_init->rev_id = adev->pdev->revision; | ||
56 | pp_init->sub_sys_id = adev->pdev->subsystem_device; | ||
57 | pp_init->sub_vendor_id = adev->pdev->subsystem_vendor; | ||
55 | 58 | ||
56 | ret = amd_powerplay_init(pp_init, amd_pp); | 59 | ret = amd_powerplay_init(pp_init, amd_pp); |
57 | kfree(pp_init); | 60 | kfree(pp_init); |