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: 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: 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: How to use spi device from another kernel module?

2016-12-06 Thread Greg KH
On Tue, Dec 06, 2016 at 09:12:24PM -0800, Joel Fernandes wrote: > On Tue, Dec 6, 2016 at 11:42 AM, Ran Shalit wrote: > > Hello, > > > > I have spi device which is registered using spi_register_board_info(), > > and I would like to get a pointer to this device in some other

Re: easiest way to deactivate a driver at boot time?

2016-12-15 Thread Greg KH
On Thu, Dec 15, 2016 at 04:56:18AM -0500, Robert P. J. Day wrote: > > (Q asked by a colleague, a wee bit vague on details so i'm hoping > i'm describing it correctly, seems like it should be easy to solve.) > > short form of question: what is the standard way of, at boot time, > passing the

Re: Is it illegal to have kernel virtual address == 0 ?

2017-01-15 Thread Greg KH
On Sun, Jan 15, 2017 at 12:17:40PM +0200, Ran Shalit wrote: > Hello, > > I've seen some modules where it is tested if virtual address is 0, and > if yes, it is acted as if it is an error. > But can't virtual address be zero too ? > > For example, in the following module: >

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: 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: Driver with hard RT requiremnets

2016-12-05 Thread Greg KH
On Mon, Dec 05, 2016 at 04:24:05PM +0200, Ran Shalit wrote: > Hello, > > We need to support serial driver with real time requirements (towards specific > device with RT demands): > Every 5.3msec receive 100 bytes and 1.3msec afterwards send 100 bytes. > > 1. Does kernel support real-time of such

Re: Driver with hard RT requiremnets

2016-12-05 Thread Greg KH
On Mon, Dec 05, 2016 at 04:49:28PM +0200, Ran Shalit wrote: > > > On Mon, Dec 5, 2016 at 4:35 PM, Greg KH <g...@kroah.com> wrote: > > On Mon, Dec 05, 2016 at 04:24:05PM +0200, Ran Shalit wrote: > > Hello, > > > > We need to support se

Re: Driver to allow DMA from user space

2016-12-31 Thread Greg KH
On Fri, Dec 30, 2016 at 08:11:56PM +0200, Ran Shalit wrote: > On Sun, Dec 25, 2016 at 2:37 PM, Greg KH <g...@kroah.com> wrote: > > On Sat, Dec 24, 2016 at 05:47:19PM +0200, Ran Shalit wrote: > >> > >> > >> On Tue, Dec 20, 2016 at 12:26 PM, Greg KH <g.

Re: linux-mm mailing list

2017-01-06 Thread Greg KH
On Fri, Jan 06, 2017 at 04:19:48PM +0100, Johannes Thoma wrote: > Hi Kernel hackers, > > I have a proposal for an improvement of the CMA allocator (just about 5 > lines of code to make it more robust). I would like to send it to > the linux-mm mailing list (linux...@kvack.org according to

Re: Recovery kernel

2016-12-20 Thread Greg KH
On Mon, Dec 19, 2016 at 10:21:55AM +, Subashchandar Thiagarajan (RBEI/ETW11) wrote: > Hi all, > > I am doing customization of kernel for recovery. What are the things can be > removed . Everything you do not need! :) > how to do configurations. What exactly do you mean by this? > I am

Re: Driver to allow DMA from user space

2016-12-20 Thread Greg KH
On Tue, Dec 20, 2016 at 12:15:22PM +0200, Ran Shalit wrote: > On Tue, Dec 20, 2016 at 11:38 AM, Greg KH <g...@kroah.com> wrote: > > On Mon, Dec 19, 2016 at 06:08:47PM +0200, Ran Shalit wrote: > >> Hello, > >> > >> I want to use DMA from userspac

Re: Data Type used in kernel .

2016-12-23 Thread Greg KH
On Fri, Dec 23, 2016 at 11:52:33AM +, Nicholas Mc Guire wrote: > On Fri, Dec 23, 2016 at 06:33:28AM -0500, Pasquier, Thomas wrote: > > Hello Wasim, > > > > On Fri, Dec 23, 2016 at 6:20 AM, Wasim Akram > > wrote: > > > > > Hi , > > > > > > I have seen "bool" data

Re: Data Type used in kernel .

2016-12-24 Thread Greg KH
On Sat, Dec 24, 2016 at 08:06:25AM +, Nicholas Mc Guire wrote: > On Fri, Dec 23, 2016 at 07:01:37PM +0100, Greg KH wrote: > > On Fri, Dec 23, 2016 at 11:52:33AM +, Nicholas Mc Guire wrote: > > > On Fri, Dec 23, 2016 at 06:33:28AM -0500, Pasquier, Thomas wrote: &

Re: Driver to allow DMA from user space

2016-12-25 Thread Greg KH
On Sat, Dec 24, 2016 at 05:47:19PM +0200, Ran Shalit wrote: > > > On Tue, Dec 20, 2016 at 12:26 PM, Greg KH <g...@kroah.com> wrote: > > On Tue, Dec 20, 2016 at 12:15:22PM +0200, Ran Shalit wrote: > > On Tue, Dec 20, 2016 at 11:38 AM, Greg KH <g...@kroah.com

Re: How to report bugs for release candidates?

2017-03-26 Thread Greg KH
On Sat, Mar 25, 2017 at 11:16:56AM +0100, Martin Kletzander wrote: > Hi everyone, > > I was usually using Bugzilla when I wanted to report something, but what > if, for example, I can't boot 4.11-rc3? Is bugzilla fast enough for > such type of regressions? Yes, but it's even better if you just

Re: Where do the staging driver patches go?

2017-03-31 Thread Greg KH
On Fri, Mar 31, 2017 at 08:17:23PM +0530, Aishwarya Pant wrote: > Hi > > I was wondering what is the appropriate mailing list for sending staging > driver clean-up patches and like. First patch tutorial suggests maintainers > plus mailing lists, but I don't see many staging patches on LKML. >

Re: driver dev mailing lists

2017-03-14 Thread Greg KH
On Wed, Mar 15, 2017 at 11:58:52AM +1100, Tobin C. Harding wrote: > What is the difference between these two mailing lists please? > > 1) de...@driverdev.osuosl.org > 2) de...@linuxdriverproject.org > > drivers/staging/ks7010/TODO asks for patches to be sent to > the second but

Re: Merging device drivers to LK tree

2017-03-14 Thread Greg KH
On Tue, Mar 14, 2017 at 05:14:12PM -0400, valdis.kletni...@vt.edu wrote: > On Tue, 14 Mar 2017 21:59:20 +0100, Bjørn Mork said: > > > And another one: > > > > 5.) vendor independent class drivers > > > > > > IMHO perfect for the independent developer since there will be > > documentation

Re: Rebase against linux-next tree?

