alyssa changed the topic of #panfrost to: Panfrost - FLOSS Mali Midgard & Bifrost - https://gitlab.freedesktop.org/panfrost - Logs https://freenode.irclog.whitequark.org/panfrost - Discord Discard
<mearon> btw, archlinuxarm provides a mainline kernel for kevin
<mearon> I'm using it and it's running fine
<mearon> (but I have a light workload / simple use case only)
<Lyude> alyssa: you have a kevin right?
<HdkR> Lyude: Zero devices running mainline
<HdkR> The XU4 is probably the closest to mainline that I have
<Lyude> hm
TheCycoTWO is now known as TheCycOONE
TheCycOONE is now known as TheCycoONE
<Lyude> alyssa: got an example of a typical gpu address for a jc?
<Lyude> oh-found where we're passing it the address it's faulting at
<Lyude> https://paste.fedoraproject.org/paste/P3wedwJu11xqp9BD5EvsTw (line numbers probably slightly off since i've got some debugging printfs in there)
<alyssa> Lyude: erm, no, the header is definitely the same
<alyssa> panwrap is just spitting back what we send; they're using the same hardware
<alyssa> If panwrap is seeing junk, we're sending junk
<alyssa> And I'm positive the header is the same, since it's same between T6xx and T860 ;)
<alyssa> Lyude: I do have a kevin
<alyssa> But I'm skeptical of the level of fine of "running fine"
<alyssa> mearon: How's audio support?
<alyssa> Lyude: It'll be junk because of the mmap issue
<alyssa> We're saying the GPU address we want to use is actually the cookie address
<alyssa> Except the cookie isn't mapped to anything, it's just a place value
<alyssa> (The panfrost_memory gpu has the cookie there)
<alyssa> And then we're uploading and using that as the base
<alyssa> So it's like if you we're 1024 bytes on the stack
<alyssa> And we're setting jc to 0xDEADBEEF + 1024
<alyssa> The memory allocator doesn't care; the hardware and panwrap do ;P
<alyssa> So the issue is isolated to allocate_slab; you need to have real addresses for both CPU and GPU
<alyssa> mmap does the gap. I don't know the new kernel so I can't tell you what changed
<alyssa> I know they've changed how they do mmap a dozen times so
<Lyude> alyssa: i was just about to come back to the computer and tell you that lol
<Lyude> erm-about the mmap failing
<Lyude> but yeah, i was about top go see what the kernel mmap function is actually doing
<alyssa> Oops? :P
<Lyude> at the very least it does seem like the gpu is working
<Lyude> and i think I figured out the weird SHAREABILITY issue when the GPU turns on is probably just us not clearing some kind of state in the platform code, which means the GPU just kind of comes up and probably fires off spurious interrupts until the kbase driver resets the GPU
<Lyude> which makes sense because the platform code i have is kind of hacked up right now :s
<Lyude> so now just to figure out what mmap is doing
<Lyude> alyssa: what's the kbase api version on your machine again?
<Lyude> oh HEY :D [21791.489854] mali d00c0000.gpu: error detected from slot 0, job status 0x00000058 (DATA_INVALID_FAULT)
<Lyude> progress
<alyssa> That _is_ progress!
<alyssa> kbase api is, uh,
<TheKit> can Panfrost still be tested with kernel driver from Mali and XShm output?
<Lyude> TheKit: yes, if you have the right mali_kbase version
<Lyude> right now i'm working on getting it workig on the latest r27 release
<TheKit> before it worked back in august or september, I think
<Lyude> if it worked for you back then then it should still work
<TheKit> but I see screenshot from Weston - was it run on X or there is support for buffer sharing now?
<Lyude> i think it is still on X
<Lyude> or rather-yes, it is
<Lyude> also; do you have any idea what the invalid data might be coming from?
<tomeu> robclark: I think we are still undecided on whether to have a single kernel driver for utgard and midgard/bitfrost
<tomeu> Lyude: you aren't using the devicetree platform?
<tomeu> I think that, with MR #1 and a DT that complies with the mainline gpu bindings, things should just work
<tomeu> without any code changes
pH5 has joined #panfrost
metaverse has quit [Quit:]
BenG83 has quit [Ping timeout: 250 seconds]
<mearon> alyssa: audio is the only thinng I haven't gotten to work yet (since it's not very important for me)
<mearon> I forgot about that
<mearon> all the other stuff, I can't remember anything being difficult / not working OOTB, OTOH
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
_whitelogger has joined #panfrost
metaverse has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
<robclark> tomeu, well, I guess the biggest question is whether the same uapi for cmd submission would work for both or not? I'd assume a single driver would get you some amount of re-use..
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
<tomeu> anybody knows under which conditions KBASE_IOCTL_JOB_SUBMIT wouldn't return?
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
cwabbott_ has joined #panfrost
cwabbott has quit [Ping timeout: 245 seconds]
cwabbott_ is now known as cwabbott
cwabbott has quit [Ping timeout: 250 seconds]
metaverse has quit [Remote host closed the connection]
metaverse has joined #panfrost
unoccupied has quit [Ping timeout: 268 seconds]
cwabbott has joined #panfrost
unoccupied has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
<Lyude> tomeu: it doesn't-but i'm fairly sure I know the reason why
rhyskidd has joined #panfrost
<Lyude> tomeu: have you managed to get any working demos on your panfrost setup yet?
unoccupied has quit [Ping timeout: 268 seconds]
metaverse has quit [Ping timeout: 268 seconds]
pH5 has quit [Quit: bye]
cwabbott has quit [Ping timeout: 252 seconds]
BenG83 has joined #panfrost
cwabbott has joined #panfrost
pH5 has joined #panfrost
cwabbott has quit [Ping timeout: 252 seconds]
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
cwabbott has joined #panfrost
anarsoul|2 has joined #panfrost
unoccupied has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
cwabbott has quit [Ping timeout: 252 seconds]
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
BenG83 has quit [Quit: Leaving]
yawniek has joined #panfrost
cwabbott has joined #panfrost
rhyskidd has quit [Quit: rhyskidd]
rhyskidd has joined #panfrost
<Ashy> so the rockpro64 has not yet been mainlined right?
<Ashy> i can't find any mention of it in torvalds tree
<anarsoul|2> Ashy: it's in linux/arch/arm64/boot/dts/rockchip
<anarsoul|2> rk3399-rockpro64.dts
<Ashy> oh cool
<Ashy> dunno how i missed that
<Ashy> ok i'm gonna order one then
<anarsoul|2> Ashy: well, not everything is supported yet
<anarsoul|2> I'm not sure if HDMI is working
<anarsoul|2> ask on #linux-rockchip what's missing for rk3399 in mainline
<Ashy> that's ok i know it's a work in progress
<Ashy> long term plan is to learn me some kernel dev for great good
<Ashy> oh if hdmi isnt working, how's the edp support?
<Ashy> i have an old thinkpad panel that looks to be 30pin edp
cwabbott has quit [Ping timeout: 252 seconds]
cwabbott has joined #panfrost
cwabbott has quit [Ping timeout: 252 seconds]
cwabbott has joined #panfrost
cwabbott has quit [Ping timeout: 252 seconds]