ChanServ 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
<alyssa> Curious.
<icecream95> I need a better power supply, RK3399 does not run well on 5V...
* icecream95 resets the board and sets a yet lower maximum CPU speed
<cphealy> If I'm working with a G52-MP8 but want to see what performance would be with a G52-MP4 using the same SoC, is there any viable method to have the GPU only use 4 of the 8 cores?
<icecream95> cphealy: See the panfrost_job_write_affinity function in panfrost.ko
<cphealy> cool, thank you!
<cphealy> What would be really cool to have is a Mesa/Panfrost env variable to specify the max cores to be used.
<cphealy> shameless hint...
<icecream95> kbase apparently has a core_mask file in /sys somwhere for that
<cphealy> icecream95: thanks, that's useful too for me.
<icecream95> And also a KBASE_IOCTL_SET_LIMITED_CORE_COUNT ioctl
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
camus has joined #panfrost
camus has quit []
camus has joined #panfrost
alpernebbi has quit [Ping timeout: 480 seconds]
alpernebbi has joined #panfrost
q4a has quit [Quit: Page closed]
q4a has joined #panfrost
<icecream95> alyssa: I think this might be why CRC data wasn't being written! js fault, js=0, status=IMPRECISE_FAULT
<icecream95> Umm, that was from something else.. I need to stop being so quick to spam IRC
Danct12 has quit [Remote host closed the connection]
icecream95 has quit [Ping timeout: 480 seconds]
guillaume_g has joined #panfrost
Danct12 has joined #panfrost
<CounterPillow> Got rk3588 to load a mainline based kernel and cry about missing rootfs last night. Goal for this month is to get far enough to where I can try valhall kernel patches :D
<CounterPillow> (I got a board sent to me for free \o/ it's beautiful and the silkscreen has typos)
Guest205 is now known as go4godvin
rasterman has joined #panfrost
pp2012 has joined #panfrost
pp2012 has quit []
Danct12 has quit [Quit: Leaving]
guillaume_g has quit []
icecream95 has joined #panfrost
<icecream95> CounterPillow: The v10 GPU in rk3588 is different to v9 Valhall, especially in terms of the kernel-hardware interface, so if you want panfrost.ko working by the end of the month, you have a lot to do
<alyssa> CounterPillow: Thanks for volunteering C:
<CounterPillow> D:
<CounterPillow> Hey I said *try* patches, not write them ;)
<alyssa> Try writing them, yeah.
<macc24> CounterPillow: i can pretend to do it while getting nothing done until i do it in one week if you get me a rk3588 device ;D
<CounterPillow> Sadly I don't think I have those right kinds of strings to pull to get more free dev boards out into the hands of people, I can just direct you to the 50% off coupon application :(
<macc24> CounterPillow: application?
<macc24> ah
<CounterPillow> it's basically the evb but with less connectors on it
<macc24> hmm i don't think i could afford it even with coupon
icecream95 has quit [Ping timeout: 480 seconds]
<CounterPillow> macc24: if you're actually serious about working on the board I don't mind wiring you the money
<macc24> CounterPillow: i'll think about it and maybe /msg you
<CounterPillow> alright :)
<macc24> don't expect much :v, disappointing other people is my hobby
<q4a> I love to see that people getting rk3588. I hope that radxa rock pi 5 will start shipping preordered items soon and than I can help with testing.
* macc24 wants to see rk3588 in a chromebook
icecream95 has joined #panfrost
<icecream95> CounterPillow: If you don't want to write kernel patches, you could try messing about with the command-stream while using mali_kbase.ko, I still have no idea what many of the registers are for
<q4a> I don't like notebooks. You cant replace cpu/mem and just keep all other stuff. Only full replacement is possible
<CounterPillow> Right now I'm focused on getting SD cards working, someone from collabora is tackling power domains and getting the pmu up and running, but I'll try messing with the mali driver once I have proper access to the BSP
<icecream95> q4a: You could just plug an SBC into a USB port and VNC to that (but then CPU speed is limited by power constraints)
<macc24> q4a: can you do that with a sbc?
<macc24> CounterPillow: lemme check i might have something
<q4a> macc24: write cote, play games)
<q4a> *cote=code
<q4a> I'm trying to use sbc as slow regular PC + VNC connection to main PC for big projects.
<macc24> huh
<macc24> i usually just ssh
<robmur01> hmm, the Rockchip platform bits don't actually look too horrible :D
<macc24> since a week or two ago i switched to having the fast computer connected to display and input directly
<macc24> robmur01: did you get used to mtk stuff?
<robmur01> macc24: heh, and if you wanted to feel good about MTK you could probably go find some Samsung vendor kernels ;)
<q4a> I recently launched the Perimeter game (ported on Linux using DXVK Native) on rk3288. There is no good Vulkan support - so I got only 7 fps
<q4a> And yes - it was lavapipe
icecream95 has left #panfrost [rcirc on GNU Emacs 28.1]
<macc24> robmur01: there IS a reason why i haven't yet touched my exynos machine seriously xD
Danct12 has joined #panfrost
<alyssa> re VNC, I had GLES tests passing on Valhall before the display lit up lol
<alyssa> OK, it's Friday, let's do some Vulkan stuff :>
* alyssa looks at jekstrand's tests
<alyssa> icerror: cannot lock ref 'refs/remotes/jekstrand/nir/lower-blend-fixes': 'refs/remotes/jekstrand/nir' exists; cannot create 'refs/remotes/jekstrand/nir/lower-blend-fixes'
<alyssa> uh
<alyssa> `git remote prune jekstrand`, eh
<macc24> alyssa: if u do vulkan on midgard i will personally show up at collabora office and hand you a cookie when i can afford it
Danct12 has quit [Quit: Quitting]
<macc24> :D
<macc24> plz
<alyssa> I don't work at the office, I don't usually eat cookies, and Vulkan on Midgard looks like it won't ever be supported. Sorry.
<alyssa> jekstrand: btw, https://rosenzweig.io/run-vk.sh is how I run things
<alyssa> seems faster than whatever funniness you're doing
<alyssa> alyssa/mesa:vk4 has our fixes collected
<alyssa> by our I mostly mean yours ;-)
<alyssa> Pass: 1270, Fail: 117, Crash: 39, Skip: 6660, Missing: 1414, Duration: 3:12, Remaining: 4:22:53
<alyssa> Tentativly looking good
<alyssa> vec2 32 ssa_3 = (float32)lod ssa_2 (coord), 0 (texture), 1 (sampler)
<alyssa> vec2 16 ssa_11 = f2f16 ssa_3
<alyssa> I wonder why this isn't getting optimized.
<q4a> I really want to learn how to write low-level code for the volkan driver. I have a great plan: I sold the suburban land and I can quit my job after the deal is done. So I will have 1 year to learn low-level, improve panvk and then find a new job.
<alyssa> nir_fold_16bit_sampler_conversions fixes it
<q4a> I would like to see more articles like https://www.collabora.com/news-and-blog/blog/2022/03/23/how-to-write-vulkan-driver-in-2022/ or blogs like https://icecream95.gitlab.io/ to get better understanding: "what's going on and how to get involved"
<macc24> alyssa: :|
<alyssa> macc24: What part?
<macc24> alyssa: no vulkan on migdard
<alyssa> I don't have 1000s of hours per week.
<alyssa> Neither does Icecream95, bbrezillon, or jekstrand.
<macc24> ok...
<alyssa> It's not a decision we made lightly.
<macc24> i need to learn gpu driver development
<q4a> alyssa: is it possible to port vulkan parts from bitfrost to midgard?
<q4a> or they are too different?
alyssa has quit [Quit: leaving]
Danct12 has joined #panfrost
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #panfrost
<robmur01> Different. Bear in mind that Midgard was pretty much already obsolete by the time Vulkan was even a thing.
<robmur01> (in fact Vulkan may have been one of the reasons for moving to a whole new ISA, but I don't know for sure)
<greenjustin> That's interesting, do kbase drivers even support vulkan on midgard devices?
<robmur01> I think they might, but are probably doing a ton in software
<macc24> they do
<macc24> a least on android
<q4a> but you nknow about vulkan driver for RPi 3: https://github.com/Yours3lf/rpi-vk-driver
<q4a> it's incomplete, but still allow to run quake 3
<robmur01> 2013 GPU "supporting" 2016 spec :D
<macc24> robmur01: intel larrabee supports vulkan too :D
<q4a> I have Mali-T760 MP4 for testing and hopefully developing
<jekstrand> alyssa: I don't know why my run times are so slow. Maybe I need a different power supply? How do I figure that sort of thing out?
<macc24> jekstrand: what are you using?
<jekstrand> vim3
<robmur01> a bad PSU would typically just make the whole system unstable - I'd look more for things like thermal throttling, slow storage, cpufreq/devfreq governors, general kernel config etc.
<CounterPillow> fwiw if this is linux-next then it's possible you're running into the ARM TF-A bug where the kernel can't get GPU/CPU clocks
<macc24> uhh
<macc24> is GALLIUM_HUD=fps broken only for me?
<CounterPillow> >Reason: TODO
<CounterPillow> sounds like you've hit an unfinished bit of code
<macc24> looks hardcoded to me
<macc24> oh crap i'm using mesa 21.3.8
<macc24> that's ancient
Danct12 has quit [Ping timeout: 480 seconds]
<robmur01> CounterPillow: IIRC all that's unfinished is filling in some user-friendly fault descriptions ;)
<macc24> what a nice first contribution!
<robmur01> FWIW our fault handling isn't entirely equivalent, but one can grep downstream for kbase_mmu_report_fault_and_kill for the "original" context
<greenjustin> I finally got around to building a fresh image for my jacuzzi. Stuttering seems to have gone away on GL applications at least!
<greenjustin> Performance isn't great, but that's probably because the frequency is fixed. Also I have a bunch of new weird problems with my cursor, and the login animation, but I'm guessing that's because I've screwed up something on the minigbm side
<cphealy> greenjustin: are you locked to the bootloader or some default freq that is the min for the GPU?
<cphealy> With the platform I'm on, the default freq is actually lower than the lowest GPU OPP.
<greenjustin> cphealy: Yup, for now. I'm trying out macc24's patch, along with my own hack to fix the clock reparenting
<greenjustin> well, I got the mt8183 frequency governing to work! probably a terrible way to do this though lol
<greenjustin> performance is definitely better at 800MHz, although I'm not sure how it stacks against ddk
<greenjustin> https://pastebin.com/RfdpspJJ if folks are curious
<greenjustin> err, sorry about the compatible string changes, those aren't actually part of it, that's just a chromeos hack
<greenjustin> Hmm, still getting stability issues. Not sure if it's my hacky clock patch or my hacky minigbm patch...
Danct12 has joined #panfrost
rasterman has quit [Quit: Gettin' stinky!]
dmh has joined #panfrost
q4a_ has joined #panfrost
icecream95 has joined #panfrost
anholt_ has joined #panfrost
anholt has quit [Ping timeout: 480 seconds]
<cphealy> greenjustin: Can you elaborate on the stability issues? Are they system stability or GPU stability only?
greenjustin_ has joined #panfrost
greenjustin is now known as Guest312
greenjustin_ is now known as greenjustin
<greenjustin> cphealy: GPU stability, sort of. One of the benchmarks I tried generated a ton of faults. But also, a lot of instability with what looks like the display controller?
<greenjustin> GL applications run no problem, but all bets are off if I try to scroll on a webpage
<greenjustin> I'm guessing the compositor doesn't like something about my setup
erle has quit [Remote host closed the connection]
erle has joined #panfrost