Re: [Uclinux-dist-devel] [RFC] Add support for Analog Devices: ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997, ad7998 i2c analog to digital converters (ADC)

2010-05-22 Thread Mike Frysinger
On Wed, May 19, 2010 at 06:45, Michael Hennerich wrote: > [RFC] Add support for Analog Devices: ad7991, ad7995, ad7999, ad7992, > ad7993, ad7994, ad7997, ad7998 i2c analog to digital converters (ADC) this driver wasnt committed to the Blackfin svn tree ? -mike _

[Uclinux-dist-devel] [PATCH] USB: musb: fix Blackfin building after power updates

2010-05-22 Thread Mike Frysinger
From: Ian Jeffray The new MUSB power code needs musb_read_txhubport() to return a value (so stub it as 0 like the other Blackfin hub funcs). It also needs new helper functions for saving/restoring context, so change the apparently unused musb_platform_{suspend,resume} to musb_platform_{save,rest

[Uclinux-dist-devel] [PATCH 10/30] Blackfin: SMP: add flush_tlb_kernel_range stub

2010-05-22 Thread Mike Frysinger
From: Graf Yang Newer code in mm/page_alloc.c requires this function now in arches. Signed-off-by: Graf Yang Signed-off-by: Mike Frysinger --- arch/blackfin/include/asm/tlbflush.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/blackfin/include/asm/tlbflush.h b/

[Uclinux-dist-devel] [PATCH 25/30] Blackfin: use atomic kmalloc in L1 alloc so it too can be atomic

2010-05-22 Thread Mike Frysinger
Some drivers allocate L1 SRAM in atomic contexts, so make sure these functions also use GFP_ATOMIC to avoid BUG()'s. Signed-off-by: Mike Frysinger --- arch/blackfin/mm/sram-alloc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/mm/sram-alloc.c b/arch/bla

[Uclinux-dist-devel] [PATCH 11/30] Blackfin: add support for the DBGA (debug assert) pseudo insn

2010-05-22 Thread Mike Frysinger
From: Robin Getz A few pseudo debug insns exist to make testing of simulators easier. Since these don't actually exist in the hardware, we have to have the exception handler take care of emulating these. This allows sim test cases to be executed unmodified under Linux and thus simplify debugging

[Uclinux-dist-devel] [PATCH 29/30] Blackfin: acvilon: fix timeout usage for I2C

2010-05-22 Thread Mike Frysinger
From: Wolfram Sang The timeout value is in jiffies, so it should be using HZ, not a plain number. As '1' is ambiguous, 1HZ is used as conservative default. Signed-off-by: Wolfram Sang Cc: Valentin Yakovenkov Signed-off-by: Mike Frysinger --- arch/blackfin/mach-bf561/boards/acvilon.c |

[Uclinux-dist-devel] [PATCH 15/30] Blackfin: support all possible registers in the pseudo instructions

2010-05-22 Thread Mike Frysinger
From: Robin Getz Rather than decoding just the common R/P registers, handle all of them. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/pseudodgb.c | 67 ++--- 1 files changed, 61 insertions(+), 6 deletions(-) diff --git a/a

[Uclinux-dist-devel] [PATCH 17/30] Blackfin: handle HW errors in the new "FAULT" printing code

2010-05-22 Thread Mike Frysinger
From: Robin Getz Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/trace.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/blackfin/kernel/trace.c b/arch/blackfin/kernel/trace.c index 317d427..59fcdf6 100644 --- a/arch/blackf

[Uclinux-dist-devel] [PATCH 20/30] Blackfin: SIC: cut down on IAR MMR reads a bit

2010-05-22 Thread Mike Frysinger
Tweak the for loops that operate on the SIC IAR system MMRs to avoid re-reading them multiple times in a row. System MMRs are a little slower to access, so avoid the penalty when possible. Signed-off-by: Mike Frysinger --- arch/blackfin/mach-common/ints-priority.c | 33 +++

[Uclinux-dist-devel] [PATCH 14/30] Blackfin: add support for the DBG (debug output) pseudo insn

2010-05-22 Thread Mike Frysinger
From: Robin Getz Another pseudo insn used by Blackfin simulators. Also factor some now common register lookup code out of the DBGA handlers. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/include/asm/pseudo_instructions.h |1 + arch/blackfin/kernel/pseudodgb.c

[Uclinux-dist-devel] [PATCH 22/30] Blackfin: isram: clean up ITEST_COMMAND macro and improve the selftests

2010-05-22 Thread Mike Frysinger
The IADDR2DTEST() macro had some duplicated logic with bit 11 and some incorrect comments, so scrub all of that. In order to verify these aren't a problem (and won't be in the future), extend the self tests to operate on as much L1 SRAM as possible. Signed-off-by: Mike Frysinger --- arch/blackf

[Uclinux-dist-devel] [PATCH 28/30] Blackfin: fix typo in BF537 IRQ comment

