Re: disable input event device

2016-12-04 Thread Greg KH
On Sat, Dec 03, 2016 at 07:18:50PM +0200, Ran Shalit wrote: > > > On Sat, Dec 3, 2016 at 3:15 PM, Greg KH <g...@kroah.com> wrote: > > On Sat, Dec 03, 2016 at 02:43:30PM +0200, Ran Shalit wrote: > > Hello, > > > > Is there some way to dis

Re: disable input event device

2016-12-03 Thread Greg KH
On Sat, Dec 03, 2016 at 02:43:30PM +0200, Ran Shalit wrote: > Hello, > > Is there some way to disable input event device ? > Maybe a way to disable its irq usage ? > > I actually rather do that from shell, not from kernel, because the kernel > source is not available, and I thought that issue is

Re: [PATCH 0/7] security: apparmor: apparmorfs.c Checkpatch mods

2016-11-26 Thread Greg KH
On Sat, Nov 26, 2016 at 01:02:14PM -0500, Walt Feasel wrote: > On Sat, Nov 26, 2016 at 06:19:22PM +0100, Greg KH wrote: > > On Sat, Nov 26, 2016 at 11:56:17AM -0500, Walt Feasel wrote: > > > On Sat, Nov 26, 2016 at 12:05:50PM +0100, Greg KH wrote: > > > > On Sat, No

Re: [TEST PATCH] staging: speakup: speakup_acntpc.c Consider octal permissions

2016-11-26 Thread Greg KH
On Sat, Nov 26, 2016 at 01:11:23PM -0500, Walt Feasel wrote: > On Sat, Nov 26, 2016 at 06:18:40PM +0100, Greg KH wrote: > > On Sat, Nov 26, 2016 at 12:10:28PM -0500, Walt Feasel wrote: > > > On Sat, Nov 26, 2016 at 12:05:13PM +0100, Greg KH wrote: > > > > On Mon, No

Re: [PATCH 0/7] security: apparmor: apparmorfs.c Checkpatch mods

2016-11-26 Thread Greg KH
On Sat, Nov 26, 2016 at 11:56:17AM -0500, Walt Feasel wrote: > On Sat, Nov 26, 2016 at 12:05:50PM +0100, Greg KH wrote: > > On Sat, Nov 26, 2016 at 03:43:18AM -0500, Walt Feasel wrote: > > > Make checkpatch modifications to include: > > > > > > Multipl

Re: [TEST PATCH] staging: speakup: speakup_acntpc.c Consider octal permissions

2016-11-26 Thread Greg KH
On Sat, Nov 26, 2016 at 12:10:28PM -0500, Walt Feasel wrote: > On Sat, Nov 26, 2016 at 12:05:13PM +0100, Greg KH wrote: > > On Mon, Nov 21, 2016 at 10:03:00PM -0500, Walt Feasel wrote: > > > Make suggested checkpatch modifications for > > > WARNING: Symbolic per

Re: [PATCH 0/7] security: apparmor: apparmorfs.c Checkpatch mods

2016-11-26 Thread Greg KH
On Sat, Nov 26, 2016 at 03:43:18AM -0500, Walt Feasel wrote: > Make checkpatch modifications to include: > > Multiple blank lines > Blank line after declarations > Space after cast > WARN_ON vs BUG_ON > Align parenthesis > Comparison to NULL > Line continuations > > Walt Feasel (7): >

Re: [TEST PATCH] staging: speakup: speakup_acntpc.c Consider octal permissions

2016-11-26 Thread Greg KH
On Mon, Nov 21, 2016 at 10:03:00PM -0500, Walt Feasel wrote: > Make suggested checkpatch modifications for > WARNING: Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. > Consider using octal permissions '0644'. > WARNING: Symbolic permissions 'S_IRUGO' are not preferred. > Consider using

Re: [TEST PATCH] staging: emxx_udc: emxx_udc.c Avoid CamelCase

2016-11-26 Thread Greg KH
On Tue, Nov 22, 2016 at 12:27:48AM -0500, Walt Feasel wrote: > Make suggested checkpatch modification for > CHECK: Avoid CamelCase > > Signed-off-by: Walt Feasel > --- > So here is another example of warnings I have been avoiding. > I have taken every string I found not in

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 01:05:47PM -0500, Kenneth Adam Miller wrote: > So, I ran perf on my host and it came back far more true. The top consumers of > time were all atomics and some function called sse3, which I believe is a > super > fast memcpy implementation provided the the arch. In

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 10:31:18AM -0500, Kenneth Adam Miller wrote: > On Nov 24, 2016 2:18 AM, "Greg KH" <g...@kroah.com> wrote: > > > > On Thu, Nov 24, 2016 at 02:01:41AM -0500, Kenneth Adam Miller wrote: > > > Hello, > > > > > >

Re: Custom Linux Kernel Scheduler issue

