Re: issues dealing with kobjects

2014-06-20 Thread Greg KH
On Fri, Jun 20, 2014 at 11:31:03AM +0530, Raghavendra wrote: Hello all, I am facing a small issue dealing with kobjects. I am writing a simple i2c driver for which I would like to export a few sysfs attributes(files). Please don't, unless these attributes are something that all other i2c

Re: Usb block driver to store file

2014-06-25 Thread Greg KH
On Wed, Jun 25, 2014 at 12:12:57PM +0530, ravi ranjan Mishra wrote: HI, i want to transfer a file and store in flash of usb from my driver. Then use the built-in kernel driver that dos this. i have already done usb driver register with char but i want to store file from my driver. how

Re: DMA over USB

2014-07-01 Thread Greg KH
On Wed, Jul 02, 2014 at 10:40:21AM +0530, Raghavendra wrote: Hello, I have a query regarding DMA(Direct Memory Access) for the usb devices. The understanding of DMA actions over PCI is straight forward. PCI devices support bus mastering capability, such that the PCI devices could take

Re: DMA over USB

2014-07-01 Thread Greg KH
On Tue, Jul 01, 2014 at 10:29:39PM -0700, Greg KH wrote: On Wed, Jul 02, 2014 at 10:40:21AM +0530, Raghavendra wrote: Hello, I have a query regarding DMA(Direct Memory Access) for the usb devices. The understanding of DMA actions over PCI is straight forward. PCI devices support

Re: DMA over USB

2014-07-02 Thread Greg KH
On Wed, Jul 02, 2014 at 11:32:47AM +0530, Raghavendra wrote: On Wednesday 02 July 2014 11:02 AM, Greg KH wrote: On Tue, Jul 01, 2014 at 10:29:39PM -0700, Greg KH wrote: On Wed, Jul 02, 2014 at 10:40:21AM +0530, Raghavendra wrote: Hello, I have a query regarding DMA(Direct Memory Access

Re: DMA over USB

2014-07-02 Thread Greg KH
On Wed, Jul 02, 2014 at 11:39:36AM +0530, Raghavendra wrote: On Wednesday 02 July 2014 11:42 AM, Greg KH wrote: On Wed, Jul 02, 2014 at 11:32:47AM +0530, Raghavendra wrote: On Wednesday 02 July 2014 11:02 AM, Greg KH wrote: On Tue, Jul 01, 2014 at 10:29:39PM -0700, Greg KH wrote: On Wed, Jul

Re: USB file mmap

2014-07-07 Thread Greg KH
On Mon, Jul 07, 2014 at 07:30:07PM +0530, Jeshwanth Kumar N K wrote: Hello List, I am trying to understand mmap on files residing in USB flash, so can you please give a pointer from where I can start to understand this? I mean how it works, and which part in kernel takes care of it. That's a

Re: USB forceful removal

2014-07-08 Thread Greg KH
On Wed, Jul 09, 2014 at 12:13:28AM +0530, AYAN KUMAR HALDER wrote: Hi All, When a usb mass-storage is attached for the first time, it gets a device (/dev/sda). When it is mounted and the device is manually removed and then when it is attached again, it gets a different name ie /dev/sdb.

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-09 Thread Greg KH
On Wed, Jul 09, 2014 at 05:53:29PM +0530, Amit Agarwal wrote: Hi All, We are running a 32 bit application on RHEL6.3-64 bit OS with kernel version 2.6.32-279.el6.x86_64. Great. So ask them for support for this as you are paying for it, nothing that we can do about it here, in a community

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:46:52PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:39 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. ] drivers/staging/lustre/include/linux

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 07:01:14PM -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:46:52PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:39 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:57:24PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. [] Anyway, try running this script

Re: [PATCH] checkpatch: Remove unnecessary + after {8,8}

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 07:09:30PM -0700, Joe Perches wrote: There's a useless + use that needs to be removed as perl 5.20 emits a Useless use of greediness modifier '+' message each time it's hit. Reported-by: Greg KH gre...@linuxfoundation.org Signed-off-by: Joe Perches j...@perches.com

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-11 Thread Greg KH
On Fri, Jul 11, 2014 at 06:40:16PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:34 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Fri, Jul 11, 2014 at 06:57:24PM -0700, Joe Perches wrote: On Fri, 2014-07-11 at 18:53 -0700, Greg KH wrote: On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. [] Anyway, try running this script

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Fri, Jul 11, 2014 at 06:21:27PM -0700, Joe Perches wrote: A simple script to run checkpatch --fix for various types of of cleanups. This script is useful primarily for staging. This reformats code to a more CodingStyle conforming style, compiles it, verifies that the object code hasn't

Re: [PATCH] reformat_with_checkpatch: Add automation to checkpatch

2014-07-12 Thread Greg KH
On Sat, Jul 12, 2014 at 11:29:37AM -0700, Joe Perches wrote: On Sat, 2014-07-12 at 10:55 -0700, Greg KH wrote: Yes, the warnings are all due to line-length, but Joe, you shouldn't add a patch that causes more checkpatch warnings than before :) Yeah, that was intentional though

Re: linux-header files.

2014-07-12 Thread Greg KH
On Sat, Jul 12, 2014 at 09:59:09PM -0700, Anand Moon wrote: Hi All, I would like to know a procedure to extract linux-headers from linux src tree. make headers_install ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to prevent a module from unloading when in used

2014-07-16 Thread Greg KH
On Wed, Jul 16, 2014 at 08:57:38PM +0530, Chetan Nanda wrote: On Wed, Jul 16, 2014 at 8:49 PM, Chetan Nanda chetanna...@gmail.com wrote: On Wed, Jul 16, 2014 at 6:39 PM, John de la Garza j...@jjdev.com wrote: On Wed, Jul 16, 2014 at 04:00:18PM +0530, Chetan Nanda

Re: How to prevent a module from unloading when in used

2014-07-17 Thread Greg KH
On Fri, Jul 18, 2014 at 09:43:48AM +0530, Chetan Nanda wrote: On Wed, Jul 16, 2014 at 9:51 PM, Greg KH g...@kroah.com wrote: On Wed, Jul 16, 2014 at 08:57:38PM +0530, Chetan Nanda wrote: On Wed, Jul 16, 2014 at 8:49 PM, Chetan Nanda chetanna...@gmail.com

Re: usb serial programming

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 03:19:00AM +, Amadeus W.M. wrote: Not sure if this is the right venue for this question, please direct me to the right place if it's not. I have a C program that opens the serial port /dev/ttyS0 and sends commands (as strings) back and forth to a pan-tilt-zoom

Re: How to prevent a module from unloading when in used

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 10:20:48AM +0530, Chetan Nanda wrote: On Mon, Jul 21, 2014 at 9:52 AM, Greg KH g...@kroah.com wrote: On Mon, Jul 21, 2014 at 09:09:02AM +0530, Chetan Nanda wrote: I try to debug the hang when unloading of driver. I am using kernel v3.10 and it hangs

Re: usb serial programming

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 06:55:43PM +, Amadeus W.M. wrote: On Mon, 21 Jul 2014 11:18:28 -0700, Greg KH wrote: On Mon, Jul 21, 2014 at 03:19:00AM +, Amadeus W.M. wrote: Not sure if this is the right venue for this question, please direct me to the right place if it's not. I

Re: usb serial programming

2014-07-21 Thread Greg KH
On Mon, Jul 21, 2014 at 07:25:24PM +, Amadeus W.M. wrote: What is the: Bus 004 Device 008: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS device? That's my backup power supply. Should /dev/ttyUSB0 pop up when I plug the adapter into the usb port, even

Re: question about kref API

2014-07-21 Thread Greg KH
On Tue, Jul 22, 2014 at 12:27:20AM +, Jeff Haran wrote: Hi, I've been reading Documentation/kref.txt in order to understand the usage of this API. There is part of this documentation that I am having difficulty understanding and was hoping somebody on this list could clarify this. One

Re: question about kref API

2014-07-22 Thread Greg KH
On Tue, Jul 22, 2014 at 05:25:03PM +, Jeff Haran wrote: -Original Message- From: Greg KH [mailto:g...@kroah.com] Sent: Monday, July 21, 2014 7:18 PM To: Jeff Haran Cc: kernelnewbies@kernelnewbies.org Subject: Re: question about kref API On Tue, Jul 22, 2014 at 12:27

Re: Doubt Regarding Floating Point Arithmetic

2014-07-22 Thread Greg KH
On Wed, Jul 23, 2014 at 08:45:54AM +0530, me storage wrote: Hi I am reading LDD .In that i didn't understand one point .In Chapter 2(Building and Running Modules) they mentioned that   Kernel code cannot do floating point arithmetic .My doubt is which code is used for floating point

Re: question about kref API

2014-07-23 Thread 'Greg KH'
On Wed, Jul 23, 2014 at 05:33:19PM +, Jeff Haran wrote: Clearly there are potential performance benefits in not needing to take locks or mutexes when they are not necessary. Of course there are. But trust me, you need to use a lock here, as the document tries to explain, otherwise your

Re: question about kref API

2014-07-23 Thread 'Greg KH'
On Wed, Jul 23, 2014 at 05:55:50PM +, Jeff Haran wrote: -Original Message- From: 'Greg KH' [mailto:g...@kroah.com] Sent: Wednesday, July 23, 2014 10:48 AM To: Jeff Haran Cc: kernelnewbies@kernelnewbies.org Subject: Re: question about kref API On Wed, Jul 23, 2014 at 05

Re: printk or pr_level?

2014-07-23 Thread Greg KH
On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging. In the networking subsystem netdev_dbg is suitable and so on. Otherwise

Re: printk or pr_level?

2014-07-23 Thread Greg KH
On Wed, Jul 23, 2014 at 04:00:04PM -0700, Greg KH wrote: On Wed, Jul 23, 2014 at 02:45:05PM -0700, Arlie Stephens wrote: On Jul 23 2014, Kristofer Hallin wrote: 1. No. Depending on what subsystem your are printing logs from you should use different functions for logging

Re: Doubt Regarding Floating Point Arithmetic

2014-07-23 Thread Greg KH
On Thu, Jul 24, 2014 at 08:09:31AM +0530, me storage wrote: Can you please explain me one scenario that lets suppose  take calculator application in lower level it should interact with kernel code So here who is take care of Floating point calculations? The userspace program does the floating

Re: /sys documentation

2014-07-31 Thread Greg KH
On Thu, Jul 31, 2014 at 01:59:54PM +0300, David kiarie wrote: Hi there, Is it possible I could get documentation for the information in /sys somewhere?I understand libudev reads from /sys and would like to have some good knowledge about /sys before I use libudev in an application. Look in

Re: Linux filesystem configuration infrastructure

2014-08-04 Thread Greg KH
On Mon, Aug 04, 2014 at 10:20:35AM +0530, Sankar P wrote: Hi, I have a simple filesystem that I did for learning purpose https://github.com/psankar/simplefs Now, I would like to add a few settings to my filesystem (such as the number of blocks that should be allocated in an extent by

Re: How to add x32 ABI support to PCI driver

2014-08-11 Thread Greg KH
On Mon, Aug 11, 2014 at 09:55:15PM -0700, Omkar Houddin wrote: Im trying to port the  PCI driver(supports only 32 bit) from 2.6.31 )o the latest kernel version using openSuse. Im doing it version by version. I was able to port it till 3.1 kernel version.  In the kernel 3.4 there is feature

Re: How to add x32 ABI support to PCI driver

2014-08-12 Thread Greg KH
On Mon, Aug 11, 2014 at 11:07:32PM -0700, Omkar Houddin wrote: Hello Greg, I working on a char device driver. It is mostly based on the the scull device driver in the LDD book. It controls a HBA sitting on the PCIe BUS. What type of Host Bus Adapter needs to be a char driver? What

Re: Strategies for accessing driver data from file operations!?

2014-08-12 Thread Greg KH
On Tue, Aug 12, 2014 at 10:47:20AM -0300, Daniel Hilst Selli wrote: I was writing an spi driver, and taking a look into spidev.c, I see the the author allocates a linked list to hold driver data instances. From open it iterates over the list comparing two dev_t fields, one from current

Re: Assorted newb questions

2014-08-12 Thread Greg KH
On Tue, Aug 12, 2014 at 02:13:13PM -0500, Jaret Flores wrote: 1) It seems like most of the material (outside of the kernel itself) corresponds to version 2.6. Why is this? Has nothing significant changed with the core structure of the kernel since then? Or is it just that no one has

Re: Strategies for accessing driver data from file operations!?

2014-08-13 Thread Greg KH
On Wed, Aug 13, 2014 at 09:46:51AM -0300, Daniel Hilst Selli wrote: One last question, supposing I need to create multiple /dev nodes, do I need to allocate one struct cdev for each major:minor pair (cdev_alloc(), cdev_init(), cdev_add())? No, you can allocate multiple minor numbers with a

Re: How to find the device address inside kernel

2014-08-15 Thread Greg KH
On Fri, Aug 15, 2014 at 05:54:19PM +0530, Ulka Vaze wrote: Hi, I want to find the device address of scsi generic /dev/sg2 inside kernel. Is there any way to find that ? Any pointers are appreciated. What exactly do you mean by device address? And from where are you trying to find this, and

Re: Linux PCI driver.

2014-08-18 Thread Greg KH
On Mon, Aug 18, 2014 at 09:50:44AM +0200, testlaster wrote: Hey Guys Im writing a PCI driver in Linux ( Lubuntu ). Now its not an entire driver its really just a little program that will latch onto a space of ram and dump the entire content of the ram into a file. I have done this before

Re: Linux PCI driver.

2014-08-18 Thread Greg KH
On Mon, Aug 18, 2014 at 02:30:33PM +0200, testlaster wrote: Hi Greg Yes I have read the book and some of it does make sense to me. What doesnt make sense though is that my pci.h file that I have found /include/linux only has like 30 lines max? $ wc include/linux/pci.h 1832 7982 65670

Re: fd type from number

2014-08-19 Thread Greg KH
On Tue, Aug 19, 2014 at 08:38:24AM -0700, Loris Degioanni wrote: (resending making sure this is not part of another thread) I'm looking for an efficient way to determine the type of an fd (file, socket...) given its number, from a kernel module. You don't have a number from within the

Re: quick help - linux Industrial IO Hardware Triggers

2014-08-20 Thread Greg KH
On Wed, Aug 20, 2014 at 11:33:26PM +0530, Sricharan Chalasani wrote: Hi List, Thanks in advance. In the existing IIO drivers (linux-3.16), my understanding is that Hardware Triggers are just used to copy sampled data from the ADC to the Kernel buffer. I think none of the hardware triggers

Re: kbuild: kselftest error

2014-08-30 Thread Greg KH
On Sat, Aug 30, 2014 at 04:18:21AM -0500, Drew Fustini wrote: Hi - I noticed the kselftest target in the kernel Makefile and decided to try it out of curiosity: afustini@lappy486:~/dev/linux/lappy486/git/kernels/mainline$ sudo make kselftest Has anyone run kselftest successfully? Try

Re: Better testing when patching divers/staging/ - howto?

2014-09-05 Thread Greg KH
On Fri, Sep 05, 2014 at 06:42:41PM +0200, Matthias Beyer wrote: Hi, I do big (cleanup) changes in drivers/staging/bcm/ Recently, I managed to piss off greg-kh by sending in a patch that broke the build[0]. After some time off, I want to re-start doing patches in this driver

Re: Better testing when patching divers/staging/ - howto?

2014-09-05 Thread Greg KH
On Fri, Sep 05, 2014 at 01:02:17PM -0700, Mandeep Sandhu wrote: Also do a faster make, with the -j option. Pass in 2x the number of CPU cores you have, so if you have 2 cores do: make -j4 to get a _much_ faster build. Isn't the usual wisdom to run as many jobs as the

Re: How to understand using interfaces layered over USB in this article?

2014-09-08 Thread Greg KH
On Mon, Sep 08, 2014 at 11:31:32AM +0800, lx wrote: hi all:       I read this article, but I can't understand this  section: Most USB device drivers should pass these tables to the USB subsystem as well as to the module management

Re: Page fault in kernel code

2014-09-09 Thread Greg KH
On Tue, Sep 09, 2014 at 06:53:55PM +0530, Manavendra Nath Manav wrote: While reading the book Essential Linux device drivers it says user mode code is allowed to page fault, however, whereas kernel mode code isn't. Why is it so? Why can't kernel mode code handle the page fault and reload the

Re: Makefile for a single source file

2014-09-13 Thread Greg KH
On Sat, Sep 13, 2014 at 05:34:11PM +0300, Kevin Wilson wrote: Hi, I have a single source file which I wrote, implementing a kernel module: helloworld.c In order to built it, I prepared the following Makefile: obj-m += helloworld.o all: make -C /lib/modules/$(shell uname -r)/build

Re: Can block driver kthread slow down blkid and other processes?

2014-09-14 Thread Greg KH
On Sun, Sep 14, 2014 at 09:53:03PM +0800, Alvin Abitria wrote: Hello Gurus, Try posting your code to the linux-fsde...@vger.kernel.org mailing list. The developers there should be able to help you out with these questions. thanks, greg k-h ___

Re: any hint?

2014-09-15 Thread Greg KH
On Tue, Sep 16, 2014 at 10:04:27AM +0900, hdarwin wrote: Hi there. I'm playing kernel module development challenge. I read http://lxr.free-electrons.com/source/Documentation/CodingStyle and learn how to write right code. I am sure that there's no coding style error in following files.

Re: PCI error handlers in Linux

2014-09-16 Thread Greg KH
On Wed, Sep 17, 2014 at 02:04:04AM +0800, Alvin Abitria wrote: Hello, In my pci driver for a certain pci device, I implemented the pci error handler functions (error_detected, slot_reset methods, etc). I want to trigger a pci error for me to exercise those handlers and observe its

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Greg KH
On Tue, Sep 16, 2014 at 08:25:51PM -0400, Valdis Kletnieks wrote: In general, stand-alone patches to fix checkpatch whining are a Bad Idea(TM). snip And here's why checkpatch patches are a Good Idea(TM): - it teaches you how to set up your email client properly - it teaches you how to

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Greg KH
On Tue, Sep 16, 2014 at 11:42:18PM -0400, valdis.kletni...@vt.edu wrote: (And this sort of analysis is exactly *why* people need to apply their brains when looking at checkpatch output) No one has ever said that they shouldn't. Remember, I know _lots_ of kernel developers who started with

Re: console fonts

2014-09-19 Thread Greg KH
On Fri, Sep 19, 2014 at 10:16:52PM -0400, John de la Garza wrote: When I boot up I see the 12x22 fonts for a while then it switches to the tiny fonts default font about half way throught the boot process. My goal is to have the system running with the 12x22 fonts. I do not plan to run X.

Re: console fonts

2014-09-20 Thread Greg KH
On Sat, Sep 20, 2014 at 09:47:10AM -0400, John de la Garza wrote: On Fri, Sep 19, 2014 at 08:12:23PM -0700, Greg KH wrote: the kernel EFI framebuffer driver is odd, and probably can not support your console fonts. I know mine can not, sorry. When the machine first starts loading

Re: Why built-in modules slow down kernel boot?

2014-09-30 Thread Greg KH
On Tue, Sep 30, 2014 at 12:27:12PM +0200, Michele Curti wrote: Hi all, it's just a curiosity. Since the use of an initramfs doubles the kernel boot time I decided to play a little compiling as built-in the modules required to mount root (starting from a localmodconfig). Everything ok,

Re: Implementing a driver that listen to a GPIO

2014-10-02 Thread Greg KH
On Thu, Oct 02, 2014 at 10:03:15AM +0200, Luca Ellero wrote: Hi, I'm working on an ARM platform running Linux kernel 2.6.35. Wow, you do realize just how old and obsolete that is, right? Please upgrade to a new kernel version, you can not get any help from anyone in the community for something

Re: User space == kernel space for device wakeups.

2014-10-08 Thread Greg KH
On Wed, Oct 08, 2014 at 04:39:17PM +0900, manty kuma wrote: Hi, I want a user process to be notified on device wakeup so that I can print some related information. Really? My device can wakeup thousands of times a second, what are you going to do with that type of information? Which

Re: /drivers/staging/TODO doc and kernel tasks question

2014-10-22 Thread Greg KH
On Wed, Oct 22, 2014 at 10:05:30PM -0500, Jaime Arrocha wrote: Good day, The TODO document has the addresses of where to send a patch, but if you run get_maintainer.pl it gives me a different person to address it, gregkh for example. if you don't cc: me, the patch will not get merged, it's

Re: Why each time of kernel compilation must be done completely?

2014-11-19 Thread Greg KH
On Thu, Nov 20, 2014 at 10:05:04AM +0800, 秦弋戈 wrote: Hi, This problem has puzzled me for a long time. A normal C make file could parse the reliance and just regenerate the modified source file. But each time when I modified the kernel and recompile it, it does a complete compilation, no

Re: Userspace agent crash and kernel module

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 12:55:46PM +0200, Kevin Wilson wrote: The thing is that crash of the daemon sometimes occur, from this reason or other. The question is how the kernel module will be aware of such userspace agent crash, in order to reset its state ? Sounds like a horrible design, and I

Re: from WHERE platform driver's probe is called?

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 01:16:21PM +, Sunil Shahu wrote: Hello, I am looking into platform driver and devices and understood HOW platform driver's probe is called from kernel doc and following forum. http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050 For further

Re: Devres

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 03:21:57PM -0200, Raphael Philipe wrote: I have a device driver that requests a lot o memory regions with ioremap and request_mem_region. Today I came across devres. I would like to known your oppinion regarding it? If you don't know it, take a look here. 

Re: VLAN tagged packets received by application are corrupted

2014-11-21 Thread Greg KH
On Fri, Nov 21, 2014 at 06:20:01PM +0530, Amit Agarwal wrote: On 14-11-21 12:51:29, Anupam Kapoor wrote: most likely you offload enabled on your card, try disabling that to see if tcpdump does the right thing for you ethtool -k intf - does not show anything for vlan. More information:

Re: The limit of kernel memory in 64bit system

2014-11-29 Thread Greg KH
On Sat, Nov 29, 2014 at 12:25:43AM +0900, J.Hwan Kim wrote: Hi, everyone As far as I know, the kernel memory limit is 1GB in 32bit system. Is it also applicable to 64bit system? What's the limit of kernel memory in 64bit system? There is no limit :) What do you really want to know this

Re: Huge difference in build sizes

2014-12-02 Thread Greg KH
On Tue, Dec 02, 2014 at 02:38:27PM +0530, Raghavendra wrote: Hello all, I am using Ubuntu-12.04 which came with 3.2 kernel. Parallel to this, I've compiled and installed 3.12.1 kernel using the Ubuntu-3.2's configuration, and the compiler which came with the distro. I've noticed that

Re: Huge difference in build sizes

2014-12-02 Thread Greg KH
On Wed, Dec 03, 2014 at 09:26:34AM +0530, Raghavendra wrote: Hello Greg, Thank you for the reply. On Tuesday 02 December 2014 11:46 PM, Greg KH wrote: On Tue, Dec 02, 2014 at 02:38:27PM +0530, Raghavendra wrote: Hello all, I am using Ubuntu-12.04 which came with 3.2 kernel. Parallel

Re: scheduler help

2014-12-08 Thread Greg KH
On Mon, Dec 08, 2014 at 03:12:24PM -0800, Anish Kumar wrote: I am sure you can get help in Linux mailing list as kernel newbies list would not be be able to answer this.I think there is specific scheduler mailing list. People do not answer other people's homework questions on public mailing

Re: module for particular device

2014-12-11 Thread Greg KH
On Thu, Dec 11, 2014 at 09:52:06PM +0530, p.rameshb...@globaledgesoft.com wrote: For Example, I have a device, I inserted it and it is working fine after I inserted, but I don't know what are all the modules are inserted for that particular device. So how can I check that one? The book,

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-12 Thread Greg KH
On Fri, Dec 12, 2014 at 02:05:50PM -0800, Mandeep Sandhu wrote: How does one send this kind of summary email? Is it generated manually or through some git format-patch/send-email foo magic? I have 4 patches that I have to submit. I'd like to send a summary email (0/4) explaining the changes.

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-12 Thread Greg KH
On Fri, Dec 12, 2014 at 02:29:22PM -0800, Mandeep Sandhu wrote: Thanks Greg! One more thing. Should the 'Tested-by:' tag be added in every commit manually, or only one of them is enough (the last patch really implements the functionality and the rest are 'preparatory' commits)? Tested-by is

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-13 Thread Greg KH
On Fri, Dec 12, 2014 at 10:36:00PM -0800, Mandeep Sandhu wrote: On Fri, Dec 12, 2014 at 8:02 PM, Greg KH g...@kroah.com wrote: On Fri, Dec 12, 2014 at 02:29:22PM -0800, Mandeep Sandhu wrote: Thanks Greg! One more thing. Should the 'Tested-by:' tag be added in every commit manually

Re: How to send the [PATCH 0/x] kind of emails?

2014-12-14 Thread Greg KH
On Sun, Dec 14, 2014 at 09:18:54AM -0800, Mandeep Sandhu wrote: Have you asked the original author about this? There has to be some reason the patch was not accepted, right? Try asking them what happened No, because the email address recorded in the patch is no longer valid. If that's

Re: [PATCH] ATM: HE: Cleanup coding style

2014-12-14 Thread Greg KH
On Mon, Dec 15, 2014 at 04:23:18AM +, karthik nayak wrote: On Mon, Dec 15, 2014, 7:31 AM Greg KH g...@kroah.com wrote: On Sun, Dec 14, 2014 at 07:36:23PM -0600, Jonathan Jin wrote: This patch cleans up the following coding style issues that are detected by checkpatch

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 01:04:57PM -0200, Gustavo Duarte wrote: Hi guys, I have a notebook with 2 ports USB 2.0 and one USB 3.0. For some reason, kernel uses xhci_hcd module driver for all the three ports. Then you really have 3 USB 3 ports in the system. Since I have an application that

Re: kernel: [154858.820009] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed.

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 08:02:13AM -0600, Chris wrote: I'm hoping I can get some advice/help here on this list with the above problem that is causing system lockups. I didn't want to post to the main list as I'm not sure it would be appropriate, I'm not even sure it's appropriate here but I'll

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 02:50:32PM -0200, Gustavo Duarte wrote: Hi Greg, The Notebook has physically 2 port USB 2.0 and one port USB 3.0. The manufacturer specs says that and the output of the command lsusb says the same: $ lsusb Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 06:47:21PM -0200, Gustavo Duarte wrote: 00:14.0 USB controller: Intel Corporation ValleyView USB xHCI Host Controller (rev 0e) Subsystem: CLEVO/KAPOK Computer Device 5471 Kernel driver in use: xhci_hcd One host controller. Seems like here is happening you are

Re: Disable xhci_hcd USB 3.0 module

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 07:32:52PM -0200, Gustavo Duarte wrote: Greg, Thanks for confirm my thought. I tried with a kernel 3.16 builded by Ubuntu guys, http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.16-utopic/linux-image-3.16.0-031600-generic_3.16.0-031600.201408031935_amd64.deb

Re: [PATCH v2 2/2] ATM: HE: Cleanup coding style (struct braces)

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 06:26:41PM -0600, Jonathan Jin wrote: Address checkpatch.pl complaints regarding proper struct brace placement Minor nit, why the extra spaces at the front of the line? And properly wrap your lines at 72 columns, like git should have told you to in the editor. thanks,

Re: [PATCH v2 0/2] ATM: HE: Cleanup coding style

2014-12-15 Thread Greg KH
On Mon, Dec 15, 2014 at 06:26:39PM -0600, Jonathan Jin wrote: At Greg KH's advice, I've revised my previous formatting patch by splicing it into two separate patches in the same sequence. If I could get additional feedback, I'd very much appreciate it. This patch sequence cleans up the

Re: Solving checkpatch error with lex

2014-12-17 Thread Greg KH
On Wed, Dec 17, 2014 at 07:10:24PM +, karthik nayak wrote: On Thu, Dec 18, 2014, 12:37 AM Paul Bolle pebo...@tiscali.nl wrote: On Thu, 2014-12-18 at 00:04 +0530, karthik nayak wrote: was trying to fix the checkpatch error of not using c99 comments in the file

Re: Asus N53 USB WiFi Driver porting

