narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
kwz has quit [Quit: Connection closed for inactivity]
vagrantc has quit [Quit: leaving]
anessen97338370 has quit [Read error: Connection reset by peer]
anessen97338370 has joined #linux-amlogic
hexdump0815 has quit [Ping timeout: 272 seconds]
hexdump0815 has joined #linux-amlogic
anessen97338370 has quit [Read error: Connection reset by peer]
anessen97338370 has joined #linux-amlogic
jacobk has quit [Ping timeout: 260 seconds]
jacobk has joined #linux-amlogic
<minute> hmm, after successfull association today i have > [ 66.782759] rtw_8822cs mmc2:0001:1: failed to get tx report from firmware
<minute> and a bunch of "timed out to flush queue 1", also 2, and 0
<minute> the card can instantly recover by doing "echo ffe03000.mmc > /sys/class/mmc_host/mmc2/device/driver/unbind" and rebinding
<minute> i wonder what's the internal mechanism by which it recovers here
<minute> and if the driver could auto reset or sth
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
Danct12 has quit [Quit: ZNC 1.9.1 - https://znc.in]
Danct12 has joined #linux-amlogic
naoki has quit [Quit: naoki]
psydroid has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
zkrx has quit []
psydroid has joined #linux-amlogic
zkrx has joined #linux-amlogic
psydroid2 has joined #linux-amlogic
<minute> i'm experimenting a bit with rtw88_sdio.c today on a311d... what does BIT_DMA_AGG_TO_V1 mean exactly xdarklight?
<xdarklight> minute: it's the RX aggregation timeout (I don't know the unit of measure here, values have been copied from vendor drivers)
<minute> xdarklight: is it like a value that says, if there are no more packets to aggregate after this time period, flush?
psydroid2 has quit [Remote host closed the connection]
psydroid2 has joined #linux-amlogic
<f_> I can try having a look at the MMC driver issues today
<minute> f_: cool
<f_> What's extremely weird, is in my case booting from SD card works.
<f_> Booting from eMMC is what b0rks entirely.
<f_> Actually, minute: your issues were with the eMMC as well, didn't you?
<f_> oops
<f_> your issues were with the eMMC as well, right?
<minute> f_: yes, sd is fine, emmc borked in uboot
<minute> cool that you can reproduce
<f_> Yup. Can reproduce on gxbb and gxl
<minute> :0
<f_> What was interesting to me, is that I could only reproduce while in SPL, regular U-Boot booted from eMMC just fine on gxl
<f_> Did not test booting from eMMC in regular U-Boot on gxbb simply because I have nothing on my gxbb board's eMMC
jacobk has quit [Ping timeout: 248 seconds]
<f_> I did weird hackery in SPL to get it to load stuff from gxbb's eMMC to reproduce
<f_> Looking at my chat logs <minute> as a workaround i have a loop in mmc_init that tries up to three times <minute> not reliable
psydroid|2 has joined #linux-amlogic
<f_> (and other stuff)
<minute> :d
<f_> Could try and see if that works for me, reliable or not
<f_> (because honestly it working a few times is better than it simply not working at all)
<minute> i think on banana pi cm4 _or_ the combo a311d+rt8822cs there is some underlying transfer issue. rx aggregation hides this issue but it becomes very pronounced when disabling rx agg. maybe just because there is a higher number of individual small transfers then and so a higher probability of running into the stall?
<minute> it is just weird to me that there are no reports of this on the net
<f_> Actually, it looks like my issue is different from yours
<minute> oh?
<f_> Or, wait a minute.
<f_> I think the behaviour was different if I used the stripped down SPL MMC driver
<f_> I might have that enabled.
<f_> > [*] Tiny MMC framework in SPL
<f_> Yup.
<f_> Let me disable that and try again.
<f_> Oh. Different error from yours.
<f_> > unable to select a mode : -74
<f_> v.s.
<f_> > unable to select a mode : -5
<f_> minute: Wait, I recall there were some modifications needed in the meson_gx_mmc driver for it to happily load stuff at all
<minute> i'm trying to find in the vendor driver rtl88x2cs where they are honoring the sdio host max req size... can't find it so far
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 260 seconds]
jacobk has joined #linux-amlogic
<minute> couldn't really find any pattern of why rtw8822cs has this random stalling problem
jacobk has quit [Ping timeout: 276 seconds]
jacobk has joined #linux-amlogic
R0nd has joined #linux-amlogic
Rond has quit [Ping timeout: 248 seconds]
R0nd is now known as Rond
zkrx has quit [Ping timeout: 252 seconds]
eery has quit [Ping timeout: 272 seconds]
kilobyte_ch has quit [Ping timeout: 248 seconds]
gabes22 has quit [Ping timeout: 248 seconds]
Terry13732293409 has quit [Ping timeout: 252 seconds]
eery has joined #linux-amlogic
zkrx has joined #linux-amlogic
kilobyte_ch has joined #linux-amlogic
jacobk has quit [Read error: Connection reset by peer]
gabes22 has joined #linux-amlogic
naoki has joined #linux-amlogic
<xdarklight> minute: re: "no more packets to aggregate after this time period, flush?" - correct. if there's more incoming packets within the given period and the RX aggregation buffer still has room then that packet will be aggregated, saving host<->card communication overhead
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
psydroid2 has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
psydroid|2 has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
psydroid has joined #linux-amlogic
jacobk has joined #linux-amlogic
<f_> Looking a bit more in the eMMC spec standard, and debugging...
<f_> Ok, so let's start from scratch again. It looks like it behaves weirdly when the mmc driver tries to configure the bus width..
<f_> >trying mode MMC legacy width 8 (at 25 MHz)
<f_> >trying mode MMC legacy width 4 (at 25 MHz)
<f_> >trying mode MMC legacy width 1 (at 25 MHz)
<f_> Then fails.
jacobk_ has joined #linux-amlogic
jacobk has quit [Ping timeout: 276 seconds]
naoki has quit [Quit: naoki]
wens has quit [Ping timeout: 240 seconds]
wens has joined #linux-amlogic