00:00
tpb has quit [Remote host closed the connection]
00:00
tpb has joined #litex
00:27
Degi has quit [Ping timeout: 250 seconds]
00:27
Degi has joined #litex
01:00
pftbest has quit [Remote host closed the connection]
01:03
pftbest has joined #litex
01:16
pftbest has quit [Remote host closed the connection]
01:16
pftbest has joined #litex
01:17
pftbest has quit [Remote host closed the connection]
01:17
pftbest has joined #litex
02:02
TMM_ has joined #litex
02:25
pftbest has quit [Remote host closed the connection]
02:37
pftbest has joined #litex
02:42
pftbest has quit [Ping timeout: 252 seconds]
03:08
pftbest has joined #litex
03:13
pftbest has quit [Ping timeout: 250 seconds]
03:27
pftbest has joined #litex
03:31
pftbest has quit [Ping timeout: 252 seconds]
04:42
Guest9630 has joined #litex
04:57
ChuckM has quit [Remote host closed the connection]
04:59
ChuckM has joined #litex
05:14
pftbest has joined #litex
05:19
pftbest has quit [Ping timeout: 240 seconds]
05:27
Martoni42 has joined #litex
05:29
FabM has joined #litex
05:29
FabM has joined #litex
05:31
Martoni42 has quit [Ping timeout: 240 seconds]
05:52
Guest9630 has quit [Ping timeout: 246 seconds]
06:16
Guest96 has joined #litex
06:24
Guest96 has quit [Quit: Client closed]
06:30
pftbest has joined #litex
07:26
C-Man has quit [Ping timeout: 248 seconds]
07:33
pftbest has quit [Ping timeout: 248 seconds]
07:42
pftbest has joined #litex
07:47
pftbest has quit [Ping timeout: 252 seconds]
08:34
<
_florent_ >
tpw_rules: with Vivado 2018.2, make sure the pcie_s7.xci hasn't been updated with your previous attempts with a newer version of Vivado (so just make sure to revert all eventual LitePCIe changes)
09:48
pftbest has joined #litex
10:12
peeps[zen] has quit [Remote host closed the connection]
10:12
peeps[zen] has joined #litex
10:14
C-Man has joined #litex
10:31
<
pftbest >
_florent_: Hello. I am trying to port litex to a new Kintex 7 board, but I have some issue with DDR3. It behaves randomly, sometimes it works and passes memtest but sometimes it fails
10:32
<
pftbest >
In this log first it works fine, then I type reboot and it fails
10:32
<
pftbest >
Can you give some hint why it may behave this way?
11:45
shenki has quit [Ping timeout: 240 seconds]
11:45
shenki has joined #litex
13:39
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
14:17
pftbest has quit [Remote host closed the connection]
14:18
pftbest has joined #litex
14:53
TMM_ has joined #litex
15:14
<
Melkhior >
pftbest: in your second part (where it fails), m2 it picking b03 delays: 07+-00
15:15
<
Melkhior >
but the seventh value on line b03 is a zero
15:15
<
Melkhior >
the pattern looks weird - I think the BIOS code expect the 1 to be contiguous and pick the median between first and last
15:17
<
Melkhior >
so with such a pattern of alternating block of 0 and 1 (not-working and working), the BIOS might get confused
15:17
<
pftbest >
hm, do you know what can cause zeroes to appear here&
15:17
<
Melkhior >
normally 0 is when there has been an error, I believe
15:18
<
Melkhior >
so it goes a bunch of wrong timings (zeroes), a small number of OK timings (1), then more wrong timings (more 0)
15:18
<
Melkhior >
and the BIOS picks the middle of the sequence of 1
15:18
<
Melkhior >
but in your case it doesn't do that - no idea why, not an expert
15:19
<
Melkhior >
but that probably explains why it sometimes work and sometimes not
15:21
<
tpb >
Title: Pull request #884 seems to break nexys video sdram - litex (at gitmemory.com)
15:21
<
Melkhior >
(even though that's for an issue, the pattern looks OK)
15:22
<
pftbest >
I see, thanks
15:24
<
Melkhior >
Maybe the memory is run too slow ? Kintex 7 are fast (and probably could take DDR4 instead of DDR3)
15:24
<
Melkhior >
I had some issue at one point with a too-slow system causing memory issues...
15:24
<
pftbest >
in my case the memory is on a sodimm module DDR3-1066
15:24
<
Melkhior >
perhaps try with 125 or 150 MHz sys_clf_freq
15:24
<
Melkhior >
s/clf/clk/
15:25
<
pftbest >
So my options are 100 125 and 133
15:25
<
pftbest >
but in my tests it seem to behave worse on higher frequencies
15:25
<
Melkhior >
You have outside constraints ? (Litex should be able to configure any sys_clk_freq)
15:26
<
Melkhior >
(though sometimes you need multiple PLLs for various clocks if their frequency relationship is weird)
15:27
<
pftbest >
well, any frequency from 100 to 133 should work I think, but those 3 I tried so far
15:27
<
pftbest >
133 is the max because the memory is 1066
15:31
<
Melkhior >
You have a L2 in there, could be a source of trouble (including endianess issue in the framebuffer), maybe try without it...
15:31
<
Melkhior >
the L2 forces the use of a Wishbone interface instead of the direct access
15:32
<
Melkhior >
shouldn't affect the BIOS 'training', but you never know ...
15:32
<
Melkhior >
might be worth a try...
15:32
<
pftbest >
I tried to set it to 0
15:32
<
Melkhior >
Beyond that sorry I don't know :-(
15:32
<
pftbest >
It didn't help unfortunately
15:33
<
pftbest >
I can try to modify bios to make it find the longest sequence of 1
15:33
<
Melkhior >
Yes, but that might be a symptom of something else
15:34
<
Melkhior >
Hopefully
_florent_ will have better suggestions
15:34
<
Melkhior >
Good luck...
15:35
<
pftbest >
where I get no 1 at all
15:35
<
pftbest >
I'm not sure how it can vary so much between reboot
15:37
<
Melkhior >
yes, no 1 is definitely bad...
15:37
<
Melkhior >
The lack of 1 after 'Cmd/Clk' is also suspicious
15:39
<
pftbest >
Do you know what is "Cmd/Clk scan"?
15:40
<
Melkhior >
no, don't think my board did that
15:41
<
Melkhior >
it's definitely in the BIOS
15:44
<
Melkhior >
in sdram_write_leveling
15:44
<
Melkhior >
maybe you can try a wider range than 0-16 and see what happens ?
15:48
<
Melkhior >
You can also try to set SDRAM_WRITE_LEVELING_CMD_DELAY_DEBUG, maybe it will suggest something...
15:48
<
Melkhior >
Seems your issue is above my skill level, sorry :-(
15:50
<
pftbest >
Maybe I have to change CL CWL
15:50
<
pftbest >
Or try sysclk lower than 100
15:51
<
pftbest >
because with CL-6 CWL-5 it seems 100 is an upper limit
15:53
<
Melkhior >
Yes you could try 7/6, it the 2.5/3.3 is the min/max cycle time then it's 300->400 Mhz and with 100 Mhz sys_clk, the 4x is at 400 Mhz
15:54
<
Melkhior >
90 MHz would be in the middle of the range for 6/5
15:56
<
Melkhior >
cl / cwl are in get_ddr3_phy_init_sequence I think (litedram/litedram/init.py)
15:59
<
Melkhior >
mmm, weird that you get 6/5
15:59
Melkhior has left #litex [Leaving]
15:59
Melkhior has joined #litex
16:01
<
Melkhior >
... but that might be based on the 'live' frequency, not that of the chip
16:19
<
pftbest >
Now will try to change CL
16:25
<
Melkhior >
Interestingly, still loads of 0 for Cmd/Clk, but only 6 taps so something changed
16:51
<
Melkhior >
Hehe and you went for higher frequency as well
16:51
<
Melkhior >
m6 is a complete failure though - nothing worked
16:53
<
Melkhior >
I think you should try 7/6 at 100 MHz... but I'm out of my depth here
16:53
<
Melkhior >
Good luck again
16:54
<
pftbest >
I'll try to find a different memory module, maybe the one I have is weird
16:55
<
Melkhior >
Worth a shot if you have other modules handy
16:55
<
pftbest >
I tried 7/6 @100 and it was the same, so I'll go disassemble my old laptop for some memory
17:31
<
_florent_ >
pftbest: It seems the write DQ-DQS training is not done correctly on sometimes not done correctly on your board
17:32
<
pftbest >
_florent_: I'll try
17:34
<
_florent_ >
otherwise, be sure to configure the correct INTERNAL_VREF or DCI_CASCADE for the DDR3 bank
17:34
<
_florent_ >
If you are adapting from the MIG, be sure to use the same IO constraints
17:35
<
_florent_ >
Is it your own board or a known development board?
17:36
<
pftbest >
It is HPC-STLV7325. It has a reference design with MIG which works fine
17:36
<
pftbest >
I copied kc705 platform and modified the pinouts
17:40
<
_florent_ >
ok, can you share the .xdc for the DDR3/MIG?
17:47
<
_florent_ >
ok, so DCI_CASCADE constraint is similar to the KC705
17:50
<
pftbest >
yes, it looks the same, the only difference is DQS pins are DIFF_SSTL15_T_DCI but for kc705 they are DIFF_SSTL15
17:51
<
pftbest >
I tried both but didn't observe any difference
17:52
<
pftbest >
Also VCCAUX_IO is NORMAL in my case
17:53
<
_florent_ >
ok, so you can try to disable the Write DQ/DQS training
17:53
<
_florent_ >
it's a relatively new features and that's possible some corner cases are not handled correctly
18:15
<
pftbest >
_florent_: Is it ok that "Cmd/Clk scan" is mostly 0 ?
18:19
FabM has quit [Quit: Leaving]
21:48
<
tpb >
Title: dpaste: F2AGR4ULR (at dpaste.com)
21:48
<
pftbest >
It set delay to 0 because there was a glitch at the start
22:15
rektide has quit [Quit: leaving]
22:17
rektide has joined #litex
22:27
rektide has quit [Quit: leaving]
22:29
rektide has joined #litex