ChanServ changed the topic of #lima to: Development channel for open source lima driver for ARM Mali4** GPUs - Kernel has landed in mainline, userspace driver is part of mesa - Logs at https://people.freedesktop.org/~cbrill/dri-log/index.php?channel=lima and https://freenode.irclog.whitequark.org/lima - Contact ARM for binary driver support!
headkinomehed has joined #lima
headkinomehed has quit [Quit: Leaving]
dddddd has quit [Remote host closed the connection]
kaspter has quit [Ping timeout: 260 seconds]
kaspter has joined #lima
monstr has joined #lima
camus1 has joined #lima
kaspter has quit [Ping timeout: 260 seconds]
camus1 is now known as kaspter
buzzmarshall has quit [Remote host closed the connection]
kaspter has quit [Ping timeout: 256 seconds]
camus1 has joined #lima
camus1 is now known as kaspter
chewitt has quit [Quit: Zzz..]
Barada has joined #lima
cwabbott has joined #lima
griffinp has joined #lima
dddddd has joined #lima
Elpaulo has quit [Ping timeout: 256 seconds]
Elpaulo1 has joined #lima
Elpaulo1 is now known as Elpaulo
Barada has quit [Quit: Barada]
tjaalton has joined #lima
<tjaalton> howdy, what would it take for drm/lima to support a new device, namely xilinx zcu106?
alyssa has joined #lima
<alyssa> enunes: For lima, are you open to switching from lower_to_source_mods to helpers? (https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4825.patch)
<alyssa> In particular for ppir, it'll allow fusing in max(x, 0.0) as a destination modifier.
<alyssa> See patch 7+12 for destination modifiers and patch 8 for source modifiers
<alyssa> (First 3 commits are NIR, the rest are midgard so there's a user to show the viability)
<anarsoul> tjaalton: just add gpu node to dts?
<anarsoul> also keep in mind that lima is render-only gpu, so you also need drm driver for your display
<anarsoul> once you have it see kmsro, you'll have to add some glue there to bind lima and your display driver
<anarsoul> IIRC Marex was working on some Xilinx with Mali4x0, you can ping him
<alyssa> anarsoul: Mali4x0, the GPU that keeps on giving? :)
monstr has quit [Remote host closed the connection]
dddddd has quit [Read error: Connection reset by peer]
daniels has joined #lima
<anarsoul> alyssa: I guess, but probably not for too long, I doubt that ARM still licenses it
<alyssa> anarsoul: fair :)
<tjaalton> anarsoul: ok thanks, I'll pass this on.. I don't have the hw and am just the middle-man trying to answer questions :)
<tjaalton> there is xlnx which should handle display
<tjaalton> the guy working on the hw gave me some dmesg dump showing "[ 3.396758] lima fd4b0000.gpu: get bus clk failed -2"
<anarsoul> sounds like bus clock is missing in dts?
<tjaalton> dts is..?
<tjaalton> I've never worked with arm hw..
<tjaalton> device tree?
<anarsoul> yes
<tjaalton> ah yes
<tjaalton> that's likely
<tjaalton> true
<tjaalton> Marex: hi, you've got lima working on some xilinx? ^^
<Marex> yeah
<Marex> linux 5.4.y + backports (for the lima part)
<Marex> I think if you use the latest stuff (the one where EEMI isn't broken, again and one more time, and then again ... ) , then you can use linux-next and it's all good
<tjaalton> but needs xlnx for display?
<Marex> it needs a DRM device and a small patch for mesa to make it bind with Lima
<tjaalton> okay
<tjaalton> is that mesa patch upstream by now?
<anarsoul> I don't think so
<tjaalton> where can I find it?
<Marex> tjaalton: I have a custom display controller in the FPGA, so nowhere
<Marex> tjaalton: but the patch is trivial ... which display controller do you use ?
<tjaalton> xlnx
<Marex> they have multiple
<Marex> there should be a DRM device associtaed with that, you should be able to figure which one it is
<tjaalton> ah, zynqmp-display?
<tjaalton> it's not upstream yet
<Marex> tjaalton: so patch ...
<Marex> src/gallium/auxiliary/target-helpers/drm_helper_public.h
<Marex> src/gallium/targets/dri/meson.build
<Marex> src/gallium/targets/dri/target.c
<Marex> each needs one entry, e.g. like exynos_dri , except yours is gonna be zynqmp_display_dri ... just follow the pattern
<tjaalton> ah
<Marex> and if you need some extras, that's where they go
<tjaalton> actually it's xlnx_dri
<tjaalton> xlnx is the drm driver
<tjaalton> so about dts, did you need to hack that for lima?
<tjaalton> hmm
<tjaalton> why not use lima_dri?
<anarsoul> because Mali4x0 is render-only GPU, it's coupled with dozen of display controllers in different SoCs
<anarsoul> if you're planning to render into memory you can use lima_dri
<tjaalton> ok, got it
<Marex> tjaalton: I have a patch for the DT, hold on
<Marex> then set status = "okay" in your board .dts
<tjaalton> thanks, I'll get this tested :)
_whitelogger has joined #lima
cwabbott_ has joined #lima
cwabbott has quit [Ping timeout: 252 seconds]
cwabbott_ is now known as cwabbott
<Marex> tjaalton: have fun
<Marex> ask if something goes wrong
<tjaalton> sure thing
buzzmarshall has joined #lima
dddddd has joined #lima
cwabbott has quit [Quit: cwabbott]
ecloud_ has joined #lima
cwabbott has joined #lima
ecloud has quit [Ping timeout: 258 seconds]
swiftgeek has quit [Read error: Connection reset by peer]
swiftgeek has joined #lima
lool- has joined #lima
_whitelogger has joined #lima