libv 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
apritzel has quit [Ping timeout: 480 seconds]
faruk has joined #linux-sunxi
vagrantc has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
hlauer has joined #linux-sunxi
cmeerw has joined #linux-sunxi
<smaeul> jernej: since D1 has a "normal" audio codec without a hub, I wrote a driver for it, and DMA seems to work fine, so H616 probably needs no DMA driver changes
<smaeul> I brought over some improvements from the BSP driver (https://github.com/smaeul/linux/commits/riscv/d1-wip/drivers/dma), but I can try audio again without them
<smaeul> to verify they aren't needed for basic functionality
ftg has quit [Read error: Connection reset by peer]
cmeerw has quit [Ping timeout: 480 seconds]
Daaanct12 has quit [Quit: Quitting]
Danct12 has joined #linux-sunxi
Danct12 has quit [Remote host closed the connection]
Danct12 has joined #linux-sunxi
<montjoie> any hint on how to create a login for getting D1 user manual ? as non-chinese it is hard
<gamiee> montjoie: I was able to register without any issues, and there is English locale for their website
<montjoie> any link with english locale ? I see only undisplayable characters
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
<warpme_> guys: need some help with cpufreq. I'm working on adding cpufreq on h616 and can't overcome kernel traps when i'm modprobing sun50i_cpufreq_nvmem module. Traps are like this: https://pastebin.com/hrTrRvY5 Looking on trap log i see "WARNING: CPU: 1 PID: 4709 at drivers/opp/core.c:1908 dev_pm_opp_set_prop_name+0x94/0xa0". This seems to correspond to
<warpme_> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/opp/core.c?h=v5.12.10#n1908 Module loads ok on h6 but traps on h616. I make sure h616 cpu definitions in DT are exactly the same like in working h6. Used h616 opp table also is as close as possible to working h6. Can't understand why dev_pm_opp_set_prop_name function has issue on h616 but works on h6. I added in module code some printks
<warpme_> (printk("dev_pm_opp_set_prop_name for cpu:%d name:%s\n", cpu, name) before L118; It prints exactly the same like in working h6....
ftg has joined #linux-sunxi
<warpme_> DT with opp & cpu defs is like this: https://pastebin.com/vqE9UFZu
<gamiee> montjoie: when you browse https://open.allwinnertech.com/ , in right bottom corner, you have "field", click on it, pick some chinese words, and then again pick English
apritzel has joined #linux-sunxi
<montjoie> gamiee: but the wiki link is not allwinner site but occ.t-head.cn
<gamiee> montjoie: ohh, then I don't know. But I remember that some files are also on allwinner page
<montjoie> i need the full user manual
tnovotny has joined #linux-sunxi
pg12 has quit [Ping timeout: 480 seconds]
Mangy_Dog has joined #linux-sunxi
choozy has joined #linux-sunxi
tnovotny has quit [Remote host closed the connection]
pg12 has joined #linux-sunxi
<smaeul> which is effectively a translation of https://d1.docs.allwinnertech.com/study/study_2getsdk/
<montjoie> smaeul: seems this permits to download only SDK and not documentation
<smaeul> the documentation is on the same site, under the Documents tab
<montjoie> I successfully created an account but everything is in chinese:(
<montjoie> ok found D1 user manual draft version
<montjoie> thanks smaeul
<montjoie> anyway it seems crypto is the same without any change
<montjoie> except the remove of RSA4096 and AES XTS. thoses are not used at all anyway (sarcasm)
<montjoie> at least they keep 3DES, security is safe
<smaeul> do you think I could load sun8i-c3 with the allwinner,sun50i-h6-crypto compatible and it would probably work?
<montjoie> you could try and see what happen
<smaeul> with H6 compatible it is unhappy: https://tpaste.us/6PRZ, but if I comment out the "*_t_dlen_in_bits = true," (still using h6 to keep the mbus clock), it stops complaining: https://tpaste.us/V7ON
<smaeul> I don't have time right now to test it further, though IIRC those fallback messages mean something is still wrong?
faruk has quit []
<MoeIcenowy> montjoie: the t-head thing is CPU manual
<MoeIcenowy> not SoC one
montjoie has quit [Ping timeout: 480 seconds]
cmeerw has joined #linux-sunxi
<jernej> smaeul: wow, you enabled a lot of D1 peripherals, good work!
<jernej> smaeul: thanks for DMA bits, I'll use them once I figure what to do with audio
<jernej> smaeul: look at that, H616 and D1 have same audio codec, except that H616 doesn't have anything ADC related
<jernej> I suspect it actually has, it's just not exposed to pins
montjoie has joined #linux-sunxi
<MoeIcenowy> megi: do you consider to make gc2145-init.bin loading message less verbose?
<montjoie> smaeul: looks good, but you need to compile with CONFIG_CRYPTO_MANAGER_DISABLE_TESTS disabled to be sure
<montjoie> according to the first log it is already the case
<montjoie> let me create a patch which handle the _t_dlen_in_bits
<megi> MoeIcenowy: sure
pmp-p_ has joined #linux-sunxi
pmp-p is now known as Guest2119
pmp-p_ is now known as pmp-p
Guest2119 has quit [Ping timeout: 480 seconds]
tuxd3v has quit [Ping timeout: 480 seconds]
<jernej> apritzel: what I need to do to syscon phandle in second emac node for H616?
<jernej> ah, I see, you have second emac node in your v4 series
<apritzel> yeah, it's still part of my v7 here, but beyond the point I will send ;-)
<apritzel> jernej: you probably figured that yourself, but you just say <&syscon 1>
<jernej> oh, you have v7 ready?
<apritzel> jernej: yeah, final tests ...
martinayotte has joined #linux-sunxi
<montjoie> what will be the "prefix" for allwinner D1. i need to create a new compatible for sun8i-ce
martinayotte has quit [Remote host closed the connection]
<jernej> presumably "sun20i-d1"
<jernej> apritzel: guess what, reboot works fine on my very old H616 U-Boot & TF-A combo for T95 (with eth hack)
<jernej> I guess I'll do more development on T95 :)
<montjoie> smaeul (and anyone which want to test) http://dpaste.com/9EP98HAV6
tuxd3v has joined #linux-sunxi
<apritzel> jernej: I figured the other day that reset on my PineH64 works in U-Boot, but not from Linux
<apritzel> jernej: originally I thought that is due to my early board (with that patch wire)
<apritzel> but since it works in U-Boot ...
<apritzel> ah, wait, U-Boot on H6 doesn't use PSCI for reset, IIRC
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<jernej> and for some reason I can't enable HDMI on T95
<jernej> no apparent error, regulators are ok, EDID is read ok...
<apritzel> jernej: black screen, but monitor detects signal?
<apritzel> I think I saw this when I tried HDMI on my X96 box
<apritzel> with that new patch to fix 5.13 HDMI
<jernej> I don't have it in my branch
<jernej> and if HDMI controller wouldn't work, then EDID wouldn't be read, I think
<jernej> let me test same branch with OPi again
<jernej> apritzel: I got it, U-Boot is too old and SPL doesn't have that PLL fix
<MoeIcenowy> apritzel: BTW any idea on refactoring U-Boot?
<MoeIcenowy> I think there's not any better location to place sunxi-specific code...
<MoeIcenowy> (if boards/sunxi is a bad idea
<MoeIcenowy> major problem is that we may some day move some specific board related code to board/vendor/model, like pinephone edition detection to board/pine64/pinephone
_whitelogger has joined #linux-sunxi
<apritzel> MoeIcenowy: I am not a fan of this board/vendor/model scheme in U-Boot, and so am quite happy that we don't have it for sunxi
<apritzel> it encourages the idea of having board specific code, decided at compile time, which should be covered by DT
<apritzel> that is for U-Boot proper, of course, the SPL is a different story
<apritzel> but we don't need that extensive scheme for those small detection functions that we have today
<apritzel> MoeIcenowy: the question is just where the D1 belongs to: can it really live under the sunxi umbrela
cmeerw has quit [Ping timeout: 480 seconds]
hlauer has quit [Ping timeout: 480 seconds]
Mangy_Dog has quit [Ping timeout: 480 seconds]
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi