Re: user space device drivers

2013-05-14 Thread Gergely Buday
Prabhu nath wrote: But if the device has to generate an interrupt on the reception of the data then it is best for the driver code to be in the kernel space waiting for the data, rather than in the user space because there is no efficient mechanism till now for the control to be transferred

how to debug oom killer errors

2013-05-14 Thread Prashant Shah
Hi, How to decode the stats thrown by the oom killer ? Is there any good in depth documentation out there for this ? Node 0 DMA per-cpu: cpu 0 hot: high 0, batch 1 used:0 cpu 0 cold: high 0, batch 1 used:0 Node 0 DMA32 per-cpu: cpu 0 hot: high 186, batch 31 used:25 cpu 0 cold: high 62, batch 15

Re: how do i read a block

2013-05-14 Thread Prashant Shah
Hi, On Mon, May 13, 2013 at 9:52 PM, Matthias Brugger matthias@gmail.com wrote: El 13/05/2013 10:07, shampavman shampavman...@gmail.com va escriure: Hi all, Supposing i create a file of size 10K, it will occupy 2 blocks (4K each). Now if i want to read only 1 block from it how can i

Re: user space device drivers

2013-05-14 Thread Prabhu nath
One that I know is through proc interface where the interrupt info is lodged in a file in /proc and the user code keeps polling on this file. Exact use of this is to be looked for. On Tue, May 14, 2013 at 3:24 PM, Gergely Buday gbu...@gmail.com wrote: Prabhu nath wrote: But if the device

PCIe MSI smp_affinity for ARM architecture

2013-05-14 Thread Amit Mahadik
Hello,   I have an ARM platform board. I need to change the smp_affinity of PCIe MSI interrupt. The drivers/pci/msi.c file does not any function for changing the smp_affinity. Any pointers as to how to change the affinity would be very helpful. Regards, Amit.

PCIe MSI smp_affinity for ARM architecture

2013-05-14 Thread Amit Mahadik
Hello,   I have an ARM platform board. I need to change the smp_affinity of PCIe MSI interrupt. The drivers/pci/msi.c file does not any function for changing the smp_affinity. Any pointers as to how to change the affinity would be very helpful. Regards,

Re: bio size is always 4096

2013-05-14 Thread Pranay Srivastava
Hi Neha On 5/13/13, neha naik nehanai...@gmail.com wrote: Hi, I was under the impression that when the bio comes to a block device driver its size is variable. But, after writing a block device driver i realized that such is not the case and it always is 4096. Your Filesystem block size

Re: user space device drivers

2013-05-14 Thread Pietro Paolini
On May 13, 2013, at 9:52 PM, Gergely Buday gbu...@gmail.com wrote: Hi there, I learned, e.g. from here that user space device drivers are indeed possible: http://www.makelinux.net/ldd3/chp-2-sect-9 Are there serious user space drivers in Linux? Could you name a few? Or, is this just

Re: user space device drivers

2013-05-14 Thread richard -rw- weinberger
On Mon, May 13, 2013 at 9:52 PM, Gergely Buday gbu...@gmail.com wrote: Hi there, I learned, e.g. from here that user space device drivers are indeed possible: http://www.makelinux.net/ldd3/chp-2-sect-9 Are there serious user space drivers in Linux? Could you name a few? UIO has lots of

Wake on Lan and pci_enable_wake()

2013-05-14 Thread Andy Johnson
Hello, As far as I know, Wake On Lan is disabled by default in Linux. Now I try this on p2p1: ethtool -i p2p1 ... driver: r8169 ... ethtool p2p1 .. Wake-on: g ... this means, according to the man, that Wake on Lan is enabled for MagicPacket packets on p2p1 Now I looked in the code of the

Re: user space device drivers

2013-05-14 Thread richard -rw- weinberger
On Tue, May 14, 2013 at 11:54 AM, Gergely Buday gbu...@gmail.com wrote: Prabhu nath wrote: But if the device has to generate an interrupt on the reception of the data then it is best for the driver code to be in the kernel space waiting for the data, rather than in the user space because

Re: user space device drivers

2013-05-14 Thread Prabhu nath
I think the webpage itself will talk what are the drivers that are preferred in the user space. In principle, following are the broad constituents of any device driver. 1. code operating on device registers / device memory / device FIFO (through device registers) 2. code operating on some data in

Re: user space device drivers

2013-05-14 Thread Gergely Buday
Are there serious user space drivers in Linux? Could you name a few? Printer drivers, scanner drivers, file system drivers etc. How can I find them? Are they in the kernel source tree? - Gergely ___ Kernelnewbies mailing list

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-14 Thread Arun KS
Hi Sergio, On Tue, May 14, 2013 at 12:41 AM, Sergio Andrés Gómez del Real sergio.g.delr...@gmail.com wrote: I've got some questions regarding this linear to physical address mapping on x86 architecture; I'm not sure I've grassped the whole thing. Before asking, I'd like to be sure I

Re: user space device drivers

2013-05-14 Thread richard -rw- weinberger
On Tue, May 14, 2013 at 10:18 AM, Gergely Buday gbu...@gmail.com wrote: Are there serious user space drivers in Linux? Could you name a few? Printer drivers, scanner drivers, file system drivers etc. How can I find them? Are they in the kernel source tree? They are everywhere except the

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-14 Thread Paul Davies C
It is an arbitrary question that popped in my mind. However, I came to know that the constraints I stated in the previous mail is only restricted to x86 only.Now besides my first questions , I have one more question, Why x86 only? On Tue, May 14, 2013 at 2:34 AM, Sergio Andrés Gómez del Real

Re: user space device drivers

2013-05-14 Thread Sannu K
Are there serious user space drivers in Linux? Could you name a few? Printer drivers, scanner drivers, file system drivers etc. Hope this helps, Sannu ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-14 Thread Valdis . Kletnieks
On Tue, 14 May 2013 11:15:35 +0530, Paul Davies C said: It is an arbitrary question that popped in my mind. However, I came to know that the constraints I stated in the previous mail is only restricted to x86 only.Now besides my first questions , I have one more question, Why x86 only? It's

Re: Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86

2013-05-14 Thread 12
Well, I came up with the same question: Why 896MB (almost all the linear space) is permanently mapped linearly to physical memory? The alternative would be to map just the amount that accounts to the kernel image and the uninitialized data, and then dinamically map the rest. I'd guess that the

Re: how do i read a block

2013-05-14 Thread shampavman
On 05/14/2013 11:59 AM, Prashant Shah wrote: Hi, On Mon, May 13, 2013 at 9:52 PM, Matthias Brugger matthias@gmail.com wrote: El 13/05/2013 10:07, shampavman shampavman...@gmail.com va escriure: Hi all, Supposing i create a file of size 10K, it will occupy 2 blocks (4K each). Now if

Re: how do i read a block

2013-05-14 Thread Valdis . Kletnieks
On Tue, 14 May 2013 12:05:32 +0530, shampavman said: But why does a simple read not turn out 1 block for me? So explain to us why you think a read of 4096 bytes is reading something other than 1 4K block? pgpSyX0_YYYeT.pgp Description: PGP signature