mmind00 changed the topic of #linux-rockchip to: Rockchip development discussion | public log at https://libera.irclog.whitequark.org/linux-rockchip
vagrantc has quit [Quit: leaving]
stikonas has quit [Quit: Konversation terminated!]
hipboi has joined #linux-rockchip
hipboi has quit [Quit: hipboi]
ungeskriptet has quit [Ping timeout: 272 seconds]
Daanct12 has joined #linux-rockchip
hipboi has joined #linux-rockchip
crabbedhaloablut has joined #linux-rockchip
hexdump0815 has quit [Ping timeout: 272 seconds]
hipboi has quit [Quit: hipboi]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
Daanct12 has quit [Ping timeout: 252 seconds]
Daanct12 has joined #linux-rockchip
hipboi has joined #linux-rockchip
franoosh has joined #linux-rockchip
ldevulder has joined #linux-rockchip
warpme has joined #linux-rockchip
franoosh has quit [Ping timeout: 246 seconds]
hipboi has quit [Quit: hipboi]
franoosh has joined #linux-rockchip
hipboi has joined #linux-rockchip
dsimic has quit [Ping timeout: 248 seconds]
dsimic has joined #linux-rockchip
eballetbo has joined #linux-rockchip
hipboi has quit [Quit: hipboi]
<mriesch> speaking of PEBKAC... trying to bring up the rk3568 mipi csi host. pd up. clocks up. reset deasserted. but readl/writel to the memory produces a hard lock on the cpu...
<mriesch> kevery: is there anything particularly strange about this ip core that needs extra consideration??
hipboi has joined #linux-rockchip
<diederik> mmind00: I still think it looks odd to see ``.cluster_reg = rk3568_vop_cluster_regs,`` in ``rk3588_vop`` and I wouldn't have rk3568 in a function name which isn't meant for just rk3566/rk3568 and it triggered my 'anomaly' alarm ... but those all point to a me-problem, hence PEBKAC
<mmind00> diederik: I agree :-P ... and yes it is very normal to re-use a function for a new soc when it provides the same functionality
<mmind00> mriesch: some other NIU clock maybe?
<mriesch> mmind00: hmm... i don't see any other clocks in downstream.. but let's grep around
<diederik> I probably should've double-checked it, but IIRC in that patch it went from sth like 'vop2' to 'rk3568' while the code (mostly?) stayed the same
<mriesch> mmind00: these NIU clocks seem to be even more mysterious than the other clocks... are they even managed by linux?
<mmind00> mriesch: "it depends" ... i.e. the NIU clocks are supplying the interconnect ports ... on older socs they mostly were just set to "critical" until "we model the interconnect", which never happened. For rk3588 sre has the linked-clock series (which I need to apply) ... rk3568 sits probably in the middle
<mmind00> NIU -> native interface unit or so
hipboi has quit [Quit: hipboi]
<mriesch> ok, power domain seems to work fine, i'd expect a kernel panic if the power domain was off
<mriesch> let's check the clocks then :-)
hipboi has joined #linux-rockchip
<CounterPillow> iirc the RK356x does indeed require NIU fiddling for some things, which is why some video clock stuff is currently marked critical
<CounterPillow> might also be worth dumping the GRF regs and comparing them across BSP and mainline
<mriesch> ok...
<mriesch> so maybe a clock needs to be added to rk3568_cru_critical_clocks?
<mriesch> (in drivers/clk/clk-rk3568.c)
<CounterPillow> 721bf080f249ab2adcc4337abe164230bfb8594f is one example of macromorgan marking something as critical due to NIU on that SoC
<CounterPillow> and 6931f85c29d5a0261219cf8a73773d3165806d84 is sascha hauer doing the same
raster has joined #linux-rockchip
<CounterPillow> (in case it wasn't clear, marking them critical is the "wrong" fix but it's the way to go until linked clocks can be modelled correctly in mainline, at which point I assume nobody will care enough anymore to fix it ;))
<mriesch> CounterPillow: gotcha! will play around with that
<CounterPillow> mriesch: looks like that pclk_vi_niu depends on hclk_vi_niu not being gated, according to 2.8.6 in the TRM
<CounterPillow> so marking hclk_vi critical might work?
<mriesch> let me try that
<mriesch> nice! that works!
<mriesch> thanks a lot, CounterPillow and mmind00
<CounterPillow> \o/
<CounterPillow> ok, now we just need the linked clocks work merged, and use it in rk3568 :D
<mriesch> or i could apply this one line hack and get away with it :-)
hipboi has quit [Ping timeout: 252 seconds]
warpme has quit [Read error: Connection reset by peer]
digetx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
digetx has joined #linux-rockchip
warpme has joined #linux-rockchip
warpme has quit [Client Quit]
adadad has quit [Quit: ZNC 1.9.1+deb2+b1 - https://znc.in]
adadad has joined #linux-rockchip
<naoki> mmm
<naoki> ROCK 4SE sdio wifi (brcm43455) works only when cold boot :(
<naoki> after reboot:
<naoki> [ 0.848355] mmc_host mmc2: Bus speed (slot 0) = 300000Hz (slot req 300000Hz, actual 300000HZ div = 0)
<naoki> [ 0.892465] mmc_host mmc2: Bus speed (slot 0) = 200000Hz (slot req 200000Hz, actual 200000HZ div = 0)
<naoki> [ 0.808370] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
<naoki> [ 0.944842] mmc_host mmc2: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0)
<naoki> [ 1.002457] mmc2: Failed to initialize a non-removable card
<naoki> ROCK 4C+ has same sdio wifi, it works fine
<naoki> ^vanilla kernel
<naoki> on OpenWrt on 4SE, mysteriously mmc(sdio) clock tuning always succeeds, but brcmfmac driver reports an error on initialization. it works fine on 4C+.
franoosh has quit [Ping timeout: 244 seconds]
franoosh has joined #linux-rockchip
franoosh has quit [Read error: Connection reset by peer]
franoosh has joined #linux-rockchip
Daanct12 has quit [Quit: WeeChat 4.4.4]
psydroid has quit [Ping timeout: 252 seconds]
naoki has quit [Quit: naoki]
psydroid has joined #linux-rockchip
shoragan has quit [Ping timeout: 252 seconds]
a3f has quit [Ping timeout: 272 seconds]
<mmind00> CounterPillow: at least step one I hope to achieve today ;-)
<mriesch> mmind00: the linked-clock thingy?
<mmind00> mriesch: yep
<mriesch> should i send the "mark hclk_vi as critical" patch then? i guess there is still some work to do for the rk3568 even if sre's series is merged
<mmind00> mriesch: yep
<mmind00> ;-)
<mmind00> to explain ... the rk3588 carries the definition for the clock links for a while already
<mmind00> "just" missing using them more intelligent ... that's the part sre's series does ... rk3568 even misses the basic definitions I think
<sre> while the linked-clk stuff itself should work for rk356x, there is definitely some work to do
<sre> apart from properly defining the NIU clocks, it is also missing some of the cleanups I did for rk3588
<sre> But it might be sensible to introduce something similar to the "RK3588_LINKED_CLK" define currently used by RK3588 clocks for RK3568.
<mriesch> ok i'll take a look it, next week or so. thx!
a3f has joined #linux-rockchip
shoragan has joined #linux-rockchip
ldevulder has quit [Quit: Leaving]
<diederik> mmind00: thanks for working on that :-D
franoosh has quit [Ping timeout: 248 seconds]
System_Error has quit [Remote host closed the connection]
System_Error has joined #linux-rockchip
stikonas has joined #linux-rockchip
vagrantc has joined #linux-rockchip
raster has quit [Quit: Gettin' stinky!]
naoki has joined #linux-rockchip
crabbedhaloablut has quit []
<naoki> mmind00: Do you remember the ROCK 3A sdmmc CD issue? It still happens, so I want to add "broken-cd" to &sdmmc.