2010-05-22 Thread Mike Frysinger
From: Michael Hennerich Signed-off-by: Michael Hennerich Signed-off-by: Mike Frysinger --- arch/blackfin/mach-bf537/include/mach/irq.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/mach-bf537/include/mach/irq.h b/arch/blackfin/mach-bf537/include/mach/

[Uclinux-dist-devel] [PATCH 13/30] Blackfin: change the BUG opcode to an unused 16-bit opcode

2010-05-22 Thread Mike Frysinger
From: Robin Getz The current BUG opcode includes the bit that flags the insn as a 32bit opcode, but it wasn't declaring it as 32bits. So pick an unused 16bit. URL: http://blackfin.uclinux.org/gf/tracker/5973 Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/include/as

[Uclinux-dist-devel] [PATCH 19/30] Blackfin: bf537-minotaur: fix build errors due to header changes

2010-05-22 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- arch/blackfin/mach-bf537/boards/minotaur.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/blackfin/mach-bf537/boards/minotaur.c b/arch/blackfin/mach-bf537/boards/minotaur.c index c489d60..05d4599 100644 --- a/arch/blackfin/mach-b

[Uclinux-dist-devel] [PATCH 26/30] Blackfin: set ARCH_KMALLOC_MINALIGN

2010-05-22 Thread Mike Frysinger
From: FUJITA Tomonori Architectures that handle DMA-non-coherent memory need to set ARCH_KMALLOC_MINALIGN to make sure that kmalloc'ed buffer is DMA-safe: the buffer doesn't share a cache with the others. Signed-off-by: FUJITA Tomonori Acked-by: Pekka Enberg Signed-off-by: Mike Frysinger ---

[Uclinux-dist-devel] [PATCH 23/30] Blackfin: optimize strncpy a bit

2010-05-22 Thread Mike Frysinger
From: Robin Getz Add a little strncpy optimization which can easily cut boot time by 20%. When the kernel is booting with initramfs, it builds up the filesystem from a cpio archive by calling strncpy_from_user() via fs/namei.c's do_getname() on every file in the archive (which can be lots) with

[Uclinux-dist-devel] Pull request blackfin.git (for-linus branch)

