Re: Disabling gcc inline operation

2014-03-24 Thread anish singh
On Mon, Mar 24, 2014 at 2:33 AM, Arend van Spriel wrote: > On 23/03/14 23:31, anish singh wrote: >> >> Many a time i have got a crash and it is difficult >> to find out the exact function which crashed >> because the crash stack doesn't show the "real"

Re: Disabling gcc inline operation

2014-03-24 Thread anish singh
On Mon, Mar 24, 2014 at 2:33 AM, Arend van Spriel ar...@broadcom.com wrote: On 23/03/14 23:31, anish singh wrote: Many a time i have got a crash and it is difficult to find out the exact function which crashed because the crash stack doesn't show the real function because gcc inlines many

Disabling gcc inline operation

2014-03-23 Thread anish singh
Many a time i have got a crash and it is difficult to find out the exact function which crashed because the crash stack doesn't show the "real" function because gcc inlines many functions when ever it desires or when it optimizes for speed. So i don't want gcc to inline any function instead just

Disabling gcc inline operation

2014-03-23 Thread anish singh
Many a time i have got a crash and it is difficult to find out the exact function which crashed because the crash stack doesn't show the real function because gcc inlines many functions when ever it desires or when it optimizes for speed. So i don't want gcc to inline any function instead just

Re: list_empty atomic?

2013-12-12 Thread anish singh
On Thu, Dec 12, 2013 at 12:21 PM, Filipe David Manana wrote: > Hello, > > I have a list that is manipulated by several threads. Insert, remove > and iteration are protected by a lock. Is the locking necessary too > just for checking if the list is empty, i.e., is list_empty() > atomic/safe to

Re: list_empty atomic?

2013-12-12 Thread anish singh
On Thu, Dec 12, 2013 at 12:21 PM, Filipe David Manana fdman...@gmail.com wrote: Hello, I have a list that is manipulated by several threads. Insert, remove and iteration are protected by a lock. Is the locking necessary too just for checking if the list is empty, i.e., is list_empty()

Re: questions of cpuidle

2013-12-10 Thread anish singh
On Mon, Dec 9, 2013 at 11:27 PM, Daniel Lezcano wrote: > On 12/10/2013 07:33 AM, Alex Shi wrote: >> >> On 12/09/2013 10:17 PM, Daniel Lezcano wrote: >>> >>> >>> Concerning the wake up of the cpu: the cpu disabled the irq and >>> goes to sleep, it is up to the firmware to wake up the cpu when an

Re: questions of cpuidle

2013-12-10 Thread anish singh
On Mon, Dec 9, 2013 at 11:27 PM, Daniel Lezcano daniel.lezc...@linaro.org wrote: On 12/10/2013 07:33 AM, Alex Shi wrote: On 12/09/2013 10:17 PM, Daniel Lezcano wrote: Concerning the wake up of the cpu: the cpu disabled the irq and goes to sleep, it is up to the firmware to wake up the cpu

Re: list_head and lock?

2013-11-17 Thread anish singh
On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 wrote: > when we delete,add,search,amend the list_head,should we use spinlock > or rcu in case of conflicit to list_head??? There is no implicit locking when we use 'list' api's.You should explicitly do that AFAIK. > > Thank you! > -- > To unsubscribe from this

Re: list_head and lock?

2013-11-17 Thread anish singh
On Sun, Nov 17, 2013 at 5:19 PM, 韩磊 bonben1...@gmail.com wrote: when we delete,add,search,amend the list_head,should we use spinlock or rcu in case of conflicit to list_head??? There is no implicit locking when we use 'list' api's.You should explicitly do that AFAIK. Thank you! -- To

Re: [RFC][PATCH] x86: Lazy disabling of interrupts

2013-10-10 Thread anish singh
On Thu, Oct 10, 2013 at 5:57 PM, Steven Rostedt (by way of Steven Rostedt ) (by way of Steven Rostedt wrote: > > [ Resending, as somehow Claws email, removed the quotes from "H. Peter > Anvin", and that prevented LKML from receiving this ] > > *** NOT FOR INCLUSION *** > > What this does >

Re: [RFC][PATCH] x86: Lazy disabling of interrupts

2013-10-10 Thread anish singh
On Thu, Oct 10, 2013 at 5:57 PM, Steven Rostedt rost...@goodmis.org (by way of Steven Rostedt rost...@goodmis.org) (by way of Steven Rostedt rost...@goodmis.org wrote: [ Resending, as somehow Claws email, removed the quotes from H. Peter Anvin, and that prevented LKML from receiving this ]

Re: [PATCH] fix a Sparse warning in the arch/x86/kernel/irq_work.c file

2013-08-12 Thread anish singh
On Tue, Aug 13, 2013 at 5:59 AM, Steven Rostedt wrote: > On Mon, 12 Aug 2013 15:18:16 -0700 > Shailaja Neelam wrote: > >> I am a high school student trying to become familiar with the >> opensource process and linux kernel. This is my first submission to >> the ITC mailing list. > > Hi Shailaja,

Re: [PATCH] fix a Sparse warning in the arch/x86/kernel/irq_work.c file

2013-08-12 Thread anish singh
On Tue, Aug 13, 2013 at 5:59 AM, Steven Rostedt rost...@goodmis.org wrote: On Mon, 12 Aug 2013 15:18:16 -0700 Shailaja Neelam neelamsha...@gmail.com wrote: I am a high school student trying to become familiar with the opensource process and linux kernel. This is my first submission to the

Re: [PATCH] bitops: move BITS() macro to the bitops file

2013-08-07 Thread anish singh
On Wed, Aug 7, 2013 at 2:36 PM, Linus Walleij wrote: > This macro was invented by Mattias Nilsson for the usecase > where you want to set a sequence of bits inside a n-bit > word, while leaving the head and tail of the sequence all > zeroes. For example: > > #include > > u16 mask = BITS(4,

Re: [PATCH] bitops: move BITS() macro to the bitops file

2013-08-07 Thread anish singh
On Wed, Aug 7, 2013 at 2:36 PM, Linus Walleij linus.wall...@linaro.org wrote: This macro was invented by Mattias Nilsson for the usecase where you want to set a sequence of bits inside a n-bit word, while leaving the head and tail of the sequence all zeroes. For example: #include

Re: Question:Bsearch replace the search_extable implementations

2013-07-15 Thread anish singh
On Tue, Jul 16, 2013 at 10:29 AM, Rusty Russell wrote: > anish singh writes: >> Hello Rusty, >> >> Right now I see so many places in the kernel >> where we open code binary search implementations >> such as search_extable implementations. >> >> ht

Question:Bsearch replace the search_extable implementations

2013-07-15 Thread anish singh
Hello Rusty, Right now I see so many places in the kernel where we open code binary search implementations such as search_extable implementations. http://lxr.free-electrons.com/ident?a=powerpc;i=search_extable Would it be ok to replace this with bsearch lib code? I am not trying to fix any

Question:Bsearch replace the search_extable implementations

2013-07-15 Thread anish singh
Hello Rusty, Right now I see so many places in the kernel where we open code binary search implementations such as search_extable implementations. http://lxr.free-electrons.com/ident?a=powerpc;i=search_extable Would it be ok to replace this with bsearch lib code? I am not trying to fix any

Re: Question:Bsearch replace the search_extable implementations

2013-07-15 Thread anish singh
On Tue, Jul 16, 2013 at 10:29 AM, Rusty Russell ru...@rustcorp.com.au wrote: anish singh anish198519851...@gmail.com writes: Hello Rusty, Right now I see so many places in the kernel where we open code binary search implementations such as search_extable implementations. http://lxr.free

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-27 Thread anish singh
On Fri, Jun 28, 2013 at 1:01 AM, Wim Van Sebroeck wrote: > Hi Anish, > >> Certain watchdog drivers use a timer to keep kicking the watchdog at >> a rate of 0.5s (HZ/2) untill userspace times out.They do this as >> we can't guarantee that watchdog will be pinged fast enough >> for all system

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-27 Thread anish singh
On Fri, Jun 28, 2013 at 1:01 AM, Wim Van Sebroeck w...@iguana.be wrote: Hi Anish, Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They do this as we can't guarantee that watchdog will be pinged fast enough for all system

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-14 Thread anish singh
On Fri, Jun 14, 2013 at 9:42 PM, Steven Rostedt wrote: > On Fri, 2013-06-14 at 21:33 +0530, anish singh wrote: > >> May I know why we zeroed in on 1Hz? Is there any logical reason >> or just because it is above 0Hz? >> > > > We had to keep a tick. What numbe

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-14 Thread anish singh
Thanks Paul & Steve for replying. On Fri, Jun 14, 2013 at 5:56 PM, Paul E. McKenney wrote: > On Fri, Jun 14, 2013 at 09:47:31AM +0530, anish singh wrote: >> On Thu, Jun 13, 2013 at 10:46 PM, Steven Rostedt wrote: >> > On Thu, 2013-06-13 at 21:51 +0530, anish singh wrote: &g

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-14 Thread anish singh
Thanks Paul Steve for replying. On Fri, Jun 14, 2013 at 5:56 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Fri, Jun 14, 2013 at 09:47:31AM +0530, anish singh wrote: On Thu, Jun 13, 2013 at 10:46 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 2013-06-13 at 21:51 +0530, anish

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-14 Thread anish singh
On Fri, Jun 14, 2013 at 9:42 PM, Steven Rostedt rost...@goodmis.org wrote: On Fri, 2013-06-14 at 21:33 +0530, anish singh wrote: May I know why we zeroed in on 1Hz? Is there any logical reason or just because it is above 0Hz? We had to keep a tick. What number would you have picked

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-13 Thread anish singh
On Thu, Jun 13, 2013 at 10:46 PM, Steven Rostedt wrote: > On Thu, 2013-06-13 at 21:51 +0530, anish singh wrote: > >> > The concept behind full dynamic ticks is very easy. When you set a given >> > CPU(s) to dynamic tick, when it only has a single task scheduled on th

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-13 Thread anish singh
On Thu, Jun 13, 2013 at 9:18 PM, Steven Rostedt wrote: > On Thu, 2013-06-13 at 11:20 -0400, Don Zickus wrote: > >> I don't know enough about how full dynticks work to even present a >> solution. But currently I was working with the Red Hat performance team >> to enhance perf to help our

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-13 Thread anish singh
On Thu, Jun 13, 2013 at 9:18 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 2013-06-13 at 11:20 -0400, Don Zickus wrote: I don't know enough about how full dynticks work to even present a solution. But currently I was working with the Red Hat performance team to enhance perf to help

Re: [PATCH 4/6] watchdog: Boot-disable by default on full dynticks

2013-06-13 Thread anish singh
On Thu, Jun 13, 2013 at 10:46 PM, Steven Rostedt rost...@goodmis.org wrote: On Thu, 2013-06-13 at 21:51 +0530, anish singh wrote: The concept behind full dynamic ticks is very easy. When you set a given CPU(s) to dynamic tick, when it only has a single task scheduled on that CPU

Re: [PATCH] extcon: Add an API to get extcon device from dt node

2013-06-11 Thread anish singh
On Wed, Jun 12, 2013 at 7:09 AM, Chanwoo Choi wrote: > From: Kishon Vijay Abraham I > > Added an API of_extcon_get_extcon_dev() to be used by drivers to get > extcon device in the case of dt boot (this can be used instead of > extcon_get_extcon_dev()). > > Signed-off-by: Kishon Vijay Abraham I

Re: [PATCH] extcon: Add an API to get extcon device from dt node

2013-06-11 Thread anish singh
On Wed, Jun 12, 2013 at 7:09 AM, Chanwoo Choi cw00.c...@samsung.com wrote: From: Kishon Vijay Abraham I kis...@ti.com Added an API of_extcon_get_extcon_dev() to be used by drivers to get extcon device in the case of dt boot (this can be used instead of extcon_get_extcon_dev()).

Re: [PATCHv2 4/6] sched_clock: Add support for >32 bit sched_clock

2013-06-10 Thread anish singh
On Mon, Jun 10, 2013 at 9:08 PM, Russell King - ARM Linux wrote: Least I can do is to say "Thanks". > On Mon, Jun 10, 2013 at 08:46:36PM +0530, anish singh wrote: >> Probably a trivial question.I was wondering why this particular requirement >> exists in the first place.

Re: [PATCHv2 4/6] sched_clock: Add support for >32 bit sched_clock

2013-06-10 Thread anish singh
On Tue, Jun 4, 2013 at 3:42 AM, Russell King - ARM Linux wrote: > On Mon, Jun 03, 2013 at 02:11:59PM -0700, Stephen Boyd wrote: >> On 06/03/13 02:39, Russell King - ARM Linux wrote: >> > On Sat, Jun 01, 2013 at 11:39:41PM -0700, Stephen Boyd wrote: >> >> +} >> >> + >> >> +void __init >> >>

Re: [PATCHv2 4/6] sched_clock: Add support for 32 bit sched_clock

2013-06-10 Thread anish singh
On Tue, Jun 4, 2013 at 3:42 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Mon, Jun 03, 2013 at 02:11:59PM -0700, Stephen Boyd wrote: On 06/03/13 02:39, Russell King - ARM Linux wrote: On Sat, Jun 01, 2013 at 11:39:41PM -0700, Stephen Boyd wrote: +} + +void __init

Re: [PATCHv2 4/6] sched_clock: Add support for 32 bit sched_clock

2013-06-10 Thread anish singh
On Mon, Jun 10, 2013 at 9:08 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Least I can do is to say Thanks. On Mon, Jun 10, 2013 at 08:46:36PM +0530, anish singh wrote: Probably a trivial question.I was wondering why this particular requirement exists in the first place.I looked

Re: [checkpatch] - Confusion

2013-06-09 Thread anish singh
On Mon, Jun 10, 2013 at 11:21 AM, PINTU KUMAR wrote: > Hi, > > I wanted to submit my first patch. > But I have some confusion about the /scripts/checkpatch.pl errors. > > After correcting some checkpatch errors, when I run checkpatch.pl, it showed > me 0 errors. > But when I create patches are

Re: [checkpatch] - Confusion

2013-06-09 Thread anish singh
On Mon, Jun 10, 2013 at 11:21 AM, PINTU KUMAR pintu_agar...@yahoo.com wrote: Hi, I wanted to submit my first patch. But I have some confusion about the /scripts/checkpatch.pl errors. After correcting some checkpatch errors, when I run checkpatch.pl, it showed me 0 errors. But when I

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-08 Thread anish singh
On Thu, Jun 6, 2013 at 10:11 AM, Guenter Roeck wrote: > On Thu, Jun 06, 2013 at 08:30:01AM +0530, anish singh wrote: >> Hello Wim Van, >> Can you look into below? >> > Please be patient. Wim tends to be busy. Sorry, I will wait. > > Guenter > >> On W

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-08 Thread anish singh
On Thu, Jun 6, 2013 at 10:11 AM, Guenter Roeck li...@roeck-us.net wrote: On Thu, Jun 06, 2013 at 08:30:01AM +0530, anish singh wrote: Hello Wim Van, Can you look into below? Please be patient. Wim tends to be busy. Sorry, I will wait. Guenter On Wed, Jun 5, 2013 at 8:39 AM, anish singh

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-05 Thread anish singh
Hello Wim Van, Can you look into below? On Wed, Jun 5, 2013 at 8:39 AM, anish singh wrote: > Hello Wim Van Sabroeck, > Can I get your inputs on this? > > On Tue, Jun 4, 2013 at 8:39 AM, anish singh > wrote: >> On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck wrote: >>&

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-05 Thread anish singh
Hello Wim Van, Can you look into below? On Wed, Jun 5, 2013 at 8:39 AM, anish singh anish198519851...@gmail.com wrote: Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh anish198519851...@gmail.com wrote: On Tue, Jun 4, 2013 at 3:55 AM

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-04 Thread anish singh
Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh wrote: > On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck wrote: >> On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: >>> On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck w

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-04 Thread anish singh
Hello Wim Van Sabroeck, Can I get your inputs on this? On Tue, Jun 4, 2013 at 8:39 AM, anish singh anish198519851...@gmail.com wrote: On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck li...@roeck-us.net wrote: On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: On Mon, Jun 3, 2013 at 8:57

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck wrote: > On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: >> On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck wrote: >> > On Sun, Jun 02, 2013 at 03:43:07PM +0530, anish kumar wrote: >> >> Certain watchdog drive

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck wrote: > On Sun, Jun 02, 2013 at 03:43:07PM +0530, anish kumar wrote: >> Certain watchdog drivers use a timer to keep kicking the watchdog at >> a rate of 0.5s (HZ/2) untill userspace times out.They do this as >> we can't guarantee that watchdog will

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
any inputs? On Sun, Jun 2, 2013 at 3:56 PM, anish singh wrote: > On Sun, Jun 2, 2013 at 3:43 PM, anish kumar > wrote: >> Certain watchdog drivers use a timer to keep kicking the watchdog at >> a rate of 0.5s (HZ/2) untill userspace times out.They do this as >> we can't

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
any inputs? On Sun, Jun 2, 2013 at 3:56 PM, anish singh anish198519851...@gmail.com wrote: On Sun, Jun 2, 2013 at 3:43 PM, anish kumar anish198519851...@gmail.com wrote: Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck li...@roeck-us.net wrote: On Sun, Jun 02, 2013 at 03:43:07PM +0530, anish kumar wrote: Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They do this as we can't guarantee that

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-03 Thread anish singh
On Tue, Jun 4, 2013 at 3:55 AM, Guenter Roeck li...@roeck-us.net wrote: On Mon, Jun 03, 2013 at 10:23:04PM +0530, anish singh wrote: On Mon, Jun 3, 2013 at 8:57 PM, Guenter Roeck li...@roeck-us.net wrote: On Sun, Jun 02, 2013 at 03:43:07PM +0530, anish kumar wrote: Certain watchdog drivers

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-02 Thread anish singh
On Sun, Jun 2, 2013 at 3:43 PM, anish kumar wrote: > Certain watchdog drivers use a timer to keep kicking the watchdog at > a rate of 0.5s (HZ/2) untill userspace times out.They do this as > we can't guarantee that watchdog will be pinged fast enough > for all system loads, especially if timeout

Re: [PATCH] [RFC]Watchdog:core: constant pinging until userspace timesout when delay very less

2013-06-02 Thread anish singh
On Sun, Jun 2, 2013 at 3:43 PM, anish kumar anish198519851...@gmail.com wrote: Certain watchdog drivers use a timer to keep kicking the watchdog at a rate of 0.5s (HZ/2) untill userspace times out.They do this as we can't guarantee that watchdog will be pinged fast enough for all system loads,

Re: [PATCH v4 1/2] watchdog: New watchdog driver for MEN A21 watchdogs

2013-05-31 Thread anish singh
Hi Guenter, On Fri, May 31, 2013 at 3:32 AM, Guenter Roeck wrote: > On Thu, May 30, 2013 at 11:59:28PM +0200, Wim Van Sebroeck wrote: >> Hi Guenter, >> >> > On Tue, May 28, 2013 at 10:10:53AM +0200, Johannes Thumshirn wrote: >> > > On Mon, May 27, 2013 at 08:25:54PM +0200, Wim Van Sebroeck

Re: [PATCH v4 1/2] watchdog: New watchdog driver for MEN A21 watchdogs

2013-05-31 Thread anish singh
Hi Guenter, On Fri, May 31, 2013 at 3:32 AM, Guenter Roeck li...@roeck-us.net wrote: On Thu, May 30, 2013 at 11:59:28PM +0200, Wim Van Sebroeck wrote: Hi Guenter, On Tue, May 28, 2013 at 10:10:53AM +0200, Johannes Thumshirn wrote: On Mon, May 27, 2013 at 08:25:54PM +0200, Wim Van Sebroeck

Re: What is listed in /sys/module?

2013-05-30 Thread anish singh
On Thu, May 30, 2013 at 2:04 PM, Jean Delvare wrote: > Hi Rusty, > > Thanks for the fast and helpful reply. > > On Thu, 30 May 2013 11:53:10 +0530, anish singh wrote: >> On Thu, May 30, 2013 at 6:24 AM, Rusty Russell wrote: >> > Jean Delvare writes: >> &

Re: What is listed in /sys/module?

2013-05-30 Thread anish singh
On Thu, May 30, 2013 at 6:24 AM, Rusty Russell wrote: > Jean Delvare writes: >> Hi Greg, Rusty, >> >> I have a question related to /sys/module and can't seem to find the >> answer by myself so I hope you can explain. >> >> I noticed that /sys/module contains more than /proc/modules. At first I

Re: What is listed in /sys/module?

2013-05-30 Thread anish singh
On Thu, May 30, 2013 at 6:24 AM, Rusty Russell ru...@rustcorp.com.au wrote: Jean Delvare kh...@linux-fr.org writes: Hi Greg, Rusty, I have a question related to /sys/module and can't seem to find the answer by myself so I hope you can explain. I noticed that /sys/module contains more than

Re: What is listed in /sys/module?

2013-05-30 Thread anish singh
On Thu, May 30, 2013 at 2:04 PM, Jean Delvare kh...@linux-fr.org wrote: Hi Rusty, Thanks for the fast and helpful reply. On Thu, 30 May 2013 11:53:10 +0530, anish singh wrote: On Thu, May 30, 2013 at 6:24 AM, Rusty Russell ru...@rustcorp.com.au wrote: Jean Delvare kh...@linux-fr.org writes

Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-28 Thread anish singh
On Fri, May 24, 2013 at 11:11 PM, Axel Lin wrote: > If none of the channels are supported, index is 0. > Also ensure to return error code instead of 0 in goto second_mem_fail path. > > Signed-off-by: Axel Lin Acked-by: anish kumar I think anton would have already picked up. > --- >

Re: [PATCH] power_supply: generic-adc-battery: Fix checking if none of the channels are supported

2013-05-28 Thread anish singh
On Fri, May 24, 2013 at 11:11 PM, Axel Lin axel@ingics.com wrote: If none of the channels are supported, index is 0. Also ensure to return error code instead of 0 in goto second_mem_fail path. Signed-off-by: Axel Lin axel@ingics.com Acked-by: anish kumar anish198519851...@gmail.com I

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 6:52 PM, Ming Lei wrote: > On Mon, May 27, 2013 at 8:40 PM, anish singh > wrote: >> On Mon, May 27, 2013 at 5:53 PM, Takashi Iwai wrote: >>> At Mon, 27 May 2013 17:26:22 +0530, >>> anish singh wrote: >>>> >>>

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 5:53 PM, Takashi Iwai wrote: > At Mon, 27 May 2013 17:26:22 +0530, > anish singh wrote: >> >> On Mon, May 27, 2013 at 4:00 PM, Ming Lei wrote: >> > Generally there are only two drivers which don't need uevent to >> > handle firmware loa

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 4:00 PM, Ming Lei wrote: > Generally there are only two drivers which don't need uevent to > handle firmware loading, so don't cache these firmwares during Sorry but this statement confuses me i.e. "drivers which don't need uevent to handle firmware loading". Does this

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 4:00 PM, Ming Lei ming@canonical.com wrote: Generally there are only two drivers which don't need uevent to handle firmware loading, so don't cache these firmwares during Sorry but this statement confuses me i.e. drivers which don't need uevent to handle firmware

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 5:53 PM, Takashi Iwai ti...@suse.de wrote: At Mon, 27 May 2013 17:26:22 +0530, anish singh wrote: On Mon, May 27, 2013 at 4:00 PM, Ming Lei ming@canonical.com wrote: Generally there are only two drivers which don't need uevent to handle firmware loading, so

Re: [PATCH 1/2] driver core: firmware loader: don't cache FW_ACTION_NOHOTPLUG firmware

2013-05-27 Thread anish singh
On Mon, May 27, 2013 at 6:52 PM, Ming Lei ming@canonical.com wrote: On Mon, May 27, 2013 at 8:40 PM, anish singh anish198519851...@gmail.com wrote: On Mon, May 27, 2013 at 5:53 PM, Takashi Iwai ti...@suse.de wrote: At Mon, 27 May 2013 17:26:22 +0530, anish singh wrote: On Mon, May 27

Re: [I2C] informations + advice about messages handling

2013-05-24 Thread anish singh
On Fri, May 24, 2013 at 1:14 PM, Jean Delvare wrote: > Hi Anish, Mylène, > > On Fri, 24 May 2013 12:52:40 +0530, anish singh wrote: >> On Fri, May 24, 2013 at 12:41 PM, Mylene Josserand >> wrote: >> > I have read that this function "i2c_smbus_write_byte_dat

Re: [I2C] informations + advice about messages handling

2013-05-24 Thread anish singh
On Fri, May 24, 2013 at 12:41 PM, Mylene Josserand wrote: > Hi all, > > > I am learning how i2c is working and I read that, to write in an i2c > register, I need to use the function "i2c_smbus_write_byte_data". Only in case your device is smbus compliant. > I wanted to know how the message are

Re: [I2C] informations + advice about messages handling

2013-05-24 Thread anish singh
On Fri, May 24, 2013 at 12:41 PM, Mylene Josserand mylene.josser...@navocap.com wrote: Hi all, I am learning how i2c is working and I read that, to write in an i2c register, I need to use the function i2c_smbus_write_byte_data. Only in case your device is smbus compliant. I wanted to know

Re: [I2C] informations + advice about messages handling

2013-05-24 Thread anish singh
On Fri, May 24, 2013 at 1:14 PM, Jean Delvare kh...@linux-fr.org wrote: Hi Anish, Mylène, On Fri, 24 May 2013 12:52:40 +0530, anish singh wrote: On Fri, May 24, 2013 at 12:41 PM, Mylene Josserand mylene.josser...@navocap.com wrote: I have read that this function i2c_smbus_write_byte_data

Re: microcode loading got really slow.

2013-05-23 Thread anish singh
On Thu, May 23, 2013 at 3:46 PM, Takashi Iwai wrote: > At Thu, 23 May 2013 10:06:56 +0200, > Takashi Iwai wrote: >> >> At Thu, 23 May 2013 15:45:32 +0800, >> Ming Lei wrote: >> > >> > On Thu, May 23, 2013 at 11:39 AM, Dave Jones wrote: >> > > > On 05/21/2013 04:03 PM, Dave Jones wrote: >> > >

Re: microcode loading got really slow.

2013-05-23 Thread anish singh
On Thu, May 23, 2013 at 3:46 PM, Takashi Iwai ti...@suse.de wrote: At Thu, 23 May 2013 10:06:56 +0200, Takashi Iwai wrote: At Thu, 23 May 2013 15:45:32 +0800, Ming Lei wrote: On Thu, May 23, 2013 at 11:39 AM, Dave Jones da...@redhat.com wrote: On 05/21/2013 04:03 PM, Dave Jones

Re: [RFC PATCH 6/8] kthread: Enable parking requests from setup() and unpark() callbacks

2013-05-21 Thread anish singh
On Tue, May 21, 2013 at 1:19 PM, Srivatsa S. Bhat wrote: > On 05/21/2013 11:04 AM, anish singh wrote: >> On Mon, May 20, 2013 at 9:31 PM, Frederic Weisbecker >> wrote: >>> When the watchdog code is boot-disabled by the user, for example >>> through the 'nmi_w

Re: [RFC PATCH 6/8] kthread: Enable parking requests from setup() and unpark() callbacks

2013-05-21 Thread anish singh
On Tue, May 21, 2013 at 1:19 PM, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: On 05/21/2013 11:04 AM, anish singh wrote: On Mon, May 20, 2013 at 9:31 PM, Frederic Weisbecker fweis...@gmail.com wrote: When the watchdog code is boot-disabled by the user, for example through

Re: [RFC PATCH 6/8] kthread: Enable parking requests from setup() and unpark() callbacks

2013-05-20 Thread anish singh
On Mon, May 20, 2013 at 9:31 PM, Frederic Weisbecker wrote: > When the watchdog code is boot-disabled by the user, for example > through the 'nmi_watchdog=0' boot option, the setup() callback of > the watchdog kthread requests to park the task, and that until the > user later re-enables the

Re: [RFC PATCH 6/8] kthread: Enable parking requests from setup() and unpark() callbacks

2013-05-20 Thread anish singh
On Mon, May 20, 2013 at 9:31 PM, Frederic Weisbecker fweis...@gmail.com wrote: When the watchdog code is boot-disabled by the user, for example through the 'nmi_watchdog=0' boot option, the setup() callback of the watchdog kthread requests to park the task, and that until the user later

Re: [PATCH RESEND v3] bitmap: speed up bitmap_find_free_region

2013-05-07 Thread anish singh
On Tue, May 7, 2013 at 1:45 PM, Chanho Min wrote: > In bitmap_find_free_region, If we skip the all-ones words and find bits > in a not-all-ones word, we can improve performance of it. > > For example, If bitmap_find_free_region() is called with order=0, First, > It scans bitmap array by the

