Skip to contentSkip to conversation

powerpc/85xx: fix PHYS_64BIT selection for P1022DS

PATCH Applied Anatolij Gustschin 5 participants 14 messages Sep 23, 2011 – Oct 13, 2011

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

PATCH 1/1 powerpc/85xx: fix PHYS_64BIT selection for P1022DS

Remove wrong CONFIG_ prefix in Kconfig file.

---
 arch/powerpc/platforms/85xx/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/85xx/Kconfig +1 -1
index 1b393f4..b29d4f2 100644
@@ -80,7 +80,7 @@ config P1010_RDB
 config P1022_DS
 	bool "Freescale P1022 DS"
 	select DEFAULT_UIMAGE
-	select CONFIG_PHYS_64BIT	# The DTS has 36-bit addresses
+	select PHYS_64BIT	# The DTS has 36-bit addresses
 	select SWIOTLB
 	help
 	  This option enables support for the Freescale P1022DS reference board.
Signature · 1 line
1.7.1
#1 lore raw

arch/powerpc/platforms=

Quoted 1 line · Anatolij Gustschin
arch/powerpc/platforms= renamed from arch/powerpc/platforms/85xx/Kconfig +0 -0

/85xx/Kconfig

Quoted 8 lines

index 1b393f4..b29d4f2 100644

arch/powerpc/platforms/85xx/Kconfig +0 -0
@@ -80,7 +80,7 @@ config P1010_RDB

=A0config P1022_DS
=A0 =A0 =A0 =A0bool "Freescale P1022 DS"
=A0 =A0 =A0 =A0select DEFAULT_UIMAGE
- =A0 =A0 =A0 select CONFIG_PHYS_64BIT =A0 =A0 =A0 =A0# The DTS has 36-bi=

t addresses

Quoted 1 line

+ =A0 =A0 =A0 select PHYS_64BIT =A0 =A0 =A0 # The DTS has 36-bit addresse=

s

I have no idea how this happened, but I wonder if it's a good idea. On the Freescale BSP, the default config for the P1022DS is 32-bit, not 36-bit, so one day we might have a 32-bit config in the upstream repository.

PHYS_64BIT is already covered by the defconfig. I wonder if we should just delete the bad line, and let the defconfig select the address size.

--=20
Timur Tabi
Linux kernel developer at Freescale=

#2 lore raw
Quoted 1 line · On Sep 25, 2011, at 12:06 PM, Tabi Timur-B04825 wrote:

On Fri, Sep 23, 2011 at 2:32 PM, Anatolij Gustschin <[email protected]> =

Quoted 2 lines · wrote:

=20

=

Quoted 1 line
= renamed from arch/powerpc/platforms/85xx/Kconfig +0 -0

b/arch/powerpc/platforms/85xx/Kconfig

Quoted 8 lines

arch/powerpc/platforms/85xx/Kconfig config P1010_RDB · line 83

Quoted 8 lines

index 1b393f4..b29d4f2 100644

arch/powerpc/platforms/85xx/Kconfig +0 -1
@@ -80,7 +80,7 @@ config P1010_RDB
 config P1022_DS
       bool "Freescale P1022 DS"
       select DEFAULT_UIMAGE
-       select CONFIG_PHYS_64BIT        # The DTS has 36-bit =

addresses

Quoted 10 lines

arch/powerpc/platforms/85xx/Kconfig config P1010_RDB · line 83

Quoted 1 line
arch/powerpc/platforms/85xx/Kconfig +1 -0
+       select PHYS_64BIT       # The DTS has 36-bit addresses

=20
I have no idea how this happened, but I wonder if it's a good idea. On the Freescale BSP, the default config for the P1022DS is 32-bit, not 36-bit, so one day we might have a 32-bit config in the upstream repository.
=20
PHYS_64BIT is already covered by the defconfig. I wonder if we should just delete the bad line, and let the defconfig select the address size.

