Re: Sysfs requirement for running generic_buffer.c application - IIO sensors

2015-03-23 Thread Daniel Baluta
On Mon, Mar 23, 2015 at 7:27 AM, s.rawat imsaurabhra...@gmail.com wrote: I have two system having different kernel version and drivers(IIO) on which i can run the generic_buffer.c application .On one system it works fine but on the other it does not give the input reports data. What kernel

Delaying an interrupt handler

2015-03-23 Thread Milton Krutt
Hi. It is known that no semaphore synchronization should be used inside an interrupt handler. Anyway, I am looking at a freeBSD device driver (written by a profesionist) and there are semaphores inside an interrupt handler's subroutine. Since I should port to linux that driver, I ask you how can

Re: Delaying an interrupt handler

2015-03-23 Thread Daniel Baluta
On Mon, Mar 23, 2015 at 2:18 PM, Milton Krutt mil...@krutt.org wrote: Hi. It is known that no semaphore synchronization should be used inside an interrupt handler. Anyway, I am looking at a freeBSD device driver (written by a profesionist) and there are semaphores inside an interrupt

a good video about programming and software engg in Linux kernel

2015-03-23 Thread Anuz Pratap Singh Tomar
Hello folks, This video was shared by Alison to me. Here Dave Chinner talks about some of the recent events which transpired at lkml and kernelnewbies. I think we all have witness the said event and some of us have participated in this so called flame war. Besides all that, this is a very good

Writing driver for a net device which does not support interrupt

2015-03-23 Thread Freeman Zhang
Hi list, I'm writing a net device driver for my final project in college. But the half-finished device doesn't support interrupt yet(those hardware guys...) So I'm wondering if there is some way to poll the device for its status and events. Google tells me 'NAPI' uses a polling mechanism, but

apparent sleep

2015-03-23 Thread Milton Krutt
Hi. Following LDD3, I am dealing with wait queues, on a 2.6.10. My loop is like: while(enough()){ prepare_to_wait(queue_head, queue_entry, TASK_INTERRUPTIBLE); atomic_set(flag, 0); if (!atomic_read(flag, 0)) schedule(); finish_wait(queue_head, queue_entry); } My

Re: LXC/cgroups process group scheduling in linux 3.18+

2015-03-23 Thread Mulyadi Santosa
On Sat, Mar 21, 2015 at 1:13 AM, Nobin Mathew nobin.mat...@gmail.com wrote: Hi, Apologises if I am asking a dump question. Is there any support for container(lxc/cgroups) scheduling in linux scheduler(3.18+). I want to use only unprivileged containers. Basically I want to give more

Re: Get Back Into Kernel Work

2015-03-23 Thread Nicholas Krause
On March 23, 2015 9:51:30 AM EDT, el_es el.es...@gmail.com wrote: Nicholas Krause xerofoify at gmail.com writes: I have listened to peoples feedback. Am I still missing something as I now do 1. Build test all patches 2. Reading the code properly 3.Testing my patches 4.Listening to

Re: Sysfs requirement for running generic_buffer.c application - IIO sensors

2015-03-23 Thread s.rawat
kernel version is 3.10.20 , drivers are hid-sensor-* driver. (hid-accel-3d,hid-gyro-3d,etc.) for different sensors.I have two different devices having two different kernels,Just wanted to know the difference technically why one is not working. On Mon, Mar 23, 2015 at 7:10 PM, Daniel Baluta

Re: Delaying an interrupt handler

2015-03-23 Thread Milton Krutt
On Mon, Mar 23, 2015 at 2:18 PM, Milton Krutt mil...@krutt.org wrote: Hi. It is known that no semaphore synchronization should be used inside an interrupt handler. Anyway, I am looking at a freeBSD device driver (written by a profesionist) and there are semaphores inside an interrupt

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread Valdis . Kletnieks
On Mon, 23 Mar 2015 18:51:51 +0800, Freeman Zhang said: I'm writing a net device driver for my final project in college. But the half-finished device doesn't support interrupt yet(those hardware guys...) So I'm wondering if there is some way to poll the device for its status and events. As a

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread phil
On 23/03/15 10:51, Freeman Zhang wrote: I'm writing a net device driver for my final project in college. But the half-finished device doesn't support interrupt yet(those hardware guys...) So I'm wondering if there is some way to poll the device for its status and events. You should take a

Re: apparent sleep

2015-03-23 Thread Greg KH
On Mon, Mar 23, 2015 at 05:31:51AM -0700, Milton Krutt wrote: Hi. Following LDD3, I am dealing with wait queues, on a 2.6.10. Please use a modern kernel, 2.6.10 is _very_ old and no one can do anything about it, and those that could, have long forgotten what was in it. good luck, greg k-h

Re: Question about ixgbe and ixgbevf

2015-03-23 Thread Biju Abraham
Hey Kevin, This is basically because of udevd calling modprobe when the new VFs are created. The code in the ixgbe driver that causes the VFs to be created would be the function call pci_enable_sriov(). This brings about a chain of events resulting in the ixgbevf getting loaded. I assume you

Question abount bh_lru_lock()

2015-03-23 Thread Rock Lee
Hi, all: Going through fs/buffer.c, I find that bh_lru_lock() is a macro which can be local_irq_disable() or preempt_disable(). #ifdef CONFIG_SMP #define bh_lru_lock() local_irq_disable() #define bh_lru_unlock() local_irq_enable() #else #define bh_lru_lock() preempt_disable() #define

Re: Question about ixgbe and ixgbevf

2015-03-23 Thread Bjørn Mork
Kevin Wilson wkev...@gmail.com writes: Hi, I have an x86_64 machine (F21) on which ixgbevf is not loaded. I notices that when running modprobe ixgbevf max_vfs = 10 (or any other number), this triggers loading of ixgbevf driver. I will appreciate if someone can exaplain the implementation

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread Freeman Zhang
Hi Valdis, Thanks for your warning. I feel like I believe in my group and those engineers. In fact, implementing interrupts is part of the plan, but, yes, the prototype is really buggy However they are trying hard to fix it, and I should not stand by just to watch, waiting for the deadline,

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread Freeman Zhang
Hi phil, Thanks for your reply! I googled timer, it might be a solution except that interval granularity is a little bit large. This device is for high performance network. I'm not sure whether the missmatch will cause problem. And I just figured another potential solution, to use soft interrupt