Skip to contentSkip to conversation

Patch "arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S" has been added to the 6.8-stable tree

DISCUSSION Konrad Dybcio 6 participants 10 messages Apr 10, 2024 – Apr 15, 2024 1 message not in the archive Stable branch

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Konrad

#2 lore raw
Quoted 10 lines · Konrad Dybcio
Quoted 3 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

thanks,

greg k-h

#3 lore raw
Quoted 6 lines · Greg KH
Quoted 5 lines · Konrad Dybcio
Quoted 2 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

That's true, but maybe DTS should have an exception. I guess you think this is trivial device ID, because the patch contents is small. But it is or it can be misleading. The patch adds new small DTS file which includes another file:

	#include "sm7125-xiaomi-common.dtsi"

Which includes another 7 files:

	#include <dt-bindings/arm/qcom,ids.h>
	#include <dt-bindings/firmware/qcom,scm.h>
	#include <dt-bindings/gpio/gpio.h>
	#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
	#include "sm7125.dtsi"
	#include "pm6150.dtsi"
	#include "pm6150l.dtsi"

Out of which last three are likely to be changing as well.

This means that following workflow is reasonable and likely:
1. Add sm7125.dtsi (or pm6150.dtsi or pm6150l.dtsi)
2. Add some sm7125 board (out of scope here).
3. Release new kernel, e.g. v6.7.
4. Make more changes to sm7125.dtsi
5. The patch discussed here, so one adding sm7125-xiaomi-curtana.dts.

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

The step (4) here might be small, but might be big as well.

IOW, new DTS board is not a quirk, but new hardware description which relies on other DTS files. Only if all other parts are the same, such backport is reasonable.

Best regards,
Krzysztof

#4 lore raw
Quoted 42 lines · Krzysztof Kozlowski
Quoted 6 lines · Greg KH
Quoted 5 lines · Konrad Dybcio
Quoted 2 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

That's true, but maybe DTS should have an exception. I guess you think this is trivial device ID, because the patch contents is small. But it is or it can be misleading. The patch adds new small DTS file which includes another file:

	#include "sm7125-xiaomi-common.dtsi"

Which includes another 7 files:

	#include <dt-bindings/arm/qcom,ids.h>
	#include <dt-bindings/firmware/qcom,scm.h>
	#include <dt-bindings/gpio/gpio.h>
	#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
	#include "sm7125.dtsi"
	#include "pm6150.dtsi"
	#include "pm6150l.dtsi"

Out of which last three are likely to be changing as well.

This means that following workflow is reasonable and likely:
1. Add sm7125.dtsi (or pm6150.dtsi or pm6150l.dtsi)
2. Add some sm7125 board (out of scope here).
3. Release new kernel, e.g. v6.7.
4. Make more changes to sm7125.dtsi
5. The patch discussed here, so one adding sm7125-xiaomi-curtana.dts.

Quoted 4 lines

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

The step (4) here might be small, but might be big as well.

Fair enough. So should we drop this change?

thanks,

greg k-h

#5 lore raw
Quoted 43 lines · Greg KH
Quoted 42 lines · Krzysztof Kozlowski
Quoted 6 lines · Greg KH
Quoted 5 lines · Konrad Dybcio
Quoted 2 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

That's true, but maybe DTS should have an exception. I guess you think this is trivial device ID, because the patch contents is small. But it is or it can be misleading. The patch adds new small DTS file which includes another file:

	#include "sm7125-xiaomi-common.dtsi"

Which includes another 7 files:

	#include <dt-bindings/arm/qcom,ids.h>
	#include <dt-bindings/firmware/qcom,scm.h>
	#include <dt-bindings/gpio/gpio.h>
	#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
	#include "sm7125.dtsi"
	#include "pm6150.dtsi"
	#include "pm6150l.dtsi"

Out of which last three are likely to be changing as well.

This means that following workflow is reasonable and likely:
1. Add sm7125.dtsi (or pm6150.dtsi or pm6150l.dtsi)
2. Add some sm7125 board (out of scope here).
3. Release new kernel, e.g. v6.7.
4. Make more changes to sm7125.dtsi
5. The patch discussed here, so one adding sm7125-xiaomi-curtana.dts.

Quoted 6 lines
Quoted 4 lines

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

The step (4) here might be small, but might be big as well.

Fair enough. So should we drop this change?

