Re: interrupt handler not getting called after resume

2019-12-04 Thread anish singh
On Wed, Dec 4, 2019 at 1:49 AM Pintu Agarwal wrote: > > On Wed, 4 Dec 2019 at 00:28, anish singh wrote: > > > > On Tue, Dec 3, 2019 at 6:12 AM Pintu Agarwal wrote: > > > > > > Hi All, > > > > > > I have one general query. > > > >

Re: interrupt handler not getting called after resume

2019-12-03 Thread anish singh
On Tue, Dec 3, 2019 at 6:12 AM Pintu Agarwal wrote: > > Hi All, > > I have one general query. > > If an interrupt handler is NOT getting called (for one device) after > the system resume (from snapshot image), then what could be the issue? Most likely during resume the interrupt was not enabled.

Re: I2C bus driver TIMEDOUT because of PM autosuspend

2019-12-02 Thread anish singh
On Fri, Nov 29, 2019 at 12:53 PM Primoz Beltram wrote: > > I am analysing a problem with I2C bus driver where the problem shows up > as I2C bus completely blocked. The LX driver in question is > /drivers/i2c/busses/i2c-xiic.c. > Problem is difficult to reproduce, it happens very rarely. So far I

Re: custom audio card on beaglebone

2017-01-25 Thread anish singh
On Wed, Jan 25, 2017 at 2:30 AM, <crazy...@gmail.com> wrote: > Hi Anish, > > thanks for giving me some thougt. > Here is what I found: > > On Sun, Jan 22, 2017 at 03:47:54PM -0800, anish singh wrote: > > On Sun, Jan 22, 2017 at 1:38 PM, jo <crazy...@gmail.com&

Re: Help on modelling gpio interrupt source when interrupt is shared

2017-01-23 Thread anish singh
On Mon, Jan 23, 2017 at 7:46 AM, Rajasekhar Pulluru < pullururajasek...@gmail.com> wrote: > Hi, > > I have a query on device tree pertaining to modelling a gpio pin as an > interrupt source. > I have searched mailing list archives and kernel documentation before > posting this and couldn't get

Re: custom audio card on beaglebone

