_florent_ changed the topic of #litex to: LiteX FPGA SoC builder and Cores / Github : https://github.com/enjoy-digital, https://github.com/litex-hub / Logs: https://freenode.irclog.whitequark.org/litex
tpb has quit [Remote host closed the connection]
tpb has joined #litex
Degi has quit [Ping timeout: 264 seconds]
Degi has joined #litex
xobs1 is now known as xobs
daniellimws has quit [Killed (stross.freenode.net (Nickname regained by services))]
daniellimws_ has joined #litex
kgugala_ has joined #litex
kgugala has quit [Ping timeout: 246 seconds]
_whitelogger has joined #litex
CarlFK has quit [Ping timeout: 260 seconds]
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
CarlFK has joined #litex
_franck_5 has joined #litex
_franck_ has quit [Ping timeout: 272 seconds]
_franck_5 is now known as _franck_
kgugala has joined #litex
kgugala_ has quit [Ping timeout: 256 seconds]
tcal has quit [Ping timeout: 260 seconds]
tcal has joined #litex
tcal has quit [Ping timeout: 246 seconds]
futarisIRCcloud has joined #litex
Dolu has joined #litex
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #litex
<somlo> _florent_: with the latest everything, I can boot from spi-sdcard; With "regular" litesdcard, I'm getting the progress bar to complete (slowly), then things hang after "Liftoff!"
<somlo> so I'm wondering if the boot.bin blob gets somehow corrupted in transit
<_florent_> somlo: i also need to do more tests with litesdcard, that's indeed probably broken currently
<_florent_> somlo: but i haven't speed too much time on it since i'm also thinking about revisiting litesdcard a bit to simplify it, make it more software assisted and only do the critical things (blocks transfers) in the gateware
<somlo> ok, I won't worry too much about litesdcard for now, then :)
<_florent_> somlo: the current issue with LiteSDCard is that the clocking is complicated and it use a lot of resource (due to the way the control interface is done)
<_florent_> somlo: initially LiteSDCard was used in standalone to write/read streams of blocks, so decided of the current architecture
<_florent_> somlo: but while working on the SPI mode recently, i realized we should probably simplify LiteSDCard to use less resource and have more in common with the SPI mode
<_florent_> somlo: but we'll see...
<_florent_> somlo: have you been able to do some speedtests with the SPI SDCard with Linux?
Skip has joined #litex
<somlo> _florent_: I did some very informal measurement of how long it took to transfer a file to/from the card from within linux
<somlo> I don't remember if I wrote it down at the time, should be simple to recreate
Skip has quit [Remote host closed the connection]
<_florent_> somlo: i'm asking this just to be able to compare with the speed with the bios
<somlo> _florent_: I'm rebuilding a bitstream for the nexys4ddr with spi-mode sdcard support (already have a kernel and bbl that's good for it). I'll re-run the tests and post here in 20-30 minutes
<_florent_> somlo: if that's low compare to the speed with the bios (> 1MB/s on reads) we could try to see how block accesses are done with the driver and see if we can optimize it.
<somlo> _florent_: took me about 9m to `cat` a 12.5MB file to /dev/null
<somlo> that's read
<somlo> I can try to figure out a way to measure writes as well, but it'll probably have to include the time `umount` takes to flush things to actual sdcard once the file creation is reported as "complete"
<_florent_> somlo: that's slow...
<somlo> yeah, much slower than the bios
<_florent_> somlo: with the bios it would be 9s :)
<somlo> I know, I booted from it :)
<_florent_> somlo: can you provide a link to the driver?
<futarisIRCcloud> Where's the linux driver?
<tpb> Title: linux/spi-litespi.c at litex-rocket-rebase · litex-hub/linux · GitHub (at github.com)
<somlo> with the remark that mmc_spi (which runs unmodified from its upstream original on top of litespi) forces transfers to 8bpw
<_florent_> doing 32bpw improves speed a bit, but not that much
<somlo> _florent_: you mean in the bios? Because in linux doing anything besides 8 simply doesn't work in my experience
<_florent_> somlo: yes i switched to 32 for block xfers in the bios: https://github.com/enjoy-digital/litex/blob/master/litex/soc/software/liblitesdcard/spisdcard.c#L146
<tpb> Title: litex/spisdcard.c at master · enjoy-digital/litex · GitHub (at github.com)
<_florent_> somlo: it's a bit better (haven't measured) but not by a 60x ratio, it's more 20/30%
<_florent_> somlo: can you share the dts you are using for the mmc_spi?
<tpb> Title: riscv-pk/litex_rocket.dts at gls-litex-devel · gsomlo/riscv-pk · GitHub (at github.com)
<_florent_> thanks
tcal has joined #litex
tcal has quit [Remote host closed the connection]
tcal has joined #litex
tcal has quit [Remote host closed the connection]
tcal has joined #litex
tcal has quit [Ping timeout: 246 seconds]
tcal has joined #litex
Skip has joined #litex
tcal has quit [Remote host closed the connection]
FFY00 has quit [Read error: Connection reset by peer]
FFY00 has joined #litex
kgugala has quit [Quit: -a- Connection Timed Out]
kgugala has joined #litex
CarlFK has quit [Ping timeout: 244 seconds]
CarlFK has joined #litex
Dolu has quit [Quit: Leaving]
lambda has quit [Ping timeout: 272 seconds]
lambda has joined #litex