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
cwabbott has quit [Quit: cwabbott]
cwabbott has joined #panfrost
vstehle has quit [Ping timeout: 240 seconds]
afaerber has quit [Ping timeout: 260 seconds]
icecream95 has joined #panfrost
afaerber has joined #panfrost
vstehle has joined #panfrost
remexre has quit [Quit: WeeChat 2.8]
remexre has joined #panfrost
davidlt has joined #panfrost
buzzmarshall has quit [Remote host closed the connection]
warpme_ has quit [Quit: Connection closed for inactivity]
cwabbott has quit [Quit: cwabbott]
cwabbott has joined #panfrost
cwabbott has quit [Client Quit]
cwabbott has joined #panfrost
guillaume_g has joined #panfrost
warpme_ has joined #panfrost
raster has joined #panfrost
yann has joined #panfrost
l-as has joined #panfrost
stikonas has joined #panfrost
cwabbott_ has joined #panfrost
cwabbott has quit [Ping timeout: 272 seconds]
cwabbott_ is now known as cwabbott
macc24 has joined #panfrost
nerdboy has quit [Ping timeout: 260 seconds]
rah has left #panfrost [#panfrost]
kaspter has quit [Quit: kaspter]
icecream95 has quit [Quit: leaving]
ggardet has joined #panfrost
guillaume_g has quit [Ping timeout: 240 seconds]
ggardet has quit [Quit: Konversation terminated!]
guillaume_g has joined #panfrost
ggardet has joined #panfrost
guillaume_g has quit [Ping timeout: 256 seconds]
ggardet is now known as guillaume_g
tomboy64 has quit [Ping timeout: 240 seconds]
tomboy64 has joined #panfrost
ggardet has joined #panfrost
guillaume_g has quit [Ping timeout: 256 seconds]
kallisti5 has joined #panfrost
<kallisti5> hey! A whole panfrost channel
<kallisti5> just opened this trying to run Fedora 32 on my Tinkerboard (RK3288) https://bugzilla.kernel.org/show_bug.cgi?id=208331
ggardet is now known as guillaume_g
<robmur01> yikes, so we abort the driver probe due to an error, but somehow end up in the IRQ handler trying to service imaginary job faults :/
<robmur01> you don't have CONFIG_DEBUG_SHIRQ enabled by any chance?
<kallisti5> robmur01: nah.. just the stock fedora 32 kernel.
<kallisti5> let me check the config though
<robmur01> (if you just want stuff to work, then focus on why devfreq fails in the first place - you might be missing the config for the governor)
<kallisti5> CONFIG_DEBUG_SHIRQ=y
<robmur01> however it's not good that we can go that badly wrong in a failure path... I'll have to try breaking devfreq on my RK3288 box to see if I can repro
<kallisti5> looks like this kernel has that enabled
<kallisti5> robmur01: you know if upstream u-boot should have framebuffer on the RK3288 / Tinkerboard? Not getting any video at all on this board
<robmur01> aha, so it may be partly our fault for not having a sufficiently robust IRQ handler, but it's also partly Fedora's fault for leaving debug options enabled in shipping kernels :P
<kallisti5> mmhm :-)
<kallisti5> also! while i'm her and have someone in the know around. I wanna broadcast my annoyance about SOC's and the 10,000 different ways they boot.
<kallisti5> </spam>
<robmur01> U-boot display seems OK on my box using the Firefly config; IIRC the Tinker config is rather different, so might not have it enabled
<kallisti5> robmur01: that makes sense. I'm a little bummed about the Tinkerboard. Only real images it supports are the ones Asus provides... never had much luck outside of Asus's Debian images.
<robmur01> meh, desktop PCs only seem nicer because the motherboard vendors write all this low-level crap for you ;)
<kallisti5> lol. I'm converting Haiku to boot from u-boot -> EFI on arm.
<kallisti5> mostly because I *really* miss bios services
<kallisti5> also, parsing fdt and shipping a bunch of "baby SOC uart + fb drivers" in our bootloader with native u-boot is bugging me
<alyssa-> "baby SOC uart" heh
<robmur01> there's a partial port of EDK2 for RK3399 knocking about, much of that could probably be recycled for a RK3288 port if you're feeling brave :P
<kallisti5> I'm having trouble just getting our arm EFI bootloader going under edk2 in qemu-system-arm lol
<kallisti5> it boots... kind of. Then edk2 implodes
<kallisti5> btw.. we wrote a "generic arm image provisioner" in rust. It's like fedora's arm-image-installer... but better and less horrible
<kallisti5> https://github.com/haiku/rune pretty much give it an SOC, and it will plop down u-boot, etc binaries where they're needed based on a json manifest
<alyssa-> kallisti5: wait so you're porting panfrost to Haiku? :o
<kallisti5> alyssa-: i'm porting Haiku to "arm"
<alyssa-> ah, well :)
<kallisti5> been working on it for a while. pretty much originally we did the u-boot -> kernel.ub dance. but like I said above... we're collecting too much FDT + drivers in our bootloader
<kallisti5> so.. trying to just "pass fdt" through EFI bootloader to kernel.. then use "real drivers"
<alyssa-> why fb in the bootloader at all?
<kallisti5> our bootloader does a lot.. you can toggle boot flags, blacklist software packages, blacklist drivers
<alyssa-> Hmm
<kallisti5> it'll run in serial, but what fun is that.
<alyssa-> that's rather uncommon on arm I think
<kallisti5> keep in mind Haiku != Linux
<kallisti5> We're special
<alyssa-> I know :)
<kallisti5> :-) I have to clairify sometimes :P
<kallisti5> https://github.com/haiku/rune/blob/master/docs/HaikuMMCLayout.png is my arm layout plans on booting
<alyssa-> The other approach that comes to mind is running that bootloader as userspace in another Haiku kernel (I know Linux->Linux booting is a thing in coreboot, don't know if that makes sense for haiku)
<alyssa-> using the 'real' drivers
<kallisti5> ideally we'll use u-boot's efi services. That should give us access to everything u-boot has
<kallisti5> *ALSO* u-boot's now-a-days come with a fdt built in
<kallisti5> so we can just "steal" u-boot's built-in fdt
<alyssa-> sure
buzzmarshall has joined #panfrost
<kallisti5> our bootloader is more like grub.. It has filesystem drivers, etc. So it's kind of the "lowest hanging fruit"
rhyskidd has joined #panfrost
<kallisti5> once we get into it... stuff gets easier
<robmur01> give it another 10 years and U-Boot will probably have reinvented real OF completely :P
<kallisti5> lol
<kallisti5> le-sigh. Guess I should toss the Tinkerboard to the side and stick to things that everyone supports like the Pi
<alyssa-> noooo :-(
Ntemis has joined #panfrost
* alyssa- might be a little biased
<alyssa-> ;P
<kallisti5> alyssa-: lol.. this isn't a Haiku project, was just trying to get Fedora running on the Tinkerboard for an iot-car-computer-thing
<kallisti5> aarch64 is nicer anyway :-D
<robmur01> hmm, AFAICS U-Boot's Tinker configs appear to have all the same display-related options as the one I'm using :/
<kallisti5> weeird
<kallisti5> oh.. hmm. disable panfrost
<kallisti5> i can try that
<kallisti5> ok.. monitor turned on and off with that kernel option
<kallisti5> err. bootlooping shortly after panfrost
<kallisti5> definitely looks like that helps. just realized it isn't disabling panfrost, but doing something else.
<kallisti5> (minus the bootloop)t
<robmur01> crapping out in early userspace can be caused by insufficient power - my box does that if I forget to switch on the PSU and it's pulling power from a USB port instead
ggardet has joined #panfrost
<robmur01> and firing up the GPU is highly likely to spike the current draw a bit
guillaume_g has quit [Ping timeout: 260 seconds]
ggardet is now known as guillaume_g
guillaume_g has quit [Quit: Konversation terminated!]
<kallisti5> robmur01: ewtrfwfra
<kallisti5> whoops. sorry. Power went out and lost network for a sec :-)
<kallisti5> robmur01: good point. On a pretty beefy usb supply, but this cable might be a bit long.
<kallisti5> robmur01: hey! Good call. slightly shorter cable and i'm online
nerdboy has joined #panfrost
alyssa- has left #panfrost [#panfrost]
jgmdev has joined #panfrost
jgmdev has left #panfrost [#panfrost]
Stenzek has quit [Ping timeout: 260 seconds]
jgmdev has joined #panfrost
<jgmdev> Hi everyone, I want to test the panfrost driver on the Odroid C4 and Odroid N2 so I compiled mesa from git with panfrost dri enabled, set the environment variable PAN_MESA_DEBUG=bifrost and added panfrost to /etc/modules-load.d/panfrost.conf also I'm using linux kernel 5.7.2. But es2_info and glxinfo show that mesa is using llvmpipe so no acceleration :( Is something else I need to install in order to test panfrost on these devices?
<jgmdev> ah, and just in case I'm using ArchLinuxARM
Ntemis has quit [Read error: Connection reset by peer]
stikonas has quit [Remote host closed the connection]
stikonas has joined #panfrost
stikonas has quit [Remote host closed the connection]
jgmdev_ has joined #panfrost
jgmdev_ is now known as jgmdev
jgmdev has quit [Quit: Leaving.]
jgmdev has joined #panfrost
<xdarklight> jgmdev: these GPUs are not yet white-listed on kernel side (drivers/gpu/drm/panfrost/panfrost_drv.c)
raster has quit [Quit: Gettin' stinky!]
<xdarklight> jgmdev: you need at least https://patches.linaro.org/patch/187792/ and https://patches.linaro.org/patch/187793/ - potentially more. then with the Odroid-N2 you may still be having issues as there's some (AFAIK) Amlogic G52 special issue
<jgmdev> I see, so for testing the kernel branch mentioned on collabora blog post comment https://gitlab.freedesktop.org/tomeu/linux/-/commits/panfrost-odroid-n2/ would do the trick? I will check those patches, thanks for the guideance!
robmur01 has quit [Ping timeout: 240 seconds]
raster has joined #panfrost
macc24 has quit [Ping timeout: 260 seconds]
macc24 has joined #panfrost
Ntemis has joined #panfrost
davidlt has quit [Ping timeout: 240 seconds]
Stenzek has joined #panfrost
raster has quit [Quit: Gettin' stinky!]
cwabbott has quit [Quit: cwabbott]
cwabbott has joined #panfrost
<chrisf> slowly working through getting an odroid-go2 usable for panfrost dev... built kernel from tomeu's branch, now messing around trying to build a working uInitrd for it
<chrisf> are there notes somewhere on how to set this up? im very familiar with the mesa side once i get to it, but not quite there yet
nlhowell has quit [Ping timeout: 264 seconds]
Lyude has quit [Read error: Connection reset by peer]
Lyude has joined #panfrost
yann has quit [Ping timeout: 260 seconds]
raster has joined #panfrost
icecream95 has joined #panfrost
<icecream95> kallisti5: You are probably missing the governor_simpleondemand module from your initramfs
<icecream95> The workaround alyssa pointed to is just delaying loading panfrost until the root filesystem is mounted and the ondemand module can be loaded from disk