Documentation/process: add soc maintainer handbook
Subsystems (5)
PATCH 1/1 Documentation/process: add soc maintainer handbook
From: Conor Dooley <[email protected]>
Arnd suggested that adding maintainer handbook for the SoC "subsystem" would be helpful in trying to bring on board maintainers for the various new platforms cropping up in RISC-V land.
Add a document briefly describing the role of the SoC subsystem and some basic advice for (new) platform maintainers.
---
CC: Rob Herring <[email protected]>
CC: Krzysztof Kozlowski <[email protected]>
CC: Conor Dooley <[email protected]>
CC: Jonathan Corbet <[email protected]>
CC: Arnd Bergmann <[email protected]>
CC: Olof Johansson <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- .../devicetree/bindings/writing-schema.rst | 2 + .../process/maintainer-handbooks.rst | 3 +- Documentation/process/maintainer-soc.rst | 181 ++++++++++++++++++ MAINTAINERS | 1 + 4 files changed, 186 insertions(+), 1 deletion(-) create mode 100644 Documentation/process/maintainer-soc.rst
Documentation/devicetree/bindings/writing-schema.rst +2 -0
@@ -136,6 +136,8 @@ installed. Ensure they are in your PATH (~/.local/bin by default). Recommended is also to install yamllint (used by dtschema when present). +.. _running-checks: + Running checks ~~~~~~~~~~~~~~
Documentation/process/maintainer-handbooks.rst +2 -1
@@ -15,5 +15,6 @@ Contents: :numbered: :maxdepth: 2 - maintainer-tip maintainer-netdev + maintainer-soc + maintainer-tip
Documentation/process/maintainer-soc.rst new file +181 -0
181 lines not on this page · raw message
MAINTAINERS +1 -0
@@ -1815,6 +1815,7 @@ L: [email protected] (moderated for non-subscribers) S: Maintained C: irc://irc.libera.chat/armlinux T: git git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git +F: Documentation/process/maintainer-soc.rst F: arch/arm/boot/dts/Makefile F: arch/arm64/boot/dts/Makefile
Signature · 1 line
2.39.2
Quoted 28 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Arnd suggested that adding maintainer handbook for the SoC "subsystem" would be helpful in trying to bring on board maintainers for the various new platforms cropping up in RISC-V land.
Add a document briefly describing the role of the SoC subsystem and some basic advice for (new) platform maintainers.
Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Conor Dooley <[email protected]>Documentation/process/maintainer-soc.rst new file +14
-0+ +What the SoC tree is not, however, is a location for architecture specific code +changes. Each architecture has it's own maintainers that are responsible for +architectural details, cpu errata and the like. + +Information for (new) Sub-maintainers +------------------------------------- + +As new platforms spring up, they often bring with them new submaintainers, +many of whom work for the silicon vendor, and may not be familiar with the +process. + +devicetree ABI stability +~~~~~~~~~~~~~~~~~~~~~~~~
Documentation/process/maintainer-soc.rst line 74
Quoted 10 lines
Documentation/process/maintainer-soc.rst new file +10
-0+ +Perhaps one of the most important things to highlight is that dt-bindings +document the ABI between the devicetree and the kernel. Once dt-bindings have +been merged (and appear in a release of the kernel) they are set in stone, and +any changes made must be compatible with existing devicetrees. This means that, +when changing properties, a "new" kernel must still be able to handle an old +devicetree. For many systems the devicetree is provided by firmware, and +upgrading to a newer kernel cannot cause regressions. Ideally, the inverse is +also true, and a new devicetree will also be compatible with an old kernel, +although this is often not possible.
I would prefer to skip it and instead: enhance Documentation/devicetree/bindings/ABI.rst and then reference it here.
Quoted 22 lines
Documentation/process/maintainer-soc.rst new file +20
-0+ +If changes are being made to a devicetree that are incompatible with old +kernels, the devicetree patch should not be applied until the driver is, or an +appropriate time later. Most importantly, any incompatible changes should be +clearly pointed out in the patch description and pull request, along with the +expected impact on existing users. + +Driver branch dependencies +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +A common problem is synchronizing changes between device drivers and devicetree +files, even if a change is compatible in both directions, this may require +coordinating how the changes get merged through different maintainer trees. + +Usually the branch that includes a driver change will also include the +corresponding change to the devicetree binding description, to ensure they are +in fact compatible. This means that the devicetree branch can end up causing +warnings in the "make dtbs_check" step. If a devicetree change depends on +missing additions to a header file in include/dt-bindings/, it will fail the +"make dtbs" step and not get merged.
Documentation/process/maintainer-soc.rst line 104
Quoted 10 lines
Documentation/process/maintainer-soc.rst new file +10
-0+ +There are multiple ways to deal with this: + + - Avoid defining custom macros in include/dt-bindings/ for hardware constants + that can be derived from a datasheet -- binding macros in header file should + only be used as a last resort if there is no natural way to define a binding + + - Use literal values in the devicetree file in place of macros even when a + header is required, and change them to the named representation in a + following release
I actually prefer such solution:
- Duplicate defines in the devicetree file hidden by #ifndef section
and remove them later in a following release
We can keep both, but mine above leads to cleaner changes in DTS file.
Documentation/process/maintainer-soc.rst line 110
Quoted 6 lines
Documentation/process/maintainer-soc.rst new file +6
-0+ + - Defer the devicetree changes to a release after the binding and driver have + already been merged + + - Change the bindings in a shared immutable branch that is used as the base for + both the driver change and the devicetree changes
The policy told to me some time ago was that no merges from driver branch or tree are allowed towards DTS branch, even if they come only with binding header change. There are exceptions for this, e.g. [1], but that would mean we need to express here rules for cross-tree merges.
Quoted 59 lines
Documentation/process/maintainer-soc.rst new file +59
-0+ +devicetree naming convention +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The general naming scheme for devicetree files are as follows. The aspects of a +platform that are set at the SoC level, like cpu cores, are contained in a file +named $soc.dtsi, for example, jh7100.dtsi. Integration details, that will vary +from board to board, are described in $soc-$board.dtsi. An example of this is +jh7100-beaglev-starlight.dts. Often many boards are variations on a theme, and +frequently there are intermediate files, such as jh7100-common.dtsi, which sit +between the $soc.dtsi and $soc-$board.dts files, containing the descriptions of +common hardware. + +Some platforms also have System on Modules, containing an SoC, which are then +integrated into several different boards. For these platforms, $soc-$som.dtsi +and $soc-$som-$board.dts are typical. + +Directories are usually named after the vendor of the SoC at the time of it's +inclusion, leading to some historical directory names in the tree. + +dtbs_check +~~~~~~~~~~ + +``make dtbs_check`` can be used to validate that devicetree files are compliant +with the dt-bindings that describe the ABI. Please see :ref:`running-checks` +for more information on the validation of devicetrees. + +For new platforms, or additions to existing ones, ``make dtbs_check`` should not +add any new warnings. For RISC-V, as it has the advantage of being a newer +architecture, ``make dtbs_check W=1`` is required to not add any new warnings. +If in any doubt about a devicetree change, reach out to the devicetree +maintainers. + + +Branches and Pull Requests +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Just as the main SoC tree has several branches, it is expected that +submaintainers will do the same. Driver, defconfig and devicetree changes should +all be split into separate branches and appear in separate pull requests to the +SoC maintainers. Each branch should be usable by itself and avoid +regressions that originate from dependencies on other branches. + +Small sets of patches can also be sent as separate emails to [email protected], +grouped into the same categories. + +If changes do not fit into the normal patterns, there can be additional +top-level branches, e.g. for a treewide rework, or the addition of new SoC +platforms including dts files and drivers. + +Branches with a lot of changes can benefit from getting split up into separate +topics branches, even if they end up getting merged into the same branch of the +SoC tree. An example here would be one branch for devicetree warning fixes, one +for a rework and one for newly added boards. + +Another common way to split up changes is to send an early pull request with the +majority of the changes at some point between rc1 and rc4, following up with one +or more smaller pull requests towards the end of the cycle that can add late +changes or address problems idenfied while testing the first set.
Documentation/process/maintainer-soc.rst line 179
Quoted 10 lines
Documentation/process/maintainer-soc.rst new file +10
-0+ +While there is no cut-off time for late pull requests, it helps to only send +small branches as time gets closer to the merge window. + +Pull requests for bugfixes for the current release can be sent at any time, but +again having multiple smaller branches is better than trying to combine too many +patches into one pull request. + +The subject line of a pull request should begin with "[GIT PULL]" and made using +a tag, rather than a branch. This tag should contain a short description
a signed tag
Quoted 1 line
Best regards,
Krzysztof
Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Arnd suggested that adding maintainer handbook for the SoC "subsystem" would be helpful in trying to bring on board maintainers for the various new platforms cropping up in RISC-V land.
Add a document briefly describing the role of the SoC subsystem and some basic advice for (new) platform maintainers.
Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Conor Dooley <[email protected]>
Quoted 15 lines
Documentation/process/maintainer-soc.rst line 74
Quoted 12 lines
Documentation/process/maintainer-soc.rst new file +12
-0+devicetree ABI stability +~~~~~~~~~~~~~~~~~~~~~~~~ + +Perhaps one of the most important things to highlight is that dt-bindings +document the ABI between the devicetree and the kernel. Once dt-bindings have +been merged (and appear in a release of the kernel) they are set in stone, and +any changes made must be compatible with existing devicetrees. This means that, +when changing properties, a "new" kernel must still be able to handle an old +devicetree. For many systems the devicetree is provided by firmware, and +upgrading to a newer kernel cannot cause regressions. Ideally, the inverse is +also true, and a new devicetree will also be compatible with an old kernel, +although this is often not possible.I would prefer to skip it and instead: enhance
Documentation/devicetree/bindings/ABI.rstand then reference it here.
Sure.
Quoted 26 lines
Quoted 13 lines
Documentation/process/maintainer-soc.rst new file +13
-0+Driver branch dependencies +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +A common problem is synchronizing changes between device drivers and devicetree +files, even if a change is compatible in both directions, this may require +coordinating how the changes get merged through different maintainer trees. + +Usually the branch that includes a driver change will also include the +corresponding change to the devicetree binding description, to ensure they are +in fact compatible. This means that the devicetree branch can end up causing +warnings in the "make dtbs_check" step. If a devicetree change depends on +missing additions to a header file in include/dt-bindings/, it will fail the +"make dtbs" step and not get merged.Documentation/process/maintainer-soc.rst line 104
Quoted 10 lines
Documentation/process/maintainer-soc.rst new file +10
-0+ +There are multiple ways to deal with this: + + - Avoid defining custom macros in include/dt-bindings/ for hardware constants + that can be derived from a datasheet -- binding macros in header file should + only be used as a last resort if there is no natural way to define a binding + + - Use literal values in the devicetree file in place of macros even when a + header is required, and change them to the named representation in a + following releaseI actually prefer such solution:
Quoted 4 lines
- Duplicate defines in the devicetree file hidden by #ifndef section
and remove them later in a following releaseWe can keep both, but mine above leads to cleaner changes in DTS file.
I think all of the options involved are either a bit ugly, or a bit of a pain in the hole.
Quoted 10 lines
Documentation/process/maintainer-soc.rst line 110
Quoted 5 lines
+ - Defer the devicetree changes to a release after the binding and driver have
Documentation/process/maintainer-soc.rst new file +4
-0+ already been merged + + - Change the bindings in a shared immutable branch that is used as the base for + both the driver change and the devicetree changesThe policy told to me some time ago was that no merges from driver branch or tree are allowed towards DTS branch, even if they come only with binding header change. There are exceptions for this, e.g. [1], but that would mean we need to express here rules for cross-tree merges.
I've got away with having an immutable branch for dt-binding headers! That said, Arnd did actually have a look at this (and suggested some changes) before I sent it & did not cry fowl about this section. IIRC, this is actually his wording, not mine.
Quoted 7 lines
Documentation/process/maintainer-soc.rst line 179
Quoted 5 lines
Documentation/process/maintainer-soc.rst new file +4
-0+Branches and Pull Requests +~~~~~~~~~~~~~~~~~~~~~~~~~~ +The subject line of a pull request should begin with "[GIT PULL]" and made using +a tag, rather than a branch. This tag should contain a short descriptiona signed tag
I initially had that explicit wording, but I dropped it when I added the ref to the pull requests doc since that talks about signing. It's probably better to be explicit & re-adding it is trivial.
Thanks,
Conor.
Quoted 72 lines · Conor Dooley
Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Arnd suggested that adding maintainer handbook for the SoC "subsystem" would be helpful in trying to bring on board maintainers for the various new platforms cropping up in RISC-V land.
Add a document briefly describing the role of the SoC subsystem and some basic advice for (new) platform maintainers.
Suggested-by Arnd Bergmann <[email protected]>Signed-off-by Conor Dooley <[email protected]>Quoted 15 lines
Documentation/process/maintainer-soc.rst line 74
Quoted 12 lines
Documentation/process/maintainer-soc.rst new file +12
-0+devicetree ABI stability +~~~~~~~~~~~~~~~~~~~~~~~~ + +Perhaps one of the most important things to highlight is that dt-bindings +document the ABI between the devicetree and the kernel. Once dt-bindings have +been merged (and appear in a release of the kernel) they are set in stone, and +any changes made must be compatible with existing devicetrees. This means that, +when changing properties, a "new" kernel must still be able to handle an old +devicetree. For many systems the devicetree is provided by firmware, and +upgrading to a newer kernel cannot cause regressions. Ideally, the inverse is +also true, and a new devicetree will also be compatible with an old kernel, +although this is often not possible.I would prefer to skip it and instead: enhance
Documentation/devicetree/bindings/ABI.rstand then reference it here.Sure.
Quoted 26 lines
Quoted 13 lines
Documentation/process/maintainer-soc.rst new file +13
-0+Driver branch dependencies +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +A common problem is synchronizing changes between device drivers and devicetree +files, even if a change is compatible in both directions, this may require +coordinating how the changes get merged through different maintainer trees. + +Usually the branch that includes a driver change will also include the +corresponding change to the devicetree binding description, to ensure they are +in fact compatible. This means that the devicetree branch can end up causing +warnings in the "make dtbs_check" step. If a devicetree change depends on +missing additions to a header file in include/dt-bindings/, it will fail the +"make dtbs" step and not get merged.Documentation/process/maintainer-soc.rst line 104
Quoted 10 lines
Documentation/process/maintainer-soc.rst new file +10
-0+ +There are multiple ways to deal with this: + + - Avoid defining custom macros in include/dt-bindings/ for hardware constants + that can be derived from a datasheet -- binding macros in header file should + only be used as a last resort if there is no natural way to define a binding + + - Use literal values in the devicetree file in place of macros even when a + header is required, and change them to the named representation in a + following releaseI actually prefer such solution:
Quoted 4 lines
- Duplicate defines in the devicetree file hidden by #ifndef section
and remove them later in a following releaseWe can keep both, but mine above leads to cleaner changes in DTS file.
I think all of the options involved are either a bit ugly, or a bit of a pain in the hole.
Quoted 6 lines
Quoted 5 lines
+ - Defer the devicetree changes to a release after the binding and driver have
Documentation/process/maintainer-soc.rst new file +4
-0+ already been merged + + - Change the bindings in a shared immutable branch that is used as the base for + both the driver change and the devicetree changes
Quoted 6 lines
Quoted 4 lines
The policy told to me some time ago was that no merges from driver branch or tree are allowed towards DTS branch, even if they come only with binding header change. There are exceptions for this, e.g. [1], but that would mean we need to express here rules for cross-tree merges.
I've got away with having an immutable branch for dt-binding headers!
Of course, all is in an immutable branch, but in which tree?
I talk about a case when driver tree, e.g. different clock maintainer, takes the binding.
Quoted 3 lines
That said, Arnd did actually have a look at this (and suggested some changes) before I sent it & did not cry fowl about this section. IIRC, this is actually his wording, not mine.
Best regards,
Krzysztof
Quoted 10 lines · Krzysztof Kozlowski
Quoted 9 lines · Conor Dooley
Quoted 8 lines · Krzysztof Kozlowski
Quoted 5 lines · Conor Dooley
+ - Defer the devicetree changes to a release after the binding and driver have
Documentation/process/maintainer-soc.rst new file +4
-0+ already been merged + + - Change the bindings in a shared immutable branch that is used as the base for + both the driver change and the devicetree changes
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
The policy told to me some time ago was that no merges from driver branch or tree are allowed towards DTS branch, even if they come only with binding header change. There are exceptions for this, e.g. [1], but that would mean we need to express here rules for cross-tree merges.
I've got away with having an immutable branch for dt-binding headers!
Of course, all is in an immutable branch, but in which tree?
For example:
- dt-bindings & header with the clock defines in the base/immutable branch on top of -rc1
- driver patches on top of the immutable branch, in a PR to Stephen
- dts patches on top of the immutable branch, PR to Arnd
So, clock tree doesn't get the dts, soc tree doesn't get the driver. Hopefully that clarifies what I meant.
Quoted 2 lines
I talk about a case when driver tree, e.g. different clock maintainer, takes the binding.
If the other tree just "takes the binding", without some coordination, then you're SOOL and have to wait a release.
Quoted 3 lines
Quoted 3 lines
That said, Arnd did actually have a look at this (and suggested some changes) before I sent it & did not cry fowl about this section. IIRC, this is actually his wording, not mine.
Probably worth Arnd chiming in & just telling us what he is okay with taking.
Cheers,
Conor.
Arnd Bergmann
maintainerQuoted 14 lines · Conor Dooley
Quoted 8 lines · Krzysztof Kozlowski
Documentation/process/maintainer-soc.rst line 110
Quoted 5 lines · Conor Dooley
+ - Defer the devicetree changes to a release after the binding and driver have
Documentation/process/maintainer-soc.rst new file +4
-0+ already been merged + + - Change the bindings in a shared immutable branch that is used as the base for + both the driver change and the devicetree changesQuoted 4 lines
The policy told to me some time ago was that no merges from driver branch or tree are allowed towards DTS branch, even if they come only with binding header change. There are exceptions for this, e.g. [1], but that would mean we need to express here rules for cross-tree merges.
Quoted 4 lines
I've got away with having an immutable branch for dt-binding headers! That said, Arnd did actually have a look at this (and suggested some changes) before I sent it & did not cry fowl about this section. IIRC, this is actually his wording, not mine.
Yes, I merge a lot of shared branches with dt-binding changes into the soc/dt branch, and I wasn't aware of a policy against that, certainly did not enforce it.
I generally object to changes touching drivers/* or anything else besides arch/*/boot/dts, Documentation/devicetree/bindings/ and include/dt-bindings in the dt branches, but I have made expections in the past when there was a particular important reason.
Arnd
Quoted 15 lines · Arnd Bergmann
Quoted 14 lines · Conor Dooley
Quoted 12 lines · Krzysztof Kozlowski
Documentation/process/maintainer-soc.rst line 110
Quoted 5 lines · Conor Dooley
+ - Defer the devicetree changes to a release after the binding and driver have
Documentation/process/maintainer-soc.rst new file +4
-0+ already been merged + + - Change the bindings in a shared immutable branch that is used as the base for + both the driver change and the devicetree changesThe policy told to me some time ago was that no merges from driver branch or tree are allowed towards DTS branch, even if they come only with binding header change. There are exceptions for this, e.g. [1], but that would mean we need to express here rules for cross-tree merges.
Quoted 8 lines
Quoted 4 lines
I've got away with having an immutable branch for dt-binding headers! That said, Arnd did actually have a look at this (and suggested some changes) before I sent it & did not cry fowl about this section. IIRC, this is actually his wording, not mine.
Yes, I merge a lot of shared branches with dt-binding changes into the soc/dt branch, and I wasn't aware of a policy against that, certainly did not enforce it.
Not as enforcement, but as your (or Olof's) preferred approach. See for example:
https://lore.kernel.org/all/CAOesGMhfrWSvLtDtGRWBTJiAoeSwzGgsdUTm26j1mpoVu0ghDg@mail.gmail.com/
https://lore.kernel.org/all/CAOesGMi98hJnUYVLkgcbBpXsi-Xe6QPh-gtLaPWPO-EW+KcGuQ@mail.gmail.com/
I understand the "preferred approach" as part of discussions on the patches, when the entire patchset can still be re-arranged or changed. Not as strict policy applied on the actual git pull request from sub-arch maintainer.
If we want to keep such recommendation, let's embed it into maintainer handbook, so we will not have to dig the emails.
Quoted 5 lines
I generally object to changes touching
drivers/*or anything else besidesarch/*/boot/dts,Documentation/devicetree/bindings/andinclude/dt-bindingsin the dt branches, but I have made expections in the past when there was a particular important reason.
Best regards,
Krzysztof
Quoted 18 lines · Krzysztof Kozlowski
Documentation/process/maintainer-soc.rst line 74
Quoted 12 lines · Conor Dooley
Documentation/process/maintainer-soc.rst new file +12
-0+devicetree ABI stability +~~~~~~~~~~~~~~~~~~~~~~~~ + +Perhaps one of the most important things to highlight is that dt-bindings +document the ABI between the devicetree and the kernel. Once dt-bindings have +been merged (and appear in a release of the kernel) they are set in stone, and +any changes made must be compatible with existing devicetrees. This means that, +when changing properties, a "new" kernel must still be able to handle an old +devicetree. For many systems the devicetree is provided by firmware, and +upgrading to a newer kernel cannot cause regressions. Ideally, the inverse is +also true, and a new devicetree will also be compatible with an old kernel, +although this is often not possible.I would prefer to skip it and instead: enhance
Documentation/devicetree/bindings/ABI.rstand then reference it here.
Quoted 6 lines
Documentation/process/maintainer-soc.rst line 80
Quoted 6 lines
Documentation/process/maintainer-soc.rst new file +6
-0+ +If changes are being made to a devicetree that are incompatible with old +kernels, the devicetree patch should not be applied until the driver is, or an +appropriate time later. Most importantly, any incompatible changes should be +clearly pointed out in the patch description and pull request, along with the +expected impact on existing users.
I'm not really sure that I like this truncated section so much, but here it is... I kept the last paragraph intact as it does not talk about the ABI, but rather exceptions of submaintainers.
devicetree ABI stability
~~~~~~~~~~~~~~~~~~~~~~~~
Perhaps one of the most important things to highlight is that dt-bindings document the ABI between the devicetree and the kernel. Please see :ref:devicetree-abi for devicetree ABI rules.
If changes are being made to a devicetree that are incompatible with old kernels, the devicetree patch should not be applied until the driver is, or an appropriate time later. Most importantly, any incompatible changes should be clearly pointed out in the patch description and pull request, along with the expected impact on existing users.
Quoted 38 lines · Conor Dooley
Quoted 18 lines · Krzysztof Kozlowski
Documentation/process/maintainer-soc.rst line 74
Quoted 12 lines · Conor Dooley
Documentation/process/maintainer-soc.rst new file +12
-0+devicetree ABI stability +~~~~~~~~~~~~~~~~~~~~~~~~ + +Perhaps one of the most important things to highlight is that dt-bindings +document the ABI between the devicetree and the kernel. Once dt-bindings have +been merged (and appear in a release of the kernel) they are set in stone, and +any changes made must be compatible with existing devicetrees. This means that, +when changing properties, a "new" kernel must still be able to handle an old +devicetree. For many systems the devicetree is provided by firmware, and +upgrading to a newer kernel cannot cause regressions. Ideally, the inverse is +also true, and a new devicetree will also be compatible with an old kernel, +although this is often not possible.I would prefer to skip it and instead: enhance
Documentation/devicetree/bindings/ABI.rstand then reference it here.Quoted 6 lines
Documentation/process/maintainer-soc.rst line 80
Quoted 6 lines
Documentation/process/maintainer-soc.rst new file +6
-0+ +If changes are being made to a devicetree that are incompatible with old +kernels, the devicetree patch should not be applied until the driver is, or an +appropriate time later. Most importantly, any incompatible changes should be +clearly pointed out in the patch description and pull request, along with the +expected impact on existing users.I'm not really sure that I like this truncated section so much, but here it is... I kept the last paragraph intact as it does not talk about the ABI, but rather exceptions of submaintainers.
devicetree ABI stability
~~~~~~~~~~~~~~~~~~~~~~~~Perhaps one of the most important things to highlight is that dt-bindings document the ABI between the devicetree and the kernel. Please see :ref:
devicetree-abifor devicetree ABI rules.
Quoted 5 lines
If changes are being made to a devicetree that are incompatible with old kernels, the devicetree patch should not be applied until the driver is, or an appropriate time later. Most importantly, any incompatible changes should be clearly pointed out in the patch description and pull request, along with the expected impact on existing users.
Do you have an opinion on acknowledging the existence of other OSes here?
Jess
Quoted 39 lines · Jessica Clarke
Quoted 38 lines · Conor Dooley
Quoted 18 lines · Krzysztof Kozlowski
Documentation/process/maintainer-soc.rst line 74
Quoted 12 lines · Conor Dooley
Documentation/process/maintainer-soc.rst new file +12
-0+devicetree ABI stability +~~~~~~~~~~~~~~~~~~~~~~~~ + +Perhaps one of the most important things to highlight is that dt-bindings +document the ABI between the devicetree and the kernel. Once dt-bindings have +been merged (and appear in a release of the kernel) they are set in stone, and +any changes made must be compatible with existing devicetrees. This means that, +when changing properties, a "new" kernel must still be able to handle an old +devicetree. For many systems the devicetree is provided by firmware, and +upgrading to a newer kernel cannot cause regressions. Ideally, the inverse is +also true, and a new devicetree will also be compatible with an old kernel, +although this is often not possible.I would prefer to skip it and instead: enhance
Documentation/devicetree/bindings/ABI.rstand then reference it here.Quoted 6 lines
Documentation/process/maintainer-soc.rst line 80
Quoted 6 lines
Documentation/process/maintainer-soc.rst new file +6
-0+ +If changes are being made to a devicetree that are incompatible with old +kernels, the devicetree patch should not be applied until the driver is, or an +appropriate time later. Most importantly, any incompatible changes should be +clearly pointed out in the patch description and pull request, along with the +expected impact on existing users.I'm not really sure that I like this truncated section so much, but here it is... I kept the last paragraph intact as it does not talk about the ABI, but rather exceptions of submaintainers.
devicetree ABI stability
~~~~~~~~~~~~~~~~~~~~~~~~Perhaps one of the most important things to highlight is that dt-bindings document the ABI between the devicetree and the kernel. Please see :ref:
devicetree-abifor devicetree ABI rules.
Quoted 7 lines
Quoted 5 lines
If changes are being made to a devicetree that are incompatible with old kernels, the devicetree patch should not be applied until the driver is, or an appropriate time later. Most importantly, any incompatible changes should be clearly pointed out in the patch description and pull request, along with the expected impact on existing users.
Do you have an opinion on acknowledging the existence of other OSes here?
I think that is fair.