drm/amd/powerplay: pass sub_device_id and sub_vendor_id to powerplay.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 29 Jul 2016 11:15:52 +0000 (19:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Aug 2016 15:33:03 +0000 (11:33 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h

index a9b3adc814201496d2f4beb8e0482c97f61c2ac5..85288502ad0533b9653cde492679bbd97b728c57 100644 (file)
@@ -52,6 +52,9 @@ static int amdgpu_powerplay_init(struct amdgpu_device *adev)
                pp_init->chip_family = adev->family;
                pp_init->chip_id = adev->asic_type;
                pp_init->device = amdgpu_cgs_create_device(adev);
+               pp_init->rev_id = adev->pdev->revision;
+               pp_init->sub_sys_id = adev->pdev->subsystem_device;
+               pp_init->sub_vendor_id = adev->pdev->subsystem_vendor;
 
                ret = amd_powerplay_init(pp_init, amd_pp);
                kfree(pp_init);
index ba29a5b5a2d2d8e7fa68fcf28f238b42d95a1e99..3f8172f545b0d22fb4839a9d355a72c0f22aaad1 100644 (file)
@@ -132,6 +132,8 @@ struct amd_pp_init {
        uint32_t chip_family;
        uint32_t chip_id;
        uint32_t rev_id;
+       uint16_t sub_sys_id;
+       uint16_t sub_vendor_id;
 };
 
 enum amd_pp_display_config_type{