<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.
<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
<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
<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