alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - Logs https://freenode.irclog.whitequark.org/panfrost - <daniels> avoiding X is a huge feature
camus has joined #panfrost
kaspter has quit [Ping timeout: 264 seconds]
camus is now known as kaspter
chewitt has quit [Read error: Connection reset by peer]
chewitt has joined #panfrost
cphealy has quit [Read error: Connection reset by peer]
urjaman has quit [Read error: Connection reset by peer]
urjaman has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
raster has joined #panfrost
camus has joined #panfrost
kaspter has quit [Ping timeout: 272 seconds]
camus is now known as kaspter
nerdboy has quit [Ping timeout: 265 seconds]
stikonas has quit [Remote host closed the connection]
nerdboy has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
italov has joined #panfrost
tgall_fo_ has joined #panfrost
tgall_foo has quit [Ping timeout: 264 seconds]
tgall_foo has joined #panfrost
tgall_fo_ has quit [Ping timeout: 264 seconds]
ids1024 has quit [Quit: WeeChat 2.8]
agrisis has joined #panfrost
<agrisis> for bifrost g31, will panfrost gles work in drm/kms or is wayland required?
camus has joined #panfrost
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
<HdkR> agrisis: Would work for all
<HdkR> The Wayland limitation is a Mali blob video driver limitation
<agrisis> HdkR: hi, that is great news.
<agrisis> I'm using the libmali blob currently on the odroid go advance (g31 bifrost), last I checked I could only get panfrost to work with wayland
<agrisis> if I wanted to try out the recent panfrost developments, should I try a particular git branch/commit or should mesa 20.2.2 have them?
<HdkR> master has pretty much everything
<HdkR> 20.3 should be out in a week or so if you want "latest"
<agrisis> HdkR: ok great, I'm on void linux so I can compile against mesa git HEAD as well
<HdkR> nice
<agrisis> you all are doing a great job
<agrisis> I assume kernel 5.10 (or master) should be OK for running some performance tests?
<HdkR> Probably but I don't tracker kernel all that much
<agrisis> for some of our apps we're measuring a lot of time spent in the libmali-bifrost-g31-rxp0-gbm.so library, sometimes over 30%
<agrisis> very hopefully that eventually panfrost performance will exceed the blobs
<agrisis> s/hopefully/hopefull/
<HdkR> Potentially. The Mali blob has known prickly edges that kill performance and always has
<HdkR> Emulators in particular tends to cause the blob heartburn
<agrisis> yes it is emulators that I'm mostly concerned about
<HdkR> Be aware that Panfrost' Bifrost support will have less features than Midgard
<HdkR> and probably has optimization opportunities that haven't been done yet :P
<agrisis> https://dpaste.com/38D4X6LCW is one of my perf runs on ppsspp on bifrost
<agrisis> agreed, it will be intersting to try out nonetheless
<HdkR> That's not even the worst I've seen out of the blob
<agrisis> s/intersting/interesting/ (sorry can't type today)
<agrisis> are you aware of any kernel or dts or system level tweaks to help the GPU along?
<agrisis> so far, I just set the governor to 'performance' and ensure it's clocked at the max
<HdkR> The Mali blob the best thing you can do is just set the GPU clocks to the max
<HdkR> Since it usually stalls waiting for GPU work to complete
<agrisis> and regarding panfrost, I reckon using kms/drm (gbm?) should be faster than using retroarch or some emu in wayland?
<HdkR> I don't believe it has significant performance differences
italov has quit [Ping timeout: 246 seconds]
<HdkR> Mali blob had massive performance differences between X11, fbdev, and wayland APIs because of problems in their driver more than anything else
camus has joined #panfrost
<agrisis> we're still stuck on r6, I updated to a later one I think r16 but performance didn't seem to have changed
icecream95 has joined #panfrost
<HdkR> Can't say that panfrost will be faster atm, but at least you'll be able to see where the CPU time goes
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
<agrisis> at least with void's rolling updates we'll auto-get future improvements
<agrisis> sorry I don't know anything about graphics programming except for 2D stuff, otherwise I'd love to help
camus has joined #panfrost
kaspter has quit [Ping timeout: 246 seconds]
camus is now known as kaspter
<chewitt> agrisis, which distro/app platform are you working on?
<agrisis> chewitt: void linux on odroid go advance
urjaman has quit [Ping timeout: 240 seconds]
<chewitt> ahh, okay
<chewitt> I'm hoping there's an uptick in structured emulator testing to shake out the bugs or create repeatable test cases
davidlt has joined #panfrost
<agrisis> I'm happy to test it out, I maintain one of the main OS distributions for the odroid go advance. I'm also the main contributor to retroarch for this platform.
<agrisis> thankfully I don't play any 3D games so my personal OGA I don't even install the mali blobs but there is a lot of interest in getting ppsspp, dreamcast performance reigned in on this platform as it looks like we may be stuck on the rk3266 for a while
<chewitt> I'm encouraging the Lakka folks to rebase against the newer LibreELEC codebase
<chewitt> (which I work on)
<agrisis> also the duckstation developer Stenzek has tried to make his psx emu faster on the OGA but complains that in his measurements too much time is spent in the mali library
<agrisis> you work on LibreELEC?
<chewitt> indeed
<agrisis> nice to meet you =)
<chewitt> aye :)
<HdkR> Stenzek is good people
<agrisis> yeah Stenzek is awesome, I've been working with him pretty closely on the OGA performance area
<agrisis> chewitt: I've never tried LibreELEC but I assume it's similar to EmuELEC? Also, I've seen plenty of good work in your repos
<agrisis> chewitt: I see it's mainly a kodi distribution, so not related to EmuELEC
<chewitt> EmuELEC tracks the CoreELEC fork I think, which uses the Amlogic vendor kernel
<chewitt> LE is (for better or worse) firmly committed to chasing the mainline kernel
<agrisis> ah, so there are many *ELEC variants
<chewitt> yeah, it became rather fragmented over time
<agrisis> I mainly built and released RRVL due to my own want to have a minimal emulation setup for the oga and figured why not share it
<agrisis> I did consider buildroot but I quite liked the minimalism and speed of runit compared to systemd especially for embedded
<chewitt> I think this covers why there are so many :) https://xkcd.com/927/
<agrisis> also the void ports tree is quite amenable to cross compilation
<agrisis> haha I love that one
<agrisis> yeah it's unfortunate that the oga ecosystem is also quite fragmented with over 5-7 different images most of them overlapping to a great extent
urjaman has joined #panfrost
<agrisis> now we have to contend with clones and so these initial images are being forked further
<agrisis> my goal is to move from kernel 4.4.x to 5.10+ w/ panfrost
<HdkR> If you have a 5.10+ kernel image to flash to my GoA then I'd be happy :P
<icecream95> agrisis: Can confirm that runit is way faster than systemd, especially once I ripped out the stuff I didn't need from /etc/runit
<agrisis> icecream95: runit is light years faster and easier to manage than systemd I feel on this platform (not a systemd hater as I run it on my desktop)
<agrisis> HdkR: I'll have to rebase and probably do some more fixups. From my notes, suspend was broken, sound control was broken but sound worked, and I didn't have a working wifi driver
<HdkR> Not a lot of losses
<chewitt> what wifi is in the OGA?
agrisis has quit [Ping timeout: 272 seconds]
<macc24> HdkR: i have a 5.10 kernel running on GoA, https://github.com/Maccraft123/deb-to-go/
<macc24> chewitt: esp32 connected via sdio iirc
nlhowell has joined #panfrost
kaspter has quit [Ping timeout: 246 seconds]
kaspter has joined #panfrost
archetech has joined #panfrost
rak-zero has joined #panfrost
<icecream95> So they replaced Natt with Odin? Hopefully that's an upgrade, not a downgrade…
<chewitt> I've been told that it's a bifrost design to reduce time-to-market (avoiding software bring-up delays) but the source is not anyone official so that's firmly in the "unfounded rumour" category
<icecream95> chewitt: In kbase, tODx doesn't have IDVS_GROUP_SIZE, which the other Valhall GPUs (including tNAx) do have, so it seems possibile it's bifrost
icecream95 has quit [Ping timeout: 240 seconds]
raster has joined #panfrost
_whitelogger has joined #panfrost
davidlt has quit [Ping timeout: 240 seconds]
stikonas has joined #panfrost
rando25892 has joined #panfrost
randohplistenrs has quit [Read error: Connection reset by peer]
* macc24 spotted a regression(?), https://bpa.st/Y3KQ it has happened between 2 days ago and today, no idea what can be the cause. i git pulled mesa, compiled it and installed it, there was no change in kernel
<macc24> i opened sway and 2 terminal windows
<macc24> it happens when opengl happens
<macc24> there are also display issues, ranging from flickering part of window, extra-low framerate and freezes
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #panfrost
<robmur01> chewitt: All Bifrost GPUs have been released and have actual product names... go figure ;)
<chewitt> it's on my "something to worry about if/when it actually ships" list :)
<bbrezillon> macc24: mind bisecting the issue?
<macc24> bbrezillon: i will try
<macc24> kmscube works fine hmm
davidlt has joined #panfrost
clementp[m] has quit [Quit: Bridge terminating on SIGTERM]
wiizzard has quit [Quit: Bridge terminating on SIGTERM]
exit70[m] has quit [Quit: Bridge terminating on SIGTERM]
l-as has quit [Quit: Bridge terminating on SIGTERM]
Ke has quit [Quit: Bridge terminating on SIGTERM]
l-as has joined #panfrost
<macc24> 690232c90f good
karolherbst has joined #panfrost
<HdkR> hmmmmm, Odin GPU
exit70[m] has joined #panfrost
Ke has joined #panfrost
clementp[m] has joined #panfrost
wiizzard has joined #panfrost
<bbrezillon> macc24: I'm more interested in the first bad one ;)
<macc24> bbrezillon: git bisect told me that 00360cd5c85e0b5c52821f2ba6d1bd6964215efd is broken
<macc24> testing if it's true
<macc24> yep it's bad one
<macc24> master with this reverted is good
<bbrezillon> macc24: how do you trigger those faults?
<macc24> i just launch sway, open 2 terminal windows and switch mouse cursor between them
<macc24> or run glxgears
<bbrezillon> ok, reproduced here, I'm on it
karolherbst has quit [Ping timeout: 268 seconds]
karolherbst has joined #panfrost
italov has joined #panfrost
italov has quit [Quit: leaving]
italove has joined #panfrost
alpernebbi has joined #panfrost
nlhowell has quit [Ping timeout: 240 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
dstzd has quit [Quit: ZNC - https://znc.in]
jernej has joined #panfrost
gcl_ is now known as gcl
rak-zero has quit [Ping timeout: 272 seconds]
dstzd has joined #panfrost
<thecycoone> robmur01: thanks!
<alyssa> chewitt: icecream95: Odin is Valhall, to my knowledge.
<alyssa> (Based on kbase.)
<alyssa> tODx listed as GPU model 10.2
<alyssa> As far as I know, Bifrost only covers v6 and v7, and then v8 was Valhall but I don't see any evidence in kbase of v8 actually existing, so v9 is the first valhall
<alyssa> Note G77 was v9
<macc24> v-what?
<alyssa> You know. Valhalla. For when the soul moves on.
<HdkR> alyssa: Was it Natt that was Valhall as well?
<alyssa> HdkR: Yes, I believe so.
<macc24> alyssa: v6, b7, v9?
<macc24> v7*
<robmur01> HdkR: product-formerly-known-as-Natt has been shipping in silicon for a while ;)
<HdkR> robmur01: I definitely have Valhall in my hands yes :P
agrisis has joined #panfrost
<robmur01> Huh? No, there was a bunch of rework in the panfrost driver itself to connect the supply regulator(s) to the OPP table and make voltage scaling actually work again
<bbrezillon> macc24: this should fix your problem => https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7797
<macc24> bbrezillon: ok. lemme pull this patch and test it
<macc24> bbrezillon: yep it fixes the issue
<bbrezillon> macc24: thanks for testing
<macc24> bbrezillon: btw video playback in firefox on git master makes screen freeze, mpv is fine
<bbrezillon> is that a regression?
<macc24> no
<macc24> but now that i tested it. it's a lot better
<macc24> instead of freezing completely there is occasional https://bpa.st/BP3Q
embed-3d has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
embed-3d has joined #panfrost
alpernebbi has quit [Ping timeout: 240 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
jernej has quit [Client Quit]
jernej has joined #panfrost
br has joined #panfrost
<br> hello again
<br> just a quick update that I have modesetting DRM backend UP and running on RK3399 under FreeBSD
<br> mesa-panfrost built fine as well with clang under freebsd
<br> So I'm moving towards panfrost kernel support
<br> The question arise if some panfrost kernel driver headers could be re-released under BSD license?
<br> I.e. panfrost_features.h and panfrost_issues.h
<br> robher: Are you fine to re-release these under dual-license?
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
kaspter has quit [Ping timeout: 256 seconds]
dstzd has quit [Quit: ZNC - https://znc.in]
jernej has joined #panfrost
dstzd has joined #panfrost
kaspter has joined #panfrost
dstzd has quit [Client Quit]
dstzd has joined #panfrost
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
jernej has quit [Remote host closed the connection]
dstzd has quit [Quit: ZNC - https://znc.in]
dstzd has joined #panfrost
jernej has joined #panfrost
dstzd has quit [Client Quit]
dstzd has joined #panfrost
<robher> br: Those are copied from the Arm vendor driver, so we'd need to check within Arm. raster, something you could look into?
karolherbst has quit [Remote host closed the connection]
<alyssa> br: neat :)
<raster> robher: gah dang. yeah. gpl ...
<raster> let me chase up what we can do about releasing these under a bsd license as well
<raster> br: i think i'll need a list of what you need as this is going to have to go through a legal approval cycle - i know where to start with that but i know i'll need to know the exact list of files so they go through IP review for a license change.
<br> panfrost_drm.h is already MIT which I think is fine
<raster> :)
<raster> i don't see any actual core issues with these being released BSD or MIT - they are really just a bunch of "bit x is this thing"
<br> panfrost_regs.h would be good to re-license too, but not too critical since I can simply use mali_midg_regmap.h in replace of it (it is Apache)
<raster> (with a name)
<br> robher: so these three: panfrost_features.h, panfrost_issues.h, panfrost_regs.h
<alyssa> br: Isn't the whole driver GPL? I'm confused.
<alyssa> Or is it ok if the headers are MIT but the code itself is GPL? I don't know how things work in BSD land.
<raster> br: well alyssa makes a good point. you will be basing your driver on the panfrost kernel driver code
<raster> that could be considered a derivative work...
<raster> (ie you read it and write code that is substantially similar and based on it)
<raster> i am not a lawyer... but this is getting into a grey zone
<br> alyssa: well we can't use the driver anyway even you re-license it under BSD, because drivers API and the interfaces to OS subsystems are all different, so we have to write a new driver
<br> Also we don't have any bits for LPAE page tables management, so I will have to write them for freebsd/arm64 first (not a part of panfrost driver)
<alyssa> br: Oh, I was under the impression BSD had some frankenstein mechanism for importing some types of Linux kernel drivers, assumed DRM was covered.
<robher> We'd want the headers dual licensed GPL and BSD or MIT.
<alyssa> (Maybe that was networking? Who knows.)
<alyssa> ("Who?" "Probably br knows.")
<br> I heard such thing exists for network drivers, but I never saw anyone actually using it
<alyssa> Ah.
<alyssa> br: Anyways, if you're rewriting anyway, I don't think any of what you care about from those files is copyrightable.
<alyssa> It's just data.
<alyssa> And not the creative kind. Literally just a listing of bugs in chips. (Most of features.h isn't even used in either driver.)
<raster> alyssa: indeed
<macc24> br: isn't linuxkpi still a thing?
<raster> but...
<raster> we are talking lawyers here
<raster> :)
<alyssa> raster: Yes. But if br is writing a greenfield panfrost driver, and they happen to write their own issues.h file from scratch that happens to be functionally identical to ours, well, it's their copyright, they own it, right? ;)
<raster> alyssa: they can and in fact that is exactly what i would do. i wouldnt want to use the same files
<br> Yeah I don't want to re-implement features.h, it will be the same file (but without comments)
<raster> i'd probably want to structure them around how i write my driver and my namespacing
<raster> those originals tell me that "gpu variant g31 has warping"
karolherbst has joined #panfrost
<raster> but the question stands... if you have a tinfoil legal hat - even looking at the panfrost gpl src taints your src as a possible derivative work.
<raster> i personally do not have such a tinfoil hat. the panfrost src is a reference on facts - how does this hw function. if you copy the algorithms and solutions to that .. then you may have issues, but if you just use it as a source of facts... you are ok.
<raster> but again - i am not a lawyer.
kherbst has joined #panfrost
<br> it should be fine
karolherbst has quit [Ping timeout: 272 seconds]
<raster> i'll look at the licensing of these files for you
<raster> panfrost_regs.h, panfrost_features.h, panfrost_issues.h
kherbst has quit [Remote host closed the connection]
camus has joined #panfrost
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
<br> raster: thank you
<raster> :)
* robmur01 isn't sure what to think about the prospect of anyone copying Linux's io-pgtable abstraction... :/
archetech has quit [Quit: Konversation terminated!]
karolherbst has joined #panfrost
karolherbst has quit [Client Quit]
karolherbst has joined #panfrost
archetech has joined #panfrost
tlwoerner has quit [Quit: Leaving]
davidlt has quit [Ping timeout: 272 seconds]
camus has joined #panfrost
kaspter has quit [Ping timeout: 240 seconds]
camus is now known as kaspter
raster has quit [Quit: Gettin' stinky!]
popolon has joined #panfrost
cphealy has joined #panfrost
raster has joined #panfrost
tlwoerner has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #panfrost
stikonas has quit [Remote host closed the connection]
stikonas has joined #panfrost
archetech has quit [Quit: Leaving]
icecream95 has joined #panfrost