I vote for dropping. Also, I think such DTS patches should not be picked automatically via AUTOSEL. Manual backports or targetted Cc-stable, assuming that backporter investigated it, seem ok.

Best regards,
Krzysztof

#6 lore raw
Quoted 47 lines · Krzysztof Kozlowski
Quoted 46 lines · Greg KH
Quoted 45 lines · Krzysztof Kozlowski
Quoted 6 lines · Greg KH
Quoted 5 lines · Konrad Dybcio
Quoted 2 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

That's true, but maybe DTS should have an exception. I guess you think this is trivial device ID, because the patch contents is small. But it is or it can be misleading. The patch adds new small DTS file which includes another file:

	#include "sm7125-xiaomi-common.dtsi"

Which includes another 7 files:

	#include <dt-bindings/arm/qcom,ids.h>
	#include <dt-bindings/firmware/qcom,scm.h>
	#include <dt-bindings/gpio/gpio.h>
	#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
	#include "sm7125.dtsi"
	#include "pm6150.dtsi"
	#include "pm6150l.dtsi"

Out of which last three are likely to be changing as well.

This means that following workflow is reasonable and likely:
1. Add sm7125.dtsi (or pm6150.dtsi or pm6150l.dtsi)
2. Add some sm7125 board (out of scope here).
3. Release new kernel, e.g. v6.7.
4. Make more changes to sm7125.dtsi
5. The patch discussed here, so one adding sm7125-xiaomi-curtana.dts.

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

The step (4) here might be small, but might be big as well.

Fair enough. So should we drop this change?

I vote for dropping. Also, I think such DTS patches should not be picked automatically via AUTOSEL. Manual backports or targetted Cc-stable, assuming that backporter investigated it, seem ok.

Sasha now dropped this, thanks.

Sasha, want to add dts changes to the AUTOSEL "deny-list"?

thanks,

greg k-h

maintainer
#7 lore raw
Quoted 52 lines · Greg KH
Quoted 51 lines · Krzysztof Kozlowski
Quoted 49 lines · Greg KH
Quoted 42 lines · Krzysztof Kozlowski
Quoted 6 lines · Greg KH
Quoted 5 lines · Konrad Dybcio
Quoted 2 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

That's true, but maybe DTS should have an exception. I guess you think this is trivial device ID, because the patch contents is small. But it is or it can be misleading. The patch adds new small DTS file which includes another file:

	#include "sm7125-xiaomi-common.dtsi"

Which includes another 7 files:

	#include <dt-bindings/arm/qcom,ids.h>
	#include <dt-bindings/firmware/qcom,scm.h>
	#include <dt-bindings/gpio/gpio.h>
	#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
	#include "sm7125.dtsi"
	#include "pm6150.dtsi"
	#include "pm6150l.dtsi"

Out of which last three are likely to be changing as well.

This means that following workflow is reasonable and likely:
1. Add sm7125.dtsi (or pm6150.dtsi or pm6150l.dtsi)
2. Add some sm7125 board (out of scope here).
3. Release new kernel, e.g. v6.7.
4. Make more changes to sm7125.dtsi
5. The patch discussed here, so one adding sm7125-xiaomi-curtana.dts.

Quoted 4 lines

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

The step (4) here might be small, but might be big as well.

Fair enough. So should we drop this change?

Quoted 7 lines
Quoted 3 lines

I vote for dropping. Also, I think such DTS patches should not be picked automatically via AUTOSEL. Manual backports or targetted Cc-stable, assuming that backporter investigated it, seem ok.

Sasha now dropped this, thanks.

Sasha, want to add dts changes to the AUTOSEL "deny-list"?

Sure, this makes sense.

Signature · 2 lines
Thanks,
Sasha
#8 lore raw
Quoted 57 lines · Sasha Levin
Quoted 56 lines · Greg KH
Quoted 54 lines · Krzysztof Kozlowski
Quoted 43 lines · Greg KH
Quoted 42 lines · Krzysztof Kozlowski
Quoted 6 lines · Greg KH
Quoted 5 lines · Konrad Dybcio
Quoted 2 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

arm64: dts: qcom: Add support for Xiaomi Redmi Note 9S

autosel has been reeaaaaaly going over the top lately, particularly with dts patches.. I'm not sure adding support for a device is something that should go to stable

Simple device ids and quirks have always been stable material.

