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
Schimsalabim has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<tokyovigilante> if you can run the vendor BSP on your device it should be fine for 1.5GHz at 1.16v, part of the chip binning process is failing out those that won’t run at high clocks or with all cores enabled, that’s how Intel etc get their ranges across i3-i9 etc.
GrantM11235[m] has quit [Remote host closed the connection]
JosephWatson[m] has quit [Remote host closed the connection]
dittid[m] has quit [Remote host closed the connection]
movedon5b2z4xywybidzannet[m] has quit [Write error: connection closed]
aerospace[m] has quit [Write error: connection closed]
triskit|away has quit [Remote host closed the connection]
pgwipeout[m] has quit [Remote host closed the connection]
Newbyte has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
KREYREN has joined #linux-sunxi
gsz has joined #linux-sunxi
colinsane has quit []
colinsane has joined #linux-sunxi
warpme has joined #linux-sunxi
apritzel has joined #linux-sunxi
junari has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Quasar 5.2.4, revision: 5.2.4+git-7587-04f93acf5, build type: debug, sources date: 20160102, built on: 2024-06-02 21:46:49 UTC 5.2.4+git-7587-]
<loki666> I know it runs fine at 1.5GHz on anbernic OS, I just don't know how to check the voltage
<Jookia> for anyone interested i've posted all my u-boot LCD patches to the list and released a version of my u-boot fork with working LCD :)
ungeskriptet has quit [Quit: Contact links: https://david-w.eu]
junari_ has joined #linux-sunxi
junari has quit [Remote host closed the connection]
junari_ has quit [Remote host closed the connection]
warpme has quit []
junari has joined #linux-sunxi
apritzel has joined #linux-sunxi
<junari> loki666: first to set max freq dd if=/dev/zero of=/dev/null &
<junari> then cat /sys/kernel/debug/regulator/regulator_summary
<junari> and fg CTRL+C
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
<Raqbit> I don't know if this is related to tinkering with the device, but it appears the battery in my RG35XX-H wants to escape its case
<Raqbit> I suppose I'll contact Anbernic to see if they can get me a replacement battery, since it appears to be somewhat custom?
<loki666> Can't you just glue it back with a double sided tape?
<loki666> I can send you pictures so you where to place the battery pack if you want
<loki666> Thanks junari
<loki666> tokyovigilante indeed, it's runnig at 1.5Ghz / 1.16v on anbernic OS
<loki666> then I don't know, why it's failing on mine, If I post a sdimage, would you try it ?
<junari> warpme: Have you encountered hdmi output problems on your AW devices?
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<loki666> to the question is why is my kernel stable when applying cpufreq on 6.10rc3 but not when using tokyovigilante branches, which includes patches to enable iommu, lcd, panfrost etc ... ? apritzel any idea ?
Schimsalabim has quit [Read error: Connection reset by peer]
<apritzel> well, there you have it: lots of patches ;-)
Schimsalabim has joined #linux-sunxi
<Jookia> sometimes you have to have lots of patches :(
<apritzel> loki666: how's the instability showing? sudden hangs? Or splats in dmesg?
<loki666> hangs (whith an error like moving NMI from one cpu to another), but not completly because after some time, i might get a kernel oops (usually related to rcu tasks not responding or something)
<loki666> but it's kind of random, sometime it's something completly different
<apritzel> sudden hangs are mostly due to clocks or regulators, but they tend to show up more consistently
<apritzel> things like random page faults are often DRAM related: the DRAM parameters are not *quite* right, which only shows under stress, so when more DMA masters access the DRAM concurrently
<loki666> 10s between both errors
<apritzel> RCU and NMI issues often mean a CPU core is "gone fishing", either stuck waiting for a lock, or lost in (PSCI) firmware
<junari> apritzel: I also have problems with kernel 6.6 and the latest patches. I have to use a fixed frequency
<junari> And there are no problems with a fixed frequency
<loki666> https://pastebin.com/XrFjUNw0 here is another of the same variation
<loki666> I'll try with only the performance gov
<junari> Has anyone encountered an unusual implementation of HPD? I just can’t figure out why my h616 tvbox doesn’t respond to HDMI in Linux
wingrime-ww has joined #linux-sunxi
<apritzel> loki666: can you boot with "clk_ignore_unused" on the kernel command line? The RCU complaint is somewhat close to "clk: Disabling unused clocks"
<apritzel> junari: how does "6.6 and the latest patches" fit together? Are you talking about backports of the H616 cpufreq patches to 6.6?
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
<loki666> apritzel: nope clk_ignore_unused doesn't fix it
<loki666> tokyovigilante: if you wanna try my image https://we.tl/t-KPd5GFEEHr
<junari> apritzel: yes, backporting
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest9785
dsimic has joined #linux-sunxi
warpme has joined #linux-sunxi
Guest9785 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
ungeskriptet has joined #linux-sunxi
wasutton3 has quit []
wasutton3 has joined #linux-sunxi
warpme has quit []
warpme has joined #linux-sunxi
<Raqbit> loki666: I should have been more clear, but I meant that the battery seems to have swollen a bit, making the case bulge.
<loki666> Raqbit, ouch in that case I would unplug it and stop using it right now, pressure on li-ion battery can ignite them
<loki666> and contact anbernic yes
<loki666> Raqbit: how did you charge it, with a USB computer port, or with a wall plug adapter ?
<loki666> cheap wall plug adapter can have "PWM like" output and if the device doesn't have circuit to rectify it, it will damage the battery
<loki666> but we are getting out of topic here
<Raqbit> loki666: Yes, I know and put it aside for now. I think I last charged it with my phone charger, which is a PD charger made by Samsung I believe.
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
jernej has quit []
jernej has joined #linux-sunxi
hexdump0815 has quit [Quit: WeeChat 3.8]
hexdump0815 has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
warpme has quit []
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
ftg has joined #linux-sunxi
Schimsalabim has quit [Read error: Connection reset by peer]
Schimsalabim has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
<tokyovigilante> Raqbit: yup definitely stop using it. macromorgan has done some work with the battery driver to prevent overcurrent/overvoltage from PD chargers, we are advising people not to use them with the Anbernic devices in other forums as there are a couple of other reports of swollen batteries after PD charging.
<Raqbit> Yikes,
<tokyovigilante> loki666: if you have a working commit and a non-working commit could you git bisect? however that is exactly the behaviour I saw with non-working OPPs, and later kernel versions seem to have fixed it.
<Raqbit> well, at least I'll know how to prevent that from happening in the future,
<tokyovigilante> Raqbit: to be entirely fair I think the problem is that the device is not intended for PD charging, but some chargers seem to supply overcharging current (even 3A @5V which is higher than standard 5V/2A USB 2) despite the device not requesting it. I don’t think the device is asking for 65W PD charging or anything. however the stock firmware doesn’t seem to prevent the PMIC forcing
<tokyovigilante> that current through to the battery either, which is an issue, but one Anbernic could fix and we can definitely fix in software. the Reddit posts about the batteries are also from low-reputation accounts and may also reflect individual device failure. still not ideal but I wouldn’t panic. definitely don’t use a physically deformed battery though.
<Raqbit> Yeah, I'll start a support case at Anbernic and see how far that goes.
<Raqbit> It's very subtle: https://i.imgur.com/2PhxXzK.png
<tokyovigilante> are you sure that’s not just one of the case clips not in? just asking because the -H has clips and the -Plus doesn’t.
<loki666> tokyovigilante: I need to find another workflow then, I don't think bisecting with buildroot is practical
<apritzel> loki666: can't you just replace the kernel in the image that buildroot generates?
<loki666> yes, but I'm not sure how to use the toolchain the buildroot build, need to dig
<apritzel> what distro are you on? Most distros provide well maintainted cross toolchains, super easy to install
<loki666> ubuntu derivate
<apritzel> apt-get install crossbuild-essential-arm64
<loki666> ok and to use it when building kernel
<apritzel> export CROSS_COMPILE=aarch64-linux-gnu-
<apritzel> export ARCH=arm64
<apritzel> make defconfig
<apritzel> make -j 8 Image
<apritzel> fill the gaps as needed
<loki666> thanks, I'll give it a shot
<tokyovigilante> would also recommend FEL-boot for u-boot and TFTP-boot for the kernel, allows very rapid iteration. you can leave the modules on the SD card as long as you have your essential SoC and file system drivers built into the kernel.
gsz has quit [Ping timeout: 480 seconds]
<apritzel> exactly, for convenience I upload the kernel and a (generated) U-Boot boot script via FEL as well, using a shell script: ./fel_boot_kernel.sh Image-6.10-rc3.gz
ftg has quit [Read error: Connection reset by peer]
ats has quit [Ping timeout: 480 seconds]