narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
sputnik_ has joined #linux-amlogic
Darkmatter66_ has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 240 seconds]
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 268 seconds]
vagrantc has joined #linux-amlogic
distemper has joined #linux-amlogic
Yardanico has quit [Ping timeout: 276 seconds]
gaspode has quit [Ping timeout: 276 seconds]
distemper is now known as gaspode
Yardanico has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
vagrantc has quit [Ping timeout: 276 seconds]
<Darkmatter66_> Hi narmstrong ,I'm getting and error when rmmod lima and modprobe lima
<Darkmatter66_> https://0x0.st/zlP1.txt
<Darkmatter66_> narmstrong, any idea why is that
<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
random_yanek has quit [Ping timeout: 240 seconds]
<xdarklight> afaerber is seeing the same error on his Realtek SoC: https://patchwork.ozlabs.org/cover/1188734/ (that was like 4 weeks ago)
<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, https://0x0.st/zlP6.txt
<Darkmatter66_> narmstrong, i think all clocks are enabled
<narmstrong> Darkmatter66_: can you dump the clk_summary on debugfs ?
<Darkmatter66_> narmstrong, sure, https://0x0.st/zlPR.txt
<narmstrong> Looks ok, did you enable clock measurer ?
<narmstrong> If yes can you dump it ?
<Darkmatter66_> narmstrong, https://0x0.st/zlZP.txt
sputnik_ has quit [Ping timeout: 268 seconds]
<narmstrong> Darkmatter66_: could you tweak the Lima driver to return 0 right after enabling the clocks to check if these are really enabled ?
<Darkmatter66_> narmstrong, you mean like this https://0x0.st/zlZa.txt ?/
<Darkmatter66_> narmstrong, I used this patch https://0x0.st/zlZM.txt
<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, https://0x0.st/zlNJ.txt
lvrp16 has quit [*.net *.split]
lvrp16 has joined #linux-amlogic
<narmstrong> Dump the clocks right after modprobe
<Darkmatter66> narmstrong, https://0x0.st/zlqN.txt
<narmstrong> They seem probed and enabled, and what about the clk measure to be sure the gp0 pll has locked
<Darkmatter66> narmstrong, https://0x0.st/zlqV.txt
<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]
Darkmatter66 has joined #linux-amlogic
vagrantc has joined #linux-amlogic
vagrantc has quit [Ping timeout: 252 seconds]
Darkmatter66 has quit [Ping timeout: 265 seconds]
vagrantc has joined #linux-amlogic
vagrantc has quit [Quit: leaving]