Re: Need help for USB OTG feature for Canyonlands PPC460EX Board

2011-02-01 Thread Wolfgang Denk
Dear sunny bhayani, In message you wrote: > > I am trying to enable the USB DWC OTG feature for Canyonlands PPC460EX > Board, and am using the 2.6.30 kernel from denx. > > Now the issue is I am selecting the "USB Gadget" feature from the kernel > menuconfig, but the kernel log only shows, I do

Re: [PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-01 Thread Kumar Gala
On Feb 1, 2011, at 12:48 PM, Dave Kleikamp wrote: > Since other OS's may be running on the other cores don't use tlbivax Are you guys building SMP kernel for use with AMP? Just wondering why you'd be using tlbivax at all. - k ___ Linuxppc-dev maili

Re: [PATCH V2 3/6] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-02-01 Thread Kumar Gala
On Feb 1, 2011, at 12:48 PM, Dave Kleikamp wrote: > Signed-off-by: Dave Kleikamp > Cc: Benjamin Herrenschmidt > Cc: Josh Boyer > Cc: linuxppc-dev@lists.ozlabs.org > --- > arch/powerpc/Kconfig |2 +- > arch/powerpc/configs/44x/iss476-smp_defconfig |6 ++-- > arch/

[PATCH 1/6] ftrace syscalls: don't add events for unmapped syscalls

2011-02-01 Thread Ian Munsie
From: Ian Munsie FTRACE_SYSCALLS would create events for each and every system call, even if it had failed to map the system call's name with it's number. This resulted in a number of events being created that would not behave as expected. This could happen, for example, on architectures who's s

[PATCH 5/6] trace, powerpc: Implement raw syscall tracepoints on PowerPC

2011-02-01 Thread Ian Munsie
From: Ian Munsie This patch implements the raw syscall tracepoints on PowerPC and exports them for ftrace syscalls to use. To minimise reworking existing code, I slightly re-ordered the thread info flags such that the new TIF_SYSCALL_TRACEPOINT bit would still fit within the 16 bits of the andi.

[PATCH 6/6] trace syscalls: Early terminate search for sys_ni_syscall

2011-02-01 Thread Ian Munsie
From: Ian Munsie Many system calls are unimplemented and mapped to sys_ni_syscall, but at boot ftrace would still search through every syscall metadata entry for a match which wouldn't be there. This patch adds causes the search to terminate early if the system call is not mapped. Signed-off-by

[PATCH 4/6] ftrace syscalls: Allow arch specific syscall symbol matching

2011-02-01 Thread Ian Munsie
From: Ian Munsie Some architectures have unusual symbol names and the generic code to match the symbol name with the function name for the syscall metadata will fail. For example, symbols on PPC64 start with a period and the generic code will fail to match them. This patch moves the match logic

[PATCH 3/6] ftrace syscalls: Make arch_syscall_addr weak

2011-02-01 Thread Ian Munsie
From: Ian Munsie Some architectures use non-trivial system call tables and will not work with the generic arch_syscall_addr code. For example, PowerPC64 uses a table of twin long longs. This patch makes the generic arch_syscall_addr weak to allow architectures with non-trivial system call tables

[PATCH 2/6] trace syscalls: Convert redundant syscall_nr checks into WARN_ON

2011-02-01 Thread Ian Munsie
From: Ian Munsie With the ftrace events now checking if the syscall_nr is valid upon initialisation it should no longer be possible to register or unregister a syscall event without a valid syscall_nr since they should not be created. This adds a WARN_ON_ONCE in the register and unregister functi

PowerPC, ftrace: Add PPC raw syscall tracepoints & ftrace fixes (mimimal subset only) v3

2011-02-01 Thread Ian Munsie
git send-email just failed to save or send this message, so retyping... Hi All, This is a partial version of my 'ftrace syscalls, PowerPC: Various fixes, Compat Syscall support and PowerPC implementation'. I finally found some time this week to go back and work on this patchset, but now I've be

Per process DSCR + somefixes

2011-02-01 Thread Alexey Kardashevskiy
This is reworked http://patchwork.ozlabs.org/patch/71489/ Originally there were 4 questions left: 1. /sys/devices/system/cpu/cpu##/dscr It is left as is. 2. Out of band method of changing the DSCR: Introduced new /sys/devices/system/cpu/dscr_default and "dscr_inherit" flag for a thread's DSCR

Re: [PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-01 Thread Dave Kleikamp
On Tue, 2011-02-01 at 13:13 -0600, Scott Wood wrote: > On Tue, 1 Feb 2011 12:48:45 -0600 > Dave Kleikamp wrote: > > > For AMP, different kernel instances load into separate memory regions. > > Read the start of memory from the device tree and limit the memory to what's > > specified in the device

Re: [PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-01 Thread Scott Wood
On Tue, 1 Feb 2011 12:48:45 -0600 Dave Kleikamp wrote: > For AMP, different kernel instances load into separate memory regions. > Read the start of memory from the device tree and limit the memory to what's > specified in the device tree. > > Signed-off-by: Dave Kleikamp > Cc: Benjamin Herrensc

Re: [PATCH] powerpc/mm: add devmem_is_allowed() for STRICT_DEVMEM checking

2011-02-01 Thread Scott Wood
On Tue, 1 Feb 2011 12:21:45 -0500 Steve Best wrote: > > On Mon, 2011-01-31 at 13:40 -0600, Scott Wood wrote: > > I don't see how this is a sane thing to turn on by default (you're not > > restricting it, BTW -- you're completely disabling it with that > > implementation of devmem_is_allowed). I

[PATCH V2 4/6] powerpc/44x: don't use tlbivax on AMP systems

2011-02-01 Thread Dave Kleikamp
Since other OS's may be running on the other cores don't use tlbivax Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/include/asm/mmu.h |2 +- arch/powerpc/kernel/setup_32.c |2 ++ arch/powerpc/mm/tlb_nohash.c |

[PATCH V2 5/6] powerpc/44x: boot wrapper: allow kernel to load into non-zero address

2011-02-01 Thread Dave Kleikamp
For AMP, different kernel instances load into separate memory regions. Read the start of memory from the device tree and limit the memory to what's specified in the device tree. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/po

[PATCH V2 6/6] powerpc/476: Create a dts files for two 476 AMP instances under ISS

2011-02-01 Thread Dave Kleikamp
These are completely independent OS instances, each running on 2 cores. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/boot/Makefile|6 ++- arch/powerpc/boot/dts/iss476-amp1.dts | 119 ++

[PATCH V2 3/6] powerpc/47x: allow kernel to be loaded in higher physical memory

2011-02-01 Thread Dave Kleikamp
Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/Kconfig |2 +- arch/powerpc/configs/44x/iss476-smp_defconfig |6 ++-- arch/powerpc/kernel/head_44x.S| 42 +

[PATCH V2 1/6] powerpc: Move udbg_early_init() after early_init_devtree()

2011-02-01 Thread Dave Kleikamp
so that it can use information from the device tree. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Josh Boyer Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/setup_32.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/set

[PATCH V2 2/6] powerpc/44x: allow override to hard-coded uart address

2011-02-01 Thread Dave Kleikamp
Allow the early debug uart address to be overridden from the kernel command line. I would have preferred use the uart's virtual-reg property, but the device tree hasn't been unflatted yet, and I don't know a reliable way to find it. Signed-off-by: Dave Kleikamp Cc: Benjamin Herrenschmidt Cc: Jo

[PATCH V2 0/6] powerpc: AMP support for 47x

2011-02-01 Thread Dave Kleikamp
These patches add Asynchonous MultiProcessing support for the 47x chipset. This allows independent OS instances to run on separate cores. V2: 1. Replace ugly hack in boot wrapper with generic solution Dave Kleikamp (6): powerpc: Move udbg_early_init() after early_init_devtree() powerpc/44x:

Re: [PATCH] powerpc/mm: add devmem_is_allowed() for STRICT_DEVMEM checking

2011-02-01 Thread Steve Best
On Mon, 2011-01-31 at 13:40 -0600, Scott Wood wrote: > On Mon, 31 Jan 2011 14:16:00 -0500 > Steve Best wrote: > > > Provide devmem_is_allowed() routine to restrict access to kernel > > memory from userspace. > > Set CONFIG_STRICT_DEVMEM config option to switch on checking. > > > > S