Re: Question pertaining to request_threaded_irq

2013-03-20 Thread anish singh
Hello Vijay, Below I will try my best to answer. On Wed, Mar 20, 2013 at 8:23 PM, Vijay Dixit wrote: > Hello, > > I am new to the Kernel-Mailing list. I am not subscribed at the moment > and would really appreciate it, if I can be CC'd for all the > reply/responses for my question. > > > I

Re: Question pertaining to request_threaded_irq

2013-03-20 Thread anish singh
Hello Vijay, Below I will try my best to answer. On Wed, Mar 20, 2013 at 8:23 PM, Vijay Dixit thelonejo...@gmail.com wrote: Hello, I am new to the Kernel-Mailing list. I am not subscribed at the moment and would really appreciate it, if I can be CC'd for all the reply/responses for my

Re: [PATCH] atomic: improve atomic_inc_unless_negative/atomic_dec_unless_positive

2013-03-13 Thread anish singh
On Tue, Mar 12, 2013 at 11:25 PM, Paul E. McKenney wrote: > On Tue, Mar 12, 2013 at 04:02:47PM +0100, Frederic Weisbecker wrote: >> 2013/3/12 Paul E. McKenney : >> > On Tue, Mar 12, 2013 at 12:03:23PM +0800, Ming Lei wrote: >> >> On Tue, Mar 12, 2013 at 11:39 AM, Paul E. McKenney >> >> wrote: >>

Re: [PATCH] atomic: improve atomic_inc_unless_negative/atomic_dec_unless_positive

2013-03-13 Thread anish singh
On Tue, Mar 12, 2013 at 11:25 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Tue, Mar 12, 2013 at 04:02:47PM +0100, Frederic Weisbecker wrote: 2013/3/12 Paul E. McKenney paul...@linux.vnet.ibm.com: On Tue, Mar 12, 2013 at 12:03:23PM +0800, Ming Lei wrote: On Tue, Mar 12, 2013 at

Re: [PATCH] [Timer][Trivial] __clocksource_register_scale return value use?

2013-03-10 Thread anish singh
ACK or NACK this patch please. On Sat, Mar 9, 2013 at 11:33 AM, anish singh wrote: > ping > > On Thu, Mar 7, 2013 at 4:41 PM, anish kumar > wrote: >> __clocksource_register_scale() currently returns int but it should >> return void as there are no error paths in

Re: [PATCH] [Timer][Trivial] __clocksource_register_scale return value use?

2013-03-10 Thread anish singh
ACK or NACK this patch please. On Sat, Mar 9, 2013 at 11:33 AM, anish singh anish198519851...@gmail.com wrote: ping On Thu, Mar 7, 2013 at 4:41 PM, anish kumar anish198519851...@gmail.com wrote: __clocksource_register_scale() currently returns int but it should return void

Re: [PATCH] [Timer][Trivial] __clocksource_register_scale return value use?

2013-03-08 Thread anish singh
ping On Thu, Mar 7, 2013 at 4:41 PM, anish kumar wrote: > __clocksource_register_scale() currently returns int but it should > return void as there are no error paths in that function. > Making it void would help some amount of code to be removed at various > places. > >

Re: [PATCH] [Timer][Trivial] __clocksource_register_scale return value use?

2013-03-08 Thread anish singh
ping On Thu, Mar 7, 2013 at 4:41 PM, anish kumar anish198519851...@gmail.com wrote: __clocksource_register_scale() currently returns int but it should return void as there are no error paths in that function. Making it void would help some amount of code to be removed at various places.

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-03-06 Thread anish singh
On Tue, Feb 19, 2013 at 2:18 AM, Don Zickus wrote: > On Sat, Feb 16, 2013 at 05:44:09PM +0530, anish kumar wrote: >> From: anish kumar >> >> This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is >> multifold. >> Uses are: >> 1. Check if smpboot_register_percpu_thread

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-03-06 Thread anish singh
On Tue, Feb 19, 2013 at 2:18 AM, Don Zickus dzic...@redhat.com wrote: On Sat, Feb 16, 2013 at 05:44:09PM +0530, anish kumar wrote: From: anish kumar anish198519851...@gmail.com This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is multifold. Uses are: 1. Check if

Re: I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8

2013-02-27 Thread anish singh
On Tue, Feb 26, 2013 at 4:37 PM, Wolfram Sang wrote: > On Tue, Feb 26, 2013 at 11:02:17AM +0100, Jiri Kosina wrote: >> On Fri, 22 Feb 2013, 송은봉 wrote: >> >> > >> > >> > >> > I've been debugging the abnormal operation of i2c on octeon. >> > If a process is terminated by signal in the middle of i2c

Re: I2C: Fix i2c fail problem when a process is terminated by a signal on octeon in 3.8