2017-03-15 Thread Greg KH
On Tue, Mar 14, 2017 at 07:52:36PM -0600, Perry Hooker wrote: > I recently submitted a patch (attached below) that corrects a couple > of 'sparse' warnings in drivers/staging/rtl8192u/r8192U_dm.c. > > I got this reply back from greg k-h: > > > This patch does not apply to my tree at all :( > >

Re: generic memory addresses

2017-04-06 Thread Greg KH
On Thu, Apr 06, 2017 at 08:11:34PM +1000, Tobin C. Harding wrote: > On Thu, Apr 06, 2017 at 08:08:20AM +0200, Greg KH wrote: > > On Thu, Apr 06, 2017 at 10:31:01AM +1000, Tobin C. Harding wrote: > > > Why is there code in-tree that declares generic memory addresses as

Re: What is the fastest way to build and boot a kernel

2017-04-18 Thread Greg KH
On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: > Hi, > > Can someone suggest what is the fastest way to build a minimal kernel > and boot. For example if I am working on TCP and would like to make a > small change and reboot, what is the fastest way, I rather not build > the whole

Re: What is the fastest way to build and boot a kernel

2017-04-18 Thread Greg KH
On Tue, Apr 18, 2017 at 10:38:52AM -0700, Code Soldier1 wrote: > Hi Greg, > > No I did not know about 'make localmodconfig'. Can you kindly explain. Did you look at the help in the kernel makefile: make help will show you what the different options do. localmodconfig makes a kernel

Re: Patch Question

2017-04-19 Thread Greg KH
On Wed, Apr 19, 2017 at 09:54:33AM -0600, Perry Hooker wrote: > At this point, no one has commented on the accuracy of my analysis. > Such comments are exactly what I'm hoping for (and what I requested - > not "demanded" - in my replies). As the one responsible for actually applying this specific

Re: Struggling with git (format-patch & send-email)

2017-03-08 Thread Greg KH
On Wed, Mar 08, 2017 at 11:05:35PM +0530, Prasant J wrote: > Hi, > > I want to send my 2 commits as patches in chain reply to my first > email. My first email will have multiple files as attachment. How can > I achieve it? > > first email subject: [mystring] Feature 01 > patch 01:

Re: cannot insmod sculld in ldd3

2017-03-12 Thread Greg KH
On Sun, Mar 12, 2017 at 09:42:36PM +0330, Ali Aminian wrote: > Hello, Freeman Zhang. copying 'Module.symvers' to sculld folder solved > the problem. Thank you, man. > > Now I wonder what is the proper way to export "Module.symvers" > information to the outside so that modules that use it do not

Re: diff

2017-03-13 Thread Greg KH
On Mon, Mar 13, 2017 at 05:57:14PM +1100, Tobin C. Harding wrote: > On occasions diff output does not render the same as it does when > editing a file. For example, while removing checkpatch tab warning > the following diff was generated > > -#define KS_WLAN_SET_WPS_ENABLE

Re: Problem in First-Patch-Tutorial

2017-03-13 Thread Greg KH
On Mon, Mar 13, 2017 at 11:39:36AM +0530, SIMRAN SINGHAL wrote: > On Mon, Mar 13, 2017 at 10:42 AM, Alexander Kapshuk > wrote: > > On Mon, Mar 13, 2017 at 6:18 AM, SIMRAN SINGHAL > > wrote: > >> On Mon, Mar 13, 2017 at 12:05 AM, Alexander

Re: cannot insmod sculld in ldd3

2017-03-13 Thread Greg KH
On Mon, Mar 13, 2017 at 12:19:58PM +0800, Freeman Zhang wrote: > Hi Greg, > > > On 3/13/17 3:03 AM, Greg KH wrote: > > > > > 'depmod' handles all of this when you install a kernel and its modules. > > > > Thanks for that information, now I take

Re: return codes

2017-03-13 Thread Greg KH
On Tue, Mar 14, 2017 at 01:03:07PM +1100, Tobin C. Harding wrote: > On investigating call sites for 'return' in drivers/staging/ks7010/ > it can be seen that a number of functions us *custom* (positive) > integers to indicate error. Notwithstanding that they are positive, is > this ok for code in

Re: standard error codes

2017-03-14 Thread Greg KH
On Tue, Mar 14, 2017 at 03:33:38PM +1100, Tobin C. Harding wrote: > Driver code in staging/drivers/ks7010 uses the error code -E2BIG as > the error returned if a string argument is larger than destination > buffer. Would this not be better suited to the error code -EOVERFLOW? > Does it matter? >

Re: how to get filename of execve() system call from kernel module which install hook to syscall table to intercept original syscall in kernels before 4.2 and atter 4.2 ? X86_64

2017-03-08 Thread Greg KH
On Wed, Mar 08, 2017 at 03:20:57PM +0300, Lev Olshvang wrote: > Hi Greg, >   > Thank you for a prompt reply. My intention is to build some euristics for > Intrusion detection of embedded based on sequence of syscalls. > I am collecting syscall events and send then with netlink to my monitor. >

Re: Merging device drivers to LK tree

2017-03-13 Thread Greg KH
On Mon, Mar 13, 2017 at 11:21:24PM +0300, alexhoppus wrote: > Hello! > > I have several questions regarding how device drivers are merged into > linux-kernel. First of all, I have found some document regarding > submitting drivers to LK, but it looks like pretty out-dated, >

Re: log file created by git send-email?

2017-03-06 Thread Greg KH
On Tue, Mar 07, 2017 at 07:33:46AM +1100, Tobin C. Harding wrote: > Is there a log of emails sent using `git send-email`? Nope, that's up to your MTA (mail transfer program/agent). hope this helps, greg k-h ___ Kernelnewbies mailing list

Re: bcm2835-audio: logging mechanism

2017-03-07 Thread Greg KH
On Wed, Mar 08, 2017 at 12:52:38AM +0100, Robin Krahl wrote: > So my question is: Does it make sense to replace the audio_* and LOG_* > macros with the standard dev_* functions? Yes. > And is it okay to remove log messages like "IN" and "OUT" that are > only used to track function entries and

Re: how to get filename of execve() system call from kernel module which install hook to syscall table to intercept original syscall in kernels before 4.2 and atter 4.2 ? X86_64

2017-03-07 Thread Greg KH
On Mon, Mar 06, 2017 at 10:18:26AM +0300, Lev Olshvang wrote: > Hello all, > > In kernels 3.X up to 4.2 execve(|) system call was for x86_64 architecture > the the system call was made through some > magic ( I can't say I understand it ) assembly stub in > arch/x86/kernel/entry_64.S > so up

Re: generic memory addresses

2017-04-06 Thread Greg KH
On Thu, Apr 06, 2017 at 10:31:01AM +1000, Tobin C. Harding wrote: > Why is there code in-tree that declares generic memory addresses as > unsigned int? > > Linux Device Drivers 3rd Edition page 289 > Therefore, generic memory addresses in the kernel are usually unsigned > long, exploiting the

Re: How do I know if my patch was accepted?

2017-03-21 Thread Greg KH
On Tue, Mar 21, 2017 at 08:56:31PM +0530, Prasant J wrote: > Hi, > > I was able to send a tiny coding style error correction patch to the > kernel mailing list. > > How do I find out whether my patch was accepted or not? > > How do I find out subsystem maintainers git tree for my patch (patch >

Re: Query regarding kernel modules intercepting system call.

2017-07-08 Thread Greg KH
On Sat, Jul 08, 2017 at 09:38:52PM +0530, Ajinkya Surnis wrote: > Actually, this is not a college assignment. I'm a professional software > engineer who is completely new to kernel programming. > I recently gave an interview to one cloud security firm. The interviewer gave > me this particular

Re: Query regarding kernel modules intercepting system call.

2017-07-08 Thread Greg KH
On Sat, Jul 08, 2017 at 07:38:21PM +0530, Ajinkya Surnis wrote: > Hi guys, > > I'm new to kernelnewbies and this is my first question in the list. > > > I'm working on system call interception (for open() system call) and I got one > problem: I have two kernel modules (mod1 and mod2) and both

Re: is `mixing declarations and code' allowed?

2017-07-08 Thread Greg KH
On Sat, Jul 08, 2017 at 10:21:06PM +0800, Shiyao Ma wrote: > Hi, > > One thing I feel very un-comfortable when writing kernel module code > is the warning of `mixing declarations and code'. > > Is `mixing declarations and code' still frowned upon by kernel > developers? Yes. It is a bad idea

Re: Query regarding kernel modules intercepting system call.

2017-07-08 Thread Greg KH
On Sat, Jul 08, 2017 at 09:08:40PM +0530, Ajinkya Surnis wrote: > The purpose of assignment is to check the authenticity of the user executing > the system call, and prevent certain users from executing, kind of like > certain > security programs (although I don't exactly know how they work).

Re: Query regarding kernel modules intercepting system call.

2017-07-08 Thread Greg KH
On Sat, Jul 08, 2017 at 07:53:31PM +0530, Ajinkya Surnis wrote: > Actually, I've been given an assignment to write a kernel module such that > whenever a certain system call (e.g. open()) is executed, the control should > come to my new module; then it will do some processing on the parameters and

Re: [PATCH 390/390] staging:rtl8723bs:core:rtw_btcoex: Fixed checkpatch.pl warning on 'Comparisons should place the constant on the right side of the test'.

2017-07-17 Thread Greg KH
On Wed, Jul 05, 2017 at 02:10:17PM +0530, Shreeya Patel wrote: > Fixed a coding style issue. Why is your subject longer than your changelog text? And where are the other 389 patches in this series? And finally, why are you sending this to kernelnewbies and not the people and mailing list that

Re: [PATCH v4] staging: rtl8723bs: Place constant at the right.

2017-07-17 Thread Greg KH
On Fri, Jul 07, 2017 at 04:07:15PM +0530, Shreeya Patel wrote: > Move constant to the right of the relational operator to follow the pattern > which is more common in kernel code". Please line-wrap your changelog text at the proper column that your editor asks you to :) thnaks, greg k-h

Re: new sysctl tunable knob for tcpip

2017-07-17 Thread Greg KH
On Thu, Jul 06, 2017 at 09:23:46AM +0200, Massimo Sala wrote: > I have an idea about a new sysctl knob. It is under net.ipv4. > > q1) which is the right kernel m-list to discuss it ? net...@vger.kernel.org > 2) any suggestion how to gain the critical mass of consensus ? > > 3) at first : is it

Re: Contribute

2017-07-22 Thread Greg KH
On Sat, Jul 22, 2017 at 12:21:15PM +0200, nunojsa wrote: > On 22.07.2017 11:56, Greg KH wrote: > > On Sat, Jul 22, 2017 at 11:39:45AM +0200, nunojsa wrote: > >> Hi all, > >> > >> Im fairly new to linux kernel and would like to start with some staging > &g

Re: Contribute

2017-07-22 Thread Greg KH
On Sat, Jul 22, 2017 at 11:39:45AM +0200, nunojsa wrote: > Hi all, > > Im fairly new to linux kernel and would like to start with some staging work > (seems like the best way to start). > Basically what i would like to know is which tree should i clone for this? My > understanding is that one

Re: Kernel schedules kernel tasks on isolated cpus, SCHED_FIFO prevents kernel tasks from running

2017-06-28 Thread Greg KH
On Wed, Jun 28, 2017 at 08:39:07AM -0500, Andrei Hurynovich wrote: > Hi. > > We are trying to build realtime(-ish) system based on rhel6(kernel > 2.6.32-642.1.1.el6.x86_64). Wow, you do realize that is a _very_ old and obsolete kernel, supported by no one except Red Hat. If you stick with it,

Re: Kernel header inclusion practice

2017-07-05 Thread Greg KH
On Wed, Jul 05, 2017 at 02:50:59PM +0800, Shiyao MA wrote: > Hi, > > How do you include the kernel headers? > > For example, > Currently I have the headers: > #include > #include > #include > > And now I wanna use the `struct workqueue_struct'. It turns out I > don't have to include the

Re: Kernel header inclusion practice

2017-07-05 Thread Greg KH
On Wed, Jul 05, 2017 at 08:13:08PM +0800, Shiyao Ma wrote: > Thanks! > > > On 5 Jul 2017, at 20:07, Greg KH <g...@kroah.com> wrote: > > > >> > >> If there is any documentation about the API of the headers (e.g., what > >> they include), th

Re: english grammar and patches

2017-04-25 Thread Greg KH
On Tue, Apr 25, 2017 at 09:25:26PM -0400, valdis.kletni...@vt.edu wrote: > On Wed, 26 Apr 2017 10:27:00 +1000, "Tobin C. Harding" said: > > This question relates to English grammar and correct usage when > > writing gitlog messages and patch series cover letters. > > > > The writing of gitlog

Re: kgdb debug with ttyUSB0 instead of ttyS0

2017-04-25 Thread Greg KH
On Tue, Apr 25, 2017 at 11:11:38PM +0200, Oliver Graute wrote: > Hello list, > > i'am using a null modem cable with two usb to serial converts on both > ends between my develop and my target machine. The connection is fine. > On both machines the serial interface is /dev/ttyUSB0 for this

Re: kgdb debug with ttyUSB0 instead of ttyS0

2017-04-26 Thread Greg KH
On Wed, Apr 26, 2017 at 01:23:55PM +0200, Oliver Graute wrote: > On 26/04/17, Greg KH wrote: > > On Tue, Apr 25, 2017 at 11:11:38PM +0200, Oliver Graute wrote: > > > Hello list, > > > > > > i'am using a null modem cable with two usb to serial converts on both

Re: question on patch submission

2017-04-28 Thread Greg KH
On Fri, Apr 28, 2017 at 09:49:05PM +0900, Michael Mera wrote: > Hello, > > As part of the eudyptula challenge I submitted a coding style patch on > staging (that you can find here: https://lkml.org/lkml/2017/4/28/148) > > I had read beforehand the submission guidelines, but I still have some >

Re: Don't know where to start linux kernel programming

2017-08-22 Thread Greg KH
On Tue, Aug 22, 2017 at 12:59:31PM -0400, valdis.kletni...@vt.edu wrote: > On Tue, 22 Aug 2017 12:48:42 -0400, Cindy-Sue Causey said: > > > An observation that may just mean I haven't stumbled upon it yet is > > that it would be nice to... stumble upon... a list of kernel problems > > that

Re: Kernel version for new drivers

2017-05-01 Thread Greg KH
On Tue, May 02, 2017 at 09:05:18AM +1000, Dushara Jayasinghe wrote: > Hi all, > > Not sure if this has been covered elsewhere. I'm working on a sama5d2 > based device where the kernel supported by the hardware vendor is 4.4. > Any drivers we develop and test are based on this version of the

Re: Importance of kobject

2017-05-17 Thread Greg KH
On Wed, May 17, 2017 at 12:34:28PM +0100, Okash Khawaja wrote: > Hi, > > On Wed, May 17, 2017 at 8:08 AM, Madhu K wrote: > > Hi All, > > > > I am kernel newbie, I want to know the importance of kobject, can anybody > > explain the importance of kobject with an example. > >

Re: My network device don't work

2017-06-20 Thread Greg KH
On Tue, Jun 20, 2017 at 02:32:31PM +0200, wiktoria.lewicka wrote: > Hello. > I write simple network device, but its don't work. Module is loading, > loading, loading... > Code: > > #include > #include > #include > #include > #include > #define DEV_NAME "chwdp" > > struct net_device

Re: ks7010 cfg80211 re-write

2017-06-23 Thread Greg KH
On Thu, Jun 22, 2017 at 11:10:47AM +1000, Tobin C. Harding wrote: > May I please ask two questions relating to the correct kernel development > protocol to follow for the cfg80211 re-write. > > Current state: Functional WEXT driver in drivers/staging. > > Interim state: Partial cfg80211

Re: struct inode initialization

2017-06-24 Thread Greg KH
On Sun, Jun 25, 2017 at 12:41:47AM +0530, vish chopra wrote: > Hi, > > i'm working on character driver.Unable to find when inode structure is > create and when inode->i_cdev is assigned. > Unable to find relation between inode and cdev. What exact relation are you looking for? A character

Re: ks7010 cfg80211 re-write

2017-06-25 Thread Greg KH
On Mon, Jun 26, 2017 at 11:24:11AM +1000, Tobin C. Harding wrote: > > Every other time a wifi driver has moved out of staging, the author has > > just given up on the staging driver, and rewritten it "properly" and > > gotten that rewrite merged as one patch, into the real part of the > > kernel,

Re: Is there any way to add an attribute under sysfs at the “platform” level?

2017-06-19 Thread Greg KH
On Mon, Jun 19, 2017 at 06:09:28PM +0300, Roman Storozhenko wrote: > On Mon, Jun 19, 2017 at 08:55:22AM +0800, Greg KH wrote: > > On Sun, Jun 18, 2017 at 05:38:36PM +0300, Roman Storozhenko wrote: > > > Hello everybody! > > > > > > I am trying to modify "

Re: understanding of sysfs.

2017-05-23 Thread Greg KH
On Tue, May 23, 2017 at 11:58:31AM +0530, Madhu K wrote: > Hi All, > > why there is no character device entry present in /sys/class? where as block > and net device entries are present. I see character devices there, but not the device nodes. I don't see block device nodes there either. > Not

Re: what is the current/ongoing state of userspace access to GPIO?

2017-05-24 Thread Greg KH
On Wed, May 24, 2017 at 07:58:19AM -0400, Robert P. J. Day wrote: > in any event, is the /dev/gpiochip* interface the recommended > interface now? Yes. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Boot issues with custom 64-bit kernel v3.19

2017-05-21 Thread Greg KH
On Fri, May 05, 2017 at 04:58:27PM -0400, Aditya Basu wrote: > I am trying to compile and boot Linux Kernel v3.19 (64-bit version) using - > > make defconfig > make kvmconfig > make -j8 > > The compilation works out without any errors but it doesn't boot > inside qemu or my host machine. > I use

Re: Boot issues with custom 64-bit kernel v3.19

2017-05-22 Thread Greg KH
On Mon, May 22, 2017 at 11:29:29AM -0400, Aditya Basu wrote: > > On Fri, May 05, 2017 at 04:58:27PM -0400, Aditya Basu wrote: > > I am trying to compile and boot Linux Kernel v3.19 (64-bit version) > using > - > > > > make defconfig > > make kvmconfig > > make -j8 >

Re: understanding of sysfs.

2017-05-23 Thread Greg KH
On Tue, May 23, 2017 at 12:58:07PM +0530, Madhu K wrote: > Hi Greg, > > Thanks for your response. > > > On Tue, May 23, 2017 at 12:04 PM, Greg KH <g...@kroah.com> wrote: > > On Tue, May 23, 2017 at 11:58:31AM +0530, Madhu K wrote: > > Hi All, >

Re: understanding of sysfs.

2017-05-28 Thread Greg KH
On Mon, May 29, 2017 at 10:58:09AM +0530, Madhu K wrote: > > > On Tue, May 23, 2017 at 2:53 PM, Greg KH <g...@kroah.com> wrote: > > On Tue, May 23, 2017 at 12:58:07PM +0530, Madhu K wrote: > > Hi Greg, > > > > Thanks for your response.

Re: tx path circular buffer

2017-06-07 Thread Greg KH
On Wed, Jun 07, 2017 at 04:03:33PM +1000, Tobin C. Harding wrote: > Hi, > > I am attempting to implement a circular buffer for the tx path of a > networking driver. From my understanding this is something that is > very common, yet I am struggling to find a clear way to do it. Have you looked at

Re: Is there any way to add an attribute under sysfs at the “platform” level?

2017-06-18 Thread Greg KH
On Sun, Jun 18, 2017 at 05:38:36PM +0300, Roman Storozhenko wrote: > Hello everybody! > > I am trying to modify "pcspkr" driver undere linux kernel source tree. I > added a new line there: > > sample_id_dir = kobject_create_and_add("devices/platform/pcspkr/sample", > NULL); Ick, really? What

Re: what is the current/ongoing state of userspace access to GPIO?

2017-05-25 Thread Greg KH
On Thu, May 25, 2017 at 03:02:24PM -0400, Robert P. J. Day wrote: > > thoughts? Why not ask on the linux-gpio mailing list? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

2017-09-21 Thread Greg KH
On Wed, Sep 20, 2017 at 09:29:17PM +0200, jjDaNiMoTh wrote: > On 20/09/17 at 11:20am, 慕冬亮 wrote: > > 2017-09-20 4:18 GMT-04:00 jjDaNiMoTh : > > > Hello all, > > > > > > As the title says, any of you have successfully tried to debug Linux > > > 4.13 with QEMU? > > > I

Re: Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

2017-09-21 Thread Greg KH
On Thu, Sep 21, 2017 at 10:43:08AM +0200, jjDaNiMoTh wrote: > > > 2017-09-21 9:21 GMT+02:00 Greg KH <g...@kroah.com>: > > > Why do you think that it requires developers to use a debugger and qemu > to test their code?  I've never used a debugger on th

Re: kernel - Regarding tools/testing/ktests or selftests

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 01:15:11PM +0530, Pintu Kumar wrote: > Hi All, > > Is anybody familiar with ktests of selftests framework under: tool/testing/ ? > I have some queries. > > 1) What is the difference between ktests and selftests ? How to choose ? It depends on what you want to do, but

Re: Syscall hijacking x64- unable to handle kernel paging request at ffffffff91000018

2017-10-05 Thread Greg KH
On Thu, Oct 05, 2017 at 08:04:12PM +0200, Wiktoria Lewicka wrote: > I write kernel module which replace syscall and have a problem. > Module can't be loaded because is some problem in memory. I tried fix > it for 3 hours, but it still not work. This code is working, when I > choose memory closer

Re: architecture conditional

2017-10-16 Thread Greg KH
On Mon, Oct 16, 2017 at 09:37:17PM +1100, Tobin C. Harding wrote: > What is the correct way to write code that is conditionally compiled > depending on 32/64 bit? Not to write code that is dependent on such a thing in the first place :) > I found > > CONFIG_X86_64 > CONFIG_64BIT > > Do we

Re: Swap causing huge latency on disk IO operations

2017-09-09 Thread Greg KH
On Sun, Sep 10, 2017 at 12:06:36AM +0530, Sudharsan Vijayaraghavan wrote: > Hi All, > > We are running a pretty (rather a very old kernel) 2.6.32. Nevertheless we do > see huge latency on disk IO once system starts using swap. That's your problem, 2.6.32 is _very_ old and obsolete. No one in

Re: Swap causing huge latency on disk IO operations

2017-09-10 Thread Greg KH
On Sun, Sep 10, 2017 at 11:26:14AM +0530, Sudharsan Vijayaraghavan wrote: > Hi Greg, > > My general question is that has the community seen "swap latency issues with > disk IO" in general. Further can we assume that later kernels (like 4.4) does > not exhibit such a behavior. "later" kernels are

Re: How many max kernel timers can run concurrently?

2017-10-03 Thread Greg KH
On Tue, Oct 03, 2017 at 05:13:09PM +0530, Swapnil N wrote: > Hi All, > > I am trying to implement a timer based stats notification for running > UDP streams. Mostly a timer per UDP session will send UDP statistics > to userspace via netlink. > > I would like to know, > 1. How many max number of

Re: Reviews on linux-kernel

2017-09-26 Thread Greg KH
On Tue, Sep 26, 2017 at 09:19:15AM +0200, Christoph Böhmwalder wrote: > Hi all, > > Here's a question that the various "how to help" documents about the > linux-kernel mailing list couldn't help me answer: > > Is anyone "allowed" to review patches on the mailing list? Yes, please do so. > Is

