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
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
ftg has quit [Read error: Connection reset by peer]
apritzel has quit [Ping timeout: 480 seconds]
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
junari_ has joined #linux-sunxi
junari__ has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
junari__ is now known as junari
<junari> apritzel: I checked with osciloscope, 1200 mv (70 step) set working
Danct12 has joined #linux-sunxi
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
szemzoa has joined #linux-sunxi
szemzoa has quit [Remote host closed the connection]
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 480 seconds]
montjoie_ is now known as montjoie
junari has quit [Ping timeout: 480 seconds]
gosha has joined #linux-sunxi
gosha has quit []
apritzel has joined #linux-sunxi
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
apritzel has quit [Ping timeout: 480 seconds]
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
junari has joined #linux-sunxi
junari_ has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
pabs has quit [Remote host closed the connection]
<apritzel> junari_: very nice, thanks! I will email Martin about it
junari has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari has quit [Read error: No route to host]
ftg has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
cnxsoft1 has quit []
cnxsoft has joined #linux-sunxi
grming has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe7 has joined #linux-sunxi
junari has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe6 has joined #linux-sunxi
JohnDoe7 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
grming has quit [Quit: Konversation terminated!]
JohnDoe_71Rus has joined #linux-sunxi
sunshavi has joined #linux-sunxi
JohnDoe6 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe3 has joined #linux-sunxi
cnxsoft has quit []
JohnDoe3 has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
szemzoa has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
<junari> Trying to run LPDDR3 on H616. Faced with a situation that the memory does not pass the functions mctl_auto_detect_rank_width() and mctl_auto_detect_dram_size()
apritzel has joined #linux-sunxi
<junari> In this case in vendor's SPL actions that are not entirely clear to me
<junari> Registers 0x70000000, 0x80000000 0xa0000000 are written.
<apritzel> what "registers" do you mean, exactly? The last two addresses are in DRAM. There are algorithms that write into DRAM to look for aliasing, but 0x70000000 does not fit in there
<junari> Yes, that's right, it's RAM
<junari> from 0x40000000 to 0x13FFFFFFF
<junari> tangled up in zeros
ftg has quit [Ping timeout: 480 seconds]
<junari> Looks like vendor SPL simply writes to certain areas of memory to find out its size
<MoeIcenowy> junari: in fact we are also just writing to certain address to detect the size
<MoeIcenowy> because we're detecting the wrapping up
digetx has joined #linux-sunxi
<MoeIcenowy> my computer principle lesson knowledge tells me DRAMs has rows and columns
<MoeIcenowy> (and modern DRAMs has banks / bankgroups (bankgroups are so modern that they come at (LP)DDR4)
<MoeIcenowy> the principle of size auto detect is to set 1 of the 3 parameters to the maximum, and others to the minimum
<MoeIcenowy> and detect wrapping up
<MoeIcenowy> and decrease the testing parameter (which is set to the maximum) unless no wrapping up happens
<junari> MoeIcenowy: Yes, I saw it in the driver code
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
<junari> But, probably, for some memory chips this method is not suitable
JohnDoe_71Rus has joined #linux-sunxi
<MoeIcenowy> junari: why
<apritzel> ah, sure 0x70000000 is DRAM as well, was looking at the F1C100s too much in the last days ... ;-)
<MoeIcenowy> BTW detecting rank/width is another story
<MoeIcenowy> because rank means CS pins, detecting rank means testing whether a memory module is present when some CS pins is asserted
<MoeIcenowy> and width means DQ pins, detecting it is detecting whether some DQ pins are floating/hardwired
<junari> I dont know. But in the vendor SPL code for this case there are separate function
<apritzel> I wouldn't interpret too much into vendor code, tbh. A lot of stuff I have seen is just bad code
<junari> Here pseudocode from ghidra https://pastebin.com/6rSdaJwH
ftg has joined #linux-sunxi
JohnDoe7 has joined #linux-sunxi
<junari> It is used for 1,5 and 3 gigabytes of DRAM
<MoeIcenowy> yes 1.5/3gb dram is strange
cnxsoft has quit []
<junari> In my case its KMQ310006A-B419 emcp by samsung
jernej has joined #linux-sunxi
<apritzel> junari: what device is this? a H616 TV box?
<junari> Yes
<apritzel> are you using jernej's latest H616 DRAM rework patches?
<junari> Yes
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
<apritzel> good!
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe7 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
<apritzel> junari: did you find a datasheet for this chip? Some quick googling didn't produce any good results
<junari> apritzel: nope
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari is now known as Guest722
junari_ is now known as junari
JohnDoe_71Rus has joined #linux-sunxi
Guest722 has quit [Ping timeout: 480 seconds]
szemzoa has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
szemzoa has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
junari has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
grming has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
Danct12 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
szemzoa has joined #linux-sunxi
szemzoa has quit [Ping timeout: 480 seconds]
hentai has quit [Quit: Disconnect]
bauen1 has joined #linux-sunxi
hentai has joined #linux-sunxi
hentai has quit [Remote host closed the connection]
hentai has joined #linux-sunxi
assus has joined #linux-sunxi