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
<anarsoul> see libv's blog posts, it depends on firmware (or ucode?), so it's extremely hard to RE
<uis> It's firmware with sheduler
<uis> AFAIK nvidia uses firmware too, but nouveau exists
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
<uis> What about Videocore4? Is VPU(main processor in gpu) RE alive? QPU(shader processor) isa aleready was published years ago.
<alyssa> uis: vc4 is all in mesa, and documented from broadcom iirc :)
<alyssa> well, for the QPU
<alyssa> haven't heard anything about the VPU side
<alyssa> but that's not meaningfully a GPU
vstehle has quit [Ping timeout: 260 seconds]
<uis> QPU isa is enough to compile and run shaders, but not enough to control QPU. And even to load ARM code. Because VPU starts before ARM cores.
stikonas has quit [Remote host closed the connection]
dstzd has quit [Quit: ZNC - https://znc.in]
dstzd has joined #panfrost
<uis> Will Lima backed by ARM?
icecream95 has joined #panfrost
kinkinkijkin has quit [Remote host closed the connection]
kinkinkijkin has joined #panfrost
vstehle has joined #panfrost
buzzmarshall has quit [Remote host closed the connection]
icecrea105 has joined #panfrost
icecream95 has quit [Ping timeout: 272 seconds]
icecrea105 has quit [Quit: Reconnecting]
icecream95 has joined #panfrost
sbbg has joined #panfrost
davidlt has joined #panfrost
mareko has left #panfrost [#panfrost]
lvrp16 has quit [Ping timeout: 260 seconds]
narmstrong has quit [Ping timeout: 260 seconds]
steev has quit [Ping timeout: 260 seconds]
cwabbott has quit [Ping timeout: 240 seconds]
robclark has quit [Ping timeout: 240 seconds]
ric96 has quit [Ping timeout: 240 seconds]
robclark has joined #panfrost
ric96 has joined #panfrost
narmstrong has joined #panfrost
lvrp16 has joined #panfrost
steev has joined #panfrost
cwabbott has joined #panfrost
guillaume_g has joined #panfrost
raster has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
raster has joined #panfrost
camus has joined #panfrost
kaspter has quit [Ping timeout: 272 seconds]
raster has quit [Quit: Gettin' stinky!]
camus is now known as kaspter
sbbg has quit [Remote host closed the connection]
clementp[m] has quit [Quit: killed]
nhp[m] has quit [Quit: killed]
l-as has quit [Quit: killed]
Ke has quit [Quit: killed]
nlhowell has joined #panfrost
nlhowell has quit [Ping timeout: 260 seconds]
mps has joined #panfrost
raster has joined #panfrost
<mps> yes, I see topic but I need Xorg with panfrost on gru-kevin rk3399 and looks like it still have problems on kernel 5.9-rc series
<mps> panfrost ff9a0000.gpu: js fault, js=0, status=INSTR_INVALID_ENC, head=0x21bc700, tail=0x21bc700
<mps> I read some forums and this issue/bug report https://gitlab.freedesktop.org/mesa/mesa/-/issues/3143
<mps> are there any fixes or guides/howtos for this problem
<icecream95> mps: What Mesa version are you using?
<mps> 20.1.5
<mps> alpine linux
<macc24> mps: latest version of 20.1.x series is 20.1.8
<mps> yes, I know but it is not yet upgraded on alpine linux
<mps> will the 20.1.8 fix this? if so I can try to build it locally and test
<macc24> maybe
<mps> ok, I can try. at the end nothing would be worse
<icecream95> mps: There weren't any significant changes between 20.1.5 and 20.1.8 so it's unlikely upgrading would fix anything
Ke has joined #panfrost
<mps> icecream95: aha, ok
<mps> I'm not sure is this bug in kernel driver, mesa or xorg
<icecream95> Do Wayland compositors (sway, weston etc.) work?
<mps> icecream95: I didn't tried because I don't have any experience with wayland. even don't know how to start it
<macc24> just run sway
<macc24> in tty
<mps> hmm, ok. will try to install it and see will it work for me
Ke has quit [Remote host closed the connection]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
<macc24> fun fact: supertux advanced rendering pipeline is broken with panfrost
<icecream95> macc24: I remember it was working before... Bisect time?
<macc24> icecream95: i already have qutebrowser and minecraft on my todo list
l-as has joined #panfrost
<macc24> it works with 20.1.8 but not git master
<mps> icecream95: sway starts, cursor works fine, clock is shown at the top, but can't get any reaction to clicks or keyboard except ctrl-alt-f1 switched to console but console doesn't react to any key, even ctrl-c
<macc24> so it works fine
<macc24> try left alt/super key + enter
<mps> macc24: looks like, but i have to learn how to use it
<mps> thanks
* macc24 runs away
nlhowell has joined #panfrost
warpme_ has joined #panfrost
kinkinkijkin has quit [Ping timeout: 244 seconds]
stikonas has joined #panfrost
<mps> hm, sway works but I can't do anything except move cursor. have to learn how to do basic tasks with it
Ke has joined #panfrost
clementp[m] has joined #panfrost
nhp[m] has joined #panfrost
<icecream95> mps: Try changing the "set $term" line in /etc/sway/config to something you have installed
<mps> oh thanks. it is alacritty which I didn't installed
<icecream95> alacritty doesn't work without setting PAN_MESA_DEBUG=gl3 anyway
<mps> ah
<mps> ok, got reaction to mod-shift-e (exit) so keyboard works
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
<icecream95> Maybe it was just from me enabling hugepages, but 5.8 has a lot worse OOM behaviour than with 5.6
camus has joined #panfrost
kaspter has quit [Ping timeout: 265 seconds]
camus is now known as kaspter
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #panfrost
<mps> sway starts but looks like wayland use rockchip card and not panfrost. xorg does select panfrost
<urjaman> that's... an odd thing to say, given how one needs to use the rockchip "card" to get any visual output :) (and the panfrost one to drive the GPU, tho that's afaik more of mesas job... ofc xorg is using mesa via glamor)
<mps> yes, strange. I expected that sway will do right thing
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
raster has joined #panfrost
guillaume_g has quit [Ping timeout: 272 seconds]
<macc24> urjaman: but for displaying stuff i think it should use rockchipdrm
<mps> solved 'js fault, js=0, status=INSTR_INVALID_ENC, head=0x21bc700, tail=0x21bc700' kernel msg and flickering playing with frequencies in /sys/class/devfreq/ff9a0000.gpu/
<mps> but responsiveness is sluggish, practicaly unusable
<macc24> use wayland
<macc24> my system is sluggish on xorg too
<mps> xorg is quite fine without panfrost on my system, just missing GL
guillaume_g has joined #panfrost
<icecream95> mps: Did you get any messages other than the INSTR_INVALID_ENC one?
<mps> yes, panfrost ff9a0000.gpu: gpu sched timeout, js=0, config=0x3300, status=0x53, head=0x69cd700, tail=0x69cd700, sched_job=00000000a6c13be5
<mps> goes in pairs with previous one
icecream95 has quit [Ping timeout: 240 seconds]
nlhowell has quit [Quit: WeeChat 2.9]
nlhowell has joined #panfrost
<robmur01> yeah, I don't think we cancel jobs on unhandled faults, so they'll just be left to time out
<tomeu> yep
nlhowell has quit [Ping timeout: 265 seconds]
kaspter has quit [Ping timeout: 240 seconds]
kaspter has joined #panfrost
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
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
buzzmarshall has joined #panfrost
gcl has quit [Ping timeout: 260 seconds]
gcl has joined #panfrost
kaspter has quit [Quit: kaspter]
konkrrrrrr has joined #panfrost
konkrrrrrr is now known as kinkinkijkin
guillaume_g has quit [Quit: Konversation terminated!]
MastaG has quit [Quit: The Lounge - https://thelounge.chat]
<uis> Are any datasheets with registers, their addresses avaliable in public?
<robmur01> no, but they really don't say much that you can't infer from kbase anyway
<alyssa> "kbase is a better reference"
<alyssa> robmur01: FTFY
<alyssa> ;)
<robmur01> bear in mind that the GPU hardware team's only "customer" for software-related documentation is the GPU software team ;)
<alyssa> uis: Worth noting in Mali parlance, "registers" specifically refers to the stuff that the kernel has to handle (mali_kbase from Arm, or panfrost in Linux)
<alyssa> So register docs would only help if you wanted to, like, port panfrost to BSD or something
<alyssa> in which case, kbase is reference code
<alyssa> "Data structures" or "command stream" is what we call the stuff in Mesa that has historically not been so open
<alyssa> (but other GPUs call "registers", confusingly)
MastaG has joined #panfrost
<uis> Registers, that controls power, clocks and other hardware stuff
<daniels> uis: all that you can find in linux/drivers/gpu/drm/panfrost/, or arm's kbase/
<daniels> mostly the power & clock control is per-SoC - how you light up a power regulator or configure clock frequencies will be 100% different on Rockchip vs. Allwinner vs. Exynos
<daniels> but you can find all the information (both code and helpful comments) in the panfrost & kbase drivers; those exist to allow userspace to submit the context descriptors as well as ISA command streams which allow you to actually execute commands
<daniels> if you're looking to port to a different OS, you should probably try to follow those drivers and expose a similar API to userspace
<robmur01> there are the core power management registers for managing the GPU's internal power domains (which are as straightforward as the kernel drivers should make them seem), but as daniels says, SoC-level power domains, clocks, regulators, etc. are all external to the GPU and not Mali-specific
<daniels> robmur01: if there's one thing Amlogic has taught me, it's that the first part of your statement is incorrect :P
<robmur01> daniels: I'm considering those independent of the "uh-on we buggered up the integration" power control override registers :P
<robmur01> of which the documentation is at best patchy anyway
<uis> drivers/gpu/drm/panfrost/panfrost_regs.h
<uis> Will arm provide datasheets?
davidlt has quit [Ping timeout: 260 seconds]
warpme_ has quit [Quit: Connection closed for inactivity]
kinkinkijkin has quit [Ping timeout: 272 seconds]
mps has left #panfrost [#panfrost]
raster has quit [Quit: Gettin' stinky!]
robmur01 has quit [Ping timeout: 264 seconds]
yann has joined #panfrost
kinkinkijkin has joined #panfrost
icecream95 has joined #panfrost
<unoccupied> alyssa: might aswell grab you in here
<unoccupied> alyssa: i've recently been auditing libreboot.git
<unoccupied> alyssa: I've been making sure that everything is all organized properly, and I'm compiling a list of COPYING and license files,
<unoccupied> so that the license for each part of libreboot is more obvious to other people looking at the git repo
<unoccupied> anyway, I realized something very important:
<unoccupied> the CSS for libreboot.org has no license
<unoccupied> you are its principle author, from when you created the current design for libreboot.org
<unoccupied> I myself have also been making changes to it over time
<unoccupied> Can you please retroactively declare a license for libreboot.org css?
<unoccupied> right now it falls under default copyright law, but you gave me permission to use it on libreboot.org
<unoccupied> so there's nothing illegal per se
<unoccupied> but people copy libreboot.org's git repo, which contains that file
<unoccupied> the best way to do it would be for you to submit a pull request, adding a license to the css, for the parts you did
<unoccupied> like, add license declaration to the css file
<unoccupied> i will then add my own retroactive declaration, for whatever license you chose
<unoccupied> hm
<unoccupied> actually, according to swiftgeek, the COPYING file (which declares GPLv3) makes GPLv3 the default for contributions, unless specifically stated in the contribution....
<unoccupied> I guess your license was GPLv3.
<unoccupied> ok, please disregard everything I wrote.... I'm double checking
<unoccupied> i'll get back to you, if I see that something needs to be done
<unoccupied> also, sorry for spamming up #panfrost.... I intended to PM you, but accidentally wrote all that here. sorry. I forgot to type /query
yann has quit [Ping timeout: 272 seconds]
icecream95 has quit [Ping timeout: 272 seconds]
icecream95 has joined #panfrost
<unoccupied> alyssa: if you can tell me though, what license you originally had in mind for it, that would clear things up
<unoccupied> the licensing is a mess right now. we're tidying things up and making things tidier
kinkinkijkin has quit [Remote host closed the connection]
robmur01 has joined #panfrost
robmur01_ has joined #panfrost
robmur01 has quit [Ping timeout: 272 seconds]
<alyssa> unoccupied: I don't know what I originally intended, but GPLv3 is fine.
<alyssa> I, Alyssa Rosenzweig, hereby license my changes to the libreboot.org CSS as GPLv3.
<unoccupied> thanks
<unoccupied> that's all i needed
<unoccupied> alyssa: swiftgeek wants to change the CSS to GFDL
<unoccupied> he's consolidating everything
<unoccupied> there's currently legal ambiguity on the exact license of the CSS: COPYING file in / says GPLv3, but there's a CC-BY-SA file in www/, and an fdl file in docs/, and individual pages say GFDL
<alyssa> I, Alyssa Rosenzweig, hereby license my changes to the libreboot.org CSS under the Creative Commons Zero license.
<unoccupied> ah ha
<unoccupied> yes :)
<unoccupied> that'd work nicely
<alyssa> pick what you want, it's trivial anyway :p
<unoccupied> yeah
<unoccupied> i'm just being super anal about everything
<unoccupied> libreboot licensing is a mess
<unoccupied> i'm trying to tidy it all up