2016-11-23 Thread Greg KH
On Thu, Nov 24, 2016 at 02:01:41AM -0500, Kenneth Adam Miller wrote: > Hello, > > > I have a scheduler issue in two different respects: > > 1) I have a process that is supposed to tight loop, and it is being > given very very little time on the system. I don't want that - I want > those who

Re: Kconfig recursion error

2016-11-23 Thread Greg KH
On Wed, Nov 23, 2016 at 07:54:48AM +, Amit Kumar wrote: > On Wed, Nov 23, 2016 at 12:27 PM Greg KH <g...@kroah.com> wrote: > > > On Wed, Nov 23, 2016 at 04:36:57AM +, Amit Kumar wrote: > > > > > > > > > On Tue, Nov 22, 2016 at 10

Re: Kconfig recursion error

2016-11-22 Thread Greg KH
On Wed, Nov 23, 2016 at 04:36:57AM +, Amit Kumar wrote: > > > On Tue, Nov 22, 2016 at 10:32 PM Blatinox wrote: > > Hi Amit, > > On Tue, 22 Nov 2016 11:30:06 + > Amit Kumar wrote: > > > On Tue, Nov 22, 2016 at 4:51 PM

Re: IEEE-754 Float to int

2016-11-22 Thread Greg KH
On Tue, Nov 22, 2016 at 04:05:18PM +, Lucas Tanure wrote: > Hi,  > > At some point my hardware gives me a 32bit IEEE-754 float, like this : > > > regmap_read(device->regmap, ADDR0, ); > > value = temp << 16; > > regmap_read(device->regmap, ADDR1, ); > > value |= temp; > > > So, value

Re: IEEE-754 Float to int

2016-11-22 Thread Greg KH
On Tue, Nov 22, 2016 at 04:44:43PM +, Lucas Tanure wrote: > > > On Tue, Nov 22, 2016 at 4:39 PM, Greg KH <g...@kroah.com> wrote: > > On Tue, Nov 22, 2016 at 04:05:18PM +, Lucas Tanure wrote: > > Hi,  > > > > At some point my hardwar

Re: patch against linux-next

2016-11-22 Thread Greg KH
On Tue, Nov 22, 2016 at 09:31:34AM +, Amit Kumar wrote: > On Tue, Nov 22, 2016, 1:44 PM Greg KH <g...@kroah.com> wrote: > > > On Tue, Nov 22, 2016 at 01:48:22AM +, Amit Kumar wrote: > > > Hi, > > > > > > As far as I know that

Re: patch against linux-next

2016-11-22 Thread Greg KH
On Tue, Nov 22, 2016 at 12:19:18AM -0500, Ruben Safir wrote: > On 11/21/2016 11:28 PM, Amit Kumar wrote: > > On Tue, Nov 22, 2016, 8:41 AM Ruben Safir wrote: > > > >> On 11/21/2016 08:48 PM, Amit Kumar wrote: > >>> Hi, > >>> > >>> As far as I know that linux-next tree is a

Re: patch against linux-next

2016-11-22 Thread Greg KH
On Tue, Nov 22, 2016 at 01:48:22AM +, Amit Kumar wrote: > Hi, > > As far as I know that linux-next tree is a preview of patches which will be > merged in the mainline kernel. That is correct. > I've noticed that recently linux-next is updated with a gap. What do you mean by "a gap"? > Can

Re: When I clone the kernel source, I encounter a fatal error.

2016-11-08 Thread Greg KH
On Tue, Nov 08, 2016 at 11:52:44PM +0800, Hao Lee wrote: > Hi, > > I used to run 'git clone --depth=1' to get kernel source, because this > way is very lightweight. But today, I want to clone the whole git > repository with 'git clone >

Re: Cannot boot to compiled kernel

2016-11-08 Thread Greg KH
On Mon, Nov 07, 2016 at 11:26:50PM -0500, Daniel Bokser wrote: > So I am gathering that many of the modules used in my default installation > are not making it over to 4.9. When running make localmodconfig, I am > noticing error messages related to Nvidia and virtual box. Some examples: > >

Re: The sequence of the built in kernel module be probed

2016-11-06 Thread Greg KH
On Thu, Nov 03, 2016 at 03:29:59AM +0800, Hao Zhang wrote: > hi, what's the sequence of the built in kernel module be probed? Link order. > and how to change it ? Change the order in which the modules are linked by moving their location in the Makefile. Hope this helps, greg k-h

Re: Latest kernel documentation tree

2016-10-26 Thread Greg KH
On Wed, Oct 26, 2016 at 01:33:34PM +0530, Jai Krishna wrote: > Hello, > > Im trying to follow the documentation work of converting to Sphinx etc > that Jon, Mauro and others are doing ( inferring from the patches > coming into kernel-docs@ ). > > Id like to be able to pull and build the Sphinx

