ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T
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.
--- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/Kconfig +1 -1
@@ -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
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_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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
Signed-off-by R Sricharan <[email protected]>Cc Catalin Marinas <[email protected]>--- arch/arm/mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mm/Kconfig +1
-1@@ -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
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_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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
RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T
In reply to Cyril ChemparathyQuoted 7 lines · Cyril Chemparathy
Quoted 5 lines · R Sricharan
Even if
CONFIG_DMA_ADDR_64BIT_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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
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_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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_Thappens 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
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_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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_Thappens 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
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_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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_Thappens 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
RFC PATCH 1/1 ARM: mm: ADD descriptor string to CONFIG_DMA_ADDR_64BIT_T
In reply to Shilimkar, SantoshHi,
Quoted 11 lines · Santosh
Quoted 10 lines · Cyril Chemparathy
Quoted 7 lines · R Sricharan
Even if
CONFIG_DMA_ADDR_64BIT_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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_Thappens 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
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_Tis enabled by the defconfig, the feature is not getting selected.
Adding a string description in theKconfigresolves 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_Thappens 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.