]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix PCIe lane width calculation
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Apr 2018 17:29:26 +0000 (12:29 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Apr 2018 18:08:46 +0000 (13:08 -0500)
commitf64df2c297a7ed0465f7ccb2a2f2e045da29146d
tree2eeb41a5f692e59ee2bff55b89cc1071c602f777
parent9c5115422cb566ba233de828c66ad9546f23d6db
drm/amdgpu: Fix PCIe lane width calculation

The calculation of the lane widths via ATOM_PPLIB_PCIE_LINK_WIDTH_MASK and
ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT macros did not increment the resulting
value, per the comment in pptable.h ("lanes - 1"), and per usage elsewhere.
Port of the radeon fix to amdgpu.

Acked-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=102553
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/si_dpm.c