Re: Don't know where to start linux kernel programming

2017-08-23 Thread Greg KH
On Wed, Aug 23, 2017 at 04:08:16PM -0400, Ruben Safir wrote: > On 08/22/2017 01:39 PM, Greg KH wrote: > > On Tue, Aug 22, 2017 at 12:59:31PM -0400, valdis.kletni...@vt.edu wrote: > >> On Tue, 22 Aug 2017 12:48:42 -0400, Cindy-Sue Causey said: > >> > >>> An o

Re: Don't know where to start linux kernel programming

2017-08-23 Thread Greg KH
On Wed, Aug 23, 2017 at 08:03:43PM -0400, Ruben Safir wrote: > > They can just add him or her to the TO: line and going forward they > > should be kept in the loop for that thread. > > Your not adding another list, your just adding a separate user. I > usually add it to CC. What we do not do,

Re: Re: USB keyboard can NOT wakeup from S3( suspend to RAM )

2017-08-31 Thread Greg KH
On Thu, Aug 31, 2017 at 06:38:48AM +0800, jing...@cpu-os.ac.cn wrote: > Hi, Greg > > Thanks for your time. > First of all, if I do NOT hit the keyboard during the suspend. > Then my keyboard CAN wake the system up from suspend. > This has rule out that my system does NOT support USB wakeup. Right

Re: Xilinx clock wizard driver

2017-10-09 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 Mon, Oct 09, 2017 at

Re: boot time variable

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 10:17:09AM +1100, Tobin C. Harding wrote: > Hi, > > I would like to create a boot time variable i.e a variable that is set once > at boot time. Variable > does not need to be globally accessible. (actually I am using two variables). static foo = 42; should be all you

Re: kernel - Regarding tools/testing/ktests or selftests

2017-10-11 Thread Greg KH
On Wed, Oct 11, 2017 at 08:38:52PM +0530, Pintu Kumar wrote: > Yes, I have seen many documentation and also the existing repos under > selftests. > But my requirement is little different. > I think my requirement is some what similar to futex repo. > Currently I am trying to under it. But still I

Re: SD card wont work with dw_mmc driver in linux. Error -84 EILSEQ

2017-11-28 Thread Greg KH
On Mon, Nov 27, 2017 at 06:26:04PM +0100, John Smith wrote: > CMD18 Multiblockread and CMD17 Single block read are failing during driver > initialisation sequence.. I can not figure out, what the problem is. These > CMDs > return with -84, which means: > > * EILSEQ Basic format problem

Re: Public Kernel Development

2017-12-02 Thread Greg KH
On Sat, Dec 02, 2017 at 10:28:13AM +0100, Mathieu Malaterre wrote: > Hi, > > On Sat, Dec 2, 2017 at 2:46 AM, wrote: > > On Fri, 01 Dec 2017 20:21:36 +, Chris Obbard said: > > > >> The drivers I’m releasing probably don’t belong in the kernel > > > > Again: Why