Re: Stale pages: FAQ/VariousKernelTrees OutreachyfirstpatchSetup

2016-10-26 Thread Greg KH
On Fri, Oct 21, 2016 at 05:48:47PM -0700, Duncan wrote: > b) The staging tree might not be the best example for true kernel git > sources newbies, mainline is arguably a better one. What do you mean by "mainline"? drivers/staging/ _is_ in the mainline kernel tree (i.e. kernel.org releases). It

Re: [PATCH] INITEST: Documentation: Explains how INITEST works.

2016-09-29 Thread Greg KH
On Fri, Sep 30, 2016 at 10:47:09AM +0530, Amit Kumar wrote: > Signed-off-by: Amit Kumar > > This is a test patch. > Is this patch in right format? What exactly do you mean by "right format"? What do you want reviewed here, the content of the patch, or the other stuff

Re: Sending Patches using official Mail id

2016-09-29 Thread Greg KH
On Fri, Sep 30, 2016 at 12:32:16AM +0530, Raul Piper wrote: > Hi, > How can I send the patches to the kernel mainline using official mail > id using git-send? What do you mean by "official mail id"? > I am using microsoft exchange server and outlook as a client.What > configuration i have to do

Re: insmod failing to insert a simple module

2016-09-29 Thread Greg KH
On Thu, Sep 29, 2016 at 05:57:47PM +0530, Madhu K wrote: > Hi, > > I am runnig 4.0.5_rc7 kernel and I built the module for same kernel. > > uname -a output : > > Linux BLR-PCUB-01141 4.5.0-rc7 #2 SMP Wed Mar 23 15:51:13 IST 2016 x86_64 > x86_64 x86_64 GNU/Linux "4.5.0-rc7" is different han

Re: insmod failing to insert a simple module

2016-09-29 Thread Greg KH
A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Sep 29, 2016 at 05:31:52PM +0530, Madhu K wrote: > No it is not the requirement, when I downloaded the source "4.0.5-rc7+" was >

Re: insmod failing to insert a simple module

2016-09-29 Thread Greg KH
On Thu, Sep 29, 2016 at 03:26:49PM +0530, Madhu K wrote: > Hi All, > > While inserting a kernel module, insmod is failing with following error. > > > insmod: error inserting 'page_walk.ko': Invalid module format. > > I verified the modinfo of "page_walk.ko" it is showing version magic as : >

Re: Virtual Address Space

2016-09-28 Thread Greg KH
On Wed, Sep 28, 2016 at 03:44:28PM +0530, Madhu K wrote: > Hi Greg, > > As I understand CPU's work is Fetch, Decode and Execute. How can CPU generate > virtual address.please correct me if my understanding is wrong. What exactly do you mean by "generate virtual address"? Is this a homework

Re: Virtual Address Space

2016-09-28 Thread Greg KH
On Wed, Sep 28, 2016 at 10:36:59AM +0530, Madhu K wrote: > Hi All, > > This is to understand the Virtual address space.Basically who generates the > virtual addresses CPU or GNU compiler? CPU. ___ Kernelnewbies mailing list

Re: Realtek datasheets - R8168

2016-09-26 Thread Greg KH
On Mon, Sep 26, 2016 at 06:39:52PM +0530, Prabhunath G wrote: > I am referring to r8169.c > The function rtl_hw_start_8168() in r8169.c has this statement >  RTL_W16(IntrMitigate, 0x5151); > > I need to understand the Interrupt mitigation. No documentation is available > to > support this.  >

Re: SMP on different cores.

2016-09-23 Thread Greg KH
On Fri, Sep 23, 2016 at 04:30:58PM +0530, Madhu K wrote: > Hi Greg k-h, > > Thanks a lot for your response. > > I want to understand how SMP works and what should be the requirements to > enable SMP, This is to understand, whether is it possible to enable SMP on > different cores. Right now I

Re: SMP on different cores.

2016-09-22 Thread Greg KH
On Thu, Sep 22, 2016 at 04:46:12PM +0530, Madhu K wrote: > Hi All, > > If i want to enable SMP, cores should be of same version( ex: both > core should ARM 7 ) or we could enable SMP on different version. Do you have a machine that has cores of different versions of a CPU? If so, what are they?

Re: RF class driver

2016-09-21 Thread Greg KH
On Wed, Sep 21, 2016 at 03:09:09PM +0530, Raul Piper wrote: > On Wed, Sep 21, 2016 at 1:13 PM, Greg KH <g...@kroah.com> wrote: > I wanted to know in which class RF Transceivers - (Sub 1 -Ghz > devices) Linux drivers will fall and where to find them in Linux > kernel , > I

Re: RF class driver

2016-09-21 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Tue, Sep 20, 2016 at

Re: RF class driver