2017-01-22 Thread anish singh
On Sun, Jan 22, 2017 at 1:38 PM, jo wrote: > Hi everyone, > > I am currently trying to get a simple audio I2S DAC board ( > https://polyvection.com/shop/plaindac/) to work on a beaglebone green > wireless. The components is a PCM5121, a popular one that has an existing >

Re: adding 32 bit compatibility layer in custom kernel module

2017-01-03 Thread anish singh
On Tue, Jan 3, 2017 at 10:59 PM, Pradeepa Kumar wrote: > my app is crashing as it is trying iterate cmsghdrs > it got after call to recvmsg(); > To give some context > below is the flow > > 32 bit app <--> my kernel module <--> 64 bit app > my kernel module implements new

Re: Options for adding I2C devices and how-to

2016-09-30 Thread anish singh
On Fri, Sep 30, 2016 at 9:23 PM, vibnwis wrote: > > Many thanks Anish for answering my doubts. > > >> You need to find out the device address of your device. >> find out which device is not connected and connect your device on that >> bus and change the device tree to replace

Re: UIO driver test

2016-04-15 Thread anish singh
On Fri, Apr 15, 2016 at 1:29 AM, Gadre Nayan wrote: > Dear all, > > I am trying to test a dummy UIO driver to get timer interrupt events > in Userspace. > > I register the UIO driver as a platform driver: > > static struct platform_device *uio_dummy_device; > > static

Re: Why Completely Fair Scheduler(CFS) using Red-Black tree instead of Min-heap?

2015-10-18 Thread anish singh
On Sat, Oct 17, 2015 at 11:25 AM, venu gangireddy wrote: > Hi, > > Currently, I am learning about CFS scheduler in linux, and I want to know > reason about the data structure chooses in CFS implementation. > > Nice. > CFS scheduler picks next process based on minimum

Re: SPI operations on interrupt context!?

2015-09-08 Thread anish singh
On Tue, Sep 8, 2015 at 10:19 AM, Daniel. wrote: > Hi all, > > I'm dealing with a SPI driver and I have a doubt. I need to read and write > data to spi (registers and values) inside interrupt handler. I want to know > if this pattern is safe or if I'll face problems with

Re: what is the use of #ifndefs

2015-07-20 Thread anish singh
On Mon, Jul 20, 2015 at 3:03 AM, Ahmed Soliman ahmedsoliman0x...@gmail.com wrote: currently I started reading through the linux kernel and I started reading liunx/include/linux/list.h I understood some of the functions but still I dont know what does these lines of code do #ifndef

Re: About guiding hello world module submission

2015-06-24 Thread anish singh
On Wed, Jun 24, 2015 at 12:49 PM, Mayur Patil linuxcra...@gmail.com wrote: Hi All, I am conducting one workshop at FUDCon in which I am trying to teach how to write Great and send your first linux kernel device driver. Could please suggest me the place where I can guide the

Re: A flow path for ethernet kernel driver

2015-05-18 Thread anish singh
On Mon, May 18, 2015 at 12:23 PM, Airton Ishimori nobumasa@gmail.com wrote: Hello, everybody, I'm trying to develop a new Ethernet driver (Realtek) for Linux kernel 4.0.2. [3.612938] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded As part of my studies, I'm trying to trace the

Re: Question regarding strange-looking code in drivers/isdn/i4l/isdn_ppp.c

2015-02-02 Thread anish singh
On Mon, Feb 2, 2015 at 11:26 AM, Bas Peters baspeter...@gmail.com wrote: Hi, I was checking some code in drivers/isdn/isdn_pp and came across the following: case PPP_VJC_COMP: if (is-debug 0x20) printk(KERN_DEBUG isdn_ppp: VJC_COMP\n);

Re: Difference between INIT_LIST_HEAD and LIST_HEAD_INIT

2015-01-06 Thread anish singh
On Tue, Jan 6, 2015 at 1:37 AM, nawab nawabli...@gmail.com wrote: hi friends , i have a simple doubt when i was looking on linux/list.h I have seen that INIT_LIST_HEAD and LIST_HEAD_INIT are performing the same functionality,the major difference is the argument passed. yes but that is

Re: doubt about interrupts and spinlocks

2014-10-24 Thread anish singh
inline answers. On Fri, Oct 24, 2014 at 8:04 AM, Oscar Salvador osalvador.vilard...@gmail.com wrote: Hi! I have a doubt about interrupts and spin locks. I'm not sure if I'm in the good way: When an interrupt is raised, the kernel (through do_IRQ and etc) acknowledges the interrupt and

Re: Beagleboard and Panda Board Drivers

2014-08-16 Thread anish singh
On Sat, Aug 16, 2014 at 7:45 PM, Nick Krause xerofo...@gmail.com wrote: I would like to read the code for these drivers and am not sure where which drivers? the code for them is. If someone can send me the directory that would be great as I am not which directory? sure where the code is.

Re: Problem facing while running checkpatch.pl on linux-next tree

2014-07-27 Thread anish singh
On Jul 27, 2014 2:01 AM, Rahul Garg rahul.lnm...@gmail.com wrote: Hi All, I am trying to run checkpatch.pl on linux-next tree's staging folder. But whatever sub directory, I try to run it on. It is giving me the same error for all the files : ERROR: Does not appear to be a unified-diff

Re: Help with flame wars

2014-07-24 Thread anish singh
On Wed, Jul 23, 2014 at 10:37 PM, Kristofer Hallin kristofer.hal...@gmail.com wrote: Seems like you got some great guidance too. https://lkml.org/lkml/2014/7/23/443 On 24 Jul 2014 06:38, Nick Krause xerofo...@gmail.com wrote: As a new kernel developer I seem to have sent out some bad

Re: about pr_debug

2014-06-25 Thread anish singh
On Tue, Jun 24, 2014 at 11:09 PM, lx lxlenovos...@gmail.com wrote: hi all: I'm confused with pr_debug. My codes is: ### #include linux/module.h #include linux/kernel.h static int __init init_page_dir(void) { pr_debug(Hello world\n); use

Re: [kernelnewbies]a question about checkpatch.pl

2014-06-08 Thread anish singh
Joe can help you with that. On Sun, Jun 8, 2014 at 7:29 AM, lx lxlenovos...@gmail.com wrote: hi all: I used the script of checkpatch.pl, but some error messages appeared. ## [root@localhost kernel_test]# perl checkpatch.pl -f task_01.c Nested

Re: How to invalidate cache in kernel driver?

2014-02-13 Thread anish singh
On Feb 13, 2014 10:29 AM, m silverstri michael.j.silvers...@gmail.com wrote: I have an output buffer in my kernel driver. And that share with my hardware, which uses it for output. When I got an interrupt, the kernel driver will copy the data from the output buffer to user space buffer.

Re: How to allocate memory and get the physical address in kernel

2014-02-05 Thread anish singh
On Wed, Feb 5, 2014 at 6:26 PM, m silverstri michael.j.silvers...@gmail.com wrote: Hi, I am developing a kernel driver. I need to allocate buffer in the kernel driver and pass the physical address of the buffer to the Chip register so that it can generate output there. Can you elaborate more

Re: Question about using spinlock to synchronize between kernel driver and an interrupt handler

2014-02-02 Thread anish singh
On Sat, Feb 1, 2014 at 11:49 PM, m silverstri michael.j.silvers...@gmail.com wrote: On Sat, Feb 1, 2014 at 5:34 AM, Josh Cartwright jo...@eso.teric.us wrote: On Sat, Feb 01, 2014 at 01:32:49AM -0800, anish singh wrote: On Sat, Feb 1, 2014 at 1:15 AM, m silverstri michael.j.silvers...@gmail.com

Re: Question about using spinlock to synchronize between kernel driver and an interrupt handler

2014-02-01 Thread anish singh
until the interrupt is sent from the HW. so i suppose this is what you want to do. write -register-interrupt happens-disable register -handle interrupt ---enable register. Look at any driver code from linux kernel code and it mostly does this. On Sat, Feb 1, 2014 at 12:06 AM, anish singh

Re: Question about using spinlock to synchronize between kernel driver and an interrupt handler

2014-02-01 Thread anish singh
On Sat, Feb 1, 2014 at 1:03 AM, m silverstri michael.j.silvers...@gmail.com wrote: On Sat, Feb 1, 2014 at 12:48 AM, anish singh anish198519851...@gmail.com wrote: On Sat, Feb 1, 2014 at 12:32 AM, m silverstri michael.j.silvers...@gmail.com wrote: don't top-post In my driver code, I want

Re: malloc memory to be 32 byte aligned in kernel

2014-01-28 Thread anish singh
On Tue, Jan 28, 2014 at 11:20 AM, m silverstri michael.j.silvers...@gmail.com wrote: Hi, I am writing a kernel driver, can you please tell me how can I allocate a buffer which is 32 byte aligned? malloc already aligns memory for basic data types AFAIK Thank you.

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: watchdog pet in kernel module

2013-12-02 Thread anish singh
On Mon, Dec 2, 2013 at 10:34 PM, Vipul Jain vipu...@gmail.com wrote: Hi, I would like to move the hardware watchdog pet code from user space to kernel space inside the ipmi module and would like to know how to go about pet the hardware watchdog at periodic interval. Any pointers help will be

Re: Ordering / preemption of work in a workqueue preempt?

2013-11-18 Thread anish singh
On Mon, Nov 18, 2013 at 10:20 PM, Arun KS getaru...@gmail.com wrote: Hi Rajat, On Fri, Nov 15, 2013 at 8:46 PM, Rajat Jain rajatj...@juniper.net wrote: Hi, I have a single work queue, on which I have scheduled a worker function [using queue_work(wq, fn)] in interrupt context. I get the

Re: Ordering / preemption of work in a workqueue preempt?

2013-11-16 Thread anish singh
On Fri, Nov 15, 2013 at 5:01 PM, Rajat Sharma fs.ra...@gmail.com wrote: Hi Rajat, On Fri, Nov 15, 2013 at 7:16 AM, Rajat Jain rajatj...@juniper.net wrote: Hi, I have a single work queue, on which I have scheduled a worker function [using queue_work(wq, fn)] in interrupt context. I get

Re: Ordering / preemption of work in a workqueue preempt?

2013-11-15 Thread anish singh
On Fri, Nov 15, 2013 at 5:01 PM, Rajat Sharma fs.ra...@gmail.com wrote: Hi Rajat, On Fri, Nov 15, 2013 at 7:16 AM, Rajat Jain rajatj...@juniper.net wrote: Hi, I have a single work queue, on which I have scheduled a worker function [using queue_work(wq, fn)] in interrupt context. I get

Re: Question on Platform Device/Driver

2013-11-10 Thread anish singh
? Thanks Regards, Sanchayan. On Sun, Nov 10, 2013 at 2:02 AM, anish singh anish198519851...@gmail.com wrote: On Nov 9, 2013 4:18 AM, sanchayan maity victorascr...@gmail.com wrote: Can someone give me some pointers or tell me as to how can one use a platform driver for reading

Re: Question on Platform Device/Driver

2013-11-09 Thread anish singh
On Nov 9, 2013 4:18 AM, sanchayan maity victorascr...@gmail.com wrote: Can someone give me some pointers or tell me as to how can one use a platform driver for reading and writing? For example, if i have a wm97xx codec IC, a core platform driver is provided (as on the below link).

Re: ALIGN MACRO understanding

2013-11-08 Thread anish singh
On Nov 6, 2013 10:38 PM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: On Thu, Nov 7, 2013 at 11:04 AM, sdptr...@gmail.com sdptr...@gmail.com wrote: While going through kernel source , I came across this ALIGN macro #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) and

Re: Question on Alignment

2013-11-02 Thread anish singh
On Sat, Nov 2, 2013 at 7:42 PM, Shyam Sunkara ophouddi...@gmail.com wrote: Hi All, I'm allocating a memory for linux driver using the kmalloc and I need to align it to 32 bit how do I do it? Did you mean 32 bit or byte? Thank you, Regards, Omk

Re: down_interruptible() return non-zero value once signal is received and trying down_interruptible again in loop return value is always non-zero

2013-10-20 Thread anish singh
On Fri, Oct 18, 2013 at 5:26 AM, Mushtaq Khan mushtaqkhan...@gmail.com wrote: Hi, In kernel driver, using Semaphore to block on resources (Descriptors and memory). Semaphore is initialized in locking state using call init_MTEX_LOCKED(), when resources are not available process calls

Re: can a bottom half be scheduled by another BH ??

2013-10-03 Thread anish singh
On Oct 3, 2013 8:28 PM, sujan dutta stoned.se...@gmail.com wrote: Yes you can, infact network subsystem softirq are reactive so it can run again. however, reactivated softirq are not immediately process but until kernel handles the pending softirqs because it might introduce latency in

Re: mmap giving Permission Denied error

2013-09-21 Thread anish singh
On Sep 21, 2013 7:35 PM, Ravi Teja rav...@gmail.com wrote: Hello Ratheesh, I have intentionally used MAP_FIXED flag as I am interested in mapping to 0x. AFAICS in linux generally mapping to null address is not allowed as this decision helps in debugging null dereference errors. Even

Re: Plug/unplug events of headphone

2013-09-14 Thread anish singh
On Sep 14, 2013 8:57 PM, Dmitry Kolesov apolen...@gmail.com wrote: Thanks for reply. I have problem with headphone on my laptop. I can not listen sound from speakers after reboot laptop if I power off laptop with headphone. And I need to plug/unplug headphone to listen music from speakers. I

Re: Not able to get crash dump

2013-08-02 Thread anish singh
On Aug 3, 2013 3:02 AM, neha naik nehanai...@gmail.com wrote: Hi All, I looked into my issue and i had only one cpu on that machine and i was getting messages like process # waiting for # secs. My theory is that this process was of doing some kind of busy looping on that cpu so that the

Re: local_irq_save vs raw_local_irq_save

2013-07-05 Thread anish singh
insights. Thanks ! Kavi On Thu, Jul 4, 2013 at 4:38 PM, anish singh anish198519851...@gmail.com wrote: On Thu, Jul 4, 2013 at 3:19 PM, Raj Ravi mekavi...@gmail.com wrote: Thanks Anish. As for local_irq_save and raw_local_irq_save, it seems local_irq_save - called at many different places

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: kernel panic in sample block device driver

2013-05-01 Thread anish singh
kernel panic logs? On Wed, May 1, 2013 at 10:57 AM, Kumar amit mehta gmate.a...@gmail.comwrote: Hi, I'm new to block layer in linux and to learn the same, I'm trying to come up with a sample memory based block device driver, with which I can experiment and learn along the way. I'm

Re: I2C: kernel userspace drivers : using i2c-stub

2013-04-22 Thread anish singh
does I2c-stub create the /dev node?If it is not creating then you have to do it yourself. On Mon, Apr 22, 2013 at 5:11 PM, Sagar Padhye sgr.m@gmail.com wrote: Hi, [USING : Ubuntu 12.04 LTS] I am trying to learn I2C subsystem. I havent found much of well documented things that can help

Re: what does it use two !!

2013-04-01 Thread anish singh
!! is generally used to make the return bool value. You can use kernelnewbies and linux kernel mailing list. On Mon, Apr 1, 2013 at 12:43 PM, Ben Wu cray...@yahoo.cn wrote: Dear All: 1 I found some placeuse two !!, what's means if(button-gpio != INVALID_GPIO) state =

Re: Why we Use both mm_users and mm_count in struct mm_struct{ }

2013-03-25 Thread anish singh
On Mon, Mar 25, 2013 at 1:35 AM, Rami Rosen roszenr...@gmail.com wrote: Hi, Niroj, Please look at the following scenario: Suppose we create a kernel thread. With kernel threads, the mm member of the task_struct is NULL. (We are not permitted to access user space addresses from kernel thread,

Re: Why we Use both mm_users and mm_count in struct mm_struct{ }

2013-03-25 Thread anish singh
from this process. and I think the memory descriptor would be changed so that it can point to the kernel thread. Rgs, Rami Rosen http://ramirose.wix.com/ramirosen On Mon, Mar 25, 2013 at 8:02 AM, anish singh anish198519851...@gmail.com wrote: On Mon, Mar 25, 2013 at 1:35 AM, Rami Rosen

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread anish singh
On Thu, Mar 7, 2013 at 7:28 PM, Kevin Wilson wkev...@gmail.com wrote: Hello, what is the difference between disabling interrupts and masking interrupts ? Disabling interrupts is done, AFAIK, with irq_disable(). Disabling interrupts means that you have disabled the source of interrupt. Masking

Re: Disabling interrupts and masking interrupts

2013-03-07 Thread anish singh
/ Did I understand correctly ? rgs Kevin On Thu, Mar 7, 2013 at 5:00 PM, anish singh anish198519851...@gmail.com wrote: On Thu, Mar 7, 2013 at 7:28 PM, Kevin Wilson wkev...@gmail.com wrote: Hello, what is the difference between disabling interrupts and masking interrupts ? Disabling

Re: How to measure the RAM read/write performance

2013-02-27 Thread anish singh
On Tue, Feb 26, 2013 at 5:01 PM, sandeep kumar coolsandyfor...@gmail.com wrote: Hi All In performance benchmark tools, When we profile read/write timings mostly, those read/writes are done to cache only. I want to measure my DDR(RAM chip) performance. So i want to make sure, every read/write

Re: How to measure the RAM read/write performance

2013-02-27 Thread anish singh
edsp neon vfpv3 tls CPU implementer : 0x51 CPU architecture: 7 CPU variant : 0x1 CPU part: 0x00f CPU revision: 2 Thanks Sandeep On Wed, Feb 27, 2013 at 5:37 PM, anish singh anish198519851...@gmail.com wrote: On Tue, Feb 26, 2013 at 5:01 PM, sandeep kumar coolsandyfor

Re: spinlock deadlock

2013-02-15 Thread anish singh
adding Joe Perches as generally he looks after printk stuff. On Fri, Feb 15, 2013 at 2:22 PM, buyitian bu...@live.cn wrote: is it possible that printk cause deadlock? the path is as below: 1. taskA runs on CPU0, and run schedule to acqire the rq-lock. 2. taskA calls printk while holding

Re: Use of copy_to_user() and copy_from_user() functions

2013-02-11 Thread anish singh
On Tue, Feb 12, 2013 at 9:24 AM, Chetan Nanda chetanna...@gmail.com wrote: On Mon, Feb 11, 2013 at 5:25 PM, anish singh anish198519851...@gmail.com wrote: On Mon, Feb 11, 2013 at 4:51 PM, पारस bepa...@gmail.com wrote: Hi All, To read/write data to user-space from kernel-space we

Re: Can jiffies freeze?

2013-01-21 Thread anish singh
On Tue, Jan 22, 2013 at 11:21 AM, sandeep kumar coolsandyfor...@gmail.com wrote: Hi all As far as I know jiffie counter is incremented HZ times/second. And it is used to measure the time lapses in the kernel code. I m seeing a case where, actualy time spent in some module using giffies is

Re: how to look for source code in kernel

2012-12-27 Thread anish singh
On Fri, Dec 28, 2012 at 1:23 AM, Henrique Rodrigues henriquesil...@gmail.com wrote: http://lxr.linux.no/ is a really good linux cross referencing website for code reference. On Thu, Dec 27, 2012 at 10:40 AM, Jonathan Neuschäfer j.neuschae...@gmx.net wrote: On Thu, Dec 27, 2012 at 11:01:52PM

Re: how to look for source code in kernel

2012-12-27 Thread anish singh
On Fri, Dec 28, 2012 at 10:42 AM, amit mehta gmate.a...@gmail.com wrote: On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . for browsing

Re: How kernel handle interrupts

2012-12-20 Thread anish singh
On Dec 20, 2012 6:30 AM, Woody Wu narkewo...@gmail.com wrote: Hi, List Where is the Kernel code that handles external interrupts? I want to have a look at it but haven't found out where it is. Actually, I have some basic questions about interrupt handling in Linux. 1. After Kernel's ISR

Re: GPIO Watchdog device driver

2012-11-13 Thread anish singh
On Tue, Nov 13, 2012 at 9:03 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Tue, Nov 13, 2012 at 10:37 PM, Andreas Schmidt kernelnewb...@schmidt-andi.de wrote: Hi all, I wrote a GPIO watchdog for a extern simple watchdog (LTC2917). It is a voltage supervisor with watchdog timer

Re: Why can not processes switch in atomic context?

2012-07-04 Thread anish singh
On Wed, Jul 4, 2012 at 1:51 PM, Javier Martinez Canillas martinez.jav...@gmail.com wrote: On Tue, Jul 3, 2012 at 4:24 PM, Parmenides mobile.parmeni...@gmail.com wrote: Hi, It is said that kernel can not be preempted in interrupt context and when it is in a critical section protected by

Re: Why can not processes switch in atomic context?

2012-07-03 Thread anish singh
Always CC Kernelnewbies. On Wed, Jul 4, 2012 at 12:52 AM, Parmenides mobile.parmeni...@gmail.com wrote: 1. For the spinlock case, it is easy to get if preemption is allowed in critical section, the purpose of protection provided by spinlock can not be achieved readily. I don't know what you

Re: Sysfs class attribute problem

2012-06-19 Thread anish singh
On Tue, Jun 19, 2012 at 3:14 PM, jeshwanth Kumar N K jeshkumar...@gmail.com wrote: Hello all I am new to sysfs interface ans I read about in mochel's documentation. And doing some experiements on it. Let's come to Tue problem, in my module I have a global variable type char* myglobal and it s

Re: Continuous Interrupt Problem

2012-06-14 Thread anish singh
On Thu, Jun 14, 2012 at 2:11 PM, siddharth saxena siddharthsaxena1...@gmail.com wrote: Hi Arun I tried changing the flag to IRQF_TRIGGER_HIGH but then device is behaving abnormally(Hangs and is dead after some time). Flooding interrupts still observed. Problem not solved. I want to know,

Re: Continuous Interrupt Problem

2012-06-14 Thread anish singh
-input_dev-name);             goto err_request_irq;         }     } The pin by default has to be initialized to Active Low. On Thu, Jun 14, 2012 at 2:24 PM, anish singh anish198519851...@gmail.com wrote: On Thu, Jun 14, 2012 at 2:11 PM, siddharth saxena siddharthsaxena1...@gmail.com