Why, the way this patch makes it will work both with a 32-bit or 36-bit =
address map. The comment should be fixed since its wrong.

- k=

#3 lore raw
Quoted 1 line · Kumar Gala

Why, the way this patch makes it will work both with a 32-bit or 36-bit address map. The comment should be fixed since its wrong.

I think the BSP team had said that there is a significant performance improvement in some benchmark when 36-bit support is disabled. That's why they like to keep 32-bit and 36-bit environments for both, and why they default to 32-bit.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#4 lore raw
In reply to Kumar Gala
Quoted 21 lines · Kumar Gala
Quoted 18 lines · On Sep 25, 2011, at 12:06 PM, Tabi Timur-B04825 wrote:

arch/powerpc/platforms/85xx/Kconfig config P1010_RDB · line 83

Quoted 10 lines · Anatolij Gustschin
arch/powerpc/platforms/85xx/Kconfig +1 -1
index 1b393f4..b29d4f2 100644
@@ -80,7 +80,7 @@ config P1010_RDB
 config P1022_DS
       bool "Freescale P1022 DS"
       select DEFAULT_UIMAGE
-       select CONFIG_PHYS_64BIT        # The DTS has 36-bit addresses
+       select PHYS_64BIT       # The DTS has 36-bit addresses

I have no idea how this happened, but I wonder if it's a good idea. On the Freescale BSP, the default config for the P1022DS is 32-bit, not 36-bit, so one day we might have a 32-bit config in the upstream repository.

Quoted 5 lines
Quoted 3 lines

PHYS_64BIT is already covered by the defconfig. I wonder if we should just delete the bad line, and let the defconfig select the address size.

Why, the way this patch makes it will work both with a 32-bit or 36-bit address map. The comment should be fixed since its wrong.

"select" should not be used for things that you think make good defaults. It should be used for things that are required. It's just like "depends on", except for user interface considerations (and the whole transitive dependency mess).

-Scott

#6 lore raw

On Tue, Oct 11, 2011 at 11:53 PM, Kumar Gala <[email protected]> wr= ote:

Quoted 11 lines · Anatolij Gustschin
Quoted 7 lines

Remove wrong CONFIG_ prefix in Kconfig file.

---
arch/powerpc/platforms/85xx/Kconfig | =A0 =A02 +-

1 files changed, 1 insertions(+), 1 deletions(-)

applied

Why did you apply this patch? Both Scott and I rejected it.

--=20
Timur Tabi
Linux kernel developer at Freescale=

#7 lore raw
Quoted 1 line · On Oct 13, 2011, at 9:14 AM, Tabi Timur-B04825 wrote:

On Tue, Oct 11, 2011 at 11:53 PM, Kumar Gala =

Quoted 9 lines · <[email protected]> wrote:
Quoted 9 lines

=20
On Sep 23, 2011, at 2:32 PM, Anatolij Gustschin wrote:
=20

Quoted 6 lines

Remove wrong CONFIG_ prefix in Kconfig file.
=20

---
arch/powerpc/platforms/85xx/Kconfig | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 4 lines
Quoted 2 lines

=20
applied

=20
Why did you apply this patch? Both Scott and I rejected it.

Because its fixing a real issue. If we want to remove PHYS_64BIT = support or make it optional for the board feel free to send another = patch.

- k=

#8 lore raw
Quoted 3 lines · Kumar Gala
Quoted 1 line
Quoted 1 line

Why did you apply this patch? Both Scott and I rejected it.

Because its fixing a real issue. If we want to remove PHYS_64BIT support or make it optional for the board feel free to send another patch.

Ok, so if someone posts a patch that works but does things the wrong way, and that patch gets rejected during reviews, but the submitter doesn't post a follow-up patch that does things the right way, you're going to apply the first patch anyway?

