BenG83 has quit [Remote host closed the connection]
BenG83 has joined #panfrost
hanetzer has quit [Quit: WeeChat 2.3]
cwabbott_ has joined #panfrost
cwabbott has quit [Ping timeout: 245 seconds]
cwabbott_ is now known as cwabbott
cwabbott has quit [Ping timeout: 252 seconds]
_whitelogger has joined #panfrost
cwabbott has joined #panfrost
BenG83 has quit [Quit: Leaving]
BenG83 has joined #panfrost
TheCycoONE has quit [Ping timeout: 244 seconds]
TheCycoONE has joined #panfrost
_whitelogger has joined #panfrost
adjtm has quit [Remote host closed the connection]
adjtm has joined #panfrost
<Lyude>
hm
<Lyude>
alyssa: something else we should clean up: there are a couple of headers in panfrost that have what look like copy pasted copyrights from other unrelated companies?
<Lyude>
pan_screen.h says it's written by vmware thanks to keith whitwell ;P
<alyssa>
Lyude: pan_screen.* -is- literally copypasted from other drivers (softpipe and vc4 mostly) :P
<alyssa>
Thank you, VMWare, for your continued support of free GPU drivers on ARM! :P
<Lyude>
alyssa: hehe; would still probably be good to change the copyright, all of that is just boilerplate so it's not really important to maintain previous copyrights
<Lyude>
or at least the headers
<alyssa>
mm, alright, I try to stay on the safe side
<alyssa>
but you're probably right here
<Lyude>
the actual code on the other hand we can say "Based on whatever"
<Lyude>
that would also work for all of the headers; so long as it has Panfrost somewhere on it since we are making our own changes to this
<alyssa>
do
<alyssa>
oops
<Lyude>
oh hey, looks like i might have misread something
<Lyude>
i'm trying some stuff to get the current kapi working and it looks like they didn't change as much as I thought
<Lyude>
which also makes it a lot less likely we're going to reuse this...
<alyssa>
oh?
<Lyude>
yeah, it looks like the handshake is still the same
<Lyude>
(noticing a lot more now that I've actually got everything cross compiling and setup :)
<alyssa>
wee!
<Lyude>
it looks like the big change is just that they got rid of the silly ioctl header
<alyssa>
OK
<Lyude>
actually, with the number of changes here I'm going to say it might just be a better idea to start using their headers like hanezter said
<Lyude>
*hanetzer
* Lyude
start big conversion
<Lyude>
alyssa: also: a note about something we'll need to figure out: i'm probably just stripping support for the legacy kernel uapi
<Lyude>
are you going to be able to work with that?
<Lyude>
e.g. do your machines have access to newer kernel versions
<alyssa>
I don't know
<alyssa>
THere's allegedly mainline support for rk3399 but it's unclear if it's ready for daily use and this is my school machine
<alyssa>
I'm keeping legacy support in userspace at least.
<alyssa>
Do whatever you need in kernel space; I'll catch up when I can :)
<Lyude>
alyssa: well that's the thing; i'm talking userspace here
<Lyude>
the reason I want to do that is because then we can have a lot more systems (including mine and hanetzer's) work with this out of the box
<Lyude>
(also-i can handle all the code parts in mesa for that)
<Lyude>
(was kind of my plan anyway)
<Lyude>
i also don't mind just helping you get the newer kernel module working on your machine if that's the issue
_whitelogger has joined #panfrost
<Lyude>
alyssa: that means we need to keep maintaining both until we get a kernel module, and that also means people are going to need to be able to test against both versions to make sure changes don't break things, unless you're going to test everything
<Lyude>
alyssa: also-i'm not planning on doing this on master yet jfyi
<Lyude>
not until things actually work well on my end
<alyssa>
OK? Maintaining both is trivial?
<alyssa>
99.9% of code doesn't affect the kernel stuff, so if any non-kernel-related changes will work on both (or neither)
<alyssa>
And I do test code?
<Lyude>
well yeah-that's why I offered to help you get the kernel module working on your machine
<alyssa>
That's not the issue
<alyssa>
It's that this is a known good (i.e. stable) kernel, and any deviation from that is, well, risky for stability
<alyssa>
So until it's bullet proof, I'm staying on the known-good
<alyssa>
The good news is that.. what I use doesn't affect your kernel work, since having support for one API is not mutually exclusive with the other :)
<Lyude>
actually it does-basic context setup from panfrost_nondrm.c doesn't even work on the latest arm kernel driver
<alyssa>
...and?
<alyssa>
Having two code paths is not the end of the world; there's very little code at stake
<Lyude>
what kernel are you running atm\
<alyssa>
PMed
<Lyude>
alyssa: I understand where you're comign from i'm just hesistant because you'll have to keep testing all of my changes to make sure that I'm not breaking things on your kernel
<alyssa>
I have to test all changes to userspace anyway, regardless
<alyssa>
:P
<Lyude>
which i guess is one thing but i think we could at least give getting something else running on your machine a shot, especially since most of the people using this aren't using the old kernel drivers
<Lyude>
yeah; that is true
<alyssa>
What do you peg me for, someone who just pulls random code and pushes it to master without testing? :P
<Lyude>
alyssa: remember it's been a while since i've actually worked on the same codebase as you :p
<alyssa>
this is true
<Lyude>
and the way you handle things is definitely different (in a good way!) then you did before
<Lyude>
anyway-i'm just hesistant because 1-i can help with kernel issues anyway and 2-I'd like to actually know that getting something else running on your machine isn't just as simple as compiling a new mali_kbase
<Lyude>
if it's a chromeos kernel it might not be terribly painful to just update the mali kbase in there
<Lyude>
and i don't mind handling that
<alyssa>
I'm just.. touching about my kernel, okay :P
<Lyude>
...i kind of do this every single rhel release so, i can't emphasis that last part more strongly
<Lyude>
i also don't want to have to have three different kernel apis, assuming we do have our own kernel module eventually
<alyssa>
wait, 3?
<alyssa>
I thought it would be "legacy grossness" and "transient whatever-the-in-dev-kernel-module-uses"
<alyssa>
No?
<Lyude>
there would be the old uapi, the current mali kbase uapi that devices building the driver from source (like my vim2) will need, then the panfrost kernel
<Lyude>
(old uapi being the one your laptop uses)
<alyssa>
I thought #2 would morph into #3 as #3 is devved?
<Lyude>
tbh maybe, but I'm not far enough to really know yet
<Lyude>
also: do mainline kernels not work for your laptop?
<Lyude>
heyheyey
<Lyude>
basic context works now
<Lyude>
alyssa: also we have some time to figure out what we want to do here: I expect this to take a bit of time
<Lyude>
alyssa: also: we still have any kind of way to dump out the ioctls that it's sending between us and the kernel
<Lyude>
wai
<Lyude>
hold on there is no way context creation is all we needed to update
<Lyude>
had a moment of hope there but realized it wasn't anything-glmark2 runs, but no image seems to come on screen before it hits oom in a second or two