From: jsg Date: Mon, 5 Aug 2024 02:28:52 +0000 (+0000) Subject: drm/amd/pm: Fix aldebaran pcie speed reporting X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6216c0524669ba930a030316ff61bbe3c6362805;p=openbsd drm/amd/pm: Fix aldebaran pcie speed reporting From Lijo Lazar 0af2e5cb74514877326448becf40365b073b44e2 in linux-6.6.y/6.6.44 b6420021e17e262c57bb289d0556ee181b014f9c in mainline linux --- diff --git a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c index 8f9e4414345..a6f04c7dd41 100644 --- a/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c +++ b/sys/dev/pci/drm/amd/pm/swsmu/smu13/smu_v13_0.c @@ -79,8 +79,8 @@ MODULE_FIRMWARE("amdgpu/smu_13_0_10.bin"); #define PCIE_LC_LINK_WIDTH_CNTL__LC_LINK_WIDTH_RD_MASK 0x00000070L #define PCIE_LC_LINK_WIDTH_CNTL__LC_LINK_WIDTH_RD__SHIFT 0x4 #define smnPCIE_LC_SPEED_CNTL 0x11140290 -#define PCIE_LC_SPEED_CNTL__LC_CURRENT_DATA_RATE_MASK 0xC000 -#define PCIE_LC_SPEED_CNTL__LC_CURRENT_DATA_RATE__SHIFT 0xE +#define PCIE_LC_SPEED_CNTL__LC_CURRENT_DATA_RATE_MASK 0xE0 +#define PCIE_LC_SPEED_CNTL__LC_CURRENT_DATA_RATE__SHIFT 0x5 static const int link_width[] = {0, 1, 2, 4, 8, 12, 16};