drm/amdgpu: Correct Transmit Margin masks
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Nov 2019 23:52:48 +0000 (17:52 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 21 Nov 2019 13:52:34 +0000 (07:52 -0600)
commit19d7a95a8ba66b198f759cf610cc935ce9840d5b
tree179ce7154f25d7b99c215d994b17e17b932a8b38
parentbbdb2f5ecdf1e66b2f09710134db3c2e5c43a958
drm/amdgpu: Correct Transmit Margin masks

Previously we masked PCIe Link Control 2 register values with "7 << 9",
which was apparently intended to be the Transmit Margin field, but instead
was the high order bit of Transmit Margin, the Enter Modified Compliance
bit, and the Compliance SOS bit.

Correct the mask to "7 << 7", which is the Transmit Margin field.

Link: https://lore.kernel.org/r/20191112173503.176611-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/cik.c
drivers/gpu/drm/amd/amdgpu/si.c