<Darkmatter66_>
narmstrong, during boot the hw is proped and I get this https://0x0.st/zlPQ.txt
<xdarklight>
Darkmatter66_: "IRQ ppmmuX not found" is to be expected, it's because the GPU only has three PP instances (but the driver supports up to 8 and informs us that 5 are not implemented by the HW)
<Darkmatter66_>
xdarklight, yes i was guessing it's normal, the fail after modprobe is not normal though
<xdarklight>
yep, that other error is strange indeed. I tested with my Le Potato board yesterday (S905X, so same silicon as your S905D) and didn't get that error
<Darkmatter66_>
xdarklight, I don't suppose it could be a linux config error ? I use my own config
<xdarklight>
so do I. what kernel version are you running?
<Darkmatter66_>
5.4.0 corrently at commit 81b6b96475ac7a4ebfceae9f16fb3758327adbfe
<xdarklight>
he's suspecting clocks, voltage supply and/or register sizes - I think for Amlogic that only leaves clocks because VDDEE is the voltage supply (if that was disabled the SoC wouldn't work) and register sizes seem to work for others
<xdarklight>
(and in theory it could also be a bug in the lima driver)
random_yanek has joined #linux-amlogic
<Darkmatter66_>
xdarklight, if the problem is the clock shouldn't the driver crash at boot also
<xdarklight>
Darkmatter66_: I've seen both. for example: if you try to access the VPU registers with it's clock disabled then the CPU locks up. however, if you do the same with the USB PHY registers on GXL then you simply read 0x0. I'm not sure how the Mali GPU is integrated and how it should behave in such case
<narmstrong>
Darkmatter66_: you must have something missing in your config, check all the meson clock configs
<narmstrong>
Darkmatter66_: to reduce the config, I do make defconfig, sed =m to =y, then I run menu config and I remove all the other arch (rockchip, ...) then other subsystems (pcie, acpi, SATA, ...) with this you should have a good start
<narmstrong>
Then you can go into the subsystems and remove the useless drivers for other vendors
<Darkmatter66_>
narmstrong, and I get the same error
<Darkmatter66_>
narmstrong, tell me if my patch is wrong
Darkmatter66_ has quit [Ping timeout: 240 seconds]
Darkmatter66 has joined #linux-amlogic
<narmstrong>
Return 0 after Lima clk init in the main probe function
_whitelogger has joined #linux-amlogic
Elpaulo has joined #linux-amlogic
<Darkmatter66>
narmstrong, after patching the driver i can modprobe the device and i get "[drm] Initialized lima 1.0.0 20190217 for d00c0000.gpu on minor 0"
<Darkmatter66>
but if i rmmod it it shows a segfault
<Darkmatter66>
narmstrong, and the following in dmesg
<Darkmatter66>
narmstrong, these logs i'm posting are from the first modeprobe, while before the patch it fails in the second modprobe, does that make a difference?
<narmstrong>
Nop, the logs show the clock is right, so it’s something else
sputnik_ has joined #linux-amlogic
return0e_ has joined #linux-amlogic
return0e has quit [Ping timeout: 265 seconds]
<Darkmatter66>
narmstrong, Are those errors normal? https://0x0.st/zlbf.txt what do they mean and are they related to the probe problem ?
Darkmatter66 has quit [Read error: Connection reset by peer]