Skip to contentSkip to conversation

ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

RFC PATCH New R Sricharan 5 participants 9 messages Sep 12, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Cc Catalin Marinas <[email protected]>
---
 arch/arm/mm/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/Kconfig +1 -1
index 101b968..90c5ea4 100644
@@ -601,7 +601,7 @@ config ARCH_PHYS_ADDR_T_64BIT
 	def_bool ARM_LPAE
 
 config ARCH_DMA_ADDR_T_64BIT
-	bool
+	bool "64bit capable DMA device"
 
 config ARM_THUMB
 	bool "Support Thumb user binaries"
Signature · 1 line
1.7.9.5
#1 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Quoted 6 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Quoted 20 lines
Cc Catalin Marinas <[email protected]>
---
  arch/arm/mm/Kconfig |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/Kconfig +1 -1
index 101b968..90c5ea4 100644
@@ -601,7 +601,7 @@ config ARCH_PHYS_ADDR_T_64BIT
  	def_bool ARM_LPAE
 
  config ARCH_DMA_ADDR_T_64BIT
-	bool
+	bool "64bit capable DMA device"
 
  config ARM_THUMB
  	bool "Support Thumb user binaries"
Signature · 2 lines
Thanks
- Cyril
#2 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Quoted 9 lines · Cyril Chemparathy
Quoted 5 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Yes, that's how it was meant to be used.

Signature · 1 line
Catalin
#3 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

In reply to Cyril Chemparathy
Quoted 7 lines · Cyril Chemparathy
Quoted 5 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

Quoted 6 lines
Quoted 2 lines

But not sure if this is the right way to fix this.

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Yes. The selection to enable CONFIG_DMA_ADDR_64BIT_T happens in the arch which needs it. Since this option was made as simple bool, looks like because of some KCONFIG magic, it was not getting selected. Adding some help text does fix the issue and thats is the patch all about.

Regards
Santosh

#4 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Quoted 11 lines · Santosh
Quoted 10 lines · Cyril Chemparathy
Quoted 7 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Quoted 7 lines
Quoted 3 lines

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Yes. The selection to enable CONFIG_DMA_ADDR_64BIT_T happens in the arch which needs it. Since this option was made as simple bool, looks like because of some KCONFIG magic, it was not getting selected. Adding some help text does fix the issue and thats is the patch all about.

Are you sure you select this explicitly in Kconfig? It should not depend on a description.

What I understood from the initial email was that this option was only added to the defconfig but ignored by the kernel as it's not a user selectable option (unless you add some text).

Signature · 1 line
Catalin
#5 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Quoted 15 lines · Catalin Marinas
Quoted 14 lines · Santosh
Quoted 13 lines · Cyril Chemparathy
Quoted 7 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Quoted 8 lines
Quoted 4 lines

Yes. The selection to enable CONFIG_DMA_ADDR_64BIT_T happens in the arch which needs it. Since this option was made as simple bool, looks like because of some KCONFIG magic, it was not getting selected. Adding some help text does fix the issue and thats is the patch all about.

Are you sure you select this explicitly in Kconfig? It should not depend on a description.

You are right.

Quoted 4 lines

What I understood from the initial email was that this option was only added to the defconfig but ignored by the kernel as it's not a user selectable option (unless you add some text).

That's right. Explicit KCONFIG select should work.

Regards
Santosh

#6 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Hi,

Quoted 25 lines · Santosh
Quoted 15 lines · Catalin Marinas
Quoted 14 lines · Santosh
Quoted 13 lines · Cyril Chemparathy
Quoted 7 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Quoted 8 lines
Quoted 4 lines

Yes. The selection to enable CONFIG_DMA_ADDR_64BIT_T happens in the arch which needs it. Since this option was made as simple bool, looks like because of some KCONFIG magic, it was not getting selected. Adding some help text does fix the issue and thats is the patch all about.

Are you sure you select this explicitly in Kconfig? It should not depend on a description.

Quoted 7 lines

You are right.

Quoted 4 lines

What I understood from the initial email was that this option was only added to the defconfig but ignored by the kernel as it's not a user selectable option (unless you add some text).

That's right. Explicit KCONFIG select should work.

yes. It works when enabled in arch/KCONFIG.
Thanks. This patch is not needed then.

Thanks,
Sricharan

#7 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

In reply to Shilimkar, Santosh

Hi,

Quoted 11 lines · Santosh
Quoted 10 lines · Cyril Chemparathy
Quoted 7 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Quoted 8 lines
Quoted 3 lines

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Yes. The selection to enable CONFIG_DMA_ADDR_64BIT_T happens in the arch which needs it. Since this option was made as simple bool, looks like because of some KCONFIG magic, it was not getting selected. Adding some help text does fix the issue and thats is the patch all about.

Correct. So even if you select this in the arch/defconfig, today this option is not getting enabled in the finally generated .config. So by adding this description text, this can really be selected
from arch level.

Thanks,
Sricharan

#8 lore raw

RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T

Quoted 17 lines · Sricharan

Hi,

Quoted 14 lines · Santosh
Quoted 13 lines · Cyril Chemparathy
Quoted 7 lines · R Sricharan

Even if CONFIG_DMA_ADDR_64BIT_T is enabled by the defconfig, the feature is not getting selected.
Adding a string description in the Kconfig resolves this.

But not sure if this is the right way to fix this.

Shouldn't you be selecting this in your 64-bit dma address capable arch instead?

Quoted 6 lines
Quoted 5 lines

Yes. The selection to enable CONFIG_DMA_ADDR_64BIT_T happens in the arch which needs it. Since this option was made as simple bool, looks like because of some KCONFIG magic, it was not getting selected. Adding some help text does fix the issue and thats is the patch all about.

Correct. So even if you select this in the arch/defconfig,

That is correct behaviour.

You need an explicit "select DMA_ADDR_64BIT_T" somewhere in a Kconfig file to make it happen.

Editing defconfigs is not how we enable these options.