Welp, looks like I'm out-of-luck on ASPM after all. Had it partially working, bu...
elly @elly@donotsta.re
Welp, looks like I'm out-of-luck on ASPM after all. Had it partially working, but then started testing Gen4 SSDs and it fell apart. Gen3 worked no problem, Gen4 wasn't detected at all.
I suspect it's probably a clock/reset race-condition, but I can't resolve that without schematic (I could spend another week poking GPIOs but... let's be realistic here). If schematic for this board will fall from the back of the truck at some point I'll definitely look into it again.
Also according to dumps from stock firmware, MSI routed CLKREQ15 to all slots routed from PCH which would explain weird issues I had while testing stock firmware with ASPM enabled. Probably will just leave those clocks as FREE_RUNNING and let FSP configure GPIOs, it means no ASPM but all slots are now working and are stable.
Besides, stock firmware with ASPM on used ~36W from the wall at idle. On the other hand, coreboot without ASPM uses ~24W so that's still 12W less.
No idea what on earth AMI/MSI is doing but I'm honestly pretty happy with this improvement, same idle power draw as my previous (dead) workstation but ~60% faster.
Now just need to re-write GPIO table (definitely not looking forward to fixing ~2200 lines) according to Intel's documentation to fix issues with suspend (oddly enough S3 suspend/resume works in Windows, but in Linux it's 50/50 chance of locking the system up, probably some driver differences) and it'll be ready for daily-driving :ablobcatbongo:
I suspect it's probably a clock/reset race-condition, but I can't resolve that without schematic (I could spend another week poking GPIOs but... let's be realistic here). If schematic for this board will fall from the back of the truck at some point I'll definitely look into it again.
Also according to dumps from stock firmware, MSI routed CLKREQ15 to all slots routed from PCH which would explain weird issues I had while testing stock firmware with ASPM enabled. Probably will just leave those clocks as FREE_RUNNING and let FSP configure GPIOs, it means no ASPM but all slots are now working and are stable.
Besides, stock firmware with ASPM on used ~36W from the wall at idle. On the other hand, coreboot without ASPM uses ~24W so that's still 12W less.
No idea what on earth AMI/MSI is doing but I'm honestly pretty happy with this improvement, same idle power draw as my previous (dead) workstation but ~60% faster.
Now just need to re-write GPIO table (definitely not looking forward to fixing ~2200 lines) according to Intel's documentation to fix issues with suspend (oddly enough S3 suspend/resume works in Windows, but in Linux it's 50/50 chance of locking the system up, probably some driver differences) and it'll be ready for daily-driving :ablobcatbongo: