JohnnyonFlame has quit [Read error: Connection reset by peer]
kenny has quit [Ping timeout: 250 seconds]
kenny has joined #linux-amlogic
jdp_t has quit [Ping timeout: 264 seconds]
dliviu has quit [Ping timeout: 244 seconds]
<rockosov>
narmstrong: Hello! Hope you have a couple minutes to answer my question... And really sorry for ping you in vacation. I was on long vacation as well and didn't have ability to prepare v3 tty devname changes here https://lore.kernel.org/lkml/20230705181833.16137-1-ddrokosov@sberdevices.ru/. Today I was going to send new version with real struct names, but saw the GH merged previous version to
<rockosov>
tty-testing branch. What should I do in the such situation? Do I need to ask GH revert v2 and apply v3? Or it's not required?
<rockosov>
jbrunet: xdarklight Also I hope you know right actions in such situation... Could you please help me to choose the right way?
<narmstrong>
rockosov: hi, no problem, it’s not a big deal, if you wish just send a follow up patch or leave it as is
<narmstrong>
The patch is functional so no need to revert
<rockosov>
narmstrong: Okay, thank you! Should follow up patch have v1 version? It's total separate patchset, right?
<narmstrong>
rockosov: yep
<rockosov>
narmstrong: Thanks a lot! Have a nice vacation!
<narmstrong>
rockosov: thx!
dliviu has joined #linux-amlogic
f_ has joined #linux-amlogic
naoki has quit [Quit: naoki]
f_ has quit [Excess Flood]
f_ has joined #linux-amlogic
jdp_t has joined #linux-amlogic
vagrantc has joined #linux-amlogic
luka177 has quit [Ping timeout: 244 seconds]
luka177 has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
dliviu has quit [Ping timeout: 260 seconds]
luka177 has quit [Ping timeout: 245 seconds]
luka177 has joined #linux-amlogic
buzzmarshall has joined #linux-amlogic
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
<xdarklight>
hexdump0815: ping - RE audio issues
f_ has quit [Ping timeout: 260 seconds]
<xdarklight>
hexdump0815: can you play audio with both sample rates, then look at two files: /sys/kernel/debug/clk/clk_summary (you already did that) and also /sys/kernel/debug/meson-clk-msr/measure_summary (this is some IP block which allows spying on the SoC internal clock signals - this is useful to compare what Linux sees in clk_summary with what this special SoC internal IP sees)
<xdarklight>
to all reverse engineering interested people here wanting to take a look at the DDR firmware blobs on G12A and newer SoCs: $ dd if=aml_ddr.fw bs=1 skip=96 | lz4 > foo.bin.dec
<xdarklight>
as far as I can tell foo.bin.dec now as ARM64 instructions and contains plain text
<xdarklight>
and to nobodies surprise it also contains the string dwc_ddrphy_apb_wr - which may indicate that these SoCs still use a DesignWare DDR PHY
JohnnyonFlame has joined #linux-amlogic
dliviu has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
JohnnyonF has joined #linux-amlogic
luka177 has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 244 seconds]
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
hexdump0815 has quit [Quit: WeeChat 1.9.1]
hexdump0815 has joined #linux-amlogic
<hexdump0815>
xdarklight: thanks a lot for that hint - i'll have a look soon and paste the results
dliviu has quit [Ping timeout: 245 seconds]
JohnnyonF has quit [Ping timeout: 258 seconds]
jdp_t has quit [Ping timeout: 244 seconds]
f_ has joined #linux-amlogic
<f_>
Hi xdarklight thanks for the tip :)
<f_>
Older SoCs (gxbb, gxl) lack a DDR firmware though
<f_>
I think it may be located in a ROM somewhere?
<xdarklight>
f_: if I was a hardware developer I would not want some DDR firmware in ROM because if there's the tiniest of typos I'm screwed and a new HW revision is needed. I think the code you're staring at for the GX SoCs has been moved into a firmware blob (whatever the reason for this may be, possibly because you mentioned some data being present in multiple BLx stages? that's just a wild guess though)
<f_>
Hm.
<f_>
But since this firmware is almost the same as the iMX's DDR firmware I guess Amlogic don't have the sources for it.
<f_>
But I can't know for sure, I'm very much unfamiliar with both the iMX8 and the G12A/G12B and later.
<xdarklight>
yep, that's also a possibility
<f_>
But it seems like the firmware has some debug symbols? The only way to know for sure would be to feed that binary into something like Ghidra.
<f_>
`dwc_ddrphy_apb_wr` looks like the name of a function.
<xdarklight>
I think it's part of some printf() (debug) message
<f_>
Maybe
<f_>
Again, the only way to know for sure would be to feed this binary to Ghidra.
<xdarklight>
not sure about debug symbols and I haven't played with Ghidra for a long time (and not planning to do so at the moment, not enough time)
<f_>
Might do that out of curiosity.
<f_>
Now, back to GXBB/GXL; not sure if that'll help or not, but I found some similarily-named registers to what we have in the old BL2 sources in the linux-sunxi wiki
<xdarklight>
at least some sunxi SoCs are also using the DesignWare DDR memory controller
<xdarklight>
I forgot which ones exactly
<f_>
I think all of them supported by linux
<f_>
Either way some similarily-named registers were documented.
<f_>
you'll see that some registers have very similar names.
<f_>
E.g. DDR0_PUB_DCR v.s. SDR_DCR
<f_>
The base address differs though.
<f_>
On A10 it's 0x01c01000 and on GXBB it's 0xc8836000
<f_>
I just noticed that a few days ago; while I paused my work on REing I'm still trying to find stuff from time to time.
<f_>
when I'm bored :P
<f_>
(will resume in a few weeks most likely)
<xdarklight>
my interpretation is: those big addressing offsets are implementation defined - so Amlogic says "I want the memory controller at address X" and Allwinner says "I want the memory controller at address Y"
<f_>
Yeah most likely.
<f_>
I should try documenting as much registers as I can.
JohnnyonFlame has joined #linux-amlogic
jdp_t has joined #linux-amlogic
jdp_t has quit [Ping timeout: 244 seconds]
<f_>
So we know for sure Amlogic used a Synopsys DesignWare DDR PHY at least since Meson6.
c0rnelius has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
Daanct12 has quit [Remote host closed the connection]