trying to open a shell on LCD with USB keyboard..

2014-02-26 Thread 김찬
Hi, folks! Nice to get to know this email list. I hope I finally arrived to the right group. ( I posted my question on stackoverflow 2 weeks ago but there's no reply. I'm analyzing the console-related code, it's too complex..) I'm trying to bring up virtual terminal on our embedded system's

Re: query on VFS busy inode

2014-02-26 Thread Rishi Agrawal
On Wed, Feb 26, 2014 at 11:16 AM, Rohan Puri rohan.pur...@gmail.com wrote: On Wed, Feb 26, 2014 at 1:08 AM, Abhishek Dave cfsxd...@gmail.com wrote: Hello All, Can some one please help me to understand meaning of below code snip if (!list_empty(sb-s_inodes)) { 406

Blocked I/O in read() and mmap()

2014-02-26 Thread Le Tan
Hi, I am writing a driver module. Now I have some questions about blocked I/O. my_read() is the read function in the file_operations struct in my module. my_read() is just as simple as this: ssize_t my_read() { if(wait_event_interruptible(dev-queue, a == b)) return -ERESTARTSYS;

How to use pr_debug

2014-02-26 Thread m silverstri
I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial console. But when I use pr_info(), I see the debug statements. Do I need to do anything to see pr_debug()? Thank you. ___ Kernelnewbies mailing list

Re: How to use pr_debug

2014-02-26 Thread John de la Garza
On Wed, Feb 26, 2014 at 11:35:23AM -0800, m silverstri wrote: I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial console. But when I use pr_info(), I see the debug statements. Do I need to do anything to see pr_debug()? add this to the top of the file

Re: Blocked I/O in read() and mmap()

2014-02-26 Thread Rajat Sharma
It seems this task landscape-sysin is trying to peek into virtual memory of your processes and the process within mmap call is holding its mm-mmap_sem semaphore which grants access to its address space. landscape-sysin is trying to grab this semaphore to poke into address space of your mmap

Reset due to emergency remount r/o

2014-02-26 Thread Priyaranjan Das
Hi All, I am facing an kernel restart due to emergency remount. Could anybody tell me general techniques to go head with the debugging? Below are the logs which are seen during a reboot. [ 425.832395,1] SysRq : Emergency Remount R/O [ 425.876210,1] EXT4-fs (mmcblk0p36): re-mounted. Opts: (null)

Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Till Kamppeter
Hi, a new standard not yet supported under Linux but starting to penetrate the market is IPP-over-USB (Internet Printing Protocol over USB). IPP, the Internet Printing Protocol from the Printing Working Group (PWG, http://www.pwg.org/) is a standard protocol for network printers (and also used

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Michael Sweet
Till, Some comments inline... On Feb 25, 2014, at 12:01 PM, Till Kamppeter till.kamppe...@gmail.com wrote: Hi, a new standard not yet supported under Linux but starting to penetrate the market is IPP-over-USB (Internet Printing Protocol over USB). ... Fortunately, the PWG has added a

Re: Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Till Kamppeter
On 02/25/2014 06:20 PM, Linus Torvalds wrote: On Tue, Feb 25, 2014 at 9:01 AM, Till Kamppeter till.kamppe...@gmail.com wrote: First, I want to make a feature request to the kernel to add it. Second, I want to suggest this as a Google Summer of Code project, asking for mentors on the kernel

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Greg KH
On Tue, Feb 25, 2014 at 01:42:00PM -0500, Michael Sweet wrote: Till, Some comments inline... On Feb 25, 2014, at 12:01 PM, Till Kamppeter till.kamppe...@gmail.com wrote: Hi, a new standard not yet supported under Linux but starting to penetrate the market is IPP-over-USB (Internet

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Michael Sweet
Greg, On Feb 25, 2014, at 8:47 PM, Greg KH g...@kroah.com wrote: ... So you want to do this as a userspace library talking directly to the USB device through usbfs/libusb? Or should the kernel provide a basic pipe-like functionality to the hardware to make it easier for things to be queued

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Till Kamppeter
I have posted this project on our project ideas list now: https://www.linuxfoundation.org/collaborate/workgroups/gsoc/google-summer-code-2014 Feel free to do corrections on the posting. I have also announced our participation in the GSoC on our front page:

Re: How to use pr_debug

2014-02-26 Thread Valdis . Kletnieks
On Wed, 26 Feb 2014 11:35:23 -0800, m silverstri said: I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial console. But when I use pr_info(), I see the debug statements. Do I need to do anything to see pr_debug()? You probably need a #define DEBUG. Also,

Re: Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Valdis . Kletnieks
On Tue, 25 Feb 2014 18:01:07 +0100, Till Kamppeter said: all non-Windows operating systems). IPP network printers have a lot of advantages compared to USB printers (letting the ability of several computers on a network being able to access them aside): - Encrypted job transfer I'll merely

Mapping a memory address to all the processes using it

2014-02-26 Thread Sandeep K Chaudhary
Hi guys, I am working on a hack which requires me to find all the processes using a particular memory address. Lets say I get an MCE error containing a memory address. I want to use this address to find all the processes that might access it, and kill them before they do. Please let me know if

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Greg KH
On Tue, Feb 25, 2014 at 08:56:23PM -0500, Michael Sweet wrote: Greg, On Feb 25, 2014, at 8:47 PM, Greg KH g...@kroah.com wrote: ... So you want to do this as a userspace library talking directly to the USB device through usbfs/libusb? Or should the kernel provide a basic pipe-like

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-02-26 Thread Michael Sweet
Greg, We already unload the usblp driver - it isn't compatible with most of the multifunction printers out there today... On Feb 26, 2014, at 6:02 PM, Greg KH g...@kroah.com wrote: On Tue, Feb 25, 2014 at 08:56:23PM -0500, Michael Sweet wrote: Greg, On Feb 25, 2014, at 8:47 PM, Greg KH

회신: How to use pr_debug

2014-02-26 Thread 김찬
Yes, if you add line below, console_loglevel = 8; // 8 is debug level The debug messages will also be printed to your console (serial port). maybe you could revert it back after use. Chan From : valdis.kletni...@vt.edu valdis.kletni...@vt.edu Sent : 2014-02-27

Re: How to use pr_debug

2014-02-26 Thread Kim Chan
Yes, if you add a line below, console_loglevel = 8; // 8 is debug level The debug messages will also be printed to your console (serial port). (Maybe this also goes to /var/log/debug ?) you could revert it back after use. Chan From : valdis.kletni...@vt.edu

Re: Mapping a memory address to all the processes using it

2014-02-26 Thread Valdis . Kletnieks
On Wed, 26 Feb 2014 14:52:09 -0800, Sandeep K Chaudhary said: I am working on a hack which requires me to find all the processes using a particular memory address. Lets say I get an MCE error containing a memory address. I want to use this address to find all the processes that might access

Re: Blocked I/O in read() and mmap()

2014-02-26 Thread Rajat Sharma
Why do you need to block in mmap()? mmap is supposed to create a mapping area in virtual address space for the process. Actual transfer happens later through page fault handlers on demand basis. look at vm_operations fault/readpage etc methods, these might be the places you want to wait for the

Re: Blocked I/O in read() and mmap()

2014-02-26 Thread Le Tan
OK, I will look into this. Is it OK to block vm_fault? I have another question. In my userspace program, I mmap() my device, then read something, then munmap() my device() and then mmap() my device again. The program do this in a loop. Everytime it mmap() the same address and offset. My device

Re: Mapping a memory address to all the processes using it

2014-02-26 Thread Valdis . Kletnieks
On Wed, 26 Feb 2014 17:19:49 -0800, Sandeep K Chaudhary said: You mean like this in-tree code? config MEMORY_FAILURE depends on MMU depends on ARCH_SUPPORTS_MEMORY_FAILURE bool Enable recovery from hardware memory errors select MEMORY_ISOLATION

Re: Blocked I/O in read() and mmap()

2014-02-26 Thread Rajat Sharma
Check for two things: 1. Handle error from mmap() call in user space, it seems munmap is called unconditionally. while(1) { str = mmap(vma); //always map the same address and offset (they are set to zero), logger will handle this fwrite(str, 4096, fd); munmap(str); } 2.

Re: Reset due to emergency remount r/o

2014-02-26 Thread Rohan Puri
On Wed, Feb 19, 2014 at 6:14 PM, Priyaranjan Das priyaranjan456...@gmail.com wrote: Hi All, I am facing an kernel restart due to emergency remount. Could anybody tell me general techniques to go head with the debugging? Below are the logs which are seen during a reboot. [ 425.832395,1]

Re: Reset due to emergency remount r/o

2014-02-26 Thread Arun KS
Hi Priyaranjan, On Wed, Feb 19, 2014 at 6:14 PM, Priyaranjan Das priyaranjan456...@gmail.com wrote: Hi All, I am facing an kernel restart due to emergency remount. Could anybody tell me general techniques to go head with the debugging? Below are the logs which are seen during a reboot.

Re: Reset due to emergency remount r/o

2014-02-26 Thread Valdis . Kletnieks
On Thu, 27 Feb 2014 09:43:35 +0530, Arun KS said: [ 425.832395,1] SysRq : Emergency Remount R/O This looks like be a sys request from user space. Application can write echo u /proc/sysrq-trigger to trigger an emergency remount. You can hack drivers/tty/sysrq.c to print current task(to

Fwd: zero copy with PACKET_MMAP

2014-02-26 Thread ratheesh kannoth
Hi , The link https://www.kernel.org/doc/Documentation/networking/packet_mmap.txt talks about achieving zero copy. But i find a deep packet copy ( of length snaplen= skb-len ) here http://lxr.free-electrons.com/source/net/packet/af_packet.c#L1841. Is there anything missing/wrong in my