ChanServ changed the topic of #lima to: Development channel for open source lima driver for ARM Mali4** GPUs - Kernel driver has landed in mainline, userspace driver is part of mesa - Logs at https://oftc.irclog.whitequark.org/lima/
<anarsoul>
adjtm: I checked glxinfo output and it reports that GL_OES_texture_border_clamp is supported :)
<anarsoul>
OES_texture_3D is not there though
<anarsoul>
nevermind, it's there as well
<anarsoul>
(made typo in grep cmd)
<anarsoul>
they're exposed regardless of whether they're supported, so yeah, it may fix something for android
<tlwoerner>
running a build done today with the latest updates and using linus' kernel, glmark2-es2 is running much better (but it would still be nice to get the gpu rates up)
<anarsoul>
[ 1.926011] lima ff300000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
<tlwoerner>
yes
<anarsoul>
sounds like you need a regulator? :)
<tlwoerner>
would that imply more tweaks to the DT?
<anarsoul>
see rk3328-a1.dts for example
<anarsoul>
it has mali-supply = <&vdd_logic>; in gpu node
<anarsoul>
you need to check schematics to see what regulator supplies mali
<anarsoul>
and add it to dts
<anarsoul>
and I don't think that you need power domain
<tlwoerner>
okay, i'll try without the power domain
<anarsoul>
you still need a regulator :)
<anarsoul>
btw, I'd appreciate if you share glmark2 results when you get it working
<anarsoul>
i.e. before and after results
<tlwoerner>
okay, and i can also run deqp things too
<anarsoul>
it's unlikely that deqp run will be faster :)
<xdarklight>
tlwoerner: also I suggest checking whether VDD_LOG is shared with other IP cores within the SoC. Amlogic SoCs for example use a so-called VDDEE supply which is not exclusive to the GPU but shared with other IPs (video encoders/decoders, HDMI transmitter, ISP, ...). that's why on Amlogic we use the same voltage for all frequencies. if we used different voltages the whole SoC could become unstable
<anarsoul>
yeah, you can also grab what's the voltage for it in working state
<anarsoul>
it should be in /sys/kernel/debug/regulator/regulator_summary
<xdarklight>
tlwoerner: devfreq should still work after you start putting some load on the GPU (at idle it'll just sit at it's lowest rate)
<tlwoerner>
is there a way to change/set the rate? some sysfs entry?
<xdarklight>
not that I'm aware of
<xdarklight>
only reading is possible through /sys/kernel/debug/clk (clk_summary in that directory is handy because it shows the whole clock tree including rates and so on)
<anarsoul>
and you want opp-microvolt = <1100000>; for each frequency
<tlwoerner>
ok
<tlwoerner>
and i want the regulator too?
<tlwoerner>
(pretty sure yes)
<anarsoul>
sure, why not
<anarsoul>
tlwoerner: does it work?
<tlwoerner>
everything works, but the glmark2 score is the same. i'm trying the DTS trick to force the clock rate
<tlwoerner>
i am running it fullscreen
<tlwoerner>
i'm pretty sure glmark2 is smoother with the update
<tlwoerner>
but that could be subjective
<anarsoul>
tlwoerner: it's likely limited at 60fps
<anarsoul>
try weston and wayland version of glmark?
daniels has quit [Ping timeout: 480 seconds]
narmstrong has quit [Ping timeout: 480 seconds]
cwabbott has quit [Ping timeout: 480 seconds]
<anarsoul>
tlwoerner: I tried a quick hack from xdarklight to set freq to 500mhz on my rock64 and I get:
<anarsoul>
glmark2 Score: 86 for default freq
<anarsoul>
glmark2 Score: 272 for 500MHz
jstultz has quit [Ping timeout: 480 seconds]
<anarsoul>
and 2-3x FPS boost in most of benchmarks
robher has quit [Ping timeout: 480 seconds]
daniels has joined #lima
narmstrong has joined #lima
jstultz has joined #lima
cwabbott has joined #lima
robher has joined #lima
<tlwoerner>
okay, i can switch to wayland/weston (i'll have to start a new build)
<tlwoerner>
i know everyone's going to roll their eyes, but i like that i can run gui things from the console
<tlwoerner>
running glmark2 fullscreen was definitely pinning the output at 60fps, running without fullscreen gives me a score of 105
<tlwoerner>
i thought you didn't have a rock64, you were doing all your testing with an amlogic board (?)
<tlwoerner>
by the way, setting the clock to its highest setting gives: lima ff300000.gpu: mod rate = 491520000
<anarsoul>
tlwoerner: our CI only uses amlogic boards
<anarsoul>
personally, I have pine64, rock64 and rockpro64
<anarsoul>
I mostly focus on allwinner devices though (pine64, pinebook)
<anarsoul>
and I don't do any kernel development for rk3328
<tlwoerner>
what other tests do you recommend?
<anarsoul>
well, whatever you planning to use on this board
<tlwoerner>
me personally? nothing. i'm just interested in maintaining a rockchip bsp, testing, and seeing all boards perform well :-)
<xdarklight>
tlwoerner: I suggest running something that loads up the GPU for some time and monitoring the thermals. on Amlogic SoCs the GPU has a much bigger impact on thermals (with the CPU alone I can't make my Odroid-C1 reach 70°C, but by loading the GPU this is easy to reach). that's one of the reasons why fixed clocks are a bad thing
<tlwoerner>
an unmodifed kernel running glmark2-es2 on x11 (without fullscreen) gives me a glmark2 score of: 61
<xdarklight>
"lima ff300000.gpu: Failed to register cooling device" means the GPU will not clock down when the SoC temperature goes up - so keep monitoring the temps!
<tlwoerner>
same test with the tweaked kernel with the opp table and forced to the highest freq gives a glmark2 score of 105
sarbes has quit []
<anarsoul>
xdarklight: I guess it needs gpu in thermal-zone description?