Switch internal registers address to 0xF1 on Armada 370/XP
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 9 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 9 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] Switch internal registers address to 0xF1 on Armada 370/XP
Quoted 9 lines · Thomas Petazzoni
Dear Russell King - ARM Linux,
Quoted 6 lines · Russell King - ARM Linux
Quoted 4 lines · Sebastian Hesselbarth
I tried the above on Dove which is possibly affected by the workaround as it is also ARMv7. In Dove you can access unmapped addresses without any problems, but as Thomas already stated Armada 370/XP just hang. Must be some default AHB slave in Dove, which Armada 370/XP is missing.
Quoted 6 lines
Quoted 2 lines
It may be some clock setting somewhere on the 370/XP. The Dove will hang as well if you prod at peripherals which you've turned their clocks off.
The register in question (offset
0x20080from the base address of the internal register) is part of the "core" registers, so I clearly don't see how the system could even be booting if this clock was gated. No?
The question which was asked was:
What happens if you access a register at 0xd0xxxxxx when the registers are remapped to 0xf1xxxxxx?
The answer which was given was:
It hangs on XP / 370, but doesn't on Dove.
If the registers have been remapped, then 0xd0xxxxxx is _not_ going to hit any of the "core" registers. We're hitting "something else" and what I'm saying is that Dove will also hang if you hit a peripheral with its clocks turned off. Now, it may not be a peripheral, but a bus segment which is unclocked on those which hang.
As Dove only has clock gating in a few of its peripherals, it could be that whatever you hit at 0xd0xxxxxx on Dove is allowed to succeed because of this. Is that also true on XP or 370?
What we need to know is: after the boot loader passes control to the kernel, and before _we_ start fiddling around with any clocks, is the region at 0xd0xxxxxx accessible without hanging the CPU?
That's the point at which we'd want to probe for the remapped registers, so that's the point where the test access must be made - and with the system clocks in whatever state was left by the reset+boot loader.