alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - Logs https://oftc.irclog.whitequark.org/panfrost - <macc24> i have been here before it was popular
unoccupied has joined #panfrost
leah has quit [Ping timeout: 480 seconds]
adjtm has quit [Quit: Leaving]
adjtm has joined #panfrost
atler is now known as Guest232
atler has joined #panfrost
unoccupied has quit [Ping timeout: 480 seconds]
Guest232 has quit [Ping timeout: 480 seconds]
Xalius has quit [Quit: Leaving]
adjtm is now known as Guest257
adjtm has joined #panfrost
Guest257 has quit [Ping timeout: 480 seconds]
alpernebbi has joined #panfrost
macc24 has quit [Quit: WeeChat 3.1]
<bbrezillon> alyssa: I'm not sure I understand how raw tile-buffer writes work on Midgard. Looks like the same fragout (brndout) instruction is used for both cases, the only difference being that raw writes happen in a blend shader, so I guess the FF blend unit is bypassed in that case and the output values are written directly to the tile buffer
<bbrezillon> alyssa: ah, nevermind, if blend_shader and load_destination are false, blending is skipped and the output is written directly to the tile buffer (I guess the float -> unorm conversion still happens if internal_format != RAWxx)
Xalius has joined #panfrost
krh has joined #panfrost
jambalaya has quit [Read error: Connection reset by peer]
jambalaya has joined #panfrost
macc24 has joined #panfrost
macc24 has quit [Quit: WeeChat 3.1]
psydroid has joined #panfrost
macc24 has joined #panfrost
warpme_ has joined #panfrost
<warpme_> guys: i'm trying to get working mali g31 on allwinner h616 (a "new" version of well working h6). i'm on mesa 21.1.1 and 5.12.7 kernel. all works perfectly on h6. but on h616 panfrost loads, reports reasonable caps. but when my app starting to use gpu i see in dmesg every 60sec logs like this:
<alyssa> bbrezillon: Oh err..
<macc24> i now have a suzyqable
<macc24> let the flashing commerce >:D
<warpme_> maybe somebody has some hints how to investigate root cause of job timeouts on h616?
<macc24> warpme_: can you give full dmesg?
<warpme_> sure
<warpme_> here it is: https://pastebin.com/ck6259cS
<warpme_> my app reports g31 as ok:
<macc24> >kernel finished booting in 3 seconds
<warpme_> also interrupts from gpu seem looks ok:
<macc24> can you try mesa main branch?
<warpme_> do you mean current master?
<warpme_> oh master->main....
<macc24> they renamed master branch to main
<warpme_> sure. let me try. btw: all works perfectly for h6 (h616 soc is in many aspects v.similiar to h6. also all works on my other soc with g31: amlogic sm1)
<macc24> yea g31 is fine
<macc24> umm
<macc24> doesn't h6 have mali t720?
<macc24> according to https://linux-sunxi.org/H6 it has
<warpme_> yes. gpu in h6 soc is t720
<macc24> where are kernel sources of stock firmware?
<macc24> my guess for now is that something's wrong in mesa driver or there is some quirk in h616
<bbrezillon> warpme_: cache coherency issues? (we've had problem during the G52+amlogic bringup because of that)
<bbrezillon> warpme_: do you have a dma-coherent prop under the gpu node?
<warpme_> bbrezillon: well. i have no idea. panfrost error output is too criptic for me.....
<bbrezillon> assuming both your amlogic and allwinner SoC embed the same GPU (G31), and one works while the other doesn't, I'd bet on a kernel side issue (PM or cache related)
<warpme_> bbrezillon: well - i have working well g31 but on dfferent soc (amlogic)
<warpme_> bbrezillon: sorry. read your mgs too quick :-)
<warpme_> as driver seems report ok caps - PM should be rather ok?
<macc24> bbrezillon: i think if it would be pm it would either throw serror(look i learned new word :D) or just not render anything
<warpme_> ....or hang soc. h616 has undocumented bit in PM registers. without proper setting bits in those reg. modprobe of panfrost hangs soc.
<bbrezillon> macc24: dunno what happens if the OPP are slightly off
<macc24> bbrezillon: "if the OPP are slightly off"???????
<warpme_> currently i disabled opp. gpu runs on safe 432MHz.
<warpme_> also i tried increase vgpu to 1.08v
<warpme_> maybe it is worth to try apply g52 cache-coherency on h616 (as soc quirk)?
<macc24> warpme_: as a hack you can try changing compatible to amlogic,meson-gxm-mali in sun50i-h6.dtsi
<macc24> but i don't know if it would make sense or not
<warpme_> macc24: probably you mean "compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";" - this is what amlogic sm1 uses for working g31 ?
<macc24> warpme_: yea whatever just amlogic,something-mali
<bbrezillon> adding the dma-coherent prop should do the trick, I don't think you want the amlogic quirks
<macc24> warpme_: ^
<narmstrong> The dma coherent
<narmstrong> Stuff was only for G52
<narmstrong> I thought G31 didn’t support cache coherency
<narmstrong> On amlogic, the G31 & G52 runs at a lower freq than the T820 and Mali450
<warpme_> bbrezillon: so something like this? :
<warpme_> of course without <..>
<warpme_> hmm - with added dma coherent prop i started to get in dmesg:
<alyssa> tomeu: You want more kernel patches? Here are more kernel patches https://rosenzweig.io/foo.patch
Daanct12 has joined #panfrost
atler has quit [Quit: atler]
Danct12 has quit [Ping timeout: 480 seconds]
atler has joined #panfrost
<jernej> narmstrong, macc24: I compared vanilla ARM bifrost driver with BSP H616 one and diff is pretty unremarkable: http://ix.io/3oa8
<jernej> two special registers in PRCM and SMC are already set in U-Boot
<alyssa> Rendered 1335 frames in 179.289 secs, average of 7.44609 fps
<alyssa> that's good right?
<narmstrong> jernej: what about GPU_POWEROFF_GATING_REG and the SMC reg used for protected mode ?
<jernej> as I said, those two are set in U-Boot :)
<jernej> for testing purposes, anyway
sigmaris has joined #panfrost
<jernej> except there is one suspicious reset in mali_kbase_pm_driver.c
<narmstrong> Oh ok I missed it, was looking at the patch ^^
<narmstrong> Did you try /disabling/ protected mode ?
<narmstrong> Maybe it’s enabled by default
<jernej> yeah, that's in SMC register set in U-Boot :)
Daaanct12 has joined #panfrost
Daaanct12 has quit []
Danct12 has joined #panfrost
Daanct12 has quit [Ping timeout: 480 seconds]
alpernebbi has quit [Quit: alpernebbi]
Xalius has quit [Quit: Leaving]
akanouras has joined #panfrost
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost