Should I do anything about this warning?

2014-10-08 Thread Sagar Padhye
Hi, I am new at kernel programming. I have written a driver for a custom device, running on arm board. It works well (for last few months). I happen to look at kernel logs and I seen, [231250.894334] [ cut here ] [231250.899146] WARNING: at kernel/workqueue.c:1953

User space == kernel space for device wakeups.

2014-10-08 Thread manty kuma
Hi, I want a user process to be notified on device wakeup so that I can print some related information. Which framework to use for this?(events, .. ??) One idea I get is to log the info into debugfs and poll(implement my poll) on it for data. This is my last option. Are there any better ways?

Re: Should I do anything about this warning?

2014-10-08 Thread Kristof Provost
On 2014-10-08 12:43:58 (+0530), Sagar Padhye sgr.m@gmail.com wrote: I am new at kernel programming. I have written a driver for a custom device, running on arm board. It works well (for last few months). I happen to look at kernel logs and I seen, [231250.899146] WARNING: at

Re: Should I do anything about this warning?

2014-10-08 Thread Sagar Padhye
On Wed, Oct 08, 2014 at 11:33:57AM +0200, Kristof Provost wrote: On 2014-10-08 12:43:58 (+0530), Sagar Padhye sgr.m@gmail.com wrote: I am new at kernel programming. I have written a driver for a custom device, running on arm board. It works well (for last few months). I happen to look

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Greg KH
On Wed, Oct 08, 2014 at 04:39:17PM +0900, manty kuma wrote: Hi, I want a user process to be notified on device wakeup so that I can print some related information. Really? My device can wakeup thousands of times a second, what are you going to do with that type of information? Which

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Jeshwanth Kumar N K
Wayback when I was working on some project to wake up userspace program for every rising edge in GPIO pin (hall sensor), I use to send signal to the PID from kernel, before that userspace has to register its PID with kernel module. Max interrupts I have tested is some 100 times per second I.e. 100

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Kristof Provost
On 2014-10-08 21:14:43 (+0530), Jeshwanth Kumar N K jeshkumar...@gmail.com wrote: Wayback when I was working on some project to wake up userspace program for every rising edge in GPIO pin (hall sensor), I use to send signal to the PID from kernel, before that userspace has to register its PID

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Greg Kroah-Hartman
On Wed, Oct 08, 2014 at 05:57:50PM +0200, Kristof Provost wrote: On 2014-10-08 21:14:43 (+0530), Jeshwanth Kumar N K jeshkumar...@gmail.com wrote: Wayback when I was working on some project to wake up userspace program for every rising edge in GPIO pin (hall sensor), I use to send signal to

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Jeshwanth Kumar N K
Greg, then what will you suggest for my case? I mean any alternative ? Thanks On Wed, Oct 8, 2014 at 9:55 PM, Greg Kroah-Hartman g...@kroah.com wrote: On Wed, Oct 08, 2014 at 05:57:50PM +0200, Kristof Provost wrote: On 2014-10-08 21:14:43 (+0530), Jeshwanth Kumar N K jeshkumar...@gmail.com

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Greg Kroah-Hartman
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Wed, Oct 08, 2014 at 10:01:43PM +0530, Jeshwanth Kumar N K wrote: Greg, then what will you suggest for my case? I mean any alternative ? What case? What problem are you trying to solve? greg

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Jeshwanth Kumar N K
On Wed, Oct 8, 2014 at 10:08 PM, Greg Kroah-Hartman g...@kroah.com wrote: A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Wed, Oct 08, 2014 at 10:01:43PM +0530, Jeshwanth Kumar N K wrote: Greg, then what will you suggest for my case? I

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Greg Kroah-Hartman
On Wed, Oct 08, 2014 at 10:23:32PM +0530, Jeshwanth Kumar N K wrote: My case was: I have a hall sensor connected to Beaglebone black, And Userspace needed a wakeup once the interrupt occur (example: every rising edge of GPIO). Before that, the program will register (ioctl) the User space task

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Jeshwanth Kumar N K
On Wed, Oct 8, 2014 at 11:02 PM, Greg Kroah-Hartman g...@kroah.com wrote: On Wed, Oct 08, 2014 at 10:23:32PM +0530, Jeshwanth Kumar N K wrote: My case was: I have a hall sensor connected to Beaglebone black, And Userspace needed a wakeup once the interrupt occur (example: every rising edge

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Jinqiang Zeng
2014-10-08 0:39 GMT-07:00 manty kuma mantyk...@gmail.com: Hi, I want a user process to be notified on device wakeup so that I can print some related information. Which framework to use for this?(events, .. ??) You can use netlink and uevent to do this job. But just as Greg has pointed

cpuidle - rate

2014-10-08 Thread Ran Shalit
Hello, What should be the approximate rate of entering and exit retention mode in cpuide ? Thanks Ran ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: User space == kernel space for device wakeups.

2014-10-08 Thread manty kuma
Hi All, Thank you for the replies. I understand that I can use netlink sockets. Also, i have gone through various other possible ways : http://people.ee.ethz.ch/~arkeller/linux/kernel_user_space_howto.html I am looking for a simpler solution which uses existing information of sys entries. That