That's true, but maybe DTS should have an exception. I guess you think this is trivial device ID, because the patch contents is small. But it is or it can be misleading. The patch adds new small DTS file which includes another file:

	#include "sm7125-xiaomi-common.dtsi"

Which includes another 7 files:

	#include <dt-bindings/arm/qcom,ids.h>
	#include <dt-bindings/firmware/qcom,scm.h>
	#include <dt-bindings/gpio/gpio.h>
	#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
	#include "sm7125.dtsi"
	#include "pm6150.dtsi"
	#include "pm6150l.dtsi"

Out of which last three are likely to be changing as well.

This means that following workflow is reasonable and likely:
1. Add sm7125.dtsi (or pm6150.dtsi or pm6150l.dtsi)
2. Add some sm7125 board (out of scope here).
3. Release new kernel, e.g. v6.7.
4. Make more changes to sm7125.dtsi
5. The patch discussed here, so one adding sm7125-xiaomi-curtana.dts.

Quoted 6 lines
Quoted 4 lines

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

The step (4) here might be small, but might be big as well.

Fair enough. So should we drop this change?

I vote for dropping. Also, I think such DTS patches should not be picked automatically via AUTOSEL. Manual backports or targetted Cc-stable, assuming that backporter investigated it, seem ok.

Quoted 5 lines
Quoted 3 lines

Sasha now dropped this, thanks.

Sasha, want to add dts changes to the AUTOSEL "deny-list"?

Sure, this makes sense.

Does it? Seems like a rather big hammer to me. I totally understand blocking the addition of new dts files to stable, but there's a whole load of different people maintaining dts files with differing levels of remembering to cc stable explicitly.

That said, often a dts backport depends on a driver (or binding) change too, so backporting one without the other may have no effect. I have no idea whether or not AUTOSEL is capable of picking out those sort of dependencies.

#9 lore raw
Quoted 22 lines · Conor Dooley
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 6 lines
Quoted 4 lines

Now if you backport only (5) above, without (4), it won't work. Might compile, might not. Even if it compiles, might not work.

The step (4) here might be small, but might be big as well.

Fair enough. So should we drop this change?

I vote for dropping. Also, I think such DTS patches should not be picked automatically via AUTOSEL. Manual backports or targetted Cc-stable, assuming that backporter investigated it, seem ok.

Quoted 5 lines
Quoted 3 lines

Sasha now dropped this, thanks.

Sasha, want to add dts changes to the AUTOSEL "deny-list"?

Sure, this makes sense.

Does it? Seems like a rather big hammer to me. I totally understand blocking the addition of new dts files to stable, but there's a whole load of different people maintaining dts files with differing levels of remembering to cc stable explicitly.

Quoted 4 lines

That said, often a dts backport depends on a driver (or binding) change too, so backporting one without the other may have no effect. I have no idea whether or not AUTOSEL is capable of picking out those sort of dependencies.

Uh, yes, I understood as "trivial quirks and new device ID" AUTOSEL behavior. Not AUTOSEL for DTS patches in general.

Best regards,
Krzysztof

#10 lore raw
In reply to Conor Dooley
Quoted 17 lines · Conor Dooley
Quoted 10 lines · Sasha Levin
Quoted 7 lines · Greg KH
Quoted 3 lines · Krzysztof Kozlowski

I vote for dropping. Also, I think such DTS patches should not be picked automatically via AUTOSEL. Manual backports or targetted Cc-stable, assuming that backporter investigated it, seem ok.

Sasha, want to add dts changes to the AUTOSEL "deny-list"?

Sure, this makes sense.

Does it? Seems like a rather big hammer to me. I totally understand blocking the addition of new dts files to stable, but there's a whole load of different people maintaining dts files with differing levels of remembering to cc stable explicitly.

Quoted 4 lines

That said, often a dts backport depends on a driver (or binding) change too, so backporting one without the other may have no effect. I have no idea whether or not AUTOSEL is capable of picking out those sort of dependencies.

In the best case backporting a dts change as no effect, but it can also break the driver completely unless the corresponding driver changes are also backported.

And such breaking dts changes are currently being pulled in as dependencies:

https://lore.kernel.org/all/[email protected]/

I'm all for not backporting any dts changes that lack an explicit CC stable tag.

(And people will never learn to add the CC stable tag when everything with just a Fixes tag is being pulled in anyway.)

Johan