The_Coolest has quit [Quit: FOLD For The Cause!!!]
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 250 seconds]
Darkmatter66_ has quit [Ping timeout: 245 seconds]
Barada has joined #linux-amlogic
The_Coolest has joined #linux-amlogic
return0e has quit [Ping timeout: 272 seconds]
return0e has joined #linux-amlogic
ldevulder_ is now known as ldevulder
nsaenz has joined #linux-amlogic
nsaenz has quit [Read error: Connection reset by peer]
nsaenz has joined #linux-amlogic
nsaenz has quit [Ping timeout: 246 seconds]
nsaenz has joined #linux-amlogic
nsaenz has quit [Ping timeout: 252 seconds]
nsaenz has joined #linux-amlogic
nsaenz has quit [Ping timeout: 250 seconds]
nsaenz has joined #linux-amlogic
sputnik_ has quit [Ping timeout: 240 seconds]
warpme_ has joined #linux-amlogic
<warpme_>
hi *
<warpme_>
I’m trying to play with ARM GLES blobs on s905W and kernel 5.0.1. I complied kernel module from https://github.com/superna9999/meson_gx_mali_450. module loads (no any errors in dmesg) - but there is no /dev/mali . My kernel has also patches for lima. is it possible that lima drm kernel causing issues with mali.ko?
JulienMasson has quit [Ping timeout: 246 seconds]
warpme_ has quit [Quit: warpme_]
warpme_ has joined #linux-amlogic
warpme_ has quit [Quit: warpme_]
warpme_ has joined #linux-amlogic
afaerber has quit [Quit: Leaving]
<warpme_>
hmm - removing lima from kernel tree not helps. Is mali from https://github.com/superna9999/meson_gx_mali_450 work at all with 5.0.1 kernel?. Kernel log says following: Mar 14 15:32:24 (none) user.warn kernel: [ 42.118554] mali: loading out-of-tree module taints kernel.
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231521] Mali<2>:
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231528] Inserting Mali v900 device driver.
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231537] Mali<2>:
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231539] Compiled: Mar 14 2019, time: 15:15:40.
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231541] Mali<2>:
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231796] Mali:
<warpme_>
Mar 14 15:32:24 (none) user.warn kernel: [ 42.231798] Mali device driver loaded
afaerber has joined #linux-amlogic
noblock has joined #linux-amlogic
<noblock>
warpme_: You may try with this repository: https://github.com/noblock/sunxi-mali - The patch for the S905W works on my board using the r9p0 mali release.
<warpme_>
noblock: thx. one Q: r9p0 You are successfuly using is with mali.so for fbdev or gbm or x11 or wayland?
<noblock>
It works fine with the r7p0 gbm blob.
<warpme_>
perfect. is this exact blob also on your git?
<noblock>
No only the kernel module; The hikey blob is OK.
<warpme_>
for no potential confussion with varia blobs - may You pls provide me direct link for blob?
<noblock>
You just have to apply the same procedure, all the patches are up-to-date and compatible with linux 5.0.
<noblock>
build.sh will apply the patches; I've set USING_DEVFREQ to 0, I'm not sure if this change anyting on the S905W.
<warpme_>
perfect. I’m crosscompiling so I have my own system to patching. I see patches are in „patches” dir. What exact set of patches needs to be applied for 5.0.1 (is it 0001…0005 + 0015 + 0019)?
<noblock>
You may try: v="r9p0"; for f in $(cat patches/${v}/series); do (cd ${v}/; cat ../patches/$f | patch -p1 );done;
<warpme_>
ough - may You pls tell me which exactl patches are needed? I already have whole build system setup for superna9999 version so only what I need to is: change sources url; add patches list....
<noblock>
The patches are just to update the r9p0 kernel module, not the kernel itself.
<noblock>
You must apply all the patches in: patches/${v}/series
<warpme_>
sure. I understan this :-)
<warpme_>
if you are refering to „patches” dir - then there is no subdir for r9p0…
Xogium has left #linux-amlogic ["leaving channel"]
<noblock>
The mali driver seems to be OK; and you don't have /dev/mali registered...
<warpme_>
so…?
<warpme_>
maybe is there i.e. debug switch to see more details at module load?
<noblock>
You may try to compile the module again with: BUILD=debug
<warpme_>
super. thx. will try now
<noblock>
You may change the line in: build.sh
<warpme_>
ah I already have this. this is mine build line BUILD_ARGS += "USING_UMP=0 BUILD=debug MALI_DMA_BUF_MAP_ON_ATTACH=1 USING_PROFILING=0 MALI_PLATFORM=meson USING_DVFS=0"
<noblock>
If it works properly, you will have a new entry on /proc/misc
<noblock>
build.sh uses sunxi as MALI_PLATFORM
<noblock>
You must uses sunxi
<warpme_>
sure. my overlook. sorry. just bebuilding....
<warpme_>
hmm. no difference. Interesting is that after switch MALI_PLATFORM to sunxi, .ko binary has exactly the same size…is this possible?
<narmstrong>
My Mali driver should work... look into /sys/bus/platform/*mali* to see if it has probed
<narmstrong>
If you have the Lima driver it will probe first ;-)
The_CooIest has joined #linux-amlogic
<warpme_>
narmstrong: Initially I started wit your repo (r6 and r7) and both are loading OK but without /dev/lima. noblock’s code also not working so issue I think is somwhere else. I think where I need to start checking. I’m building kernel with custom config. Is there anything mandatory in 5.0 config to get mali.ko working?
<narmstrong>
Nop nothing special
<narmstrong>
Please check you don’t have the Lima driver built in the kernel
<warpme_>
right. there is NO such file. So q is why Makefile is not compiling this file?
<noblock>
You should try with build.sh
<warpme_>
it looks like issue is within Makefile as compilation log has NOT any lines with sunxi.c compilation. What component invokes sunxi.c compilation?
<narmstrong>
warpme_: why are you using the Makefile ? The build.sh script sets all the useful options
<noblock>
The file is set by PLATFORM=
<narmstrong>
So please use the script as noblock says for like 1hour
lissyx has quit [Ping timeout: 252 seconds]
<warpme_>
right. I’m building with make + params and probably issue is here. let me look on this....
Darkmatter66 has joined #linux-amlogic
<Darkmatter66>
Hi, Is the nand driver in mainline usable ? I see that the driver is merged but none of the dts is using it !
jakogut has joined #linux-amlogic
Darkmatter66 has quit [Remote host closed the connection]
afaerber has quit [Quit: Leaving]
Darkmatter66 has joined #linux-amlogic
trem has joined #linux-amlogic
random_yanek has quit [Read error: Connection reset by peer]
random_yanek has joined #linux-amlogic
vagrantc has joined #linux-amlogic
<narmstrong>
Darkmatter66: it seems it’s usable on gxbb/GXL/GXL with xdarklight patches for non-AXG platforms
<Darkmatter66>
narmstrong, nice, looking forward to try it out.
<Darkmatter66>
narmstrong, any news on the vdec driver licensing issue ?