Skip to contentSkip to conversation

powerpc/sequoia: fix NAND partitions not to overlap

PATCH Applied Pavel Machek 4 participants 10 messages Apr 2, 2017 – May 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/sequoia: fix NAND partitions not to overlap

Fix overlapping NAND partitions.

arch/powerpc/boot/dts/sequoia.dts +1 -1
index b1d3292..e41b88a 100644
@@ -229,7 +229,7 @@
 						};
 						partition@84000 {
 							label = "user";
-							reg = <0x00000000 0x01f7c000>;
+							reg = <0x00084000 0x01f7c000>;
 						};
 					};
 				};
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#1 lore raw
Quoted 3 lines · Pavel Machek

Fix overlapping NAND partitions.

Ping? Two partitions at same place are bad news...
Pavel

Quoted 16 lines
arch/powerpc/boot/dts/sequoia.dts +1 -1
index b1d3292..e41b88a 100644
@@ -229,7 +229,7 @@
 						};
 						partition@84000 {
 							label = "user";
-							reg = <0x00000000 0x01f7c000>;
+							reg = <0x00084000 0x01f7c000>;
 						};
 					};
 				};
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw
Quoted 6 lines · On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek <[email protected]> wrote:
Quoted 3 lines · Pavel Machek

Fix overlapping NAND partitions.

Ping? Two partitions at same place are bad news...

Please expand on "bad news"? What are the runtime effects of this change? Decisions about which kernel(s) to patch depend on this info.

#3 lore raw
Quoted 11 lines · Andrew Morton
Quoted 6 lines · On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek…
Quoted 3 lines · Pavel Machek

Fix overlapping NAND partitions.

Ping? Two partitions at same place are bad news...

Please expand on "bad news"? What are the runtime effects of this change? Decisions about which kernel(s) to patch depend on this info.

Well... two partitions at same place. If you use one, you will corrupt information on the other one.

OTOH this moves partition around (so that they don't overlap) so it is probably not stable candidate.

I guess this is not huge issue; people using these boards probably have custom dts changes, anyway...

Best regards,

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#4 lore raw
Quoted 13 lines · Pavel Machek
Quoted 11 lines · Andrew Morton
Quoted 6 lines · On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek…
Quoted 3 lines · Pavel Machek

Fix overlapping NAND partitions.

Ping? Two partitions at same place are bad news...

Please expand on "bad news"? What are the runtime effects of this change? Decisions about which kernel(s) to patch depend on this info.

Quoted 8 lines

Well... two partitions at same place. If you use one, you will corrupt information on the other one.

OTOH this moves partition around (so that they don't overlap) so it is probably not stable candidate.

I guess this is not huge issue; people using these boards probably have custom dts changes, anyway...

Or no one's even using it anymore.

I can take this via powerpc, I won't mark it for stable etc.

cheers
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Hi!

Quoted 6 lines
Quoted 6 lines

Well... two partitions at same place. If you use one, you will corrupt information on the other one.

OTOH this moves partition around (so that they don't overlap) so it is probably not stable candidate.

Quoted 6 lines
Quoted 2 lines

I guess this is not huge issue; people using these boards probably have custom dts changes, anyway...

Or no one's even using it anymore.

I can take this via powerpc, I won't mark it for stable etc.

That sounds good.

Thanks,
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#6 lore raw
In reply to Michael Ellerman
Quoted 21 lines · Michael Ellerman
Quoted 19 lines · Pavel Machek
Quoted 11 lines · Andrew Morton
Quoted 6 lines · On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek <[email protected]> wrote:
Quoted 3 lines · Pavel Machek

Fix overlapping NAND partitions.

Ping? Two partitions at same place are bad news...

Please expand on "bad news"? What are the runtime effects of this change? Decisions about which kernel(s) to patch depend on this info.

Well... two partitions at same place. If you use one, you will corrupt information on the other one.

OTOH this moves partition around (so that they don't overlap) so it is probably not stable candidate.

Quoted 6 lines
Quoted 2 lines

I guess this is not huge issue; people using these boards probably have custom dts changes, anyway...

Or no one's even using it anymore.

I can take this via powerpc, I won't mark it for stable etc.

It became:

Author: Pavel Machek <[email protected]>

powerpc/sequoia: Fix NAND partitions not to overlap

Currently the DTS defines two partitions at the same addresses, if you use one, you will corrupt information on the other one. Fix it by shifting the second partition.

[mpe: Reconstruct change log from email thread]

Minor nit, your From: address doesn't match your Signed-off-by: address, which trips my "check patch is signed-off-by author" script. I can just ignore it, but I think it's preferable if they match.

cheers

#7 lore raw

Hi!

Quoted 30 lines
Quoted 13 lines
Quoted 13 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Ping? Two partitions at same place are bad news...

Please expand on "bad news"? What are the runtime effects of this change? Decisions about which kernel(s) to patch depend on this info.

Well... two partitions at same place. If you use one, you will corrupt information on the other one.

OTOH this moves partition around (so that they don't overlap) so it is probably not stable candidate.

Quoted 6 lines
Quoted 2 lines

I guess this is not huge issue; people using these boards probably have custom dts changes, anyway...

Or no one's even using it anymore.

I can take this via powerpc, I won't mark it for stable etc.

It became:

Author: Pavel Machek <[email protected]>

powerpc/sequoia: Fix NAND partitions not to overlap

Currently the DTS defines two partitions at the same addresses, if you use one, you will corrupt information on the other one. Fix it by shifting the second partition.

Quoted 8 lines
[mpe: Reconstruct change log from email thread]

Minor nit, your From: address doesn't match your Signed-off-by: address, which trips my "check patch is signed-off-by author" script. I can just ignore it, but I think it's preferable if they match.

Sorry about that (I have automatic scripts changing From:). It is still me, but I guess denx should get the credit here, so you can use.

Thanks,
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#8 lore raw
Quoted 37 lines · Pavel Machek

Hi!

Quoted 35 lines
Quoted 13 lines
Quoted 13 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Ping? Two partitions at same place are bad news...

Please expand on "bad news"? What are the runtime effects of this change? Decisions about which kernel(s) to patch depend on this info.

Well... two partitions at same place. If you use one, you will corrupt information on the other one.

OTOH this moves partition around (so that they don't overlap) so it is probably not stable candidate.

Quoted 6 lines
Quoted 2 lines

I guess this is not huge issue; people using these boards probably have custom dts changes, anyway...

Or no one's even using it anymore.

I can take this via powerpc, I won't mark it for stable etc.

It became:

Author: Pavel Machek <[email protected]>

powerpc/sequoia: Fix NAND partitions not to overlap

Currently the DTS defines two partitions at the same addresses, if you use one, you will corrupt information on the other one. Fix it by shifting the second partition.

[mpe: Reconstruct change log from email thread]
Quoted 8 lines
Quoted 3 lines

Minor nit, your From: address doesn't match your Signed-off-by: address, which trips my "check patch is signed-off-by author" script. I can just ignore it, but I think it's preferable if they match.

Sorry about that (I have automatic scripts changing From:). It is still me, but I guess denx should get the credit here, so you can use.

Sure, done.

cheers
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html