Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Catalin Marinas
On Thu, 2011-01-27 at 18:59 +, Russell King - ARM Linux wrote: On Thu, Jan 27, 2011 at 06:14:56PM +, Catalin Marinas wrote: On 17 January 2011 19:24, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Rather than turning off CPU domain switching when the build architecture

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Russell King - ARM Linux
On Fri, Jan 28, 2011 at 09:46:06AM +, Catalin Marinas wrote: Does this mean that we could still configure a kernel to run on CPU_V6 with domains disabled? The vectors page becomes read-only and setting the TLS would fail. Yes it will, so that's not acceptable either. My point is that we

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Catalin Marinas
On Fri, 2011-01-28 at 09:59 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 09:46:06AM +, Catalin Marinas wrote: My point is that we may want SWP_EMULATE disabled (or depending on ! CPU_USE_DOMAINS). With domains enabled every read-only user page is writeable by the

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Russell King - ARM Linux
On Fri, Jan 28, 2011 at 10:46:51AM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 09:59 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 09:46:06AM +, Catalin Marinas wrote: My point is that we may want SWP_EMULATE disabled (or depending on ! CPU_USE_DOMAINS). With

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Catalin Marinas
On Fri, 2011-01-28 at 11:06 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 10:46:51AM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 09:59 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 09:46:06AM +, Catalin Marinas wrote: My point is that we may

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Russell King - ARM Linux
On Fri, Jan 28, 2011 at 12:25:18PM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 11:06 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 10:46:51AM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 09:59 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Catalin Marinas
On Fri, 2011-01-28 at 13:05 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 12:25:18PM +, Catalin Marinas wrote: With your latest patches, do we use the TLS emulation on ARMv7 (UP) if v6 is compiled in? If that's the case, we may have a problem - I talked to the toolchain

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Russell King - ARM Linux
On Fri, Jan 28, 2011 at 12:25:18PM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 11:06 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 10:46:51AM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 09:59 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Russell King - ARM Linux
On Fri, Jan 28, 2011 at 01:10:56PM +, Catalin Marinas wrote: On Fri, 2011-01-28 at 13:05 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 12:25:18PM +, Catalin Marinas wrote: With your latest patches, do we use the TLS emulation on ARMv7 (UP) if v6 is compiled in? If

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Catalin Marinas
On Fri, 2011-01-28 at 13:21 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 12:25:18PM +, Catalin Marinas wrote: With your latest patches, do we use the TLS emulation on ARMv7 (UP) if v6 is compiled in? If that's the case, we may have a problem - I talked to the toolchain

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-28 Thread Tony Lindgren
* Catalin Marinas catalin.mari...@arm.com [110128 07:11]: On Fri, 2011-01-28 at 13:21 +, Russell King - ARM Linux wrote: On Fri, Jan 28, 2011 at 12:25:18PM +, Catalin Marinas wrote: With your latest patches, do we use the TLS emulation on ARMv7 (UP) if v6 is compiled in? If that's

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-27 Thread Catalin Marinas
On 17 January 2011 19:24, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Rather than turning off CPU domain switching when the build architecture includes ARMv6K, thereby causing problems for ARMv6-supporting kernels, turn it on when it's required to support a CPU architecture. (sorry,

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-27 Thread Russell King - ARM Linux
On Thu, Jan 27, 2011 at 06:14:56PM +, Catalin Marinas wrote: On 17 January 2011 19:24, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Rather than turning off CPU domain switching when the build architecture includes ARMv6K, thereby causing problems for ARMv6-supporting kernels,

[PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-17 Thread Russell King - ARM Linux
Rather than turning off CPU domain switching when the build architecture includes ARMv6K, thereby causing problems for ARMv6-supporting kernels, turn it on when it's required to support a CPU architecture. Signed-off-by: Russell King rmk+ker...@arm.linux.org.uk --- arch/arm/mm/Kconfig |7

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-17 Thread Nicolas Pitre
On Mon, 17 Jan 2011, Russell King - ARM Linux wrote: Rather than turning off CPU domain switching when the build architecture includes ARMv6K, thereby causing problems for ARMv6-supporting kernels, turn it on when it's required to support a CPU architecture. Signed-off-by: Russell King

Re: [PATCH 11/14] ARM: v6k: use CPU domain feature if we include support for arch ARMv6K

2011-01-17 Thread Tony Lindgren
* Nicolas Pitre n...@fluxnic.net [110117 14:02]: On Mon, 17 Jan 2011, Russell King - ARM Linux wrote: Rather than turning off CPU domain switching when the build architecture includes ARMv6K, thereby causing problems for ARMv6-supporting kernels, turn it on when it's required to support a