* [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
@ 2013-08-04 5:11 Manjunath Goudar
2013-08-04 7:54 ` Wanpeng Li
` (4 more replies)
0 siblings, 5 replies; 11+ messages in thread
From: Manjunath Goudar @ 2013-08-04 5:11 UTC (permalink / raw)
To: linux-arm-kernel
Cc: patches, arnd, dsaxena, manjunath.goudar, linaro-kernel,
IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen, linux-mm,
Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki
s patch adds a Kconfig dependency on an MMU being available before
CMA can be enabled. Without this patch, CMA can be enabled on an
MMU-less system which can lead to issues. This was discovered during
randconfig testing, in which CMA was enabled w/o MMU being enabled,
leading to the following error:
CC mm/migrate.o
mm/migrate.c: In function a??remove_migration_ptea??:
mm/migrate.c:134:3: error: implicit declaration of function a??pmd_trans_hugea??
[-Werror=implicit-function-declaration]
if (pmd_trans_huge(*pmd))
^
mm/migrate.c:137:3: error: implicit declaration of function a??pte_offset_mapa??
[-Werror=implicit-function-declaration]
ptep = pte_offset_map(pmd, addr);
Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
Acked-by: Arnd Bergmann <arnd@linaro.org>
Cc: Deepak Saxena <dsaxena@linaro.org>
Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Cc: Hirokazu Takahashi <taka@valinux.co.jp>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: linux-mm@kvack.org
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
---
mm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/Kconfig b/mm/Kconfig
index 256bfd0..ad6b98e 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
config CMA
bool "Contiguous Memory Allocator"
- depends on HAVE_MEMBLOCK
+ depends on MMU && HAVE_MEMBLOCK
select MIGRATION
select MEMORY_ISOLATION
help
--
1.7.9.5
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-04 5:11 [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Manjunath Goudar
2013-08-04 7:54 ` Wanpeng Li
@ 2013-08-04 7:54 ` Wanpeng Li
2013-08-04 7:54 ` Wanpeng Li
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Wanpeng Li @ 2013-08-04 7:54 UTC (permalink / raw)
To: Manjunath Goudar
Cc: linux-arm-kernel, patches, arnd, dsaxena, linaro-kernel,
IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen, linux-mm,
Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki
On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
>s patch adds a Kconfig dependency on an MMU being available before
>CMA can be enabled. Without this patch, CMA can be enabled on an
>MMU-less system which can lead to issues. This was discovered during
>randconfig testing, in which CMA was enabled w/o MMU being enabled,
>leading to the following error:
>
> CC mm/migrate.o
>mm/migrate.c: In function a??remove_migration_ptea??:
>mm/migrate.c:134:3: error: implicit declaration of function a??pmd_trans_hugea??
>[-Werror=implicit-function-declaration]
> if (pmd_trans_huge(*pmd))
> ^
>mm/migrate.c:137:3: error: implicit declaration of function a??pte_offset_mapa??
>[-Werror=implicit-function-declaration]
> ptep = pte_offset_map(pmd, addr);
>
Similar one.
http://marc.info/?l=linux-mm&m=137532486405085&w=2
>Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
>Acked-by: Arnd Bergmann <arnd@linaro.org>
>Cc: Deepak Saxena <dsaxena@linaro.org>
>Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
>Cc: Hirokazu Takahashi <taka@valinux.co.jp>
>Cc: Dave Hansen <haveblue@us.ibm.com>
>Cc: linux-mm@kvack.org
>Cc: Johannes Weiner <hannes@cmpxchg.org>
>Cc: Michal Hocko <mhocko@suse.cz>
>Cc: Balbir Singh <bsingharora@gmail.com>
>Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>---
> mm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/mm/Kconfig b/mm/Kconfig
>index 256bfd0..ad6b98e 100644
>--- a/mm/Kconfig
>+++ b/mm/Kconfig
>@@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
>
> config CMA
> bool "Contiguous Memory Allocator"
>- depends on HAVE_MEMBLOCK
>+ depends on MMU && HAVE_MEMBLOCK
> select MIGRATION
> select MEMORY_ISOLATION
> help
>--
>1.7.9.5
>
>--
>To unsubscribe, send a message with 'unsubscribe linux-mm' in
>the body to majordomo@kvack.org. For more info on Linux MM,
>see: http://www.linux-mm.org/ .
>Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-04 5:11 [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Manjunath Goudar
@ 2013-08-04 7:54 ` Wanpeng Li
2013-08-04 7:54 ` Wanpeng Li
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Wanpeng Li @ 2013-08-04 7:54 UTC (permalink / raw)
Cc: linux-arm-kernel, patches, arnd, dsaxena, manjunath.goudar,
linaro-kernel, IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen,
linux-mm, Johannes Weiner, Michal Hocko, Balbir Singh,
KAMEZAWA Hiroyuki
On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
>s patch adds a Kconfig dependency on an MMU being available before
>CMA can be enabled. Without this patch, CMA can be enabled on an
>MMU-less system which can lead to issues. This was discovered during
>randconfig testing, in which CMA was enabled w/o MMU being enabled,
>leading to the following error:
>
> CC mm/migrate.o
>mm/migrate.c: In function ‘remove_migration_pte’:
>mm/migrate.c:134:3: error: implicit declaration of function ‘pmd_trans_huge’
>[-Werror=implicit-function-declaration]
> if (pmd_trans_huge(*pmd))
> ^
>mm/migrate.c:137:3: error: implicit declaration of function ‘pte_offset_map’
>[-Werror=implicit-function-declaration]
> ptep = pte_offset_map(pmd, addr);
>
Similar one.
http://marc.info/?l=linux-mm&m=137532486405085&w=2
>Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
>Acked-by: Arnd Bergmann <arnd@linaro.org>
>Cc: Deepak Saxena <dsaxena@linaro.org>
>Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
>Cc: Hirokazu Takahashi <taka@valinux.co.jp>
>Cc: Dave Hansen <haveblue@us.ibm.com>
>Cc: linux-mm@kvack.org
>Cc: Johannes Weiner <hannes@cmpxchg.org>
>Cc: Michal Hocko <mhocko@suse.cz>
>Cc: Balbir Singh <bsingharora@gmail.com>
>Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>---
> mm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/mm/Kconfig b/mm/Kconfig
>index 256bfd0..ad6b98e 100644
>--- a/mm/Kconfig
>+++ b/mm/Kconfig
>@@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
>
> config CMA
> bool "Contiguous Memory Allocator"
>- depends on HAVE_MEMBLOCK
>+ depends on MMU && HAVE_MEMBLOCK
> select MIGRATION
> select MEMORY_ISOLATION
> help
>--
>1.7.9.5
>
>--
>To unsubscribe, send a message with 'unsubscribe linux-mm' in
>the body to majordomo@kvack.org. For more info on Linux MM,
>see: http://www.linux-mm.org/ .
>Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-04 5:11 [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Manjunath Goudar
2013-08-04 7:54 ` Wanpeng Li
2013-08-04 7:54 ` Wanpeng Li
@ 2013-08-04 7:54 ` Wanpeng Li
2013-08-04 8:09 ` Michal Hocko
[not found] ` <51fe08c6.87ef440a.10fc.1786SMTPIN_ADDED_BROKEN@mx.google.com>
4 siblings, 0 replies; 11+ messages in thread
From: Wanpeng Li @ 2013-08-04 7:54 UTC (permalink / raw)
Cc: Michal Hocko, linaro-kernel, IWAMOTO Toshihiro, patches,
manjunath.goudar, Dave Hansen, Balbir Singh, Hirokazu Takahashi,
linux-mm, dsaxena, KAMEZAWA Hiroyuki, Johannes Weiner, arnd,
linux-arm-kernel
On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
>s patch adds a Kconfig dependency on an MMU being available before
>CMA can be enabled. Without this patch, CMA can be enabled on an
>MMU-less system which can lead to issues. This was discovered during
>randconfig testing, in which CMA was enabled w/o MMU being enabled,
>leading to the following error:
>
> CC mm/migrate.o
>mm/migrate.c: In function ‘remove_migration_pte’:
>mm/migrate.c:134:3: error: implicit declaration of function ‘pmd_trans_huge’
>[-Werror=implicit-function-declaration]
> if (pmd_trans_huge(*pmd))
> ^
>mm/migrate.c:137:3: error: implicit declaration of function ‘pte_offset_map’
>[-Werror=implicit-function-declaration]
> ptep = pte_offset_map(pmd, addr);
>
Similar one.
http://marc.info/?l=linux-mm&m=137532486405085&w=2
>Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
>Acked-by: Arnd Bergmann <arnd@linaro.org>
>Cc: Deepak Saxena <dsaxena@linaro.org>
>Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
>Cc: Hirokazu Takahashi <taka@valinux.co.jp>
>Cc: Dave Hansen <haveblue@us.ibm.com>
>Cc: linux-mm@kvack.org
>Cc: Johannes Weiner <hannes@cmpxchg.org>
>Cc: Michal Hocko <mhocko@suse.cz>
>Cc: Balbir Singh <bsingharora@gmail.com>
>Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
>---
> mm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/mm/Kconfig b/mm/Kconfig
>index 256bfd0..ad6b98e 100644
>--- a/mm/Kconfig
>+++ b/mm/Kconfig
>@@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
>
> config CMA
> bool "Contiguous Memory Allocator"
>- depends on HAVE_MEMBLOCK
>+ depends on MMU && HAVE_MEMBLOCK
> select MIGRATION
> select MEMORY_ISOLATION
> help
>--
>1.7.9.5
>
>--
>To unsubscribe, send a message with 'unsubscribe linux-mm' in
>the body to majordomo@kvack.org. For more info on Linux MM,
>see: http://www.linux-mm.org/ .
>Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
[not found] ` <51fe08c6.87ef440a.10fc.1786SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2013-08-04 8:03 ` Manjunath Goudar
2013-08-05 4:40 ` Manjunath Goudar
1 sibling, 0 replies; 11+ messages in thread
From: Manjunath Goudar @ 2013-08-04 8:03 UTC (permalink / raw)
To: Wanpeng Li
Cc: linux-arm-kernel, patches, arnd, dsaxena, linaro-kernel,
IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen, linux-mm,
Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki
[-- Attachment #1: Type: text/plain, Size: 2304 bytes --]
On 4 August 2013 13:24, Wanpeng Li <liwanp@linux.vnet.ibm.com> wrote:
> On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
> >s patch adds a Kconfig dependency on an MMU being available before
> >CMA can be enabled. Without this patch, CMA can be enabled on an
> >MMU-less system which can lead to issues. This was discovered during
> >randconfig testing, in which CMA was enabled w/o MMU being enabled,
> >leading to the following error:
> >
> > CC mm/migrate.o
> >mm/migrate.c: In function ‘remove_migration_pte’:
> >mm/migrate.c:134:3: error: implicit declaration of function
> ‘pmd_trans_huge’
> >[-Werror=implicit-function-declaration]
> > if (pmd_trans_huge(*pmd))
> > ^
> >mm/migrate.c:137:3: error: implicit declaration of function
> ‘pte_offset_map’
> >[-Werror=implicit-function-declaration]
> > ptep = pte_offset_map(pmd, addr);
> >
>
> Similar one.
>
> http://marc.info/?l=linux-mm&m=137532486405085&w=2
Ok thank you for your information.
>
>
> >Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
> >Acked-by: Arnd Bergmann <arnd@linaro.org>
> >Cc: Deepak Saxena <dsaxena@linaro.org>
> >Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
> >Cc: Hirokazu Takahashi <taka@valinux.co.jp>
> >Cc: Dave Hansen <haveblue@us.ibm.com>
> >Cc: linux-mm@kvack.org
> >Cc: Johannes Weiner <hannes@cmpxchg.org>
> >Cc: Michal Hocko <mhocko@suse.cz>
> >Cc: Balbir Singh <bsingharora@gmail.com>
> >Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> >---
> > mm/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/mm/Kconfig b/mm/Kconfig
> >index 256bfd0..ad6b98e 100644
> >--- a/mm/Kconfig
> >+++ b/mm/Kconfig
> >@@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
> >
> > config CMA
> > bool "Contiguous Memory Allocator"
> >- depends on HAVE_MEMBLOCK
> >+ depends on MMU && HAVE_MEMBLOCK
> > select MIGRATION
> > select MEMORY_ISOLATION
> > help
> >--
> >1.7.9.5
> >
> >--
> >To unsubscribe, send a message with 'unsubscribe linux-mm' in
> >the body to majordomo@kvack.org. For more info on Linux MM,
> >see: http://www.linux-mm.org/ .
> >Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
> Thanks
Manjunath Goudar
[-- Attachment #2: Type: text/html, Size: 3858 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-04 5:11 [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Manjunath Goudar
` (2 preceding siblings ...)
2013-08-04 7:54 ` Wanpeng Li
@ 2013-08-04 8:09 ` Michal Hocko
2013-08-04 8:17 ` Manjunath Goudar
[not found] ` <51fe08c6.87ef440a.10fc.1786SMTPIN_ADDED_BROKEN@mx.google.com>
4 siblings, 1 reply; 11+ messages in thread
From: Michal Hocko @ 2013-08-04 8:09 UTC (permalink / raw)
To: Manjunath Goudar
Cc: linux-arm-kernel, patches, arnd, dsaxena, linaro-kernel,
IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen, linux-mm,
Johannes Weiner, Balbir Singh, KAMEZAWA Hiroyuki
On Sun 04-08-13 10:41:01, Manjunath Goudar wrote:
> s patch adds a Kconfig dependency on an MMU being available before
> CMA can be enabled. Without this patch, CMA can be enabled on an
> MMU-less system which can lead to issues. This was discovered during
> randconfig testing, in which CMA was enabled w/o MMU being enabled,
> leading to the following error:
>
> CC mm/migrate.o
> mm/migrate.c: In function a??remove_migration_ptea??:
> mm/migrate.c:134:3: error: implicit declaration of function a??pmd_trans_hugea??
> [-Werror=implicit-function-declaration]
> if (pmd_trans_huge(*pmd))
> ^
> mm/migrate.c:137:3: error: implicit declaration of function a??pte_offset_mapa??
> [-Werror=implicit-function-declaration]
> ptep = pte_offset_map(pmd, addr);
This is a migration code but you are updating configuration for CMA
which doesn't make much sense to me.
I guess you wanted to disable migration for CMA instead?
> Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
> Acked-by: Arnd Bergmann <arnd@linaro.org>
> Cc: Deepak Saxena <dsaxena@linaro.org>
> Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
> Cc: Hirokazu Takahashi <taka@valinux.co.jp>
> Cc: Dave Hansen <haveblue@us.ibm.com>
> Cc: linux-mm@kvack.org
> Cc: Johannes Weiner <hannes@cmpxchg.org>
> Cc: Michal Hocko <mhocko@suse.cz>
> Cc: Balbir Singh <bsingharora@gmail.com>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> ---
> mm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 256bfd0..ad6b98e 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
>
> config CMA
> bool "Contiguous Memory Allocator"
> - depends on HAVE_MEMBLOCK
> + depends on MMU && HAVE_MEMBLOCK
> select MIGRATION
> select MEMORY_ISOLATION
> help
> --
> 1.7.9.5
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@kvack.org. For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
--
Michal Hocko
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-04 8:09 ` Michal Hocko
@ 2013-08-04 8:17 ` Manjunath Goudar
0 siblings, 0 replies; 11+ messages in thread
From: Manjunath Goudar @ 2013-08-04 8:17 UTC (permalink / raw)
To: Michal Hocko
Cc: linux-arm-kernel, patches, arnd, dsaxena, linaro-kernel,
IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen, linux-mm,
Johannes Weiner, Balbir Singh, KAMEZAWA Hiroyuki
[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]
On 4 August 2013 13:39, Michal Hocko <mhocko@suse.cz> wrote:
> On Sun 04-08-13 10:41:01, Manjunath Goudar wrote:
> > s patch adds a Kconfig dependency on an MMU being available before
> > CMA can be enabled. Without this patch, CMA can be enabled on an
> > MMU-less system which can lead to issues. This was discovered during
> > randconfig testing, in which CMA was enabled w/o MMU being enabled,
> > leading to the following error:
> >
> > CC mm/migrate.o
> > mm/migrate.c: In function ‘remove_migration_pte’:
> > mm/migrate.c:134:3: error: implicit declaration of function
> ‘pmd_trans_huge’
> > [-Werror=implicit-function-declaration]
> > if (pmd_trans_huge(*pmd))
> > ^
> > mm/migrate.c:137:3: error: implicit declaration of function
> ‘pte_offset_map’
> > [-Werror=implicit-function-declaration]
> > ptep = pte_offset_map(pmd, addr);
>
> This is a migration code but you are updating configuration for CMA
> which doesn't make much sense to me.
> I guess you wanted to disable migration for CMA instead?
>
Yes you are right.Already Chen Gang has written similar patch.
>
> > Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
> > Acked-by: Arnd Bergmann <arnd@linaro.org>
> > Cc: Deepak Saxena <dsaxena@linaro.org>
> > Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
> > Cc: Hirokazu Takahashi <taka@valinux.co.jp>
> > Cc: Dave Hansen <haveblue@us.ibm.com>
> > Cc: linux-mm@kvack.org
> > Cc: Johannes Weiner <hannes@cmpxchg.org>
> > Cc: Michal Hocko <mhocko@suse.cz>
> > Cc: Balbir Singh <bsingharora@gmail.com>
> > Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> > ---
> > mm/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/mm/Kconfig b/mm/Kconfig
> > index 256bfd0..ad6b98e 100644
> > --- a/mm/Kconfig
> > +++ b/mm/Kconfig
> > @@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
> >
> > config CMA
> > bool "Contiguous Memory Allocator"
> > - depends on HAVE_MEMBLOCK
> > + depends on MMU && HAVE_MEMBLOCK
> > select MIGRATION
> > select MEMORY_ISOLATION
> > help
> > --
> > 1.7.9.5
> >
> > --
> > To unsubscribe, send a message with 'unsubscribe linux-mm' in
> > the body to majordomo@kvack.org. For more info on Linux MM,
> > see: http://www.linux-mm.org/ .
> > Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
> --
> Michal Hocko
> SUSE Labs
>
Thanks
Manjunath Goudar
[-- Attachment #2: Type: text/html, Size: 4166 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
[not found] ` <51fe08c6.87ef440a.10fc.1786SMTPIN_ADDED_BROKEN@mx.google.com>
2013-08-04 8:03 ` Manjunath Goudar
@ 2013-08-05 4:40 ` Manjunath Goudar
2013-08-05 7:32 ` Michal Hocko
1 sibling, 1 reply; 11+ messages in thread
From: Manjunath Goudar @ 2013-08-05 4:40 UTC (permalink / raw)
To: Wanpeng Li
Cc: linux-arm-kernel, patches, arnd, dsaxena, linaro-kernel,
IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen, linux-mm,
Johannes Weiner, Michal Hocko, Balbir Singh, KAMEZAWA Hiroyuki,
hyojun.im, Nataraja KM/LGSIA CSP-4
[-- Attachment #1: Type: text/plain, Size: 2453 bytes --]
On 4 August 2013 13:24, Wanpeng Li <liwanp@linux.vnet.ibm.com> wrote:
> On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
> >s patch adds a Kconfig dependency on an MMU being available before
> >CMA can be enabled. Without this patch, CMA can be enabled on an
> >MMU-less system which can lead to issues. This was discovered during
> >randconfig testing, in which CMA was enabled w/o MMU being enabled,
> >leading to the following error:
> >
> > CC mm/migrate.o
> >mm/migrate.c: In function ‘remove_migration_pte’:
> >mm/migrate.c:134:3: error: implicit declaration of function
> ‘pmd_trans_huge’
> >[-Werror=implicit-function-declaration]
> > if (pmd_trans_huge(*pmd))
> > ^
> >mm/migrate.c:137:3: error: implicit declaration of function
> ‘pte_offset_map’
> >[-Werror=implicit-function-declaration]
> > ptep = pte_offset_map(pmd, addr);
> >
>
> Similar one.
>
> http://marc.info/?l=linux-mm&m=137532486405085&w=2
In this patch MIGRATION config is not required MMU, because already CMA
config depends
on MMU and HAVE_MEMBLOCK if both are true then only selecting MIGRATION and
MEMORY_ISOLATION.
>
>
> >Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
> >Acked-by: Arnd Bergmann <arnd@linaro.org>
> >Cc: Deepak Saxena <dsaxena@linaro.org>
> >Cc: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
> >Cc: Hirokazu Takahashi <taka@valinux.co.jp>
> >Cc: Dave Hansen <haveblue@us.ibm.com>
> >Cc: linux-mm@kvack.org
> >Cc: Johannes Weiner <hannes@cmpxchg.org>
> >Cc: Michal Hocko <mhocko@suse.cz>
> >Cc: Balbir Singh <bsingharora@gmail.com>
> >Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> >---
> > mm/Kconfig | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/mm/Kconfig b/mm/Kconfig
> >index 256bfd0..ad6b98e 100644
> >--- a/mm/Kconfig
> >+++ b/mm/Kconfig
> >@@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
> >
> > config CMA
> > bool "Contiguous Memory Allocator"
> >- depends on HAVE_MEMBLOCK
> >+ depends on MMU && HAVE_MEMBLOCK
> > select MIGRATION
> > select MEMORY_ISOLATION
> > help
> >--
> >1.7.9.5
> >
> >--
> >To unsubscribe, send a message with 'unsubscribe linux-mm' in
> >the body to majordomo@kvack.org. For more info on Linux MM,
> >see: http://www.linux-mm.org/ .
> >Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>
> Thanks
Manjunath Goudar
[-- Attachment #2: Type: text/html, Size: 4027 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-05 4:40 ` Manjunath Goudar
@ 2013-08-05 7:32 ` Michal Hocko
2013-08-05 8:37 ` Manjunath Goudar
0 siblings, 1 reply; 11+ messages in thread
From: Michal Hocko @ 2013-08-05 7:32 UTC (permalink / raw)
To: Manjunath Goudar
Cc: Wanpeng Li, linux-arm-kernel, patches, arnd, dsaxena,
linaro-kernel, IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen,
linux-mm, Johannes Weiner, Balbir Singh, KAMEZAWA Hiroyuki,
hyojun.im, Nataraja KM/LGSIA CSP-4
On Mon 05-08-13 10:10:08, Manjunath Goudar wrote:
> On 4 August 2013 13:24, Wanpeng Li <liwanp@linux.vnet.ibm.com> wrote:
>
> > On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
> > >s patch adds a Kconfig dependency on an MMU being available before
> > >CMA can be enabled. Without this patch, CMA can be enabled on an
> > >MMU-less system which can lead to issues. This was discovered during
> > >randconfig testing, in which CMA was enabled w/o MMU being enabled,
> > >leading to the following error:
> > >
> > > CC mm/migrate.o
> > >mm/migrate.c: In function a??remove_migration_ptea??:
> > >mm/migrate.c:134:3: error: implicit declaration of function
> > a??pmd_trans_hugea??
> > >[-Werror=implicit-function-declaration]
> > > if (pmd_trans_huge(*pmd))
> > > ^
> > >mm/migrate.c:137:3: error: implicit declaration of function
> > a??pte_offset_mapa??
> > >[-Werror=implicit-function-declaration]
> > > ptep = pte_offset_map(pmd, addr);
> > >
> >
> > Similar one.
> >
> > http://marc.info/?l=linux-mm&m=137532486405085&w=2
>
>
> In this patch MIGRATION config is not required MMU, because already CMA
> config depends
> on MMU and HAVE_MEMBLOCK if both are true then only selecting MIGRATION and
> MEMORY_ISOLATION.
No, I think it should be config MIGRATION that should depend on MMU
explicitly because that is where the problem exists. It shouldn't rely
on other configs to not select it automatically.
The question is. Does CMA need to depend on MMU as well? Why?
But please comment on the original thread instead.
--
Michal Hocko
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-05 7:32 ` Michal Hocko
@ 2013-08-05 8:37 ` Manjunath Goudar
2013-08-05 9:04 ` Michal Hocko
0 siblings, 1 reply; 11+ messages in thread
From: Manjunath Goudar @ 2013-08-05 8:37 UTC (permalink / raw)
To: Michal Hocko
Cc: Wanpeng Li, linux-arm-kernel, patches, arnd, dsaxena,
linaro-kernel, IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen,
linux-mm, Johannes Weiner, Balbir Singh, KAMEZAWA Hiroyuki,
hyojun.im, Nataraja KM/LGSIA CSP-4
[-- Attachment #1: Type: text/plain, Size: 1900 bytes --]
On 5 August 2013 13:02, Michal Hocko <mhocko@suse.cz> wrote:
> On Mon 05-08-13 10:10:08, Manjunath Goudar wrote:
> > On 4 August 2013 13:24, Wanpeng Li <liwanp@linux.vnet.ibm.com> wrote:
> >
> > > On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
> > > >s patch adds a Kconfig dependency on an MMU being available before
> > > >CMA can be enabled. Without this patch, CMA can be enabled on an
> > > >MMU-less system which can lead to issues. This was discovered during
> > > >randconfig testing, in which CMA was enabled w/o MMU being enabled,
> > > >leading to the following error:
> > > >
> > > > CC mm/migrate.o
> > > >mm/migrate.c: In function ‘remove_migration_pte’:
> > > >mm/migrate.c:134:3: error: implicit declaration of function
> > > ‘pmd_trans_huge’
> > > >[-Werror=implicit-function-declaration]
> > > > if (pmd_trans_huge(*pmd))
> > > > ^
> > > >mm/migrate.c:137:3: error: implicit declaration of function
> > > ‘pte_offset_map’
> > > >[-Werror=implicit-function-declaration]
> > > > ptep = pte_offset_map(pmd, addr);
> > > >
> > >
> > > Similar one.
> > >
> > > http://marc.info/?l=linux-mm&m=137532486405085&w=2
> >
> >
> > In this patch MIGRATION config is not required MMU, because already CMA
> > config depends
> > on MMU and HAVE_MEMBLOCK if both are true then only selecting MIGRATION
> and
> > MEMORY_ISOLATION.
>
> No, I think it should be config MIGRATION that should depend on MMU
> explicitly because that is where the problem exists. It shouldn't rely
> on other configs to not select it automatically.
>
> Yes you are correct.
The question is. Does CMA need to depend on MMU as well? Why?
> But please comment on the original thread instead.
>
I went through the mm/Kconfig, I think MMU dependence is not required
for CMA.
--
> Michal Hocko
> SUSE Labs
>
Thanks
Manjunath Goudar
[-- Attachment #2: Type: text/html, Size: 3012 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
2013-08-05 8:37 ` Manjunath Goudar
@ 2013-08-05 9:04 ` Michal Hocko
0 siblings, 0 replies; 11+ messages in thread
From: Michal Hocko @ 2013-08-05 9:04 UTC (permalink / raw)
To: Manjunath Goudar
Cc: Wanpeng Li, linux-arm-kernel, patches, arnd, dsaxena,
linaro-kernel, IWAMOTO Toshihiro, Hirokazu Takahashi, Dave Hansen,
linux-mm, Johannes Weiner, Balbir Singh, KAMEZAWA Hiroyuki,
hyojun.im, Nataraja KM/LGSIA CSP-4
On Mon 05-08-13 14:07:41, Manjunath Goudar wrote:
> On 5 August 2013 13:02, Michal Hocko <mhocko@suse.cz> wrote:
>
> > On Mon 05-08-13 10:10:08, Manjunath Goudar wrote:
> > > On 4 August 2013 13:24, Wanpeng Li <liwanp@linux.vnet.ibm.com> wrote:
> > >
> > > > On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
> > > > >s patch adds a Kconfig dependency on an MMU being available before
> > > > >CMA can be enabled. Without this patch, CMA can be enabled on an
> > > > >MMU-less system which can lead to issues. This was discovered during
> > > > >randconfig testing, in which CMA was enabled w/o MMU being enabled,
> > > > >leading to the following error:
> > > > >
> > > > > CC mm/migrate.o
> > > > >mm/migrate.c: In function a??remove_migration_ptea??:
> > > > >mm/migrate.c:134:3: error: implicit declaration of function
> > > > a??pmd_trans_hugea??
> > > > >[-Werror=implicit-function-declaration]
> > > > > if (pmd_trans_huge(*pmd))
> > > > > ^
> > > > >mm/migrate.c:137:3: error: implicit declaration of function
> > > > a??pte_offset_mapa??
> > > > >[-Werror=implicit-function-declaration]
> > > > > ptep = pte_offset_map(pmd, addr);
> > > > >
> > > >
> > > > Similar one.
> > > >
> > > > http://marc.info/?l=linux-mm&m=137532486405085&w=2
> > >
> > >
> > > In this patch MIGRATION config is not required MMU, because already CMA
> > > config depends
> > > on MMU and HAVE_MEMBLOCK if both are true then only selecting MIGRATION
> > and
> > > MEMORY_ISOLATION.
> >
> > No, I think it should be config MIGRATION that should depend on MMU
> > explicitly because that is where the problem exists. It shouldn't rely
> > on other configs to not select it automatically.
> >
> > Yes you are correct.
>
> > The question is. Does CMA need to depend on MMU as well? Why?
> > But please comment on the original thread instead.
> >
>
> I went through the mm/Kconfig, I think MMU dependence is not required
> for CMA.
OK, it turned out that it is needed in the end. Kcofing forces selects
so CMA config would force MIGRATION even if that one depends on MMU.
--
Michal Hocko
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-08-05 9:04 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-04 5:11 [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Manjunath Goudar
2013-08-04 7:54 ` Wanpeng Li
2013-08-04 7:54 ` Wanpeng Li
2013-08-04 7:54 ` Wanpeng Li
2013-08-04 8:09 ` Michal Hocko
2013-08-04 8:17 ` Manjunath Goudar
[not found] ` <51fe08c6.87ef440a.10fc.1786SMTPIN_ADDED_BROKEN@mx.google.com>
2013-08-04 8:03 ` Manjunath Goudar
2013-08-05 4:40 ` Manjunath Goudar
2013-08-05 7:32 ` Michal Hocko
2013-08-05 8:37 ` Manjunath Goudar
2013-08-05 9:04 ` Michal Hocko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).