* [PATCH] MIPS/OCTEON: Override default address space layout.
@ 2013-06-13 21:10 David Daney
2013-06-14 8:41 ` Ralf Baechle
0 siblings, 1 reply; 4+ messages in thread
From: David Daney @ 2013-06-13 21:10 UTC (permalink / raw)
To: linux-mips, ralf; +Cc: David Daney
From: David Daney <david.daney@cavium.com>
OCTEON II cannot execute code in the default CAC_BASE space, so we
supply a value (0x8000000000000000) that does work.
Signed-off-by: David Daney <david.daney@cavium.com>
---
arch/mips/include/asm/mach-cavium-octeon/spaces.h | 24 +++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 arch/mips/include/asm/mach-cavium-octeon/spaces.h
diff --git a/arch/mips/include/asm/mach-cavium-octeon/spaces.h b/arch/mips/include/asm/mach-cavium-octeon/spaces.h
new file mode 100644
index 0000000..daa91ac
--- /dev/null
+++ b/arch/mips/include/asm/mach-cavium-octeon/spaces.h
@@ -0,0 +1,24 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2012 Cavium, Inc.
+ */
+#ifndef _ASM_MACH_CAVIUM_OCTEON_SPACES_H
+#define _ASM_MACH_CAVIUM_OCTEON_SPACES_H
+
+#include <linux/const.h>
+
+#ifdef CONFIG_64BIT
+/* They are all the same and some OCTEON II cores cannot handle 0xa8.. */
+#define CAC_BASE _AC(0x8000000000000000, UL)
+#define UNCAC_BASE _AC(0x8000000000000000, UL)
+#define IO_BASE _AC(0x8000000000000000, UL)
+
+
+#endif /* CONFIG_64BIT */
+
+#include <asm/mach-generic/spaces.h>
+
+#endif /* _ASM_MACH_CAVIUM_OCTEON_SPACES_H */
--
1.7.11.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] MIPS/OCTEON: Override default address space layout.
2013-06-13 21:10 [PATCH] MIPS/OCTEON: Override default address space layout David Daney
@ 2013-06-14 8:41 ` Ralf Baechle
2013-06-14 17:50 ` David Daney
0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2013-06-14 8:41 UTC (permalink / raw)
To: David Daney; +Cc: linux-mips, David Daney
On Thu, Jun 13, 2013 at 02:10:47PM -0700, David Daney wrote:
> From: David Daney <david.daney@cavium.com>
>
> OCTEON II cannot execute code in the default CAC_BASE space, so we
> supply a value (0x8000000000000000) that does work.
>
> Signed-off-by: David Daney <david.daney@cavium.com>
Thanks, applied.
I assume this also should be applied to all -stable branches?
Ralf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] MIPS/OCTEON: Override default address space layout.
@ 2013-06-14 17:50 ` David Daney
0 siblings, 0 replies; 4+ messages in thread
From: David Daney @ 2013-06-14 17:50 UTC (permalink / raw)
To: Ralf Baechle; +Cc: David Daney, linux-mips, David Daney
On 06/14/2013 01:41 AM, Ralf Baechle wrote:
> On Thu, Jun 13, 2013 at 02:10:47PM -0700, David Daney wrote:
>
>> From: David Daney <david.daney@cavium.com>
>>
>> OCTEON II cannot execute code in the default CAC_BASE space, so we
>> supply a value (0x8000000000000000) that does work.
>>
>> Signed-off-by: David Daney <david.daney@cavium.com>
>
> Thanks, applied.
>
> I assume this also should be applied to all -stable branches?
>
It is really only needed in conjunction with kexec, and that is somewhat
broken at the moment
David.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] MIPS/OCTEON: Override default address space layout.
@ 2013-06-14 17:50 ` David Daney
0 siblings, 0 replies; 4+ messages in thread
From: David Daney @ 2013-06-14 17:50 UTC (permalink / raw)
To: Ralf Baechle; +Cc: David Daney, linux-mips, David Daney
On 06/14/2013 01:41 AM, Ralf Baechle wrote:
> On Thu, Jun 13, 2013 at 02:10:47PM -0700, David Daney wrote:
>
>> From: David Daney <david.daney@cavium.com>
>>
>> OCTEON II cannot execute code in the default CAC_BASE space, so we
>> supply a value (0x8000000000000000) that does work.
>>
>> Signed-off-by: David Daney <david.daney@cavium.com>
>
> Thanks, applied.
>
> I assume this also should be applied to all -stable branches?
>
It is really only needed in conjunction with kexec, and that is somewhat
broken at the moment
David.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-14 17:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 21:10 [PATCH] MIPS/OCTEON: Override default address space layout David Daney
2013-06-14 8:41 ` Ralf Baechle
2013-06-14 17:50 ` David Daney
2013-06-14 17:50 ` David Daney
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.