Skip to content

irqchip: gic: killing gic_arch_extn, slowly

Arnd Bergmann linux-arm-kernel 1 version New

Get series with b4
b4 am 14936022.4dFVyl0YXu@wuerfel

Versions newest first

  1. v1 Latest0 of 16 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 16 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.

Read the v1 thread

Cover letter [PATCH 00/16] irqchip: gic: killing gic_arch_extn, slowly
Quoted 19 lines · On Wednesday 03 December 2014 14:59:00 Marc Zyngier wrote:
Quoted 13 lines · Arnd Bergmann
Quoted 5 lines · On Tuesday 02 December 2014 16:58:01 Marc Zyngier wrote:

- This actively *breaks* existing setups. Once you boot a new kernel with an old DT, suspend/resume *will* be broken. Old kernels on a new DT won't even boot! You've been warned. This really outline the necessity of actually describing the HW in device trees...

I wonder if we should take this as the trigger to come up with a better way of handling incompatible binding changes. The machine_desc has a .dt_fixup callback that we could use to modify the DT passed from a boot loader and warn about it, but no platform does this at the moment.

Quoted 4 lines

From what I can tell, the required change to get an old dtb working with a new kernel is to add a particular node and flip a few interrupt-parent properties, which seems doable as a quirk if people agree that it's a good idea.

Quoted 4 lines

That's probably the only way to avoid the breakage introduced by this kind of changes. A few questions though:
- Where do we stop? Eventually, don't we end-up with a full DT in there?
- When do we retire such fixup? Or do we keep them forever?

Excellent questions. My first reaction to both would be to leave it up to the individual platform maintainer, but I'd also limit it to working around regressions and never to add device nodes in order to activate features that didn't already work with an older kernel.

Also, it would probably be good to control these using a compile-time option that easily allows building a kernel with no such hacks, possibly even using a versioning system to annotate how far back you want to support, though I would not implement that at first.

Arnd