4 ms·
I'm not surprised that going back to 3Gbps works; modern high frequency signaling is so close to the boundaries of what works that even things like the length o
by userbinator 9y ago
I'm not surprised that going back to 3Gbps works; modern high frequency signaling is so close to the boundaries of what works that even things like the length of the SATA cable and how it's oriented, and what temperature components are at, can mean the difference between a working link and one that fails when the right sequence of bits gets sent. DTLE is a way of tuning the transmitter output so that when the signal gets received at the other end, it's as "clear" as possible.
Even early SDRAM controllers had similar tunable settings for clock delays and such, because different DIMMs may vary slightly --- upon POST, the BIOS would set all the settings to nominal values, then nudge each one in one direction while reading/writing pathological data until errors occurred; then nudge them in the other direction until errors occurred, and finally settle on the average of the two extremes. I suspect a similar process needs to be done here, and if you reverse-engineered the BIOS further you would find the algorithm to do it.
More interesting information on DTLE "discrete time linear equalization" here:
http://cc.ee.ntu.edu.tw/~rbwu/rapid_content/course/highspeed/SI10_Equalization.pdf http://cc.ee.ntu.edu.tw/~rbwu/rapid_content/course/highspeed...
Big kudos to the Purism folks for trying to figure these things out. And big fuckings to Intel for keeping this stuff NDA'd --- it only makes it harder for those trying to buy and use your products (I hope someone leaks it all eventually...)
- exikyut 9y ago> Even early SDRAM controllers had similar tunable settings for clock delays and such, Define "early". F00F-era Pentium, 486, 8086...? > upon POST, the BIOS would set all the settings to nominal values, then nudge each one in one direction while reading/writing pathological data until errors occurred; then nudge them in the other direction until errors occurred, and finally settle on the average of the two extremes. Is this the seemingly-pointless "memory test" all computers do? I always thought that just zeroed RAM. TIL it's doing similar things to modem line training. Wow. Now I remember - I have an old 400MHz Celeron-based system I used years ago with an AMI BIOS that would occasionally recommend a different "RAS-to-CAS delay" on startup. I'd go and change it and reboot, and then a little while (days/weeks) later it would recommend a slightly different setting. It would always alternate between the two delays. I was pretty sure the memory in the system was on the way out and be sad whenever I saw the message, haha.
- mindentropy 9y ago> Is this the seemingly-pointless "memory test" all computers do? I might not be sure what your parent is talking but it is called "DDR memory training and calibration". I used to struggle with this when I was bringing up LPDDR2 on an i.MX6 embedded board. You can find more about it here -> https://github.com/librecore-org/librecore/wiki/Understanding-DDR-Memory-Training https://github.com/librecore-org/librecore/wiki/Understandin...
- exikyut 9y agoWow. Really, really impressive. How far back did BIOSes do this - has it always been done?(!) I can completely understand it being a struggle now. At some point was I thinking of getting into tinkering with DDR3/4 on FPGAs (to play with some video capture ideas), but I'm beginning to not look forward to it... heheh
- mindentropy 9y agoI don't have advanced BIOS and most of the BIOS uses a safe set of values is my assumption. However BIOSes catered to overclocking crowd has this functionality. Ref1: http://www.overclock.net/t/1490835/the-gigabyte-z97x-overclocking-guide http://www.overclock.net/t/1490835/the-gigabyte-z97x-overclo... Ref2: http://www.tomshardware.co.uk/ram-overclocking-guide,review-33633-3.html http://www.tomshardware.co.uk/ram-overclocking-guide,review-... Also remember that the training also depends on the environmental temperature. > I can completely understand it being a struggle now. At some point was I thinking of getting into tinkering with DDR3/4 on FPGAs Understanding of the different values for the registers which the tool recommends and validating the value is a real pain although some of the vendors such as Micron's datasheets explains things nicely. Xilinx MIG has a really dense guide and you really need to understand your timing etc. It is really not for the faint hearted.
- mindentropy 9y agoIn case of the i.MX6 SoC I do the training and calibration and the recommended register values obtained is provided to U-boot. So now when U-boot starts up it starts on the SoC inbuilt SRAM which is very less (a few kilobytes). Once the first stage U-boot is booted it sets up the memory controller registers and the boots using this RAM. When the DDR/LPDDR training happens it is supposed to be left overnight for multiple iterations. Temperature also matters for proper values and hence one of the reasons the multiple iteration testing done overnight. In my case I had some really incompetent board designers who were just blaming. Finally since there might have been layout issues I was forced to lower the clock speeds (halve the clocks) for the DDR interfacing.