What about the BSP team's contention that enabling 64-bit support in the kernel can drop performance by up to 25% in some situations? We talked about that on an internal mailing list several months ago.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#9 lore raw
Quoted 4 lines · Timur Tabi
Quoted 1 line · Kumar Gala
Quoted 1 line
Quoted 1 line

Why did you apply this patch? Both Scott and I rejected it.

=20

Quoted 1 line

Because its fixing a real issue. If we want to remove PHYS_64BIT =

support or make it optional for the board feel free to send another = patch.

Quoted 2 lines

=20
Ok, so if someone posts a patch that works but does things the wrong =

way, and

Quoted 1 line

that patch gets rejected during reviews, but the submitter doesn't =

post a

Quoted 1 line

follow-up patch that does things the right way, you're going to apply =

the first

Quoted 1 line

patch anyway?

Leaving the code 'broken' I consider worse than slightly improving the = situation which the patch does. The original patch for this board port = introduced it with CONFIG_PHYS_64BIT set, thus I think it reasonable to = take a patch that fixed an issue w/o anyone else putting out a patch.

If you really don't want it selected by default send me a patch to = remove it and I'll apply. That is far more productive than this = discussion.

Quoted 1 line

What about the BSP team's contention that enabling 64-bit support in =

the kernel

Quoted 1 line

can drop performance by up to 25% in some situations? We talked about =

that on

Quoted 1 line

an internal mailing list several months ago.

I think this 25% number is bogus. There are cases where it also = improves performance.

- k=

#10 lore raw
Quoted 1 line · Kumar Gala

I think this 25% number is bogus. There are cases where it also improves performance.

I don't think we ever ship a P1022 system with more than 2GB of DDR, so I can't see how performance is ever improved.

I will post a patch that removes the Kconfig option, but I don't understand why you couldn't do that when you applied the patch.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale
#12 lore raw
In reply to Timur Tabi
Quoted 9 lines · On Thu, 13 Oct 2011 10:35:04 -0500 Timur Tabi <[email protected]> wrote:
Quoted 3 lines · Kumar Gala
Quoted 1 line
Quoted 1 line

Why did you apply this patch? Both Scott and I rejected it.

Because its fixing a real issue. If we want to remove PHYS_64BIT support or make it optional for the board feel free to send another patch.

Ok, so if someone posts a patch that works but does things the wrong way, and that patch gets rejected during reviews, but the submitter doesn't post a follow-up patch that does things the right way, you're going to apply the first patch anyway?

there is no 32bit address map DTS file for P1022DS in the mainline tree. A proper patch should then also add appropriate 32bit address map DTS file. I'm not in the position to do it currently since it would require testing, I do not have this board to test patches for it.

Anatolij

#11 lore raw
In reply to Timur Tabi
Quoted 8 lines · On Thu, 13 Oct 2011 10:45:04 -0500 Timur Tabi <[email protected]> wrote:
Quoted 1 line · Kumar Gala

I think this 25% number is bogus. There are cases where it also improves performance.

I don't think we ever ship a P1022 system with more than 2GB of DDR, so I can't see how performance is ever improved.

I will post a patch that removes the Kconfig option, but I don't understand why you couldn't do that when you applied the patch.

please also post a patch providing a working 32bit address map DTS for this board, then.

Anatolij

#13 lore raw
In reply to Anatolij Gustschin
Quoted 4 lines · Anatolij Gustschin

there is no 32bit address map DTS file for P1022DS in the mainline tree. A proper patch should then also add appropriate 32bit address map DTS file. I'm not in the position to do it currently since it would require testing, I do not have this board to test patches for it.

The defconfig already enables CONFIG_PHYS_64BIT for the P1022DS and all other 85xx parts. If you look at the Kconfig, you'll see that most boards don't enable it. So by default, everything is 64-bit capable.

Adding the Kconfig option will *prevent* anyone from creating a 32-bit kernel. This is my problem with the patch.

Signature · 2 lines
Timur Tabi
Linux kernel developer at Freescale