Re: Continuous Interrupt Problem

2012-06-13 Thread anish singh
On Thu, Jun 14, 2012 at 10:34 AM, siddharth saxena siddharthsaxena1...@gmail.com wrote: Hi all I need help with an issue. I have written a touch driver for a device and used the flag IRQF_TRIGGER_LOW to request irq. Now, when I boot the device, the touch interrupts are coming already without

Re: Finding the interrupt vector of a given IRQ

2012-05-27 Thread anish singh
On Mon, May 28, 2012 at 2:57 AM, richard -rw- weinberger richard.weinber...@gmail.com wrote: On Sun, May 27, 2012 at 2:02 AM, Mark Farnell mark.farn...@gmail.com wrote: In the kernel, how can I find out the interrupt vector number of a given IRQ (for example, IRQ7)? Within the kernel module,

Re: How does the driver initialize corresponding with several same devices ?

2012-04-18 Thread anish singh
On Wed, Apr 18, 2012 at 4:37 PM, Philipp Ittershagen p.ittersha...@googlemail.com wrote: On Wed, Apr 18, 2012 at 04:32:12PM +0530, anish singh wrote: On Wed, Apr 18, 2012 at 4:18 PM, Philipp Ittershagen p.ittersha...@googlemail.com wrote: On Wed, Apr 18, 2012 at 05:16:01PM +0800, Li Haifeng

