Thursday, 2020-06-18

*** tpb has joined #litex00:00
*** Degi has quit IRC02:15
*** Degi has joined #litex02:17
*** xobs1 is now known as xobs02:44
*** daniellimws has quit IRC03:16
*** daniellimws_ has joined #litex03:17
*** kgugala_ has joined #litex05:01
*** kgugala has quit IRC05:03
*** _whitelogger has quit IRC05:09
*** _whitelogger has joined #litex05:11
*** CarlFK has quit IRC05:27
*** futarisIRCcloud has quit IRC06:00
*** CarlFK has joined #litex06:25
*** _franck_5 has joined #litex06:28
*** _franck_ has quit IRC06:30
*** _franck_5 is now known as _franck_06:30
*** kgugala has joined #litex07:04
*** kgugala_ has quit IRC07:07
*** tcal has quit IRC07:55
*** tcal has joined #litex08:00
*** tcal has quit IRC08:04
*** futarisIRCcloud has joined #litex11:45
*** Dolu has joined #litex12:26
*** FFY00 has quit IRC13:05
*** FFY00 has joined #litex13:05
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!"13:18
somloso I'm wondering if the boot.bin blob gets somehow corrupted in transit13:18
_florent_somlo: i also need to do more tests with litesdcard, that's indeed probably broken currently13:28
_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 gateware13:30
somlook, I won't worry too much about litesdcard for now, then :)13:48
_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)13:53
_florent_somlo: initially LiteSDCard was used in standalone to write/read streams of blocks, so decided of the current architecture13:57
_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 mode13:58
_florent_somlo: but we'll see...13:58
_florent_somlo: have you been able to do some speedtests with the SPI SDCard with Linux?13:59
*** Skip has joined #litex13:59
somlo_florent_: I did some very informal measurement of how long it took to transfer a file to/from the card from within linux14:12
somloI don't remember if I wrote it down at the time, should be simple to recreate14:13
*** Skip has quit IRC14:24
_florent_somlo: i'm asking this just to be able to compare with the speed with the bios14:29
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 minutes14:32
_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.14:32
somlo_florent_: took me about 9m to `cat` a 12.5MB file to /dev/null14:53
somlothat's read14:53
somloI 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"14:54
_florent_somlo: that's slow...14:54
somloyeah, much slower than the bios14:54
_florent_somlo: with the bios it would be 9s :)14:55
somloI know, I booted from it :)14:55
_florent_somlo: can you provide a link to the driver?14:56
futarisIRCcloudWhere's the linux driver?14:56
somlohttps://github.com/litex-hub/linux/blob/litex-rocket-rebase/drivers/spi/spi-litespi.c14:57
tpbTitle: linux/spi-litespi.c at litex-rocket-rebase · litex-hub/linux · GitHub (at github.com)14:57
somlowith the remark that mmc_spi (which runs unmodified from its upstream original on top of litespi) forces transfers to 8bpw15:00
_florent_doing 32bpw improves speed a bit, but not that much15:11
somlo_florent_: you mean in the bios? Because in linux doing anything besides 8 simply doesn't work in my experience15:17
_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#L14615:20
tpbTitle: litex/spisdcard.c at master · enjoy-digital/litex · GitHub (at github.com)15:20
_florent_somlo: it's a bit better (haven't measured) but not by a 60x ratio, it's more 20/30%15:21
_florent_somlo: can you share the dts you are using for the mmc_spi?15:26
somlohttps://github.com/gsomlo/riscv-pk/blob/gls-litex-devel/machine/litex_rocket.dts15:28
tpbTitle: riscv-pk/litex_rocket.dts at gls-litex-devel · gsomlo/riscv-pk · GitHub (at github.com)15:28
_florent_thanks15:32
*** tcal has joined #litex15:38
*** tcal has quit IRC16:08
*** tcal has joined #litex16:08
*** tcal has quit IRC16:28
*** tcal has joined #litex16:28
*** tcal has quit IRC16:32
*** tcal has joined #litex16:43
*** Skip has joined #litex16:55
*** tcal has quit IRC17:20
*** FFY00 has quit IRC17:50
*** FFY00 has joined #litex17:51
*** kgugala has quit IRC18:13
*** kgugala has joined #litex18:13
*** CarlFK has quit IRC18:55
*** CarlFK has joined #litex19:00
*** Dolu has quit IRC19:50
*** lambda has quit IRC21:04
*** lambda has joined #litex21:18

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!