2016-09-20 Thread Greg KH
On Tue, Sep 20, 2016 at 06:02:56PM +0530, Raul Piper wrote: > Hi, > I was looking at the different class of the drivers and wanted to know in > which > class will the RF transciever will fall. Network driver or the IIO driver.How > to get the maintainer list name for the same,  > I ran

Re: Q: what is the need for console write callback if there is serial tx (start_tx) ?

2016-09-16 Thread Greg KH
On Thu, Sep 15, 2016 at 11:19:51PM +0300, Ran Shalit wrote: > Hello, > > I am writing a driver with serial tx/rx. Great! For what type of hardware? > I am not sure what is the need console routines, when there is > serial/uart tx/rx. > > Isn't writing to console, the same as outputing chars

Re: Extend device driver?

2016-09-11 Thread Greg KH
On Sat, Sep 10, 2016 at 08:58:07PM +0200, Pol Eyschen wrote: > On 10/09/16 17:14, Greg KH wrote: > > On Sat, Sep 10, 2016 at 04:41:34PM +0200, Pol Eyschen wrote: > > > Hi everyone, > > > > > > I want to implement some custom functions of my mouse (Madcatz

Re: Status/Progress of CherryTrail / BayTrail support in mainline Linux kernel

2016-09-11 Thread Greg KH
On Mon, Sep 05, 2016 at 10:49:08AM +0200, Hanno Zulla wrote: > Hi, > > sorry for asking a possibly obvious question, but: > > Why is support for Cherry Trail / Bay Trail so bad in the mainline > kernel? Is this being worked on? And where can one help or track the > progress with improving this?

Re: Extend device driver?

2016-09-10 Thread Greg KH
On Sat, Sep 10, 2016 at 04:41:34PM +0200, Pol Eyschen wrote: > Hi everyone, > > I want to implement some custom functions of my mouse (Madcatz RAT5) in > Linux, e.g custom DPI-values. As this requires writing over USB to the > firmware of the mouse I was thinking of writing a module to

Re: Power saving in case of CPU hotplugin

2016-09-07 Thread Greg KH
On Wed, Sep 07, 2016 at 02:31:46PM +0530, Debdipta Ghosh wrote: > HEllo all, > > I was going through a linux well known concept, hot plugin of cpu cores: > https://www.kernel.org/doc/Documentation/cpu-hotplug.txt > > Is it more power saving than highest C-State and P-State? > > If we make one

Re: Linux Security Module listsecurity (and security xattr hooks) only one called?

2016-09-06 Thread Greg KH
On Tue, Sep 06, 2016 at 07:05:54AM -0400, Pasquier, Thomas wrote: > Hello everyone, > > In security/security.c (see here:https://github.com/torvalds/linux/blob/ > 835c92d43b29eb354abdbd5475308a474d7efdfa/security/security.c) > > Looking at this: > > int security_inode_listsecurity(struct inode

Re: [Kernel Build] Initrd not getting build out of source dir

2016-09-04 Thread Greg KH
On Sat, Sep 03, 2016 at 05:07:20PM -0700, Vipul Jain wrote: > Hi Kernel Alias, > > I downloaded latest kernel source from kernel.org and tried to build it > at a directory outside source by giving O= but I noticed that > initrd image is not getting build but if I execute make inside source >

Re: question re. kernel licenses

2016-09-01 Thread Greg KH
On Thu, Sep 01, 2016 at 12:10:52PM -0400, Miles Fidelman wrote: > I know it's released under the GPL, but, for the life of me, I can't > find any statement of who is actually granting the licenses (i.e., who > holds the copyright), and I can't seem to find any kind of copyright > assignment

Re: question re. kernel licenses

2016-09-01 Thread Greg KH
On Thu, Sep 01, 2016 at 12:10:52PM -0400, Miles Fidelman wrote: > Perhaps a silly question, but who actually holds the copyright on the > kernel? Nice, a legal question on a technical list? Are you going to ask medical questions here next? :) Seriously, if you have questions like this, and it

Re: [PATCH] staging: ieee80211.h: Correct spelling of "FUNCION"

2016-08-28 Thread Greg KH
On Sun, Aug 28, 2016 at 07:25:58AM -0400, Robert P. J. Day wrote: > > Signed-off-by: Robert P. J. Day Same two comments as your other patch. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: [PATCH] staging: Fix misspelling "dissconect"

2016-08-28 Thread Greg KH
On Sun, Aug 28, 2016 at 07:31:18AM -0400, Robert P. J. Day wrote: > > Signed-off-by: Robert P. J. Day > Also, why send this only to kernelnewbies? Always use scripts/get_maintainer.pl ___ Kernelnewbies mailing list

Re: kmalloc size limit?

2016-08-20 Thread Greg KH
On Fri, Aug 19, 2016 at 11:51:18PM +0530, Muni Sekhar wrote: > Hi All, > > I would like to know what is the maximum size limit for kmalloc() API > to return a valid memory? Depends on the system :) Why, what are you trying to use large amounts of memory for? > Does the size limit varies based