Re: Virtual machine query

2012-01-02 Thread anish singh
On Mon, Jan 2, 2012 at 11:23 PM, Dave Hylands dhyla...@gmail.com wrote: Hi Manish, On Mon, Jan 2, 2012 at 8:13 AM, manish honap manish_honap_...@yahoo.co.in wrote: During Kernel development what type of set-up do developers normally use ? e.g. Machine configuration, virtualization

Re: profiling functions called in interrupt context

2011-09-20 Thread anish singh
On Tue, Sep 20, 2011 at 4:11 PM, Nuno Martins nuno.m.g.mart...@gmail.com wrote: On Tue, Sep 20, 2011 at 5:59 AM, Amit Nagal helloin.a...@gmail.com wrote: On Tue, Sep 20, 2011 at 10:25 AM, rohan puri rohan.pur...@gmail.com wrote: On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal

Re: Re: Regarding threaded irq and normal irq

2011-09-06 Thread anish singh
On Tue, Sep 6, 2011 at 10:59 AM, anish singh anish198519851...@gmail.com wrote: On Tue, Sep 6, 2011 at 10:51 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi :) On 06/09/2011, sandeep kumar coolsandyfor...@gmail.com wrote: Hmm..But when i tried to take a mutex lock in threaded_irq

Re: Re: Regarding threaded irq and normal irq

2011-09-05 Thread anish singh
On Tue, Sep 6, 2011 at 10:51 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi :) On 06/09/2011, sandeep kumar coolsandyfor...@gmail.com wrote: Hmm..But when i tried to take a mutex lock in threaded_irq, it is throwing a warning message BUG: sleeping function called from invalid

Re: question about oops and panic

2011-08-29 Thread anish singh
On Mon, Aug 29, 2011 at 2:19 AM, Parmenides mobile.parmeni...@gmail.com wrote: Hi, 1. I think oops and panic are both some way to deal with errors occurs in kernel space. Is there any relationship between them? AFAIK both are same. 2. I make a NULL pointer reference deliberately in a kernel

Re: Headset driver detection problem during bootup

2011-08-20 Thread anish singh
adding more information and experts on alsa. On Fri, Aug 19, 2011 at 9:23 PM, anish singh anish198519851...@gmail.com wrote: I need some suggestions for below situation: Headset if it is inserted before the device is powered up is now detected by forcefully calling the interrupt handler

Interrupt not getting re-enabled after handler is killed

2011-08-10 Thread anish singh
Intention: Wanted to modify the behavior of threaded interrupt handler not being called after the threaded_handler was killed. Reason: Well there is no reason as such but just want to see what all needs to be done to get this right.I know that what i am doing is completely wrong as i would get a