2010-05-22 Thread Mike Frysinger
The following changes since commit 7a9b149212f3716c598afe973b6261fd58453b7a: Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 (2010-05-20 21:26:12 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin.git for-linus Cl

[Uclinux-dist-devel] [PATCH 24/30] Blackfin: another year of changes (update copyright in boot log)

2010-05-22 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/setup.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index 8e2efce..d37a397 100644 --- a/arch/blackfin/kernel/setup.c +++ b/arch/blackfin/kernel/setup.

[Uclinux-dist-devel] [PATCH 30/30] Blackfin: SMP: fix continuation lines

2010-05-22 Thread Mike Frysinger
From: Joe Perches Signed-off-by: Joe Perches Signed-off-by: Mike Frysinger --- arch/blackfin/mach-common/smp.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/blackfin/mach-common/smp.c b/arch/blackfin/mach-common/smp.c index 7cecbaf..a17107a 100644 --- a/arch/

[Uclinux-dist-devel] [PATCH 12/30] Blackfin: allow NMI watchdog to be used w/RETN as a scratch reg

2010-05-22 Thread Mike Frysinger
From: Graf Yang NMIs are not safe to return from because many anomaly workarounds are implemented by disabling interrupts. The NMI obviously violates this assumption. Since the NMI watchdog never returns, we don't have to worry about it clobbering RETN when it is being used as a scratch registe

[Uclinux-dist-devel] [PATCH 27/30] Blackfin: unify duplicate MEM_MT48LC32M8A2_75 kconfig options

2010-05-22 Thread Mike Frysinger
Reported-by: Christoph Egger Signed-off-by: Mike Frysinger --- arch/blackfin/Kconfig |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index 7b9fc9c..f66294b 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig

[Uclinux-dist-devel] [PATCH 21/30] Blackfin: move string functions to normal lib/ assembly

2010-05-22 Thread Mike Frysinger
From: Robin Getz Since 'extern inline' doesn't work correctly in the context of the Linux kernel (too many overriding defines), move the string functions to normal lib/ assembly files (like the existing mem funcs). This avoids the forced inline all over the kernel and allows us to place them con

[Uclinux-dist-devel] [PATCH 16/30] Blackfin: show the whole accumulator in the pseudo DBG insn

2010-05-22 Thread Mike Frysinger
From: Robin Getz Rather than print just part of the accumulator register, show the whole 40 bits. This matches the simulator behavior better. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/pseudodgb.c | 25 +++-- 1 files changed, 19 ins

[Uclinux-dist-devel] [PATCH 06/30] Blackfin: split kernel/traps.c

2010-05-22 Thread Mike Frysinger
From: Robin Getz The current kernel/traps.c file has grown a bit unwieldy as more debugging functionality has been added over time, so split it up into more logical files. There should be no functional changes here, just minor whitespace tweaking. This should make future extensions easier to ma

[Uclinux-dist-devel] [PATCH 18/30] Blackfin: kgdb: pass up the CC register instead of a 0 stub

2010-05-22 Thread Mike Frysinger
While the CC pseudo register can be deduced from the ASTAT register, make sure we set its value correctly instead of always stubbing it out as 0. GDB itself looks at this pseudo register instead of ASTAT, so we have to supply the right value. Signed-off-by: Mike Frysinger --- arch/blackfin/kerne

[Uclinux-dist-devel] [PATCH 09/30] Blackfin: make hardware trace output a little more useful

2010-05-22 Thread Mike Frysinger
From: Robin Getz Decode the vast majority of insns that appear in the trace buffer to get a better idea of what's going on at a glance. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/include/asm/trace.h |6 +- arch/blackfin/kernel/dumpstack.c | 15 +- arch/bl

[Uclinux-dist-devel] [PATCH 07/30] Blackfin: remove CONFIG_DEBUG_VERBOSE from trace.c

2010-05-22 Thread Mike Frysinger
From: Robin Getz Now that the split traps code has moved all the verbose output to the trace.c file, we can unify all the CONFIG_DEBUG_VERBOSE handling. This gets rid of much of the crappy ifdef forest and enables usage of normal pr_xxx functions so checkpatch stops complaining. Signed-off-by:

[Uclinux-dist-devel] [PATCH 08/30] Blackfin: print out the faulting insn in the trace output

2010-05-22 Thread Mike Frysinger
From: Robin Getz Print out the faulting instruction so when people send traces as part of bug reports, we have a better idea of what is going on. Signed-off-by: Robin Getz Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/trace.c | 19 +-- 1 files changed, 17 insertions

[Uclinux-dist-devel] [PATCH 05/30] Blackfin: punt Blackfin-specific GPIO wakeup API

2010-05-22 Thread Mike Frysinger
From: Michael Hennerich This patch removes a custom GPIO wakeup API which allowed GPIOs to act as wakeup sources, which are not configured as Interrupts. This API is a leftover from the time before irq_wake was established. >From now on people must use enable_irq_wake(GPIO_IRQx) and the GPIO in q

[Uclinux-dist-devel] [PATCH 01/30] Blackfin: drop unused bad_page pages and move zero_page to the bss

2010-05-22 Thread Mike Frysinger
The empty_bad_page/empty_bad_page_table pages are unused, so punt them. The zero_page is always allocated, so push it out to the bss to speed up the booting process a bit and pack data nicer. Signed-off-by: Mike Frysinger --- arch/blackfin/include/asm/pgtable.h |3 ++- arch/blackfin/mm/init.

[Uclinux-dist-devel] [PATCH 04/30] Blackfin: mark MUSB VRSEL as active high for appropriate boards

2010-05-22 Thread Mike Frysinger
From: Cliff Cai These boards all have the GPIO VRSEL hooked up as an active high. Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger --- arch/blackfin/mach-bf527/boards/cm_bf527.c |4 arch/blackfin/mach-bf527/boards/ezbrd.c|4 arch/blackfin/mach-bf527/boards/ezkit.c

[Uclinux-dist-devel] [PATCH 02/30] Blackfin: cleanup style/comments/etc... in paging_init()

2010-05-22 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- arch/blackfin/mm/init.c | 31 +-- 1 files changed, 13 insertions(+), 18 deletions(-) diff --git a/arch/blackfin/mm/init.c b/arch/blackfin/mm/init.c index 10c8a59..bb4e8ff 100644 --- a/arch/blackfin/mm/init.c +++ b/arch/blackfin/mm/i

[Uclinux-dist-devel] [PATCH 00/30] Blackfin updates for 2.6.35

2010-05-22 Thread Mike Frysinger
Largely bug fixes and extended debugging support here. Extended simulator support has led to optional pseudo insns in the Blackfin kernel. Cliff Cai (1): Blackfin: mark MUSB VRSEL as active high for appropriate boards FUJITA Tomonori (1): Blackfin: set ARCH_KMALLOC_MINALIGN Graf Yang (2):

[Uclinux-dist-devel] [PATCH -mm 1/1] ptrace: PTRACE_GETFDPIC: fix the unsafe usage of child->mm

2010-05-22 Thread Oleg Nesterov
Now that Mike Frysinger unified the FDPIC ptrace code, we can fix the unsafe usage of child->mm in ptrace_request(PTRACE_GETFDPIC). We have the reference to task_struct, and ptrace_check_attach() verified the tracee is stopped. But nothing can protect from SIGKILL after that, we must not assume ch

[Uclinux-dist-devel] [PATCH -mm 0/1] (Was: ptrace: unify FDPIC implementations)

2010-05-22 Thread Oleg Nesterov
On 05/21, Roland McGrath wrote: > > > This looks unsafe. What protect child->mm if ptrace() races with SIGKILL ? > > > > Of course, I do not blame this patch, the code was copied from arch/, but > > I think we need another patch which checks ->mm != NULL under task_lock() > > on top of this one? >