2014-12-18 Thread Greg KH
On Thu, Dec 18, 2014 at 07:50:00PM +0530, Abhishek Sharma wrote: Hi folks, I have a board with 2.6.27.5 kernel and I want to use Asus N53 USB WiFi dongle on it in direct mode. You do realize just how old, obsolete, and insecure that kernel version is, right? If you are stuck with that

Re: Asus N53 USB WiFi Driver porting

2014-12-18 Thread Greg KH
On Thu, Dec 18, 2014 at 08:18:24PM +0530, Abhishek Sharma wrote: Hi Valdis, Thanks for your reply. I do not want to change kernel. do not want to is very different from applications can not be ported to newer kernels. Please realize that the Linux kernel developers have spent the last decade

Re: PCIe bus enumeration

2015-01-22 Thread Greg KH
On Thu, Jan 22, 2015 at 05:46:41PM +0900, J.Hwan Kim wrote: Hi, Is there any method for assigning PCIe bus fixed? Nope, sorry, the BIOS controls this. For example, my device pcie bus number is changed when another pcie device is inserted. I have a 4 same pcie device and i want to

Re: Linux Kernel readlink equivalent

2015-01-30 Thread Greg KH
On Fri, Jan 30, 2015 at 11:02:01AM -0500, David Legault wrote: The path used is generic in that it never changes, but the pointed block device underneath changes based on the hardware/configuration in place. So the idea was to load a module passing the path as a module argument so I could

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

2015-02-02 Thread Greg KH
On Mon, Feb 02, 2015 at 08:26:26PM +0100, Bas Peters 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: FW: wrapper device driver

2015-02-02 Thread Greg KH
On Mon, Feb 02, 2015 at 04:05:35PM -0600, riya khanna wrote: I guess a userspace library approach won't be transparent to the applications. Look at cuse, I think it provides what you are wanting to do here. But as you really didn't say what your goals are, it's hard to determine. good luck,

Re: FW: wrapper device driver

2015-02-02 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Mon, Feb 02, 2015 at 04:46:24PM -0600, riya khanna wrote: The goal is to provide multiple instances of a real device, where each instance could be assigned to a container. This is to enable

Re: FW: wrapper device driver

2015-02-02 Thread Greg KH
On Mon, Feb 02, 2015 at 05:50:43PM -0600, riya khanna wrote: On Mon, Feb 2, 2015 at 5:00 PM, Greg KH g...@kroah.com wrote: On Mon, Feb 02, 2015 at 04:46:24PM -0600, riya khanna wrote: The goal is to provide multiple instances of a real device, where each instance could be assigned

Re: HID Custom Sensor driver in linux kernel

2015-02-11 Thread Greg KH
On Wed, Feb 11, 2015 at 04:48:44PM +0530, s.rawat wrote: thanks for the hint.A quick grep of hid-custom* or custom* inside Documentation /hid as well as drivers/iio/ doesn't yields anything related to hid custom sensor driver.Manual search inside the folders recursively also give the same

Re: Mail client for android

2015-02-17 Thread Greg KH
On Tue, Feb 17, 2015 at 11:57:05PM +0100, Ricardo Ribalda Delgado wrote: Hello: Since my first contribution I have used gmail as my mail provider. For sending patches I happily use git send-email and when I interact with a kverg list I use my gmail account via web (making sure that the

Re: unlikely compiler flag propagation

2015-02-18 Thread Greg KH
On Wed, Feb 18, 2015 at 07:35:37PM +0100, Matthias Brugger wrote: Hi Greg, hi all, 2015-02-18 19:24 GMT+01:00 Greg KH g...@kroah.com: On Wed, Feb 18, 2015 at 07:09:47PM +0100, Matthias Brugger wrote: Hi all, I have a question about the unlikely compiler flag. When a called function

Re: unlikely compiler flag propagation

2015-02-18 Thread Greg KH
On Wed, Feb 18, 2015 at 07:09:47PM +0100, Matthias Brugger wrote: Hi all, I have a question about the unlikely compiler flag. When a called function is only returns an error with the unlikely flag set, should I set the unlikely compiler flag for the return value check in the callee as well?

<    1   2   3   4   5   6   7   8   9   10   >