RFC Allow late mdesc detection
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 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 [RFC,PATCH 0/2] Allow late mdesc detection
Hi Nicolas,
Quoted 5 lines
The fundamental problem with those patches is that we actually want to move in the opposite direction for the eventual support of multiple SOCs in the same kernel, i.e. rely on the machine ID -> mdesc to determine the right debug addresses at run time and eventually make the addruart into something that is not hardcoded at compile time.
Sure, I think that's where we're going in general, but I think the debug stuff is an exception - we want that up as early as possible, and with as few dependencies on other bits of code as possible.
At present we can only ever select one implementation of addruart in a kernel build, so we just can't have a multiplatform kernel with debug support. We *could* add other trickery to select a debug implementation at runtime, but I think adding complexity to the debug path is a bad idea.
I think allowing a hard-coded debug system is fine; it can be enabled when we're debugging a specific problem, and removed to enable the true multiplatform support. This is also what is done on powerpc - you can select a "udbg" output method suitable for your platform at compile time, but this doesn't affect the other parts of the kernel.
I also think it's good to only specify the debug parameters in one place (addruart), rather than have to provide them in adduart *and* the mdesc.
Thoughts?
Cheers,
Jeremy