Re: A very stupid question about formatting a patch :)

2016-08-18 Thread Greg KH
On Thu, Aug 18, 2016 at 01:08:43PM +0300, Aleksander Alekseev wrote: > > I don't see anyone removing that line, perhaps you aren't looking at > > the patch properly in an email client? > > > > Leave it in there, it's good to have. > > There is way too much traffic in LMKL for me to read it with

Re: A very stupid question about formatting a patch :)

2016-08-18 Thread Greg KH
On Thu, Aug 18, 2016 at 12:46:30PM +0300, Aleksander Alekseev wrote: > Hello. > > When I do `git format-patch` I get something like this: > > ``` > Documentation/kselftest.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/kselftest.txt

Re: Determining patch impact on a specific config

2016-08-18 Thread Greg KH
On Wed, Aug 17, 2016 at 06:48:53PM +, Nicholas Mc Guire wrote: > > The first one makes this easier for you, the second and third are not > > always true. There have been big patchsets get merged into longterm > > stable kernel releases that were done because they were "optimizations" > > and

Re: Determining patch impact on a specific config

2016-08-18 Thread Greg KH
Ok, just one response to this every growing thread, I think me and Nicholas need to sit down over a beverage and work this out in person instead of boring everyone on the list... On Wed, Aug 17, 2016 at 06:48:53PM +, Nicholas Mc Guire wrote: > I think we are looking at it from different

Re: Determining patch impact on a specific config

2016-08-17 Thread Greg KH
On Wed, Aug 17, 2016 at 04:50:30PM +, Nicholas Mc Guire wrote: > > But you aren't comparing that to the number of changes that are > > happening in a "real" release. If you do that, you will see the > > subsystems that never mark things for stable, which you totally miss > > here, right? > >

Re: Determining patch impact on a specific config

2016-08-17 Thread Greg KH
On Wed, Aug 17, 2016 at 02:49:22PM +, Nicholas Mc Guire wrote: > On Wed, Aug 17, 2016 at 04:17:19PM +0200, Greg KH wrote: > > On Wed, Aug 17, 2016 at 02:01:28PM +, Nicholas Mc Guire wrote: > > > On Wed, Aug 17, 2016 at 03:52:16PM +0200, Greg KH wrote: > > > >

Re: Determining patch impact on a specific config

2016-08-17 Thread Greg KH
On Wed, Aug 17, 2016 at 02:01:28PM +, Nicholas Mc Guire wrote: > On Wed, Aug 17, 2016 at 03:52:16PM +0200, Greg KH wrote: > > On Wed, Aug 17, 2016 at 03:25:44PM +0200, Greg KH wrote: > > > On Wed, Aug 17, 2016 at 12:39:39PM +, Nicholas Mc Guire wrote: &

Re: Determining patch impact on a specific config

2016-08-17 Thread Greg KH
On Wed, Aug 17, 2016 at 03:25:44PM +0200, Greg KH wrote: > On Wed, Aug 17, 2016 at 12:39:39PM +, Nicholas Mc Guire wrote: > > > > Hi ! > > > > For a given patch I would like to find out if it impacts a > > given configuration or not. Now of course

Re: Determining patch impact on a specific config

2016-08-17 Thread Greg KH
On Wed, Aug 17, 2016 at 12:39:39PM +, Nicholas Mc Guire wrote: > > Hi ! > > For a given patch I would like to find out if it impacts a > given configuration or not. Now of course one could compile the > kernel for the configuration prior to the patch, then apply the > patch and recompile

Re: How to compile Linux kernel with -O0 flag

2016-08-14 Thread Greg KH
On Sun, Aug 14, 2016 at 07:11:01PM +0800, Hao Lee wrote: > > Just out of curiosity - is there a technical reason why -O0 couldn't > > be used in Linux kernel? I don't know, spinlocks would not work in this > > case because it's how GCC was written or something. Or just nobody > > compiles and

Re: How to compile Linux kernel with -O0 flag

2016-08-13 Thread Greg KH
On Sat, Aug 13, 2016 at 09:56:05PM +0300, Aleksander Alekseev wrote: > > The kernel will not run with -O0, sorry, just live with the build > > optimization levels that is currently used and you should be fine. > > Oh, I see. Fortunately I'm not afraid of assembler :) Thanks. > > Just out of

Re: How to compile Linux kernel with -O0 flag

2016-08-13 Thread Greg KH
On Sat, Aug 13, 2016 at 09:15:16PM +0300, Aleksander Alekseev wrote: > Hello > > I'm currently exploring different ways of debugging Linux kernel. And I > noticed that for many variables gdb displays . Also from > experience of debugging ring3 code I know that sometimes debugger may > act crazy

Re: Kernel module compilation errors

2016-08-11 Thread Greg KH
On Thu, Aug 11, 2016 at 07:25:45PM +, Matt M wrote: > I am just getting started with kernel module development, and I can't get > anything to compile. > > I get the following errors: > > In file included from main.c:1:0: > /usr/src/linux/include/linux/init.h:142:13: error: expected ‘=’, ‘,’,

Re: Are these books outdated?

2016-08-10 Thread Greg KH
On Wed, Aug 10, 2016 at 11:16:13PM +0530, Raul Piper wrote: > Most of the books like Essential linux device drivers, Robert love kernel > development, > Linux device drivers by Rubini > Most of the books are based on old kernels 2.2,2.6 etc > > I wanted to know hasnt the kernel evolved during

Re: Linux Coding style template

2016-08-08 Thread Greg KH
On Sun, Aug 07, 2016 at 05:53:15PM +0300, Charls D. Chap wrote: > On Sun, Aug 7, 2016 at 7:39 AM, Greg KH <g...@kroah.com> wrote: > > On Sun, Aug 07, 2016 at 12:22:03AM +0300, Charls D. Chap wrote: > >> I want to transform some C source files. following Linux kernel cod

Re: Linux Coding style template

2016-08-06 Thread Greg KH
On Sun, Aug 07, 2016 at 12:22:03AM +0300, Charls D. Chap wrote: > I want to transform some C source files. following Linux kernel coding style. > > - Does script/Lindent STRICTLY follows all linux kernel coding style rules? > - What scripts/templates do you use/suggest for elegant code style >

Re: USB gadget mode in laptop

2016-08-05 Thread Greg KH
On Fri, Aug 05, 2016 at 11:42:22PM +0530, Susanoo Tux wrote: > I think all the laptop manufacturers are closely depending on windows and > don't > enable the device mode (OTG) or I can say they don't put the OTG > supported controller :(. It's the latter, there is no OTG supported controller in

Re: Udev rule for USB keyboard

2016-08-05 Thread Greg KH
On Fri, Aug 05, 2016 at 04:02:59PM +0530, Madhu K wrote: > Just to understand how Udev rules works. You are going to have to provide more background, sorry, otherwise people are going to think that you are just asking here in order to do your "homework". sorry, greg k-h

Re: Udev rule for USB keyboard

2016-08-05 Thread Greg KH
On Fri, Aug 05, 2016 at 02:07:34PM +0530, Madhu K wrote: > Hi All, > > Can anybody share the procedure to write an Udev rule to detect the USB > keyboard during hot plug. Why do you need this? ___ Kernelnewbies mailing list

Re: Kernel panic debugging

2016-08-04 Thread Greg KH
On Thu, Aug 04, 2016 at 02:01:21PM +0530, Narasimha M wrote: > Hi All, > > I am using linux-3.10.20 kernel and facing the below reported panic > some times. As this is coming from general linux stack. Could you > please guide how to debug these kind of panics. That's a very old and obsolete

Re: Minimul Config file for Dev Environment

2016-07-30 Thread Greg KH
On Sun, Jul 31, 2016 at 01:24:58AM +0530, Jitendra wrote: > Hi Folks, > > I usually compile the linux kernel by copying current system .config file. > But the > problem it compile bunch things that I don't which is required. My aim > is setup filesystem environmrnt setup on my laptop. > > Could

Re: Ethernet driver - without DMA ?

2016-07-29 Thread Greg KH
On Fri, Jul 29, 2016 at 09:47:40PM +0300, Ran Shalit wrote: > Hello, > > Can we write Ethernet driver without using dma ? Sure, we have USB network drivers that don't use DMA. > But still using sk_buff APIs like done in most drivers ? Yup. What type of hardware are you wanting to write an

Re: Are these books outdated?

2016-07-24 Thread Greg KH
On Thu, Jul 14, 2016 at 01:40:45PM +0200, François wrote: > On Thu, Jul 14, 2016 at 02:01:55PM +0300, Aleksander Alekseev wrote: > > Hello Aleksander, > > I only know LDD 3: > > * Linux Device Drivers, 3rd Edition (2005) > > Since this book is freely available in PDF, I would advise you to read

Re: How do you test Linux kernel?

2016-07-20 Thread Greg KH
On Wed, Jul 20, 2016 at 02:19:27PM +0300, Aleksander Alekseev wrote: > Hello > > It is my understanding that Linux kernel doesn't has usual `make check` > or `make test` command. It doesn't? Have you checked? $ make help | grep test Kernel selftest kselftest - Build and run kernel

Re: drivers: staging: most: Locking question

2016-07-18 Thread Greg KH
On Mon, Jul 18, 2016 at 08:14:47PM +0200, mhornung.li...@gmail.com wrote: > Hello, > > I have some questions about the locking techniques used inside > file drivers/staging/most/hdm-usb/hdm_usb.c. Eeek, never use anything from drivers/staging/ as a good example of anything. Please, that code is

Re: Mount jffs2 as rootfs

2016-06-27 Thread Greg KH
On Mon, Jun 27, 2016 at 07:01:15AM +, Chen, NoamX wrote: > - > Intel Israel (74) Limited > > This e-mail and any attachments may contain confidential material for > the sole use of the intended recipient(s). Any review or

Re: Kernel panic after insmod

2016-06-26 Thread Greg KH
On Sun, Jun 26, 2016 at 09:35:55AM +, Manavendra Nath Manav wrote: > Can someone explain the following kernel module code. I'm not familiar with > x86 > assembly so have problem understanding this part. Also it seems this code is > able to modify the kernel stack. > >

Re: How to find out if kernel or udev created a device node in Android

2016-06-08 Thread Greg KH
On Wed, Jun 08, 2016 at 05:39:39PM +0530, Munagala Naresh wrote: > Hi team, > > Is there a way to find if kernel or udev created a device node (@ /dev/)  > in > Android? > > I searched in the internet and "udevadm" can be used to finf it but this is > not > available in Android. Please let

Re: udev & modalias files

2016-06-03 Thread Greg KH
On Fri, Jun 03, 2016 at 10:02:02PM +0530, Muni Sekhar wrote: > Hi, > > I see lot of modalias files under /sys directory. > > For e.g: > > # cat /sys/devices/pci:00/:00:1c.0/:02:00.0/modalias > > pci:v1556dsv4000sdbc08sc05i01 > > > > I would like to know

Re: [PATCH] HC-SR04 ultrasonic ranger IIO driver

2016-05-31 Thread Greg KH
On Tue, May 31, 2016 at 11:05:57PM +0200, johan...@johannesthoma.com wrote: > From: Johannes Thoma > > The HC-SR04 is an ultrasonic distance sensor attached to two GPIO > pins. The driver based on Industrial I/O (iio) subsystem and is > controlled via configfs and

Re: Trying to debug interrupt flood after unbind

2016-05-31 Thread Greg KH
On Tue, May 31, 2016 at 06:41:24PM +, Rob Groner wrote: > I am trying to load a driver for an Exar serial chip, but that chip is gobbled > up by the 8250 driver on boot. Why does the in-kernel driver not support this chip? Do you have a pointer to the Exar source anywhere? > So, I use the

Re: why is there still so much __KERNEL__ testing in include/uapi/?

2016-05-27 Thread Greg KH
On Fri, May 27, 2016 at 12:08:09PM -0400, Robert P. J. Day wrote: > > continuing down this road of exporting kernel headers, under > include/uapi/ (and mostly further under linux/), there's still a *ton* > of testing of the __KERNEL__ preprocessor check. > > now, i realize that when one does

Re: exporting kernel headers via the include/uapi directory

2016-05-27 Thread Greg KH
On Fri, May 27, 2016 at 08:07:17AM -0400, Robert P. J. Day wrote: > > next question about exporting kernel headers, this one related to > the content placed under include/uapi/. > > is there any rationale for header files to be living under > include/uapi/ if they're not listed in the

Re: some simple(?) questions about Kbuild and installing kernel headers

2016-05-27 Thread Greg KH
On Fri, May 27, 2016 at 07:53:00AM -0400, Robert P. J. Day wrote: > > for various reasons, i'm poring over the grotty details of the > installation of kernel headers, so a couple questions before i get any > further into the code. > > first, is there any value to a Kbuild file with no

Re: GobiNet USB driver support for Big endian

2016-05-26 Thread Greg KH
On Thu, May 26, 2016 at 07:29:11PM +0530, Narasimha M wrote: > Hi All, > We have GobiNet usb driver open source, which is working fine with > little endian architecture. Facing issues with Big-Endian > architecture. Please help if some one supported for Big_endian. You are really on your own

Re: USB device debugging

2016-05-25 Thread Greg KH
On Thu, May 26, 2016 at 11:01:31AM +0530, Narasimha M wrote: > Hi, Thank you so much for your help. One last query in this. From you > explanation USB host controller will receive the packet from device. So could > you please tell me, what is the first function being called when device gets > the

Re: USB device debugging

2016-05-25 Thread Greg KH
On Wed, May 25, 2016 at 09:11:59PM +0530, Narasimha M wrote: > I am attaching the raw data in two cases (working - 2.mon.out) and not > working (1.mon.out) files. > > working one is with the device having linux 3.10.20 and not working > one is with linux 2.6.32. Here i have run same traffic in

Re: free(), the size to free?

2016-05-25 Thread Greg KH
On Wed, May 25, 2016 at 02:00:41PM -0400, Wenda Ni wrote: > The prototype is void kfree(const void *). > > As the input pointer is void *, how does the kernel know the size of memory to > be freed? There should be some metadata recorded under the hood, right? Yes there is. See the memory

Re: IRC channel for linux-block layer and linux-mmc discussion

2016-05-24 Thread Greg KH
On Tue, May 24, 2016 at 04:53:02PM +0530, Ritesh Harjani wrote: > Guys, > Can someone please tell IRC channel & server for discussion on > linux-block layer and linux-mmc discussion? What's wrong with the mailing lists for those portions of the kernel instead?

Re: USB device debugging

2016-05-24 Thread Greg KH
On Tue, May 24, 2016 at 01:48:16PM +0530, Narasimha M wrote: > Thanks for the information. But i want to know the flow of receive > packet from usb driver to linux stack. I am facing an issue that > corrupted data is coming to usbnet_bh function. So i want to know > about the place where we

Re: is there any actual usage of the device tree node "/chosen@0"?

2016-05-23 Thread Greg KH
On Mon, May 23, 2016 at 01:51:36PM -0400, Robert P. J. Day wrote: > so there are apparently three files that *check* for that alternate > name, but not a single .dts or .dtsi that actually uses it. is there > any value to that alternate name? Why are you asking that here and not on the device

Re: Management of duplicate commits in public repository

2016-05-21 Thread Greg KH
On Sat, May 21, 2016 at 12:57:42PM -0400, William Breathitt Gray wrote: > I'm curious how subsystem maintainers typically handle duplicate commits > in their public subsystem repositories. I'm referring to commits which > appear originally in their branch, but are cherry-pick'd to another >

Re: Run queue corruption issue

2016-05-18 Thread Greg KH
On Wed, May 18, 2016 at 01:29:55AM -0400, Jerrin Shaji George wrote: > Hi Greg, > > Thanks for your response. > > On Tue, May 17, 2016 at 7:20 PM, Greg KH <g...@kroah.com> wrote: > > On Tue, May 17, 2016 at 06:55:07PM -0400, Jerrin Shaji George wrote: > >

Re: Run queue corruption issue

2016-05-17 Thread Greg KH
On Tue, May 17, 2016 at 06:55:07PM -0400, Jerrin Shaji George wrote: > Hi All, > > I wanted help with a piece of code that I have been working on. > > Please see - > > https://gist.github.com/jerrinsg/333e584d1f65dc95b9f13b61dcebdaa7 > > I have written two function, migrate_to and

Re: How to locally maintain an end-of-life kernel branch?

2016-05-17 Thread Greg KH
On Tue, May 17, 2016 at 01:09:03PM -0700, Michael Harless wrote: > I'd recommend just updating to 4.1-stable, it will be easier and cheaper > for you in the long run. > > That's probably the next kernel I'll use, unless I can skip to an even later > one.  I'll still probably run into the

Re: How to locally maintain an end-of-life kernel branch?

2016-05-17 Thread Greg KH
On Tue, May 17, 2016 at 04:27:35PM -0400, valdis.kletni...@vt.edu wrote: > On Tue, 17 May 2016 13:09:03 -0700, Michael Harless said: > > > > Eeek, why? What is keeping you from moving to a newer kernel version? > > > Why is sticking with 3.14 a good idea for anyone? > > > > > > > It's mainly due

Re: How to locally maintain an end-of-life kernel branch?

2016-05-17 Thread Greg KH
On Tue, May 17, 2016 at 11:21:52AM -0700, Michael Harless wrote: > Hi,  > > Sorry if this is covered somewhere, I haven't been able to find much yet in my > searches. > > I'm working on a project using the LTS 3.14 kernel, but I'll need to be > supporting it long after official support ends on

Re: 回复:How to contact to Greg.

2016-05-13 Thread Greg KH
On Fri, May 13, 2016 at 09:08:46PM +0800, Aric wrote: > Why nerver toppost? http://daringfireball.net/2007/07/on_top ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to contact to Greg.

2016-05-13 Thread Greg KH
On Thu, May 12, 2016 at 07:14:42PM +0800, Aric wrote: > Yeah, that sounds good. Who know Greg's e-mail,or where to find him? http://lmgtfy.com/?q=greg+kh+email+address ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org h

Re: pr_debug

2016-05-10 Thread Greg KH
On Tue, May 10, 2016 at 05:21:35PM +1000, Tobin Harding wrote: > pr_debug messages do not appear in dmesg output (or via cat /proc/kmsg). I > have > set console level to 8 (cat /proc/sys/kernel/printk -> 8 1 4 8). > > Any suggestions please? Please read Documentation/dynamic-debug-howto.txt

Re: porting linux to new arm board

2016-05-05 Thread Greg KH
On Thu, May 05, 2016 at 05:13:49PM +0200, Ahmed Soliman wrote: > I want to port linux to new Ti tiva C TM4C123G > it is 80MHZ 32-bit ARM cortex M4 board with FPU > 256KB flash /32bit SRAM /2kb EEPROM That is _very_ small for getting Linux to run on the board, odds are it's impossible. You will

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