|
@@ -6372,9 +6372,9 @@ static void si_set_pcie_lane_width_in_smc(struct amdgpu_device *adev,
|
|
{
|
|
{
|
|
u32 lane_width;
|
|
u32 lane_width;
|
|
u32 new_lane_width =
|
|
u32 new_lane_width =
|
|
- (amdgpu_new_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT;
|
|
|
|
|
|
+ ((amdgpu_new_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT) + 1;
|
|
u32 current_lane_width =
|
|
u32 current_lane_width =
|
|
- (amdgpu_current_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT;
|
|
|
|
|
|
+ ((amdgpu_current_state->caps & ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >> ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT) + 1;
|
|
|
|
|
|
if (new_lane_width != current_lane_width) {
|
|
if (new_lane_width != current_lane_width) {
|
|
amdgpu_set_pcie_lanes(adev, new_lane_width);
|
|
amdgpu_set_pcie_lanes(adev, new_lane_width);
|