benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
benpoulson has quit [Ping timeout: 480 seconds]
Asara has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
benpoulson has joined #linux-sunxi
benpoulson has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
hlauer has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
benpoulson has joined #linux-sunxi
apritzel has joined #linux-sunxi
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
vpeter has quit [Remote host closed the connection]
vpeter has joined #linux-sunxi
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
swiftgeek has quit [Quit: swiftgeek]
swiftgeek has joined #linux-sunxi
swiftgeek has quit []
swiftgeek has joined #linux-sunxi
hlauer has joined #linux-sunxi
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
linusw_____ has quit []
indy has quit [Ping timeout: 480 seconds]
benpoulson has quit [Remote host closed the connection]
benpoulson has joined #linux-sunxi
indy has joined #linux-sunxi
jelly has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
szemzoa has joined #linux-sunxi
<szemzoa>
I tried to run the smaeul's github kernel for D1 on T113-S3 with mixed results. I removed the cpu and plic node from the dtsi, added the armv7 cpu and gic nodes, and modified the periph interrupts for the gic (GIC_SPI n-16 from the RISCV n), and added an arm_arch_timer. I also compiled the d1-ccu driver (removed the RISCV dep). Definitely I missed somehing :) This is the result: https://pastebin.com/P0t09qPk
jelly has joined #linux-sunxi
<smaeul>
looks like your GIC setup is broken
<szemzoa>
smaeul: you mean in the .dtsi?
<szemzoa>
becouse the bloader can start the allwinner supplied kernel w/o error
JohnDoe_71Rus has joined #linux-sunxi
<apritzel>
szemzoa: what's your GIC DT node? The one from the sun50-h6.dtsi should be a fit
<apritzel>
that looks roughly OK (some minor issues, but shouldn't affect functionality). Do you have #address-cells and #size-cells set to 2 in the parent node?
<apritzel>
(because smaeul's version uses <1> for both there)
<apritzel>
szemzoa: and your version seems to rely on <2>
<szemzoa>
if I set the address and size cells to 2 I got a lot of DTC errors, BTW, this is the .dtsi: https://pastebin.com/W2yXJ49b
<apritzel>
yeah, you shouldn't set it to 2, it's just that you have two cells in your GIC reg property. Keep #a-c and #s-c at 1, but remove the 0s in the reg property
<apritzel>
szemzoa: that one you just posted looks good, you should just use GIC_CPU_MASK_SIMPLE(2) in the GIC and arch timer nodes
<apritzel>
szemzoa: what is that "Allwinner T113-loader"?
<apritzel>
szemzoa: ah, thanks. I started looking at a U-Boot port, beginning with proper pinctrl/GPIO support
<jernej>
apritzel: I'm still skeptical about how clock is modeled in your AC200 series. I think audio codec also needs it and if anything, two staged model would be better (AC200 as clock user and provider).
<jernej>
I hope I'll have something working in a week or two
<szemzoa>
apritzel: yes, I tried that too, but writing a very simple bootloader was easier for me. This GIC setup helped, THANKS, even the second core comes up, before it freeze :) https://pastebin.com/iaZ7UWdn
<apritzel>
szemzoa: this "genirq: Setting trigger mode 4 for irq 35 failed (gic_set_type+0x0/0xa0)" still suggests something is fishy
<szemzoa>
apritzel: in the last log, that errors are disappeared too, not?
<apritzel>
ah, right, got lost in the tabs ...
<apritzel>
szemzoa: but do you see a prompt? or at least the panic for not finding a rootfs?
<apritzel>
jernej: which clock are you concerned about, specifically? The clock that is exported by the "ephy-ctl" device is just the gate for the PHY
<apritzel>
jernej: so the AC200 MFD parent is a clock user, and some kind of "internal provider", to its children
vagrantc has joined #linux-sunxi
indy has quit [Ping timeout: 480 seconds]
indy_ has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<jernej>
apritzel: well, I still think making mfd device clock provider would make more sense, because it provides clock to subdevices
<jernej>
for example, audio codec also needs clock
<jernej>
and tve
<jernej>
apritzel: btw, in 6.0-rc2, I get crash in mdiobus_register_clock()
evgeny_boger has quit [Ping timeout: 480 seconds]
<jernej>
apritzel: kasan reports that __devm_clk_hw_register_gate underallocates something
<jernej>
apparently struct clk_gate, but I don't see how
<jernej>
you expanded this structure, sure, but compiler should figure out it's size, unless there are clever tricks used somewhere
evgeny_boger has joined #linux-sunxi
JohnDoe_71Rus has quit []
apritzel has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
<apritzel>
jernej: thanks, I will have a look
<jernej>
apritzel: I think I found the issue, I left comments on your commits
<jernej>
anyway, it still doesn't work for me
<jernej>
from what I can tell, clock is not enabled
ftg has quit [Read error: Connection reset by peer]