linux/drivers/gpu/drm/amd
Kevin Wang ba02fd6b1c drm/amdgpu: fix device attribute node create failed with multi gpu
the origin design will use varible of "attr->states" to save node
supported states on current gpu device, but for multi gpu device, when
probe second gpu device, the driver will check attribute node states
from previous gpu device wthether to create attribute node.
it will cause other gpu device create attribute node faild.

1. add member attr_list into amdgpu_device to link supported device attribute node.
2. add new structure "struct amdgpu_device_attr_entry{}" to track device attribute state.
3. drop member "states" from amdgpu_device_attr.

v2:
1. move "attr_list" into amdgpu_pm and rename to "pm_attr_list".
2. refine create & remove device node functions parameter.

fix:
drm/amdgpu: optimize amdgpu device attribute code

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-05-26 15:51:45 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: fix device attribute node create failed with multi gpu 2020-05-26 15:51:45 -04:00
amdkfd drm/amdkfd: report the real PCI bus number 2020-05-21 12:48:42 -04:00
display drm/amd/display: Handle GPU reset for DC block 2020-05-22 13:42:04 -04:00
include drm/amdgpu: add apu flags (v2) 2020-05-22 13:41:53 -04:00
powerplay drm/amdgpu: add apu flags (v2) 2020-05-22 13:41:53 -04:00