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
Guest6983 has quit []
apritzel has quit [Ping timeout: 480 seconds]
<MasterR3C0RD> Hmm, it appears the offset for the DRAM parameters in boot0 is different than expected. It gets a different set of DRAM parameters for DDR3 when the tool is run on it
Daanct12 has joined #linux-sunxi
<MasterR3C0RD> Yeah, there's sets of DRAM parameters at 0x038 (incorrect), 0x474 (correct), and 0x674 (incorrect). Interestingly, there are 3 different dram_para sections in the sys_config.fex as well: "dram_para", "dram_para3", and "dram_para7"
<MasterR3C0RD> Ahhhh looking at the SPL headers these are being stored in an additional "spare header"
flyback has quit []
flyback has joined #linux-sunxi
hipboi has joined #linux-sunxi
flyback has quit []
flyback has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
<MasterR3C0RD> Looks like there's a method (sunxi_dram_handle) for selecting which boot mode is in use, and that changes which DRAM parameters are utilized. In the case of my device, the boot0 "extended header" states that selection is done by checking GPADC channel 1
jason123onirc has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
hipboi has quit []
hexdump0815 has joined #linux-sunxi
hexdump01 has quit [Ping timeout: 480 seconds]
Parthiban has joined #linux-sunxi
hipboi has joined #linux-sunxi
hipboi has quit []
ungeskriptet is now known as Guest7038
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest7039
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest7040
ungeskriptet has joined #linux-sunxi
ungeskriptet is now known as Guest7041
ungeskriptet has joined #linux-sunxi
Guest7038 has quit [Ping timeout: 480 seconds]
Guest7039 has quit [Ping timeout: 480 seconds]
ungeskriptet is now known as Guest7042
ungeskriptet has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
Guest7040 has quit [Ping timeout: 480 seconds]
Guest7041 has quit [Ping timeout: 480 seconds]
Guest7042 has quit [Ping timeout: 480 seconds]
Schimsalabim has quit [Read error: Connection reset by peer]
<MasterR3C0RD> apritzel: Submitted a PR to sunxi-fw to add A133 and DRAM.ext support. They're combined in one PR, as I'm unsure whether or not this is a common theme on A133 devices, but it very well could be. https://github.com/apritzel/sunxi-fw/pull/6
Schimsalabim has joined #linux-sunxi
<MasterR3C0RD> parthiban: If you could give this a try on the boot0 for your board, I'd be interested to see what results you get, especially if you get additional parameter sets in your results.
hipboi has joined #linux-sunxi
hipboi has quit []
indy has quit [Ping timeout: 480 seconds]
hipboi has joined #linux-sunxi
Schimsalabim has quit [Ping timeout: 480 seconds]
Schimsalabim has joined #linux-sunxi
apritzel has joined #linux-sunxi
<Parthiban> MasterR3C0RD: Morning, am new to this tool. Should I just run extract?
<MasterR3C0RD> parthiban: Nope, you'd run `sunxi-fw info -v [boot0.bin | phoenixsuite-image.img]`
<MasterR3C0RD> Either the boot0 or a PhoenixSuite flash image will work
<Parthiban> not much info, I think am doing it wrong
<Parthiban> ./sunxi-fw info -v /tmp/pn/boot0_sdcard.bin
<Parthiban> @ 0: boot0: Allwinner boot0
<Parthiban> size: 4096 bytes
<Parthiban> eGON checksum: 0xa98d87f0, programmed: 0x5f0a6c39
<Parthiban> DRAM parameters: A64 H616 A133 H6
<Parthiban> running against the elf gives the same out
<Parthiban> got it
<Parthiban> ./sunxi-fw info -v /tmp/pn/boot0_sdcard.fex
<Parthiban> @ 0: boot0: Allwinner boot0
<Parthiban> eGON checksum matches: 0x7ae47132
<Parthiban> size: 61440 bytes
<Parthiban> DRAM parameters: A64 H616 A133 H6
<Parthiban> DRAM clock : 0x318 0x318 0x318 -
<Parthiban> DRAM type : 0x8 0x8 0x8 -
<Parthiban> ZQ value : 0x7070707 - - -
<Parthiban> ODT enabled : 0xd0d0d0d 0xd0a050c - -
<Parthiban> DX ODT : - 0x7070707 0x7070707 -
<Parthiban> DX DRI : - 0xd0d0d0d 0xd0d0d0d -
<Parthiban> CA DRI : - 0xe0e 0xe0e -
<Parthiban> PARA0 : - - 0xd0a050c -
<Parthiban> PARA1 : 0xe0e 0x30ea 0x30ea -
<Parthiban> PARA2 : 0xd0a050c 0x1000 0x1000 -
<Parthiban> MR0 : 0x30ea 0 0 -
<Parthiban> MR1 : 0x1000 0x34 0x34 -
<Parthiban> MR2 : 0 0x1b 0x1b -
<Parthiban> MR3 : 0x34 0x33 0x33 -
<Parthiban> MR4 : - 0x3 0x3 -
<Parthiban> MR11 : - 0x4 0x4 -
<Parthiban> MR12 : - 0x72 0x72 -
<Parthiban> MR14 : - 0x7 0x7 -
<Parthiban> MR22 : - 0x26 - -
<Parthiban> TPR0 : 0x1b 0x6060606 0 -
<Parthiban> TPR1 : 0x33 0x4040404 0x26 -
<Parthiban> TPR2 : 0x3 0x1f080403 0x6060606 -
<Parthiban> TPR3 : 0 0 0x4040404 -
<Parthiban> TPR4 : 0 - 0x1f080403 -
<Parthiban> TPR5 : 0x4 - 0 -
<Parthiban> TPR6 : 0x72 0x48010101 0x48010101 -
<Parthiban> TPR8 : 0x7 - - -
<Parthiban> TPR10 : 0 0x273333 0x273333 -
<Parthiban> TPR11 : 0x26 0x241f1923 0x241f1923 -
<Parthiban> TPR12 : 0x6060606 0x14151313 0x14151313 -
<Parthiban> TPR13 : 0x4040404 0x81d24 0x81d24 -
<Parthiban> TPR14 : - - 0x2023211f -
<MasterR3C0RD> Might've been a better idea to post that to a Pastebin HAHA
apritzel has quit [Ping timeout: 480 seconds]
<Parthiban> Sorry, posting it
<MasterR3C0RD> I can see yours doesn't have the additional DRAM headers; looks like it's isolated to my device. Good to know
<Parthiban> meaning, it's not lpddr4?
<MasterR3C0RD> s/my device/my device for the time being/
<Parthiban> From the schematics I can see it's lpddr4
<MasterR3C0RD> No, it's still LPDDR4; this is unrelated to that
<MasterR3C0RD> Essentially I found that on my device, it has additional DRAM parameters in an extended header stored within boot0
<MasterR3C0RD> I was thinking it might be more common on A133 devices
<MasterR3C0RD> Anyways, it's a bit late so I'll have to hop off, but you'll want to keep note of the parameters under the A133 header in that table; you'll need them later when I finish porting over the LPDDR4 timings (dashes mean they aren't present, you can just ignore those).
apritzel has joined #linux-sunxi
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
<apritzel> MasterR3C0RD: it's actually the same on the recovery image for my A133 tablet: the DRAM parameters at the beginning of boot0 (what sunxi-fw decodes) are for DDR3, and there are more sets of parameters
<apritzel> and it clearly selects type=7 in the boot0 log
<apritzel> MasterR3C0RD: thanks for the PR, will have a look later, and try it on one of my images
warpme has joined #linux-sunxi
montjoie_ has quit [Read error: Connection reset by peer]
hipboi has quit [Quit: hipboi]
hipboi has joined #linux-sunxi
jason123onirc has joined #linux-sunxi
wingrime1 has quit [Ping timeout: 480 seconds]
aggi has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
Daanct12 has quit [Quit: WeeChat 4.4.2]
hazardchem has quit [Remote host closed the connection]
hazardchem has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
hipboi has quit [Quit: hipboi]
dsimic is now known as Guest7093
dsimic has joined #linux-sunxi
Guest7093 has quit [Ping timeout: 480 seconds]
<Parthiban> MasterR3C0RD: apritzel: Managed to get the GPU driver functional in A133. here: https://pastebin.com/raw/vPcdQYbK
<MasterR3C0RD> Awesome! Have you tested running anything on it, i.e, starting up Xorg, glxgears using the latest Mesa, etc?
<MasterR3C0RD> Or are you still missing TCON?
<Parthiban> MasterR3C0RD: Yeah, still DE, TCON is not enabled yet. With no details in the manual, trying to figure it still.
<MasterR3C0RD> You could probably try using the TCON devicetree definitions for the H6/H616 with the A133's offsets
<Parthiban> ideal plan is to run glmark2. but haven't compiled the mesa 3D. Imagination is using 23.0 version of it, whereas scrathgap yocto of mine using 24.x. Need to patch some yocto stuff there
<Parthiban> Yeah, a64, H6, H616, this is all am checking.
<MasterR3C0RD> Note that the open-source PowerVR drivers only provide Vulkan, and not completely comforming Vulkan yet at that; OpenGL support is through Zink.
<Parthiban> Yeah, am aware. I want the DE + TCON to work first.
<Parthiban> Are there any on-going effort for G2D? Just curious. I did check this https://github.com/cheofusi/sunxi-g2d
<MasterR3C0RD> Acording to the status matrix on the wiki, no: https://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix
<Parthiban> ok thanks
montjoie has joined #linux-sunxi
wingrime-ww has joined #linux-sunxi
Parthiban has quit [Remote host closed the connection]
ftg has joined #linux-sunxi
Parthiban has joined #linux-sunxi
Parthiban has quit []
<apritzel> yeah, no one ever tried upstreaming G2D, I guess it's also somewhat questionable how useful this would be these days in the Linux context
<apritzel> parthiban: don't know if you have seen, but this is the latest series for H616 DE33: https://lore.kernel.org/linux-sunxi/cfc66e71-4af8-43c8-8b86-0bf5208b5c42@gmail.com/T/#r9627ea397a508b5a7c9856f5ae1dd39b5ab2d78f
<apritzel> there are separate documents for the display engine, for instance this one here: https://linux-sunxi.org/images/d/dd/Allwinner_DE3.0_Spec_V1.0.pdf
warpme has quit []
<MasterR3C0RD> apritzel: Based on the reference to "SmartColor 2.0" in the A133 documentation, it seems likely it might be the DE2.0: https://linux-sunxi.org/images/7/7b/Allwinner_DE2.0_Spec_V1.0.pdf
<MasterR3C0RD> parthiban: ^
<MasterR3C0RD> It may even be older, since the maximum supported size is 2048x2048, instead of 4096x4096
apritzel has quit [Ping timeout: 480 seconds]
ungeskriptet is now known as Guest7110
ungeskriptet has joined #linux-sunxi
<MasterR3C0RD> Closest match I've found so far is the T133, but it's missing some of the features claimed by the A133 user manual
Guest7110 has quit [Ping timeout: 480 seconds]
<MasterR3C0RD> Considering the reference to mixers, it might actually be DE2.0, more specifically the H5 version (writeback but no rotation)
JohnDoe_71Rus has quit [Quit: KVIrc 5.2.4 Quasar http://www.kvirc.net/]
<MasterR3C0RD> Yeah, looks like it's DE2.0 from a quick look at the Linux tree. Should mean the correct bindings may do the trick
apritzel has joined #linux-sunxi
<apritzel> MasterR3C0RD: don't read too much into features like screen size, this is sometimes artificially limited by the target market (tablets = no HDMI = no 4K)
<apritzel> but good work, I was hoping it being close to something already supported
<MasterR3C0RD> apritzel: It wasn't the screen size I had been looking at, but rather the output size from the DE; though perhaps those are related, I'm still getting a handle on the hardware blocks. In any case, the only other difference I could find is that there is only a single mixer mentioned in the user manual, rather than 2, and that the DE blocks are
<MasterR3C0RD> "independent", with DE1 being located outside the memory map.
<MasterR3C0RD> Likely a hack to disable DE1 so that only DE0 is present
<MasterR3C0RD> s/so that/since/
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
ftg has quit [Read error: Connection reset by peer]