ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
fraolt has quit [Quit: Client limit exceeded: 20000]
apritzel has quit [Ping timeout: 480 seconds]
vagrantc has quit [Ping timeout: 480 seconds]
flyback has quit [Ping timeout: 480 seconds]
flyback has joined #linux-sunxi
montjoie_ has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
KREYREN has quit []
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
diego71 has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
diego71 has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
jason123onirc has quit [Ping timeout: 480 seconds]
jason123onirc has joined #linux-sunxi
evadot has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
aggi has joined #linux-sunxi
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
Robot_ has joined #linux-sunxi
ungeskriptet has quit [Quit: Contact links: https://david-w.eu]
ungeskriptet has joined #linux-sunxi
warpme has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
warpme has quit []
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
loki6660 has joined #linux-sunxi
loki666 has quit [Ping timeout: 480 seconds]
loki6660 has quit []
loki666 has joined #linux-sunxi
anarsoul has quit [Remote host closed the connection]
anarsoul has joined #linux-sunxi
__ad has joined #linux-sunxi
mnemoc has quit [Read error: Connection reset by peer]
menomc has joined #linux-sunxi
ad__ has quit [Ping timeout: 480 seconds]
<tokyovigilante> jernej: I have just send an initial attempt at the DE33 patches to the list, but your email address has bounced, did you want me to cc any other address?
<tokyovigilante> actually I may have been stitched up by git-send-email, looks like that may be an old one.
<loki666> tokyovigilante going to test your opp patch against 6.10rc2
<loki666> Is support for h700 in uboot mainline, or should I still use your branch?
dsimic is now known as Guest8888
dsimic has joined #linux-sunxi
Guest8888 has quit [Ping timeout: 480 seconds]
ity has quit [Remote host closed the connection]
ity has joined #linux-sunxi
macromorgan has quit [Ping timeout: 480 seconds]
electricworry has quit [Remote host closed the connection]
electricworry has joined #linux-sunxi
<apritzel> loki666: nothing in U-Boot mainline yet, though this is mostly blocked by the DTs not being synced yet, the AXP717 driver waiting for the merge window, and the defconfigs needing to be posted
<loki666> Ok thanks
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
aggi_ has joined #linux-sunxi
aggi has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<Schimsalabim> how can i get my hands on a recent pwm-sun20i.c? it seems to not be in mainline still.. I did
<Schimsalabim> came across this patch for h616 but that does not stick to the version i have.
<apritzel> Schimsalabim: that's heavy work in progress atm, with two or three versions floating around
<apritzel> maybe Kikuchan's version works for you? https://gist.github.com/kikuchan/f21be9dc5947fbb88d7c51dff2f6bdd6
<apritzel> but please keep in mind that those are all unreviewed and unapproved patches, so don't bet your house on them ;-)
Schimsalabim has quit [Ping timeout: 480 seconds]
<apritzel> macromorgan (and tokyovigilante): I reworked the H616 PMIC TF-A patches, so they pick the bus type (I2C or RSB) from the DT. That should fix the Anbernic devices with the RTC
Schimsalabim has joined #linux-sunxi
warpme has joined #linux-sunxi
wingrime-ww has joined #linux-sunxi
ftg has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
wingrime1 has joined #linux-sunxi
wingrime-ww has quit [Ping timeout: 480 seconds]
warpme has quit []
macromorgan has joined #linux-sunxi
electricworry has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
vagrantc has joined #linux-sunxi
apritzel has joined #linux-sunxi
<loki666> tokyovigilante: should I another patch be applied with yours opp series, kernel is not booting
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<tokyovigilante> loki666: yes at least the PMIC driver, looks like you are missing that from your log
<loki666> you have the link
<tokyovigilante> apritzel: thanks! will test
<tokyovigilante> [ 2.328067] axp20x-rsb sunxi-rsb-3a3: Failed to ack 0x49: -5
<tokyovigilante> this is a bit weirs
<tokyovigilante> no it should be in mainline, that is a refactor. but you need u-boot, kernel and (minimal) TF-A support
<tokyovigilante> and the correct DTS
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
<loki666> kernel 6.10rc2 + your patch, what am I missing ?
<loki666> tokyovigilante: applied https://lore.kernel.org/all/20240418000736.24338-1-andre.przywara@arm.com/ but it's still crasing
aggi has joined #linux-sunxi
aggi_ has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<tokyovigilante> that looks like all the bits, anything from u-boot? If you’re swapping between stock and mainline sometimes the PMIC gets into a funny state and needs the battery pulled to reset also.
<loki666> tried to remove the battery, but same issue
<loki666> I patched git TF-A with apritzel patches still the same
<loki666> NOTICE: BL31: v2.11.0(release):c7d5e45d8f197ea0e276851c6ce56028b3531f3b
<loki666> NOTICE: BL31: Built : 23:12:45, Jun 7 2024
<loki666> ERROR: PMIC: no mapping for RSB address 0x3a3
<loki666> NOTICE: BL31: Detected Allwinner H616 SoC (1823)
<loki666> NOTICE: BL31: Found U-Boot DTB at 0x4a09efc8, model: Anbernic RG35XX H
<loki666> there is this ERROR
<loki666> could it be my kernel kconfig ?
Robot_ has quit [Ping timeout: 480 seconds]
<tokyovigilante> maybe, you need the AXP RSB driver, that’s the bus the PMIC communicates over, if that’s not working it can’t set correct voltages and will not boot
<loki666> # CONFIG_AXP20X_POWER is not set
<loki666> that's not good
<loki666> # CONFIG_AXP20X_ADC is not set
<loki666> this also needs to be enabled ?
<apritzel> loki666: ah, good thing I put this message in ;-) you need one more line in TF-A's sunxi-power.c
<loki666> ?
<apritzel> (sorry,I forgot that the AXP717 uses a different RSB address than the AXP305)
<apritzel> read: a bug on my side
<loki666> ah ok
<apritzel> you need: "case 0x3a3: return 0x2d;" just before the existing case in get_rsb_rt_address()
<loki666> ok I'll let you update the patch, anyway adding CONFIG_AXP20X_POWER=y to my kconfig still doesn't works for me
<loki666> no more idea
<apritzel> I doubt that this TF-A problem would affect your kernel operation, but it's worth adding it anyway, I will update the series ASAP
<apritzel> I think your kernel problem might be something unrelated entirely
<apritzel> I actually saw this yesterday: some essential clock reference is missing, the kernel turns it off, machine halts
<apritzel> loki666: for a quick check (and nasty workaround): add clk_ignore_unused to your kernel command line
<apritzel> I was suspecting my new GPU PPU driver, but it might actually be a new 6.10 issue
<apritzel> I will now investigate, but good ol' clk_ignore_unused should have you covered for now
<tokyovigilante> thanks apritzel, haven’t seen this myself with -rc2 but will rebase and see if it crops up, will bisect if so
<loki666> ok I'll try thanks
<apritzel> tokyovigilante: bisecting within the merge window is tricky - or tedious at best
<apritzel> I am somewhat hopeful I find it quicker ...
<tokyovigilante> thanks, will test but hold off for now. thanks for the review of the DE patches, will fix the attributions and reply on list. Is it worth a v2 now or shall I wait for comment on the code itself? I am away for a week or so next week.
<apritzel> wait for more technical comments
<apritzel> it's not my technical expertise, but I wanted to have a look inside. Some of the patches seem to make sense on their own, without requiring understanding of the internals of the DE
<tokyovigilante> sure, thanks. certainly jernej and I have different definition of hack!
<loki666> apritzel: must be something with my kconfig, I used batocera h616 linux-sunxi64-current.config and it seems to works
<loki666> i was using arc defconfig with a small fragment, seems like my fragment wasn't enough
<loki666> is it worth investigating what was missing ? maybe there is a bug lurking
<apritzel> loki666: do you mean arch* defconfig? And do just compile the Image and use that, without installing the modules as well?
<loki666> yes arch defconfig
<apritzel> typically distro kernels only boot so far without modules, they rely on them either being on disk or in the initrd
<loki666> Image + modules in fs
<loki666> using buildroot to build a sd image
<loki666> stress-ng --cpu 8 --io 4 --vm 2 --vm-bytes 128M --fork 4 --timeout 60s
<loki666> From : To
<loki666> : 480000 720000 1008000 1032000 1104000 1200000 1416000 1512000
<loki666> 480000: 0 14 5 2 2 4 5 3
<loki666> 1008000: 6 4 0 0 0 0 0 7
<loki666> 720000: 20 0 0 3 0 1 1 1
<loki666> 1032000: 2 0 2 0 0 0 0 5
<loki666> 1104000: 2 0 0 0 0 1 0 5
<loki666> 1200000: 3 2 0 0 0 0 1 3
<loki666> 1416000: 1 1 0 0 0 1 0 12
<loki666> 1512000: 1 5 10 4 6 2 8 0
gnarface has quit [Remote host closed the connection]
gnarface has joined #linux-sunxi
<apritzel> mmh, pure -rc2 seems to boot fine for me, so must indeed be the most probable: PEBKAC ;-)
Schimsalabim has quit [Read error: Connection reset by peer]
gnarface has quit [Quit: Leaving]
<tokyovigilante> apritzel is used to those from me ;)
gnarface has joined #linux-sunxi
Schimsalabim has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]