OSDN Git Service

drm/amdgpu: return the PCIe gen and lanes from the INFO ioctl
authorMarek Olšák <marek.olsak@amd.com>
Sat, 24 Dec 2022 22:44:26 +0000 (17:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jan 2023 22:24:26 +0000 (17:24 -0500)
commite3e84b0a03a303421704bd3f305ca91a5226dc7d
tree5e4de0a9f104eb79d3a1b6f7101e2afa14c7dc93
parent26fd808b01e730fd45673619817a3feafb1230d7
drm/amdgpu: return the PCIe gen and lanes from the INFO ioctl

For computing PCIe bandwidth in userspace and troubleshooting PCIe
bandwidth issues. Note that this intentionally fills holes and padding
in drm_amdgpu_info_device.

Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20790

Signed-off-by: Marek Olšák <marek.olsak@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_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
include/uapi/drm/amdgpu_drm.h