0001-Revert-Revert-nb-amd-mct_ddr3-Fix-RDIMM-training-fai.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From 8f2988cba4fffef1bd4f65e123c76bf4b7a18672 Mon Sep 17 00:00:00 2001
  2. From: "D.d.P.F. Lombard" <lombard@lombards.xyz>
  3. Date: Sun, 7 Feb 2021 15:29:40 +0100
  4. Subject: [PATCH 1/6] Revert "Revert "nb/amd/mct_ddr3: Fix RDIMM training
  5. failure on Fam15h" (fixes a bug that prevent certain RAM modules from
  6. booting)
  7. This reverts commit 610d1c67b2298a9840681c2b4492b6d3fdf44a46.
  8. After 610d1c67b2298a9840681c2b4492b6d3fdf44a46 many RAM modules wouldn't work and you couldn't even see any output on the screen.
  9. ---
  10. src/northbridge/amd/amdmct/mct_ddr3/mctproc.c | 3 +++
  11. 1 file changed, 3 insertions(+)
  12. diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c b/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c
  13. index ddaaaab8d5..3b07786b91 100644
  14. --- a/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c
  15. +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctproc.c
  16. @@ -71,6 +71,9 @@ u32 mct_SetDramConfigMisc2(struct DCTStatStruc *pDCTstat,
  17. misc2 |= ((cs_mux_67 & 0x1) << 27);
  18. misc2 &= ~(0x1 << 26); /* CsMux45 = cs_mux_45 */
  19. misc2 |= ((cs_mux_45 & 0x1) << 26);
  20. +
  21. + if (pDCTstat->Status & (1 << SB_Registered))
  22. + misc2 |= 1 << SubMemclkRegDly;
  23. } else if (pDCTstat->LogicalCPUID & (AMD_DR_Dx | AMD_DR_Cx)) {
  24. if (pDCTstat->Status & (1 << SB_Registered)) {
  25. misc2 |= 1 << SubMemclkRegDly;
  26. --
  27. 2.25.1