is there any Android APK that generate the SIGBUG error because of ARM NEON instructions?

2012-02-24 Thread 卜弋天
Hi All: anybody who met such error of Android application? the logcat will be something like below: signal 7 (SIGBUS), code 128 (?), fault addr #00 pc 00015cec /data/data/com.pccw.mobile.sip/lib/libavcodec.so --this lib use ARM NEON instructions

Re: Semaphore

2012-02-24 Thread Kristof Provost
On 2012-02-24 09:07:40 (+0200), Kosta Zertsekel zertse...@gmail.com wrote: Imagine a driver which only one app can use at a time (perhaps a serial port). The kernel will take a lock when the user space app open()s the device node and release it when it close()s. If the app segfaults in

Re: About interrupt handler

2012-02-24 Thread Kosta Zertsekel
I'm begin to learn the Kernel and i'm reading Linux kernel development.It says This is an important point, always keep in mind that all interrupt handler has interrupted other code(possibly even another interrupt handler on a different line).What i am not able to understand is how a interrupt

Re: Semaphore

2012-02-24 Thread Kosta Zertsekel
On Fri, Feb 24, 2012 at 11:04 AM, Kristof Provost kris...@sigsegv.be wrote: On 2012-02-24 09:07:40 (+0200), Kosta Zertsekel zertse...@gmail.com wrote: Imagine a driver which only one app can use at a time (perhaps a serial port). The kernel will take a lock when the user space app open()s

Re: pagetables used in interrupt context

2012-02-24 Thread Kosta Zertsekel
I am not familiar with other architecture, but for ARM, Linux Kernel 2.6.35, i checked the function handle_level_irq()and handle_edge_irq() in chip.c, both of them will call handle_IRQ_event() which is in handle.c. and the function handle_IRQ_event() will call the interrupt handler written by

Re: Semaphore

2012-02-24 Thread Kosta Zertsekel
Can you please point to some code in Linux Kernel that does the job? In kernel/exit.c, look at do_exit(). It cleans up a process after it's terminated (for whatever reason). It does a lot of cleanup, but through exit_files() - put_files_struct() - close_files() it ends up iterating

Re: Semaphore

2012-02-24 Thread Kristof Provost
On 2012-02-24 12:15:03 (+0200), Kosta Zertsekel zertse...@gmail.com wrote: I think of user land program opening a socket and crashing on segmentation fault. In code 'socket' syscall does: sock_map_fd -- sock_alloc_file -- alloc_file -- ... get lost ... Where exactly in this case lock is

Kernel panic - not syncing: junk in compressed archive

2012-02-24 Thread stl
Hello all, I'm building a linux system for a new architecture, and I want to use initramfs support to build a filesystem. I have seen that there are several ways to do that with initramfs. Either the kernel will build the cpio archive for me, or I can provide an external one with the

SPARC T2000: Can't get nfsroot working. Kernel 2.6.39 don't mount nfsroot

2012-02-24 Thread Denny Schierz
hi, I had build kernel 2.6.39 from the Debian Squeeze backports, with buildin initrd for booting sparcs over OpenBoot. The kernel works with a Sunfire a v245. Now I try the same with the T2000 (Enterprise), but the kernel doesn't do anything with NFS, after the last DHCP resquest. Successful

Re: pagetables used in interrupt context

2012-02-24 Thread subin gangadharan
Hi 卜弋天, 2.6.35, i checked the function handle_level_irq()and handle_edge_irq() in chip.c, both of them will call handle_IRQ_event() which is in handle.c. and the function handle_IRQ_event() will call the interrupt handler written by user. Kernel does not open interrupt(ARM CPSR I bit)when

want to verify equivalence of Kconfig variants

2012-02-24 Thread Robert P. J. Day
i'm fairly sure i know the answer to this, but i figured i'd run it by others just to make sure i'm not missing anything subtle. in drivers/video/omap2/Makefile, we see: ... snip ... obj-$(CONFIG_OMAP2_DSS) += dss/ obj-$(CONFIG_FB_OMAP2) += omapfb/ obj-y += displays/ ... snip ... and when i

locking in net_device_ops callbacks

2012-02-24 Thread Jeff Haran
Hi, I was hoping somebody could enlighten me on how serialization of access to data in struct net_device and associated netdev_priv() data works in the callback functions registered in net_device_ops. For example, I am looking at drivers/net/e1000/e1000_main.c in my 2.6.32 based kernel tree. My

Re: About interrupt handler

2012-02-24 Thread Dave Hylands
Hi Kosta, On Fri, Feb 24, 2012 at 1:19 AM, Kosta Zertsekel zertse...@gmail.com wrote: I'm begin to learn the Kernel and i'm reading Linux kernel development.It says This is an important point, always keep in mind that all interrupt handler has interrupted other code(possibly even another

Re: About interrupt handler

2012-02-24 Thread Dave Hylands
HI Kosta, On Fri, Feb 24, 2012 at 1:08 PM, Dave Hylands dhyla...@gmail.com wrote: Hi Kosta, On Fri, Feb 24, 2012 at 1:19 AM, Kosta Zertsekel zertse...@gmail.com wrote: I'm begin to learn the Kernel and i'm reading Linux kernel development.It says This is an important point, always keep in

Re: How to debug system freeze?

2012-02-24 Thread Łukasz Sowa
Hm, sounds like a bug during suspend. Perhaps you can do strace pm-suspend. And/or enable CONFIG_DETECT_SOFTLOCKUP. And hopefully you can pinpoint the related syscall or kernel instruction that leads to the bug It's not that easy. The problem occurs only when I'm going to suspend with