Re: submitting a patch for a stable tree

2017-12-18 Thread Greg KH
On Sun, Dec 17, 2017 at 09:23:45PM +0100, Greg KH wrote: > On Sun, Dec 17, 2017 at 08:24:36PM +0100, Martin Kaiser wrote: > > Dear all, > > > > I tried to submit a patch for 4.14 that was already accepted upstream > > and is in linux-next and the 4.15-rcs. > >

Re: Unable to compile linux-kernel pulled from nf-next tree

2017-12-19 Thread Greg KH
On Tue, Dec 19, 2017 at 06:33:51PM +0530, Harsha Sharma wrote: > Hello, > I'm working on a task in netfilter and trying to compile linux-kernel > pulled from nf-next tree. > https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git > but fail with these errors. > make-- > Kernel:

Re: why this field is taskstats. ac_sched is specifically aligned as 8?

2017-12-15 Thread Greg KH
On Fri, Dec 15, 2017 at 08:16:45PM +0800, Shiyao MA wrote: > Hi, > > http://elixir.free-electrons.com/linux/latest/source/include/uapi/linux/taskstats.h#L107 > > Why the field is taskstats. ac_sched aligned as 8 ? Think about the field layout in memory if that variable was _not_ aligned as 8.

Re: hrtimer_interrupt time sync issues across cores

