ftg has quit [Read error: Connection reset by peer]
montjoie_ has joined #linux-sunxi
montjoie has quit [Ping timeout: 480 seconds]
<triskit>
soupborsh: interesting, I thought the BROM was executed in place though…? Boot0 would be the SPL so not technically a “ROM”
Daanct12 has quit [Remote host closed the connection]
Daanct12 has joined #linux-sunxi
paulk has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
<apritzel>
warpme: the link doesn't work (anymore?), but in general the vendor BL31 is botched and has special expectations. I hacked Syterkit's extlinux recipe to load an early mainline U-Boot port instead of a kernel, with USB and MMC working, then take it from there
<apritzel>
I can push my Syterkit changes once I am back on my machine
<apritzel>
be advised that this is all a hack, to unblock kernel development, which has the highest latency and review requirement
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
<apritzel>
but if you need something quickly, I'd go with Syterkit's extlinux target, plus the SCP and BL31 that ships with it, and remove the Avaota display code
<apritzel>
triskit: I highly doubt that Allwinner does anything fancy like ROM patching or shadowing, we have never seen any evidence of that
<apritzel>
the BROM code is not PIE, for a start, and there is not enough freely available SRAM for any kind of shadowing
<apritzel>
I hear you that the "smc" does not work, it's the same situation on my secure A133 tablet, but there must be something else we miss
Daaanct12 has joined #linux-sunxi
<triskit>
apritzel: got it. Although patches are not “fancy”, speaking from 16-bit MCU-land :D
Daanct12 has quit [Remote host closed the connection]
<apritzel>
we are talking AW here, so the "fancy bar" is quite low ;-)
<apritzel>
on the A133, it returns from the smc, and I wonder if it's actually secure SVC, but not the "highest implemented EL", which ARMv8 requires for things like RVBAR and CNTFRQ write access
<apritzel>
this is a subtle difference between v7 and v8, even in AArch32: you can be in secure SVC, but that can be EL1 or EL3. At reset it's EL3, but if you eret from there, it's EL1
<apritzel>
loki666: did you get your regulator question answered? The ®_cldo3 is an alias, which points to a subnode of the regulator node within the AXP node
<triskit>
apritzel: Good to know… I should compare the H6 and H616 BROMs at some point.
<apritzel>
loki666: I feel like using the node name for matching is not really by the "DT book", but that's how the binding is
<apritzel>
triskit: in any case, it's just an issue with FEL, isn't it? Becasue loading from MMC via a TOC0 image works for me on that tablet
Daaanct12 has quit [Remote host closed the connection]
<triskit>
Right
Daanct12 has joined #linux-sunxi
apritzel has quit [Quit: Page closed]
hexdump01 has joined #linux-sunxi
hexdump0815 has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
Daanct12 has joined #linux-sunxi
<loki666>
apritzel: yes I understand for the regulators that match the PMIC registers via their names, but in other case (like tokyovigilante récent codec patch) a new regulator node is created and assigned to the device
<loki666>
Are these "dummy" regulator that can't be changed by PMIC but are added just to make the device happy?
<loki666>
Well....codec is maybe a bad example, but we do that for mmc supply and LCD supply also (in downstream patches)
indy has joined #linux-sunxi
warpme has joined #linux-sunxi
<Jookia>
loki666: yes, not all regulators are controllable
<Jookia>
this means drivers can work with both fixed supplies and switchable ones
ungeskriptet has quit [Remote host closed the connection]
warpme has quit []
tnovotny has joined #linux-sunxi
szemzoa has quit [Remote host closed the connection]
warpme has joined #linux-sunxi
szemzoa has joined #linux-sunxi
<warpme>
apritzel: thx for looking on bl31 on h728! Boot log from booting was from syterkit with syterkit bl31.bin/scp.bin: https://gist.github.com/warpme/cef721be8621720cddad7a037b5fda9a With mainline bl31 (v2.12) boot just hangs on L41 So for me it looks like hard blocker is bl31 (syterkit traps; mainline hangs)
<parthiban>
apritzel: "sun50i-iommu 30f0000.iommu: attempt to map address beyond 4GB" Am still trying to understand the iommu driver and also your changes made in this respect from https://lore.kernel.org/linux-sunxi/20240616224056.29159-1-andre.przywara@arm.com/. The same works with my 1GB RAM variant and fails to work in 4GB variant of the A133. Quick hints will help me narrow down this. Thanks.
<parthiban>
warpme thanks, for now I passed mem=2G to the kernel to check my display engine stuff
<warpme>
i had exactly the same issue. limiting mem to 3600MB (iirc) was bringing hdmi back....
<parthiban>
in that case, IMO it makes sense to post to the mailing list
<warpme>
yeah - agree. issue is dramatic lack of time (professional life just kills me). Also suspect "interesting" discussion threads which fr sure will happen (like "this is wrong"; "code is horrible"; "you are doing it wrongly" etc)
<warpme>
after all this is hack - not proper solution :-(
<parthiban>
warpme I will post the issue faced to the list. looping piotr.oniszczuk@gmail.com will work?
<warpme>
yes!
bauen1 has joined #linux-sunxi
Daanct12 has quit [Quit: WeeChat 4.4.3]
pg12_ has joined #linux-sunxi
pg12 has quit [Ping timeout: 480 seconds]
pg12_ is now known as pg12
hazardchem has quit [Read error: Connection reset by peer]
hazardchem has joined #linux-sunxi
paulk has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
tlwoerner has joined #linux-sunxi
tlwoerner_ has quit [Ping timeout: 480 seconds]
dsimic is now known as Guest198
dsimic has joined #linux-sunxi
Guest198 has quit [Ping timeout: 480 seconds]
warpme has quit []
warpme has joined #linux-sunxi
aggi has quit [Remote host closed the connection]
aggi has joined #linux-sunxi
warpme_ has joined #linux-sunxi
warpme_ has quit []
warpme has quit []
jemk has quit [Quit: leaving]
jemk has joined #linux-sunxi
vagrantc has joined #linux-sunxi
tnovotny has quit [Quit: Leaving]
<MasterR3C0RD>
parthiban: The changes in that patch appear to just force RAM handled by the MMU to <= 0xFFFFFFFF. When you have 2GiB of RAM, for example, the highest DRAM address available is 0x80000000, but in the memory map this starts at 0x40000000, thus the highest possible address is actually 0xbfffffff
<MasterR3C0RD>
s/0x80000000/0x7fffffff
<MasterR3C0RD>
This fits within the 32-bit address space, but when you have 4GiB of RAM, the highest physical address is 0x13FFFFFFF; the MMU can't handle addresses outside the 32-bit range, so it'll error if that's attempted
<MasterR3C0RD>
My guess is that something's passing in an address in the higher parts of RAM, and thus it can't be mapped
<MasterR3C0RD>
So it seems more likely that what's happening is the DE driver is trying to allocate framebuffer memory in DRAM, but the allocation it's getting is in said zone
<MasterR3C0RD>
Or something in the vein of "DE driver attempts to allocate DMA memory, but the address allocated is >0xFFFFFFFF"; not entirely sure of the specifics there
bauen1 has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
gsz has joined #linux-sunxi
<apritzel>
MasterR3C0RD: that shouldn't be a problem though, as the default DMA map is still 32bit, so allocations should come from <3GB anyway
<apritzel>
but indeed every physical address involved should be checked
<apritzel>
shame that the IOMMU of all devices cannot handle more than 32bits...
ftg has joined #linux-sunxi
<MasterR3C0RD>
apritzel: Considering the iommu error appears to be coming from fbdev-dma (based on the error that follows the iommu in his mailing list post), it certainly seems like it must be something in the vein of "allocating DMA memory outside the valid range for the IOMMU"
<apritzel>
warpme: to be clear: there is no mainline TF-A support for the A523 family, so we are stuck with the vendor build for now
<warpme>
apritzel: yes i already discovered that for A523/H728 there is no atf yet. So it looks to me like only existing atf for a523 is syterkit (and i assume it works ok on a523). Unfortunatelly syterkit seems not working with h728 so....currently my h728 board becomes shelf dust collector :-( argh....
Core2686 has quit [Ping timeout: 480 seconds]
buZz_ has joined #linux-sunxi
buZz has quit [Read error: Connection reset by peer]