_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
jaseg has quit [Ping timeout: 244 seconds]
jaseg has joined #litex
Degi has quit [Ping timeout: 240 seconds]
Degi has joined #litex
MyGreenBalloon has joined #litex
MyGreenBalloon has quit [Remote host closed the connection]
awe00 has joined #litex
tumbleweed has quit [Ping timeout: 256 seconds]
tumbleweed has joined #litex
tumbleweed has joined #litex
tumbleweed has quit [Changing host]
feldim2425_ has joined #litex
bubble_buster_ has joined #litex
y2kbugger_ has joined #litex
flammit_ has joined #litex
tucanae47__ has joined #litex
gruetze_ has joined #litex
bubble_buster has quit [Ping timeout: 272 seconds]
flammit has quit [Ping timeout: 272 seconds]
feldim2425 has quit [Ping timeout: 272 seconds]
tucanae47 has quit [Ping timeout: 272 seconds]
midnight has quit [Ping timeout: 272 seconds]
CarlFK[m] has quit [Ping timeout: 272 seconds]
lambda has quit [Ping timeout: 272 seconds]
y2kbugger has quit [Ping timeout: 272 seconds]
gruetzkopf has quit [Ping timeout: 272 seconds]
bubble_buster_ is now known as bubble_buster
tucanae47__ is now known as tucanae47
flammit_ is now known as flammit
y2kbugger_ is now known as y2kbugger
Guest43925 has joined #litex
the_JinX has quit [Ping timeout: 272 seconds]
midnight has joined #litex
CarlFK[m] has joined #litex
lambda has joined #litex
gruetze_ is now known as gruetzkopf
<shorne> somlo: FYI, this is the patch to fix LiteETH for big endian machines like openrisc: https://github.com/stffrdhrn/linux/commit/0223cdd5b77a4f05b2824c1bf6493c04ee0ad76e
<tpb> Title: Litex: LiteETH: Fixups for compat with BE, also properly detect unset… · stffrdhrn/linux@0223cdd · GitHub (at github.com)
<shorne> I am not sure if you saw the LKML mails/messages. I am planning to upstream via my openrisc tree a few of the litex drivers in the 5.10 merge window.
<tpb> Title: Commits · stffrdhrn/linux · GitHub (at github.com)
<shorne> Now, that liteETH is working I can do some work.
<somlo> shorne: afaik, the stuff being pushed on lkml is 32-bit cpu and 8-bit csr-data-width specific, and I promised Mateusz to shut up and let it happen, and start making noise about 64-bit CPUs and 32-bit csr-data-width only after the initial upstreaming pass :)
<somlo> shorne: I'll test your patch with Rocket (64-bit LE); if it doesn't break that, I'll post it to the litex-rocket-rebase branch (which in spite of its name *should* be backward compatible to 32-bit CPUs and whatever csr data width litex is built with)
<somlo> shorne: so the rocket branch I maintain already has the accessors (ioread/iowrite) updated to work across widths and endianness
<somlo> so all that's different in your version is the `readx_poll_timeout_atomic` thing, and some of the logic around `of_get_mac_address()`
<somlo> I'll apply those changes manually (as your patch is not itself based on litex-*-rebase in litex-hub, as far as I can tell)
<_florent_> Hi shorne, nice to see you here and great to see you are testing/helping with the linux drivers.
<_florent_> If you think the dts generation is missing some features (like the IRQ you reported), feel free to create issue on LiteX repo for that, i'll try to implement it
<_florent_> Otherwise, as you are probably already aware, Mateusz and somlo are working on the drivers, but if have issues with the FPGA or trouble understanding how it works, feel free to ping me, i would be happy to help and do some tests
<somlo> shorne: https://imgur.com/a/HEGz3CT -- is `inreg8` an or1k-ism ? Any way we can make this line portable across everything? https://github.com/stffrdhrn/linux/commit/0223cdd5b77a4f05b2824c1bf6493c04ee0ad76e#diff-9ec47ad4f74cb589e1024ed04c60670dR245
<tpb> Title: Imgur: The magic of the Internet (at imgur.com)
<somlo> shorne: the of_get_mac_address() thing works perfectly, and fixes an annoyance I had commented out and was hoping to return to one day, but never did -- so thanks for that! :)
<somlo> oh no, inreg8 is the silly liteeth-driver-specific accessor wrapper I thought I'd gotten rid of :)
<somlo> it's `litex_reg_readb` in the litex-rocket-rebase branch, and seems to work fine when I test it on rocket
<tpb> Title: Litex: LiteETH: Fixups for compat with BE, also properly detect unset… · litex-hub/linux@35b0a4c · GitHub (at github.com)
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #litex
tcal has joined #litex
<tpb> Title: software/liblitedram: allow forced write leveling delays, improve del… · enjoy-digital/litex@e28e808 · GitHub (at github.com)
<somlo> it results in a build error (probably the `int sdrwl_delays[16];` array should be in sdram.c, not sdram.h (from where it gets included in multiple places, and ends up conflicting with itself)
<somlo> and ouch, the entire memspeed thing once again violently assumes that a pointer is "unsigned int" :(
<tpb> Title: misc. fixes for a few recent commits by gsomlo · Pull Request #649 · enjoy-digital/litex · GitHub (at github.com)
<_florent_> somlo: thanks for the PR
<somlo> Thanks for applying! (I'm the 64-bit CI testing bot, but I catch the occasional unrelated compile warning or error ;)
<somlo> _florent_: the memspeed/memtest thing turned out to be a lot less of a problem than I initially thought (there's lots of `unsigned int *` that's fine, only a few instances of `(unsigned int)addr` that needed to be fixed
<somlo> so I ended up more freaked out about it than I needed to be :D
awe001 has joined #litex
awe00 has quit [Ping timeout: 240 seconds]
acathla has quit [Ping timeout: 240 seconds]
acathla has joined #litex
acathla has quit [Changing host]
acathla has joined #litex
<shorne> somlo: inreg8 is/was a helper in the liteeth8 driver. Let me try with your latest driver. The problem with using readb_.. I think is that readb is not for iomem, so for me the read returned nothing
<shorne> _florent_: thanks, I will let you know, I have been able to get by reading the code on my own so far. I'll report the missing interrupts
<somlo> shorne: I remembered getting rid of local-to-the-driver accessors such as inreg8 :) I think the "adapted" version of your patch in litex-rocket-rebase should work (the accessors there should be endianness and csr-data-width agnostic)
<shorne> somlo: yeah, I figured they had to be removed, but I couldn't find the branch that had any newer liteeth driver. Now I have your's thanks
awe001 has quit [Ping timeout: 246 seconds]
lf has quit [Ping timeout: 244 seconds]
lf has joined #litex