2017-12-13 Thread Greg KH
On Wed, Dec 13, 2017 at 11:01:57PM -0800, Rajasekaran Chandrasekaran wrote: > Hi, > > > In our multi-core x86 based system that is running 3.4.19 version of > kernel, hrtimer_interrupt (called from apic_timer_interrupt) keeps looping > in hardirq for atleast 1.6 seconds. We use tsc as our clock

Re: submitting a patch for a stable tree

2017-12-17 Thread Greg KH
On Sun, Dec 17, 2017 at 08:24:36PM +0100, Martin Kaiser wrote: > Dear all, > > I tried to submit a patch for 4.14 that was already accepted upstream > and is in linux-next and the 4.15-rcs. > > To understand how this should be done, I looked at >

Re: My first patch - patch for adl_pci9118.c

2017-11-18 Thread Greg KH
On Sat, Nov 18, 2017 at 01:07:30PM +0100, Fabian Baumanis wrote: > Hi there, > > this morning i created my first patch for the Linux kernel. > It fixes a style issue which was reported by using checkpatch.pl on > drivers/staging/comedi/drivers/adl_pci9118.c > > Although it's a very small patch,

Re: Invoking a system call from within the kernel

2017-11-19 Thread Greg KH
On Sat, Nov 18, 2017 at 02:09:31PM -0500, Demi Marie Obenour wrote: > Async system calls move the thread pool to the kernel. The kernel has > system-wide information and perform optimizations regarding e.g. > scheduling and threadpool size that userspace cannot. Furthermore, > the kernel

Re: Invoking a system call from within the kernel

2017-11-16 Thread Greg KH
On Wed, Nov 15, 2017 at 09:16:35PM -0500, Demi Marie Obenour wrote: > I am looking to write my first driver. This driver will create a single > character device, which can be opened by any user. The device will > support one ioctl: > > long ioctl_syscall(int fd, long syscall, long

Re: How to tell if a field in c struct is initialized?

2017-12-08 Thread Greg KH
On Fri, Dec 08, 2017 at 08:47:42PM +0800, Shiyao MA wrote: > Hi, > > I come across this code: > http://elixir.free-electrons.com/linux/latest/source/drivers/scsi/scsi_netlink.c#L128 > > other fields such as .cbmutex, .bind, etc are not initialized. > > Since the object =cfg= is of automatic

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