No printk to inform how much memory freed in ARM after booting

2011-07-29 Thread anish singh
Guess, this is trivial question but probably useful to know. void free_initmem(void) { #ifdef CONFIG_HAVE_TCM extern char __tcm_start, __tcm_end; totalram_pages += free_area(__phys_to_pfn(__pa(__tcm_start)), __phys_to_pfn(__pa(__tcm_end)),

Usbvideo dropped in linux-next?

2011-05-16 Thread anish singh
I was looking for drivers/staging/usbvideo folder but couldn't find it there. Is it dropped from linux-next?If yes then will it be included in future? Reference: http://www.spinics.net/lists/linux-next/msg14307.html One more question.I made a patch against

Re: looking for simple module/driver programming examples in source tree

2011-05-03 Thread anish singh
On Tue, May 3, 2011 at 7:50 PM, Javier Martinez Canillas martinez.jav...@gmail.com wrote: i'm also interesting in collecting examples of documentation for basic kernel programming concepts. sometimes, there are excellent examples in the source Documentation/ directory, sometimes not.

Re: Linux MMC framework

2011-04-06 Thread anish singh
On Thu, Apr 7, 2011 at 9:40 AM, Hanumant Singh hanuman...@gmail.com wrote: HI I am looking for some documentation on the Linux mmc framework. I didnot find anything in the Documentation folder. Is there some book/link that I can refer to? Linux MMC framework consists of MMC core+ SD

Re: Regarding threaded irq

2011-02-28 Thread anish singh
On Tue, Mar 1, 2011 at 2:11 PM, spinlock cp spinlock...@gmail.com wrote: Hi Anish On Mon, Feb 28, 2011 at 5:53 PM, anish singh anish198519851...@gmail.com wrote: I have a touch driver which is not yet using threded_irq.So i am planning to change it to use threaded_irq

Page table queries

2011-02-18 Thread anish singh
As i understood whenver a user space program is run it is represented in kernel using VMA which is managed by struct mm_struct and whenever the program is trying to read/write to a memory location in user space it will be directed to physical address using PAGE TABLE translation done by struct

Page Table query

2011-02-18 Thread anish singh
As i understood whenver a user space program is run it is represented in kernel using VMA which is managed by struct mm_struct and whenever the program is trying to read/write to a memory location in user space it will be directed to physical address using PAGE TABLE translation done by struct

Re: Page Table query

2011-02-18 Thread anish singh
On Sat, Feb 19, 2011 at 12:23 PM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: On Sat, Feb 19, 2011 at 6:40 AM, anish singh anish198519851...@gmail.com wrote: As i understood whenver a user space program is run it is represented in kernel using VMA which is managed

Re: When probe is called?

2011-02-06 Thread anish singh
Hi, I am seeing probe function pointer and know the procedure to register of it for a specific device driver. However, I wonder when it is actually called? For example, for platform drivers, there is a structure like this: struct platform_driver { int (*probe)(struct platform_device *);

Re: Memory leak with dev_add_pack()

2011-01-24 Thread anish singh
On Mon, Jan 24, 2011 at 9:38 PM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Hi! On 22:59 Sun 23 Jan , anish kumar wrote: ... ps:I dont have vanilla kernel where i could have changed the intitialisation files to remount while booting and could have controlled

Re: spin_lock and scheduler confusion

2011-01-07 Thread anish singh
On Fri, Jan 7, 2011 at 1:19 PM, nilesh nilesh.tay...@netscout.com wrote: On Fri, 2011-01-07 at 13:05 +0530, Rajat Sharma wrote: As I remember timer interrupt as well is an NMI so, it is possible (although not advised) to call schedule function while holding spinlock on same core.