2013-02-27 Thread anish singh
On Tue, Feb 26, 2013 at 4:37 PM, Wolfram Sang w...@the-dreams.de wrote: On Tue, Feb 26, 2013 at 11:02:17AM +0100, Jiri Kosina wrote: On Fri, 22 Feb 2013, 송은봉 wrote: I've been debugging the abnormal operation of i2c on octeon. If a process is terminated by signal in the middle of i2c

Re: [patch] generic-adc-battery: forever loop in gab_remove()

2013-02-14 Thread anish singh
On Thu, Feb 14, 2013 at 2:06 PM, anish singh wrote: > On Thu, Feb 14, 2013 at 12:56 PM, Dan Carpenter > wrote: >> There is a forever loop calling iio_channel_release() because the >> "chan < " part of the "chan < ARRAY_SIZE()" is missing. This is in

Re: [patch] generic-adc-battery: forever loop in gab_remove()

2013-02-14 Thread anish singh
On Thu, Feb 14, 2013 at 12:56 PM, Dan Carpenter wrote: > There is a forever loop calling iio_channel_release() because the > "chan < " part of the "chan < ARRAY_SIZE()" is missing. This is in both > the error handling on probe and also in the remove function. > > The other thing is that it's

Re: [patch] generic-adc-battery: forever loop in gab_remove()

2013-02-14 Thread anish singh
On Thu, Feb 14, 2013 at 12:56 PM, Dan Carpenter dan.carpen...@oracle.com wrote: There is a forever loop calling iio_channel_release() because the chan part of the chan ARRAY_SIZE() is missing. This is in both the error handling on probe and also in the remove function. The other thing is

Re: [patch] generic-adc-battery: forever loop in gab_remove()

2013-02-14 Thread anish singh
On Thu, Feb 14, 2013 at 2:06 PM, anish singh anish198519851...@gmail.com wrote: On Thu, Feb 14, 2013 at 12:56 PM, Dan Carpenter dan.carpen...@oracle.com wrote: There is a forever loop calling iio_channel_release() because the chan part of the chan ARRAY_SIZE() is missing. This is in both

Re: [PATCH] driver core: add wait event for deferred probe

2013-02-13 Thread anish singh
On Thu, Feb 14, 2013 at 3:06 AM, Grant Likely wrote: > On Tue, 12 Feb 2013 10:52:10 +0800, Haojian Zhuang > wrote: >> On 12 February 2013 07:10, Andrew Morton wrote: >> > On Sun, 10 Feb 2013 00:57:57 +0800 >> > Haojian Zhuang wrote: >> > >> >> do_initcalls() could call all driver

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-13 Thread anish singh
On Wed, Feb 13, 2013 at 2:51 PM, Ingo Molnar wrote: > > * anish singh wrote: > >> Is the below patch picked up? >> >> On Sun, Feb 3, 2013 at 9:31 PM, anish kumar >> wrote: >> > From: anish kumar >> > >> > This watch

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-13 Thread anish singh
On Wed, Feb 13, 2013 at 2:51 PM, Ingo Molnar mi...@kernel.org wrote: * anish singh anish198519851...@gmail.com wrote: Is the below patch picked up? On Sun, Feb 3, 2013 at 9:31 PM, anish kumar anish198519851...@gmail.com wrote: From: anish kumar anish198519851...@gmail.com

Re: [PATCH] driver core: add wait event for deferred probe

2013-02-13 Thread anish singh
On Thu, Feb 14, 2013 at 3:06 AM, Grant Likely grant.lik...@secretlab.ca wrote: On Tue, 12 Feb 2013 10:52:10 +0800, Haojian Zhuang haojian.zhu...@linaro.org wrote: On 12 February 2013 07:10, Andrew Morton a...@linux-foundation.org wrote: On Sun, 10 Feb 2013 00:57:57 +0800 Haojian Zhuang

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-12 Thread anish singh
Is the below patch picked up? On Sun, Feb 3, 2013 at 9:31 PM, anish kumar wrote: > From: anish kumar > > This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is > multifold. > Uses are: > 1. Check if smpboot_register_percpu_thread function passed. > 2. Makes sure that user

Re: [PATCH] [Watchdog][Trivial] Added comments to explain watchdog_disabled variable

2013-02-12 Thread anish singh
Is the below patch picked up? On Sun, Feb 3, 2013 at 9:31 PM, anish kumar anish198519851...@gmail.com wrote: From: anish kumar anish198519851...@gmail.com This watchdog_disabled flag is bit of cryptic.Howerver it's usefullnes is multifold. Uses are: 1. Check if

Re: [PATCH V3] suspend: enable freeze timeout configuration through sys

2013-01-31 Thread anish singh
On Thu, Jan 31, 2013 at 2:43 PM, Li, Fei wrote: >> -Original Message- >> From: Yasuaki Ishimatsu [mailto:isimatu.yasu...@jp.fujitsu.com] >> Sent: Thursday, January 31, 2013 3:30 PM >> To: Li, Fei >> Cc: r...@sisk.pl; a...@linux-foundation.org; linux-kernel@vger.kernel.org; >>

  1   2   >