]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add sysfs entries for xgmi hive v2.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 5 Mar 2019 15:39:08 +0000 (10:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:48 +0000 (15:36 -0500)
commitf11d084be9cdbf4a496bbe093aef1ab35c2d0e0c
tree9b3d8a5aa7696eba5c88adf6cade39b506a36163
parent37bf792a40458efe80e82b461cf1b1ca0d58d9ac
drm/amdgpu: Add sysfs entries  for xgmi hive v2.

For each device a file xgmi_device_id is created.
On the first device a subdirectory named xgmi_hive_info is created,
It contains  a file named hive_id and symlinks named node 1-4 linking
to each device in the hive.

v2: Return error codes instead of '-1' and few misspellings.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h