ftg has quit [Read error: Connection reset by peer]
apritzel has quit [Remote host closed the connection]
zoengjay has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
radxanaoki has quit [Ping timeout: 480 seconds]
tokyovigilante_ has joined #linux-sunxi
tokyovigilante has quit [Ping timeout: 480 seconds]
Daanct12 has joined #linux-sunxi
cnxsoft has quit []
cnxsoft has joined #linux-sunxi
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
zoengjay has quit []
bauen1 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
warpme has joined #linux-sunxi
warpme has quit []
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
bauen1 has joined #linux-sunxi
radxanaoki has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
radxanaoki has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Remote host closed the connection]
Raqbit33989 has quit []
Raqbit33989 has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
apritzel has joined #linux-sunxi
radxanaoki has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
<loki666>
apritzel: can you give some hints/pointers for SMP on A133P ?
<apritzel>
loki666: ah, speaking of which, I found something just yesterday evening: the RVBAR registers are at a different location, compared to the H6
<apritzel>
I really don't know why Allwinner does all this register shuffling and movement, it just becomes annoying
<apritzel>
yes, H6 puts the RVBAR registers at 0x9010000 + 0x40, while the A133 puts them at 0x8100000 + 0x40
cnxsoft has joined #linux-sunxi
<loki666>
ok so for a quick hack, I can patch ncat include
<apritzel>
that's SUNXI_CPUCFG_BASE for the H6, and SUNXI_CPUSUBSYS_BASE for the A133
<apritzel>
it's actually the same situation as we saw even *within* the H616, where one die revision uses the H6 model, and the other the A133 one, so we determine this at runtime there
<apritzel>
yeah, but I tried this already. I haven't checked in detail, but I think it's yet another combination, where they combine the actual cluster configuration of the H6 with just the RVBAR location of the R329
<apritzel>
if that's true, we would need another predicate function, that lets you choose just between the two RVBAR locations, independently from sunxi_cpucfg_has_per_cluster_regs()
<apritzel>
so basically use that new function in common/sunxi_pm.c, and keep the existing function in sunxi_cpu_ops.c
<loki666>
ok for a quick test I can add the SUNXI_ALT_RVBAR_LO_REG regs to ncat, and return false in h6 sunxi_cpucfg_has_per_cluster_regs ?
<loki666>
oh, SUNXI_ALT_RVBAR_LO_REG are already in ncat, so just returning false in h6 sunxi_cpucfg_has_per_cluster_regs should work no ?
<loki666>
ah, no because sunxi_cpucfg_has_per_cluster_regs() is used else where I see
<loki666>
ok I'll add a method for sunxi_pm... any idea for the name of that function ?
<loki666>
test a133p() ?
<loki666>
test_a133p() ?
<apritzel>
I think the cleanest would be to have a function that returns the location of the RVBAR registers, so turning the SUNXI_CPUCFG_RVBAR_LO_REG() macro into a (static inline) function
<apritzel>
so something like: uintptr_t sunxi_get_rvbar_address(int corenr, bool hi_bits);
<apritzel>
this would simplify the code even
<apritzel>
and put that function as a static inline in the respective sunxi_cpucfg.h files. The existing SoCs (except the H616) would return a constant, so the compiler optimises that function away
<loki666>
ok I'll give that a shot
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
radxanaoki has quit [Quit: radxanaoki]
evgeny_boger has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Quit: WeeChat 4.5.1]
evgeny_boger has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
cnxsoft has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 480 seconds]