From: Alistair Popple alist...@popple.id.au
Signed-off-by: Alistair Popple alist...@popple.id.au
---
arch/powerpc/platforms/powernv/pci-p5ioc2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/powernv/pci-p5ioc2.c
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/platforms/powernv/opal-rtc.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/arch/powerpc/platforms/powernv/opal-rtc.c
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/sysdev/xics/ics-opal.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/arch/powerpc/sysdev/xics/ics-opal.c
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/platforms/powernv/opal-nvram.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/powernv/opal-nvram.c
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/platforms/powernv/pci-ioda.c | 31 +--
arch/powerpc/platforms/powernv/pci.c | 27 +--
2 files changed, 30
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/include/asm/opal.h | 8
arch/powerpc/platforms/powernv/opal.c | 28
2 files changed, 20 insertions(+), 16
From: Benjamin Herrenschmidt b...@kernel.crashing.org
The powernv exception handlers are not ready to take exceptions
in little endian mode, so disable them.
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/platforms/powernv/opal.c | 2 ++
1 file changed, 2
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/platforms/powernv/opal-wrappers.S | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/powernv/opal-wrappers.S
Sparse caught an issue where opal_set_rtc_time was incorrectly
byteswapping. Also fix a number of sparse warnings.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/opal.h | 4 ++--
arch/powerpc/platforms/powernv/opal-rtc.c | 19 ++-
2 files
pnv_pci_setup_bml_iommu was missing a byteswap of a device
tree property.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/opal.h | 22 +++---
arch/powerpc/platforms/powernv/opal.c | 2 +-
arch/powerpc/platforms/powernv/pci-ioda.c | 6
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
arch/powerpc/include/asm/hvsi.h | 16
drivers/tty/hvc/hvsi_lib.c | 25 -
2 files changed, 20 insertions(+), 21 deletions(-)
diff
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
---
drivers/tty/hvc/hvc_opal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index
There are a number of KVM issues with little endian builds.
We are working on fixing them, but in the meantime disable
it.
Signed-off-by: Anton Blanchard an...@samba.org
Cc: Alexander Graf ag...@suse.de
---
arch/powerpc/kvm/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc
the entire MSR to use.
Signed-off-by: Anton Blanchard an...@samba.org
Cc: Alexander Graf ag...@suse.de
---
arch/powerpc/include/asm/kvm_host.h | 1 +
arch/powerpc/kernel/asm-offsets.c | 1 +
arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +-
arch/powerpc/kvm/book3s_hv.c| 44
, CROSS_COMPILE must point to a suitable toolchain
(compiled for the powerpc64le-linux and powerpcle-linux targets).
Signed-off-by: Ian Munsie imun...@au1.ibm.com
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/Makefile | 24 +---
arch/powerpc/boot
and SPE code have similar issues but already include
a user check. Add the same check to emulate_vsx().
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: b/arch/powerpc/kernel/align.c
===
--- a/arch/powerpc/kernel/align.c
+++ b
of a potentially
unlimited amount of kernel memory.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: b/arch/powerpc/kernel/align.c
===
--- a/arch/powerpc/kernel/align.c
+++ b/arch/powerpc/kernel/align.c
@@ -651,6 +651,10 @@ static int
Hi David,
I was thinking that you could add the label after the trap and
then use '.long 1b-4'. But you'd have to put the asm outside the
conditional - so that wouldn't work if the condition was more
complicated and the trap had to be out of line.
If the trap is out of line, then it could
Hi,
I noticed our BUG_ON macros were taking a large number of instructions.
I've built a testcase to analyse it:
#if defined(ASMBUG)
#define BUG_ON(x) do { \
__asm__ __volatile__(tdnei %0,0\n : : r ((long)(x))); \
} while (0)
#elif defined(BUILTIN)
#define BUG_ON(x) do { \
Hi Paul,
On Wed, Aug 07, 2013 at 02:01:53AM +1000, Anton Blanchard wrote:
+#ifdef __BIG_ENDIAN__
#define HPTE_LOCK_BIT 3
+#else
+#define HPTE_LOCK_BIT (63-3)
+#endif
Are you deliberately using a different bit here? AFAICS you are using
0x20 in the 7th byte as the lock bit
Hi,
The CONFIG_VIRTUALIZATION disabling should be done in the Kconfig not
here.
I'm not that keen on another defconfig. benh is already talking about
having a powernv defconfig. I'm worried we are going to fragment the
defconfigs. If you want something special like LE, then change the
over the
next day.
Anton
--
Alistair Popple (4):
powerpc: More little endian fixes for prom.c
powerpc: More little endian fixes for setup-common.c
powerpc: Little endian fixes for legacy_serial.c
powerpc: Make NUMA device node code endian safe
Anton Blanchard (53):
powerpc: Align p_toc
p_toc is an 8 byte relative offset to the TOC that we place in the
text section. This means it is only 4 byte aligned where it should
be 8 byte aligned. Add an explicit alignment.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/head_64.S | 1 +
1 file changed, 1 insertion
Not having parentheses around a macro is asking for trouble.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/reg.h | 8
arch/powerpc/include/asm/reg_booke.h | 8
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/powerpc
We always use VMX loads and stores to manage the high 32
VSRs. Remove these unused macros.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/ppc_asm.h | 13 -
1 file changed, 13 deletions(-)
diff --git a/arch/powerpc/include/asm/ppc_asm.h
b/arch/powerpc
Address some of the trivial sparse warnings in arch/powerpc.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/legacy_serial.c | 2 +-
arch/powerpc/kernel/pci-common.c| 4 ++--
arch/powerpc/kernel/pci_64.c| 2 +-
arch/powerpc
Simplify things by putting all the 32bit and 64bit defines
together instead of in two spots.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/uapi/asm/elf.h | 19 +++
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/arch/powerpc/include/uapi
plpar_get_term_char is only used once and just adds a layer
of complexity to H_GET_TERM_CHAR. plpar_put_term_char isn't
used at all so we can remove it.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/platforms/pseries/hvconsole.c | 12 +---
arch/powerpc/platforms
Fix a sparse warning about force_32bit_msi being a one bit bitfield.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/pci-bridge.h | 2 +-
arch/powerpc/kernel/pci_64.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/include
From: Ian Munsie imun...@au1.ibm.com
On PowerPC the device tree is always big endian, but the CPU could be
either, so add be32_to_cpu where appropriate and change the types of
device tree data to __be32 etc to allow sparse to locate endian issues.
Signed-off-by: Ian Munsie imun...@au1.ibm.com
to set the shared_proc bit. While here, remove the ugly bitfield.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/lppaca.h | 18 ++
arch/powerpc/include/asm/spinlock.h | 2 +-
arch/powerpc/kernel/lparcfg.c
From: Alistair Popple alist...@popple.id.au
Signed-off-by: Alistair Popple alist...@popple.id.au
---
arch/powerpc/kernel/prom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index d072f67..987a4fb 100644
---
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/setup_64.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index b3b5fd3..00dfcc5 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/rtas.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c
index 80b5ef4..98b26af 100644
--- a/arch/powerpc/kernel/rtas.c
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/setup-common.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/kernel/setup-common.c
b/arch/powerpc/kernel/setup-common.c
index 63d051f..ee0e055 100644
--- a/arch/powerpc/kernel/setup
RTAS expects arguments in the call buffer to be big endian so we
need to byteswap on little endian builds
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/rtas.h | 8
arch/powerpc/kernel/rtas.c | 38 +++---
2 files changed
to catch ldbrx/stdbrx.
Signed-off-by: Anton Blanchard an...@samba.org
Cc: sta...@vger.kernel.org
---
arch/powerpc/kernel/align.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c
index ee5b690..52e5758 100644
--- a/arch/powerpc
From: Alistair Popple alist...@popple.id.au
Signed-off-by: Alistair Popple alist...@popple.id.au
---
arch/powerpc/kernel/setup-common.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/setup-common.c
b/arch/powerpc/kernel/setup-common.c
index
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/sysdev/xics/xics-common.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc/sysdev/xics/xics-common.c
b/arch/powerpc/sysdev/xics/xics-common.c
index 9049d9f..fe0cca4 100644
--- a/arch
Fix a couple of sparse warnings.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/time.c| 2 +-
arch/powerpc/sysdev/xics/icp-native.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/cacheinfo.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/kernel/cacheinfo.c b/arch/powerpc/kernel/cacheinfo.c
index 9262cf2..6549327 100644
--- a/arch/powerpc/kernel/cacheinfo.c
We pass dma_window to of_parse_dma_window as a void * and then
run through hoops to cast it back to a u32 array. In the process
we lose endian annotation.
Simplify it by just passing a __be32 * down.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/prom.h| 5
From: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/prom_init.c | 253 +++-
1 file changed, 147 insertions(+), 106 deletions
Signed-off-by: Anton Blanchard an...@samba.org
---
drivers/tty/hvc/hvc_vio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
index 0c62980..c791b18 100644
--- a/drivers/tty/hvc/hvc_vio.c
+++ b/drivers/tty/hvc/hvc_vio.c
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/pci-common.c | 6 +++---
arch/powerpc/kernel/pci_of_scan.c | 23 +--
2 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/vio.c | 31 +--
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index 31875a6..78a3506 100644
--- a/arch/powerpc/kernel/vio.c
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/pci_dn.c | 20 +++-
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/arch/powerpc/kernel/pci_dn.c b/arch/powerpc/kernel/pci_dn.c
index df03844..1f61fab 100644
--- a/arch/powerpc/kernel/pci_dn.c
From: Alistair Popple alist...@popple.id.au
Signed-off-by: Alistair Popple alist...@popple.id.au
---
arch/powerpc/kernel/legacy_serial.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/kernel/legacy_serial.c
b/arch/powerpc/kernel/legacy_serial.c
index
From: Alistair Popple alist...@popple.id.au
The device tree is big endian so make sure we byteswap on little
endian. We assume any pHyp calls also return big endian results in
memory.
Signed-off-by: Alistair Popple alist...@popple.id.au
---
arch/powerpc/mm/numa.c | 100
Alistair noticed we got a SIGILL on userspace mfpvr instructions.
Remove the little endian check in the emulation code, it is
probably there to protect against the old pseudo little endian
implementations but doesn't make sense for real little endian.
Signed-off-by: Anton Blanchard
The lppaca, slb_shadow and dtl_entry hypervisor structures are
big endian, so we have to byte swap them in little endian builds.
LE KVM hosts will also need to be fixed but for now add an #error
to remind us.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/asm
Add little endian support for demuxing SMP IPIs
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/smp.c | 19 ++-
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 98822400..bcdb706
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/platforms/pseries/hvconsole.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/hvconsole.c
b/arch/powerpc/platforms/pseries/hvconsole.c
index aa0aa37..ef6d59a 100644
We need to set ELF_DATA correctly on LE coredumps.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/uapi/asm/elf.h | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/include/uapi/asm/elf.h
b/arch/powerpc/include/uapi/asm/elf.h
index
Our ppc64 spinlocks and rwlocks use a trick where a lock token and
the paca index are placed in the lock with a single store. Since we
are using two u16s they need adjusting for little endian.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/paca.h | 5
Fix the permute loops for little endian.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/lib/copyuser_power7.S | 54 +
arch/powerpc/lib/memcpy_power7.S | 55 ++
2 files changed, 63 insertions(+), 46
FPRs overlap the high 64bits of the first 32 VSX registers. The
ptrace FP read/write code assumes big endian ordering and grabs
the lowest 64 bits.
Fix this by using the TS_FPR macro which does the right thing.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/ptrace.c | 8
The FPRs overlap the high doublewords of the first 32 VSX registers.
Fix TS_FPROFFSET and TS_VSRLOWOFFSET so we access the correct fields
in little endian mode.
If VSX is disabled the FPRs are only one doubleword in length so
TS_FPROFFSET needs adjusting in little endian.
Signed-off-by: Anton
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/mmu-hash64.h | 4 +--
arch/powerpc/mm/hash_native_64.c | 46 ---
arch/powerpc/mm/hash_utils_64.c | 38 ++---
3 files changed, 46 insertions(+), 42
this on save and restore.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/ppc-opcode.h | 3 +++
arch/powerpc/include/asm/ppc_asm.h| 21 +
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/include/asm/ppc-opcode.h
b/arch
) for that case is intentional to bring the
attention of anyone doing a 64bit little endian port. 64bit big endian
is unaffected.
[ Added 64 bit versions - Anton ]
Signed-off-by: Ian Munsie imun...@au1.ibm.com
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/io.h | 67
Add endian annotation to various hypervisor structures which
are defined as big endian.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/lppaca.h | 50 +++
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/arch/powerpc
The powerpc word-at-a-time functions are big endian specific.
Bring in the x86 version in order to support little endian builds.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/word-at-a-time.h | 71 +++
1 file changed, 71 insertions
We need to set MSR_LE in kernel and userspace for little endian builds
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/reg.h | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index
We always take signals in big endian which is wrong. Signals
should be taken in native endian.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/signal_32.c | 3 ++-
arch/powerpc/kernel/signal_64.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch
From: Ian Munsie imun...@au1.ibm.com
This patch will have powerpc include the appropriate generic endianness
header depending on what the compiler reports.
Signed-off-by: Ian Munsie imun...@au1.ibm.com
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/uapi/asm/byteorder.h
-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/ppc_asm.h | 31 ++-
arch/powerpc/kernel/entry_64.S | 36
arch/powerpc/kernel/head_64.S | 2 ++
3 files changed, 52 insertions(+), 17 deletions(-)
diff --git
We might need to flip endian when starting secondary threads via
RTAS.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/head_64.S | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S
index 065d10f..2ae41ab 100644
On little endian builds call H_SET_MODE so exceptions have the
correct endianness. We need a better hook to handle flipping back
into big endian mode on a kexec, but insert it into the mmu
teardown callback for now.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm
the entire MSR to use.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/kvm_host.h | 1 +
arch/powerpc/kernel/asm-offsets.c | 1 +
arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 +-
arch/powerpc/kvm/book3s_hv.c| 44
Use swab64/32/16 instead of open coding it.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/align.c | 36
1 file changed, 12 insertions(+), 24 deletions(-)
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c
index
The alignment handler assumes big endian ordering when selecting
the low word of a 64bit floating point value. Use the existing
union which works in both little and big endian.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/align.c | 4 ++--
1 file changed, 2 insertions
The TS_FPR macro selects the FPR component of a VSX register (the
high doubleword). emulate_vsx is using this macro to get the
address of the associated VSX register. This happens to work on big
endian, but fails on little endian.
Replace it with an explicit array access.
Signed-off-by: Anton
Handle most unaligned load and store faults in little
endian mode. Strings, multiples and VSX are not supported.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/align.c | 93 ++---
1 file changed, 63 insertions(+), 30 deletions
Things are complicated by the fact that VSX elements are big
endian ordered even in little endian mode. 8 byte loads and
stores also write to the top 8 bytes of the register.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/kernel/align.c | 41
The hypervisor is big endian, so little endian kernel builds need
to byteswap.
Signed-off-by: Anton Blanchard an...@samba.org
---
drivers/scsi/ibmvscsi/ibmvscsi.c | 153 ++-
drivers/scsi/ibmvscsi/viosrp.h | 46 ++--
2 files changed, 108 insertions
The hypervisor is big endian, so little endian kernel builds need
to byteswap.
Signed-off-by: Anton Blanchard an...@samba.org
---
drivers/net/ethernet/ibm/ibmveth.c | 4 ++--
drivers/net/ethernet/ibm/ibmveth.h | 19 ---
2 files changed, 18 insertions(+), 5 deletions(-)
diff
Kconfig. If the option exists it is always
forced on.
Other users of the checksum routines (eg networking code) do
not have a select CONFIG_GENERIC_CSUM, so I don't see why
the lpfc driver should.
Signed-off-by: Anton Blanchard an...@samba.org
---
drivers/scsi/Kconfig | 1 -
1 file changed, 1
We need to fix some endian issues in our checksum code. For now
just enable the generic checksum routines for little endian builds.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/Kconfig| 3 +++
arch/powerpc/include/asm/checksum.h | 5 +
arch/powerpc/kernel
We need to fix some endian issues in our memcpy code. For now
just enable the generic memcpy routine for little endian builds.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/include/asm/string.h | 4
arch/powerpc/kernel/ppc_ksyms.c | 2 ++
arch/powerpc/lib/Makefile
to a suitable toolchain (compiled for the powerpc64le-linux
and powerpcle-linux targets).
Signed-off-by: Ian Munsie imun...@au1.ibm.com
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/Makefile | 24 +---
arch/powerpc/boot/Makefile
POWER7 takes alignment exceptions on some unaligned addresses, so
disable HAVE_EFFICIENT_UNALIGNED_ACCESS. This fixes an early boot
issue in the printk code.
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Temporarily work around an ICE we are seeing while building
in little endian mode:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57134
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/Makefile
This is the pseries_defconfig with CONFIG_CPU_LITTLE_ENDIAN enabled
and CONFIG_VIRTUALIZATION disabled (required until we fix some
endian issues in KVM).
Signed-off-by: Anton Blanchard an...@samba.org
---
arch/powerpc/configs/pseries_le_defconfig | 347 ++
1 file
p_toc is an 8 byte relative offset to the TOC that we place in the
text section. This means it is only 4 byte aligned where it should
be 8 byte aligned. Add an explicit alignment.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: b/arch/powerpc/kernel/head_64.S
We always use VMX loads and stores to manage the high 32
VSRs. Remove these unused macros.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: b/arch/powerpc/include/asm/ppc_asm.h
===
--- a/arch/powerpc/include/asm/ppc_asm.h
We want PPC_DENORMALISATION enabled when POWERNV is enabled,
so update the Kconfig.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: b/arch/powerpc/Kconfig
===
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
to catch ldbrx/stdbrx.
Signed-off-by: Anton Blanchard an...@samba.org
Cc: sta...@kernel.org
---
Index: b/arch/powerpc/kernel/align.c
===
--- a/arch/powerpc/kernel/align.c
+++ b/arch/powerpc/kernel/align.c
@@ -764,6 +764,16 @@ int
Hi,
be32_to_cpu(initial_boot_params-totalsize);
Ouch, thanks Grant.
Anton
--
We feed the entire DMI table into the random pool to provide
better random data during early boot, so do the same with the
flattened device tree.
Signed-off-by: Anton Blanchard an...@samba.org
---
v3: Fix endian
Hi Neil,
Sorry I'm a bit late to the thread, I've ben swamped. Has someone
tested this with kexec/kdump? Thats why the origional patch was
created, because when kexec loads the kernel at a different physical
address, the relocations messed with the module crc's, and modules
couldn't load
Hi,
Alan has been looking at a glibc test fail. His analysis shows SEGVs
in signal handlers using sigaltstack, and that MINSIGSTKSZ and SIGSTKSZ
are too small.
We increased the size of rt_sigframe in commit 2b0a576d15e0
(powerpc: Add new transactional memory state to the signal context) but
Hi Scott,
I'm not really sure what it's supposed to look like when perf
annotate works. It spits a bunch of unreadable[1]
dark-blue-on-black assembly code at me, all with 0.00 : in the left
column.
Oh, wait -- some lines have 100.00 : on the left, in
even-more-unreadable
We feed the entire DMI table into the random pool to provide
better random data during early boot, so do the same with the
flattened device tree.
Signed-off-by: Anton Blanchard an...@samba.org
---
It might be worth doing this somewhere common, but the only place
I could find
better random data during early boot, so do the same with the
flattened device tree.
Signed-off-by: Anton Blanchard an...@samba.org
---
v2: move to drivers/of/fdt.c as suggested by Michael Ellerman
Index: b/drivers/of/fdt.c
Hi Scott,
What specifically should I do to test it?
Could you double check perf annotate works? I'm 99% sure it will but
that is what was failing on ppc64.
Anton
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
in that case.
Signed-off-by: Anton Blanchard an...@samba.org
Cc: sta...@kernel.org
---
This bug was originally reported on Fedora 19 (3.9.x), so I've marked
it for stable.
Index: b/arch/powerpc/include/asm/module.h
===
--- a/arch
It is often useful to see the instruction that caused an unhandled
exception.
Signed-off-by: Anton Blanchard an...@samba.org
---
We print all ones if the get_user fails, do we want to go to
the added effort of printing like we do in the oops
code?
Index: b/arch/powerpc/kernel/traps.c
Hi,
This is causing a regression on 64bit powerpc with 32bit usermode.
When I hit userspace, udev is broken and I suspect all networking is
broken as well.
Can we please revert 1be374a0518a288147c6a7398792583200a67261
upstream?
Found via bisect.
Doesn't this patch break
On newer CPUs we use VSX loads and stores to the thread-fpr array.
For best performance we need to ensure 16 byte alignment.
Signed-off-by: Anton Blanchard an...@samba.org
---
Index: b/arch/powerpc/include/asm/processor.h
On Fri, 10 May 2013 22:18:27 +0100
David Woodhouse dw...@infradead.org wrote:
From: David Woodhouse david.woodho...@intel.com
Some versions of GCC apparently expect this to be provided by libgcc.
Thanks Dave. We were discussing this with Alan Modra and he doesn't
think the 64bit target
601 - 700 of 1164 matches
Mail list logo