OSDN Git Service

drm/amdgpu: add query device id and revision id into system info entry at CGS
authorHuang Rui <ray.huang@amd.com>
Tue, 12 Jul 2016 05:54:05 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Jul 2016 18:37:12 +0000 (14:37 -0400)
commit09fc7eff7eed0b9f4d7353fa902b1f1a779cc990
treec2270d0f59fb92e286fbc259e7565347ca1c74f0
parente595d7f03b48f5f311c9289c070a2a14636ad362
drm/amdgpu: add query device id and revision id into system info entry at CGS

This patch adds device id and revision into system info entry at CGS,
it's able to get PCI device id and revision id from amdgpu, it might
get more info in future.

PCI device id will be also used on powerplay part at current.

Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Huang Rui <ray.huang@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_cgs.c
drivers/gpu/drm/amd/include/cgs_common.h