0039-fix-sata-ports-on-dell-9020-sff-and-mt.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. From 4889f08306f1530211dcc6f6a4e999c6cc72f3ac Mon Sep 17 00:00:00 2001
  2. From: Leah Rowe <info@minifree.org>
  3. Date: Sat, 30 Mar 2024 05:57:54 +0000
  4. Subject: [PATCH 1/1] fix sata ports on dell 9020 sff and mt
  5. mate kukri has a patch under review on coreboot that sets
  6. sata port map to 0x7 on sff and 0xf on mt.
  7. see: intel 8 series pch datasheet, section 13.1.35
  8. basically, the 6 least significant bits enable the sata
  9. slots; 1 for enable and 0 for disable. there can be up
  10. to 6 ports. least significant bit is port 0, then next
  11. is port 1, and so on.
  12. coreboot currently enables ports 0, 1, 4 and 5, making this
  13. value 0x33 (converted to binary: 00110011). sff has ports
  14. 0, 1 and 2 wired, so mate changed that to 0x7 (00000111).
  15. on mt, the blue ports are ports 0 and 1, but the two white
  16. ports don't work, but coreboot enables 4 and 5; it is
  17. likely that the blue ports are in fact 0 and 1, and the
  18. white ports are 2 and 3, but we've not tested this!
  19. it could be that the blue ports are ports 4 and 5, and
  20. the white ports are 2 and 3! we have not yet determined
  21. this, but mate set it to 0xf, meaning ports 0 1 2 and 3
  22. are enabled, in his patch under review. the chance that
  23. it's 2, 3, 4 and 5 on the board is unlikely, but it is
  24. theoretically possible and has not been confirmed.
  25. therefore, for now, i will set the value to 0x3f, which
  26. in binary is 00111111, thus enabling all 6 slots. the two
  27. that aren't physically wired don't really matter. enabling
  28. ports (from the pch) that electrically aren't there and
  29. then powering on is electrically equivalent to those ports
  30. being actually being wired, but with no devices plugged
  31. into them. therefore, 0x3f is an effective shotgun fix.
  32. i'll remove this patch and use mate's fix when the latter
  33. has been tested on MT; it has already been tested on SFF.
  34. this patch fixes the 3rd sata slot on 9020 sff, and the 3rd
  35. and 4th sata slots on 9020 MT
  36. Signed-off-by: Leah Rowe <info@minifree.org>
  37. ---
  38. src/mainboard/dell/optiplex_9020/devicetree.cb | 2 +-
  39. 1 file changed, 1 insertion(+), 1 deletion(-)
  40. diff --git a/src/mainboard/dell/optiplex_9020/devicetree.cb b/src/mainboard/dell/optiplex_9020/devicetree.cb
  41. index c0b17a15ff..7bfa6736a6 100644
  42. --- a/src/mainboard/dell/optiplex_9020/devicetree.cb
  43. +++ b/src/mainboard/dell/optiplex_9020/devicetree.cb
  44. @@ -23,7 +23,7 @@ chip northbridge/intel/haswell
  45. register "gen2_dec" = "0x007c0901"
  46. register "gen3_dec" = "0x003c07e1"
  47. register "gen4_dec" = "0x001c0901"
  48. - register "sata_port_map" = "0x33"
  49. + register "sata_port_map" = "0x3f"
  50. device pci 14.0 on end # xHCI controller
  51. device pci 16.0 on end # Management Engine interface 1
  52. --
  53. 2.39.2