Re: Does FreeRTOS works on Linux?

2021-05-08 Thread Greg KH
On Fri, May 07, 2021 at 10:14:34PM +0530, Raul Piper wrote: > On Fri, May 7, 2021 at 12:07 PM Greg KH wrote: > > > > On Thu, May 06, 2021 at 08:12:48PM +0530, Raul Piper wrote: > > > On Thu, May 6, 2021 at 1:01 AM loďc tourlonias > > > wrote: > > > >

Re: Missing panic logs in /var/log/kern.log

2021-05-31 Thread Greg KH
On Tue, Jun 01, 2021 at 02:33:50PM +0900, manty kuma wrote: > I just triggered a panic, expecting that the logs will be visible in > `/var/log/kern.log` after reboot, but there are no logs present there. I have never heard of kernel logs being written to that location, what tool do you have that

Re: Performing pointer arithmetic on a null pointer?

2021-05-27 Thread Greg KH
On Fri, May 28, 2021 at 12:14:43AM +0900, Hyeonggon Yoo wrote: > Hello, I was compiling kernel with make CC=clang-10 W=1 -s > > there are some places that compiler complains about > pointer arithmetic like below.it says it's undefined behavior. > > is it just OK to use UBs like this (I hope it's

Re: Seeking advice on "monkey patching" a driver

2021-07-01 Thread Greg KH
On Thu, Jul 01, 2021 at 03:03:12PM -0500, Ian Pilcher wrote: > On 7/1/21 12:59 PM, Greg KH wrote: > > Oh that's horrible, please no, do not do that :) > > Indeed it is, but it works, and it meets my main objective, which is to > allow the use of distribution kernel pa

Re: Seeking advice on "monkey patching" a driver

2021-07-02 Thread Greg KH
On Fri, Jul 02, 2021 at 07:05:26AM -0500, Ian Pilcher wrote: > > > I've invested significant time in kernel patches in the past, only to > > > see them ultimately not be accepted, so I would need to know that > > > upstream was truly interested in such a feature before I would consider > > >

Re: Seeking advice on "monkey patching" a driver

2021-07-01 Thread Greg KH
On Thu, Jul 01, 2021 at 11:25:49AM -0500, Ian Pilcher wrote: > I maintain a couple of out-of-tree modules that enable "mainstream" > distributions to be used on the Thecus N5550 NAS. > > https://github.com/ipilcher/n5550/tree/master/modules > > The disk activity LEDs in this NAS are software

Re: KVM syscalls

2021-07-11 Thread Greg KH
On Sun, Jul 11, 2021 at 05:36:12PM +, Simon Connah wrote: > Hi, > > I hope this is an appropriate place to post this question. I want to make a > very simple frontend to KVM, but I have no idea what syscalls the Linux > kernel exposes to allow userspace programs to work with KVM virtual

Re: Kernel first task

2021-07-10 Thread Greg KH
On Sat, Jul 10, 2021 at 11:22:59AM +, Anton Baltser wrote: > Hello, > I'm trying to get involved into Kernel Devolopment and confused about > where I can take the first task to complete. AFAIK this is usually a > code cleanup task, but what kind of code cleanup is available to do. Look at

Re: [PATCH] MAINTAINERS: mark isapnp as obsolete

2021-04-29 Thread Greg KH
On Wed, Apr 28, 2021 at 04:35:36PM +0530, Anupama K Patil wrote: > isapnp code is very old and according to this link > https://en.wikipedia.org/wiki/Legacy_Plug_and_Play#Specifications > from Wikipedia, even Windows Vista disabled ISA PnP by default. > > This change is in follow up to >

Re: high precision timers

2021-05-02 Thread Greg KH
On Sun, May 02, 2021 at 11:10:11PM +0900, Hyeonggon Yoo wrote: > the 'timer wheel' - which has low resolution works at jiffy resolution. > so usually it has precision of 1~10ms. > > and there's high resolution timers in kernel to have nanosecond resolution, > but it doesn't seem to have

Re: USB resets

2021-04-22 Thread Greg KH
On Thu, Apr 22, 2021 at 07:32:15AM +, Jorge Fernandez Monteagudo wrote: > I've been able to stop the disconnecting loop. > > First I tried the usbcore.autosuspend=-1 guessing that an inactive period of > time will send the device to some low power state, explaining the enumerating > and

Re: can't find device_create funtion in a driver containing cdev (habanalabs)

2021-04-28 Thread Greg KH
On Wed, Apr 28, 2021 at 10:46:21PM +0900, c...@etri.re.kr wrote: > Hello list members, > > In habanalabs' goya chip driver, > (https://elixir.bootlin.com/linux/v5.4.21/source/drivers/misc/habanalabs/dev > ice.c#L1057) > > I can see cdev_init, cdev_add and class_create functions. > > Cdev_init

Re: [PATCH] MAINTAINERS: mark isapnp as obsolete

2021-04-28 Thread Greg KH
On Wed, Apr 28, 2021 at 04:35:36PM +0530, Anupama K Patil wrote: > isapnp code is very old and according to this link > https://en.wikipedia.org/wiki/Legacy_Plug_and_Play#Specifications > from Wikipedia, even Windows Vista disabled ISA PnP by default. > > This change is in follow up to >

Re: can't find device_create funtion in a driver containing cdev (habanalabs)

2021-04-29 Thread 'Greg KH'
On Thu, Apr 29, 2021 at 09:56:09AM +0900, c...@etri.re.kr wrote: > Hi, Greg KH, > > To me cdev_device_add seems to be calling only cdev_add(below). > In this case since dev->devt already holds dev_t value ("hl%d"), it just > sets cdev_set_parent and cdev_add. >

Re: deleting timer that re-registers itself

2021-05-04 Thread Greg KH
On Tue, May 04, 2021 at 12:17:56PM -0400, Valdis Klētnieks wrote: > On Tue, 04 May 2021 23:59:12 +0900, Hyeonggon Yoo said: > > Does del_timer work well for timers that re-registers itself? > > what if the timer is currently running, and del_timer is called, > > and the running timer re-registers

Re: deleting timer that re-registers itself

2021-05-04 Thread Greg KH
On Tue, May 04, 2021 at 12:35:06PM -0400, Valdis Klētnieks wrote: > On Tue, 04 May 2021 12:17:56 -0400, "Valdis KlD tnieks" said: > > > void __exit timer_exit(void) { > > exiting = 1; > > -ENOCAFFEINE > > That still needs a few memory barriers. See Documentation/memory_barriers.txt >

Re: Changelog of features / drivers removed from kernel?

2021-02-07 Thread Greg KH
On Sun, Feb 07, 2021 at 05:30:34PM -0500, Evan T Mesterhazy wrote: > Apologies if this comes off as a lazy question, but after a fair bit of > searching I've been unable to find a changelog indicating which device > drivers / features were dropped from various versions of the kernel. Does > such a

Re: Changelog of features / drivers removed from kernel?

2021-02-09 Thread Greg KH
On Tue, Feb 09, 2021 at 09:44:03AM -0500, Evan T Mesterhazy wrote: > It turns out, after building 14 different commits between v5.8 and v5.9, > that a three line change in drivers/pci/controller/pci-xgene.c breaks PCI > on this machine. If I revert this file and build the commit that changed > it,

Re: Doubt on show() function of sysfs attribute

2021-01-27 Thread Greg KH
On Tue, Jan 26, 2021 at 11:07:24PM +0530, Mohana Datta Yelugoti wrote: > Hello everyone, > > I am going through Documentation/filesystems/sysfs.rst. > > It says that sysfs allocates a buffer of size PAGE_SIZE and > passes it to the show/store functions of the attribute. On > read(), the show()

Re: Compiling kernel-3.4.xxx with gcc-9.x. Need some help.

2021-03-28 Thread Greg KH
On Sun, Mar 28, 2021 at 10:20:50PM +0200, Fawad Lateef wrote: > Hi > > I am using an Olimex A20 SOM with NAND and due to some binary blob for > NAND driver, I am stuck with the sunxi kernel 3.4.xxx version. (Repo > here: https://github.com/linux-sunxi/linux-sunxi) Please work with the vendor

Re: Compiling kernel-3.4.xxx with gcc-9.x. Need some help.

2021-03-30 Thread Greg KH
On Tue, Mar 30, 2021 at 03:23:10PM +0200, Fawad Lateef wrote: > So can I still use kernel-3.4 compiled with gcc-5.5, and boot full > user-space with gcc-9.1? Yes, of course. > I was expecting it to be possible but might not work due to > incompatibility? As I know that when I tried to compile

Re: platform device as parent of a miscdevice

2021-03-30 Thread Greg KH
On Tue, Mar 30, 2021 at 06:04:09PM +0200, Martin Kaiser wrote: > Yet again, this seems to work ok. I was surprised to see that there's > very few (if any) mainline drivers that do something similar. Does this > approach make sense? Does it have any implications that I should be > aware of (e.g.

Re: memory order seq cst for atomics

2021-04-02 Thread Greg KH
On Fri, Apr 02, 2021 at 08:15:12PM +0530, Navin P wrote: > Hi, > C11 and c++11 have memory order like memory_order_seq_cst .What is the > equivalent in Linux kernel ? > atomic64_inc() ; > __SMP_mb(); Please read Documentation/memory-barriers.txt in the kernel source tree. It should answer all

Re: Compiling kernel-3.4.xxx with gcc-9.x. Need some help.

2021-03-29 Thread Greg KH
On Mon, Mar 29, 2021 at 09:20:32PM +0200, Fawad Lateef wrote: > Hi Greg, > > > > On Mon, 29 Mar 2021 at 06:57, Greg KH wrote: > > > > On Sun, Mar 28, 2021 at 10:20:50PM +0200, Fawad Lateef wrote: > > > Hi > > > > > > I am using a

Re: platform device as parent of a miscdevice

2021-03-30 Thread Greg KH
On Tue, Mar 30, 2021 at 09:27:17PM +0200, Martin Kaiser wrote: > > What in-kernel misc drivers do not do that that you feel should? > > My misunderstanding was that quite a few drivers set the parent pointer > but hardly anyone uses the parent pointer in the file_operations. What parent pointer

Re: Missing RUST_EXAMPLE option in linux-next

2021-03-31 Thread Greg KH
On Thu, Apr 01, 2021 at 10:49:16AM +0530, Manas wrote: > Hi, I am working on a device driver in rust in linux-next as an academic > project. I used the following command to create .config: > > $ make LLVM=1 menuconfig > > But, sometimes the RUST_EXAMPLE option is not visible in menuconfig >

Re: /sys/devices/system/cpu/possible is immutable?

2021-03-18 Thread Greg KH
On Thu, Mar 18, 2021 at 11:10:18PM +0900, Junyeong Jeong wrote: > Hello everyone :) > > I hope that kernelnewbies mailing list is a suitable place for asking my > question. > > I wonder that possible-CPU-mask(/sys/devices/system/cpu/possible) can be > changed after boot in some way or other. I

Re: Device file not appearing

2021-03-17 Thread Greg KH
On Wed, Mar 17, 2021 at 09:52:32AM -0600, Gregory Anders wrote: > Hi all, > > I'm writing a char device driver and am having trouble getting the file to > appear under /dev. > > This isn't my first rodeo: in fact, I've written a few other drivers in the > past and they have all worked as

Re: Device file not appearing

2021-03-17 Thread Greg KH
On Wed, Mar 17, 2021 at 10:13:22AM -0600, Gregory Anders wrote: > On Wed, 17 Mar 2021 16:59:08 +0100, Greg KH wrote: > > Is your char device listed in /sys/dev/char/ ? > > > > If not, then you have something wrong with your call to device_create(). > > >

Re: Device file not appearing

2021-03-17 Thread Greg KH
On Wed, Mar 17, 2021 at 10:56:34AM -0600, Gregory Anders wrote: > On Wed, 17 Mar 2021 17:16:04 +0100, Greg KH wrote: > > udev does not do device node creation anymore (as of a decade or so), > > you should make sure devtmpfs is mounted at /dev/ in order for this to &g

Re: Help filing bugs from crash reports and repro files.

2021-03-21 Thread Greg KH
On Sun, Mar 21, 2021 at 09:53:19PM +0100, Greg KH wrote: > On Wed, Mar 17, 2021 at 12:36:58AM -0400, Machiry Aravind Kumar wrote: > > Hello all, > > > > We have modified the syzkaller a bit to be more effective at finding > > kernel bugs. > > Attached are the c

Re: picking the first patch

2021-03-21 Thread Greg KH
On Sun, Mar 21, 2021 at 12:03:36PM -0400, Harsha Vardhan wrote: > Any thoughts on whether I should just do a checkpatch.pl change as my first > patch ? You should do a checkpatch.pl change as your first patch :) That way you can focus on the process more than the technical aspects of the patch

Re: Help filing bugs from crash reports and repro files.

2021-03-21 Thread Greg KH
On Wed, Mar 17, 2021 at 12:36:58AM -0400, Machiry Aravind Kumar wrote: > Hello all, > > We have modified the syzkaller a bit to be more effective at finding > kernel bugs. > Attached are the crashes along with a reproducer .c file. > > Any help in figuring out the underlying bug and submitting a

Re: Fwd: Re: [GIT PULL] PCI changes for v5.12

2021-02-25 Thread Greg KH
On Fri, Feb 26, 2021 at 12:54:16PM +0800, wuzhouhui wrote: > I'm confused about what the Linus said. It seemed that the branch cannot > be rebased after merged into linux-next under normal circumstances, why? You should never rebase a public-facing branch. > Linus found this issue by check

Re: Fwd: Re: [GIT PULL] PCI changes for v5.12

2021-02-26 Thread Greg KH
On Fri, Feb 26, 2021 at 06:02:07PM +0800, wuzhouhui wrote: > On 2/26/21 3:07 PM, Greg KH wrote: > > On Fri, Feb 26, 2021 at 12:54:16PM +0800, wuzhouhui wrote: > > > I'm confused about what the Linus said. It seemed that the branch cannot > > > be rebased after merged i

Re: How to reverse engineer a PCI-Express driver under Linux ?

2021-03-03 Thread Greg KH
On Wed, Mar 03, 2021 at 09:18:18AM +, Tomek LECOCQ wrote: > Also, the long term goal of this project would be to have this driver merged > into mainline, so what is allowed or not while doing this to avoid > problematic legal ramifications ? Please do not ask programmers legal questions,

Re: HID Monitor Driver Advice

2021-04-15 Thread Greg KH
On Thu, Apr 15, 2021 at 04:35:45PM +0100, m...@bolhuis.dev wrote: > Hi all > > My name is Mark and I'm currently writing a device driver for Eizo EV > FlexScan monitors, so that I can control them over usb. This driver is built > by reverse engineering the hid reports sent by the propriety and

Re: USB resets

2021-04-20 Thread Greg KH
On Tue, Apr 20, 2021 at 07:41:14AM +, Jorge Fernandez Monteagudo wrote: > >Bad hardware, the kernel can not cause a disconnect :( > > > >Do you have a flaky cable or underpowerd hub here? > > > > How many retries before the kernel decides to send a reset to a USB device? > After a reset,

Re: USB resets

2021-04-20 Thread Greg KH
On Tue, Apr 20, 2021 at 07:17:10AM +, Jorge Fernandez Monteagudo wrote: > Hi all, > > I'm using an ancient 4.17.1 kernel and I'm seeing an weird USB behavior. A > touchscreen device is been detected and disconnected in a 4 seconds pattern. > > # dmesg | grep 1.3.2[2.170041] usb 1-1.3.2:

Re: HID Monitor Driver Advice

2021-04-16 Thread Greg KH
On Thu, Apr 15, 2021 at 08:27:58PM +0100, Mark Bolhuis wrote: > On 15/04/2021 16:44, Greg KH wrote: > > Why do you need a kernel driver at all? Why not just use the userspace > > hid access and control stuff that way from an application? > > > If you write your own driv

Re: Linux kernel BSP

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 07:24:29AM +, Pankaj Vinodrao Joshi wrote: > Ok, Exactly i was looking for any changes are there w.r.t BSP in > linux-mainline kernel and android kernel but you made me clear with > like there will be no changes in linux kernel source code including > drivers,dtsi

Re: Linux kernel BSP

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 06:54:49AM +, Pankaj Vinodrao Joshi wrote: > Hi Greg KH, > > i understood BSP (Board support packages ) contains u-boot , drivers > ,dts apart from this what are the elements of BSP i am not able to > understand. It all depends on who you got this &

Re: Linux kernel BSP

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 06:38:36AM +, Pankaj Vinodrao Joshi wrote: > Hi, > i am newbie to linux BSP and i want to get some hand on with BSP. Can someone > kindly suggest what all the components of BSP also i need to port BSP from > one arch to other what and all things i should consider to

Re: Linux kernel BSP

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 08:03:10AM +, Pankaj Vinodrao Joshi wrote: > Hi Saket, > Thanks for response. I would like to tell saket in AOSP there is no support > for my device but yes i do have complete support for linux-mainline. > > For me to work android perfectly on my device what do you

Re: grab raw data from microphone and send it to the output

2021-02-07 Thread Greg KH
On Sun, Feb 07, 2021 at 03:33:34PM +0300, Ivan Riabtsov wrote: > Hello. There is a task to receive raw data from the microphone and, > after some processing, send it to the output (headphones or speakers) > to speed up the process, I want to do this at the kernel space, please > tell me where to

Re: grab raw data from microphone and send it to the output

2021-02-07 Thread Greg KH
On Sun, Feb 07, 2021 at 04:38:08PM +0300, Ivan Riabtsov wrote: > I want to experiment with active noise cancellation, i want to receive > a wave from an input device (microphone), invert the wave and send it > to the output device (headphone or speaker). Therefore, I need a > minimum delay. Then

Re: Process after patch has been reviewed and reviewed-by: tag added

2021-08-18 Thread Greg KH
On Wed, Aug 18, 2021 at 12:25:02PM +0530, nishad kamdar wrote: > Hello, > > I submitted a patch here: > https://patchwork.kernel.org/project/linux-mmc/patch/20210812065730.3986-1-nishadkam...@gmail.com/ > > It has been reviewed and the reviewed-by: tag has been added. > But since then it has

Re: MODULE_SUPPORTED_DEVICE macro existed in the Kernel 5.9.16, but got removed

2021-08-31 Thread Greg KH
On Mon, Aug 30, 2021 at 09:59:14AM +0300, Adverg Ebashinskii wrote: > > I recently tried to compile my driver developed for the Kernel 5.9.16 using > the latest upstream version checked out from git and figured out that there > is no more MODULE_SUPPORTED_DEVICE macro. >   > Could you please

Re: how do you find the subsystem of a file?

2021-09-01 Thread Greg KH
On Sat, Aug 21, 2021 at 12:30:27AM -0700, daniel watson wrote: > i wrote a patch that got rejected because it did not apply cleanly to > the tree of greg kh > https://lkml.org/lkml/2021/8/18/304 > > the file i modified is > drivers/staging/rtl8723bs/include/rtl8192c_recv.h >

Re: surround complex macros in ()

2021-08-26 Thread Greg KH
On Wed, Aug 25, 2021 at 10:21:44PM -0700, daniel watson wrote: > let me know if this is the right place to ask. > > i recently tried to make a commit adding parentheses around a macro > value. > > https://lore.kernel.org/linux-staging/20210817043038.ga9...@challenge-bot.com/ > > it was rejected

Re: Contributing to drivers/staging area

2021-08-26 Thread Greg KH
On Fri, Aug 20, 2021 at 04:45:15PM +0200, Len Baker wrote: > Hi Greg, > > I am a kernel newbie in the path to find an area where to contribute > on. I have sent some patches before (simple ones) but I would like > to find some driver to contribute on and if possible mantain in the > future. Due

Re: Problem for testing linux-next

2021-08-16 Thread Greg KH
On Mon, Aug 16, 2021 at 10:17:51AM +, Sidong Yang wrote: > Hi, all. > > I'm trying to test linux-next. I'm using QEMU for testing. > I cloned linux-next repository and checkout to last tag next-20210812. > I compiled with simple command below. > > make menuconfig > make & make

Re: kmalloc - Crashing

2021-08-18 Thread Greg KH
On Wed, Aug 18, 2021 at 05:03:07PM +0530, Lloyd wrote: > Hi, > > I am starting to write linux kernel mode code. I am on Ubuntu 20.04. I have > written the following code > > The line DynPage[i]=0; //CRASH causes a crash. Can you please guide on > the reason for the crash? > > Thanks a lot in

Re: kmalloc - Crashing

2021-08-18 Thread Greg KH
On Wed, Aug 18, 2021 at 06:07:26PM +0530, Lloyd wrote: > On Wed, Aug 18, 2021 at 5:38 PM Greg KH wrote: > > > On Wed, Aug 18, 2021 at 05:03:07PM +0530, Lloyd wrote: > > > Hi, > > > > > > I am starting to write linux kernel mode code. I am on Ubuntu 20.04.

Re: The authorship of each patch in a series

2021-09-02 Thread Greg KH
On Thu, Sep 02, 2021 at 09:13:55AM +0200, Fabio M. De Francesco wrote: > Hi all, > > Another developer and I collaborated to design and write a series of four > patches. Of course, we will both use the "Co-developed-by" and "Signed-off- > by" tags on each of the four works that make up the

Re: Vmalloc.h implicit functions

2021-09-07 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? 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

Re: Patch Review Process?

2021-09-05 Thread Greg KH
On Sat, Sep 04, 2021 at 07:45:19PM -0500, Andrew D Adamson wrote: > I've seen lots of blogs, keynotes, and docs on the process for > submitting patches, but I can't really find a write up on how the > review process works. Is there a best practice for finding patches > pending review other than

Re: Understanding merge window and next-tree

2021-09-11 Thread Greg KH
On Fri, Sep 10, 2021 at 04:06:39PM +, Lafan Mining wrote: > I'm trying to understand how Linux Kernel development works and reading the > relevant documentation at > https://www.kernel.org/doc/html/latest/process/2.Process.html > > So there is the so called next-tree accumulating all the

Re: Vmalloc.h implicit functions

2021-09-15 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? 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

Re: Kernel upstream compile error at drivers/staging/media

2021-09-08 Thread Greg KH
On Wed, Sep 08, 2021 at 10:02:50AM +, Lafan Mining wrote: > On Wednesday, September 8th, 2021 at 12:50 PM, Greg KH wrote: > > > Please update your kernel version, this should already be fixed. > > > > What version exactly are you trying to build? > > I tried t

Re: Kernel upstream compile error at drivers/staging/media

2021-09-08 Thread Greg KH
On Wed, Sep 08, 2021 at 09:39:15AM +, Lafan Mining wrote: > Hello! > > I'm learning the Linux Kernel and currently faced troubles with building the > upstream. I git clone'd source code of master and tried to make deb-pkg. I > faced compile error: > >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-09-08 Thread Greg KH
On Wed, Sep 08, 2021 at 04:57:45PM +0530, Pintu Agarwal wrote: > Hi, > > On Mon, 6 Sept 2021 at 21:58, Pintu Agarwal wrote: > > > On Tue, 31 Aug 2021 at 18:49, Pintu Agarwal wrote: > > > > > > No, but you can backport it easily. Back at > > > >

Re: Vmalloc.h implicit functions

2021-09-07 Thread Greg KH
On Tue, Sep 07, 2021 at 02:41:57PM +0200, Omar Mustafa wrote: > Hi all, > > I’m trying to install some modules but yet I fail with those errors: > > error: too many arguments to function ‘__vmalloc’ 157 | > __vmalloc(load_driver->sys_files[i].size, > > ./include/linux/vmalloc.h:132:14:

Re: [RFC PATCH 3/8] block: Add kernel APIs to create & delete block device LED triggers

2021-07-29 Thread Greg KH
On Wed, Jul 28, 2021 at 08:53:39PM -0500, Ian Pilcher wrote: > * New file - include/linux/blk-ledtrig.h > > Signed-off-by: Ian Pilcher > --- > block/blk-ledtrig.c | 152 > include/linux/blk-ledtrig.h | 19 + > 2 files changed, 171 insertions(+)

Re: [RFC PATCH 1/8] docs: Add block device LED trigger documentation

2021-07-29 Thread Greg KH
On Wed, Jul 28, 2021 at 08:53:37PM -0500, Ian Pilcher wrote: > * Document the sysfs attributes (/sys/class/block/led_trigger_* > and /sys/class/block/${DEV}/led_trigger) that can be used to > create, list, and delete block device LED triggers and to > set and clear device/trigger

Re: [RFC PATCH 4/8] block: Add block class attributes to manage LED trigger list

2021-07-29 Thread Greg KH
On Wed, Jul 28, 2021 at 08:53:40PM -0500, Ian Pilcher wrote: > * New class attributes - /sys/class/block/led_trigger_{new,list,del} > > * Add init function - blk_ledtrig_init() - to create the attributes > in sysfs. Call blk_ledtrig_init() from genhd_device_init() (in > block/genhd.c). > >

Re: device tree and config file

2021-08-03 Thread Greg KH
On Tue, Aug 03, 2021 at 11:28:20AM +0100, Anuz Pratap Singh Tomar wrote: > Hi all, > How does device tree file pick up node entries for modules enabled by "make > menuconfig"(or just "CONFIG_XX=y "in ,config), which are not part of > defconfig. Or If you enable a new module you have to write new

Re: read() via USB bus

2021-08-09 Thread Greg KH
On Mon, Aug 09, 2021 at 10:15:29AM +0200, Oliver Neukum wrote: > > On 09.08.21 09:58, Muni Sekhar wrote: > > Hi all, > > > > PCIe memory mapped registers can be read via readb(), readw(), readl() > > kernel API's. Similarly what are the kernel API to read the device > > registers via USB bus > >

Re: A question about staging driver like pi433

2021-08-09 Thread Greg KH
On Mon, Aug 09, 2021 at 04:13:28PM +, Sidong Yang wrote: > Hi all, > > I have a question about staging driver. I'm a newbie kernel developer > and I tried contributed some patches for staging drivers. In those > staging drivers, I'm interested in pi433 and wrote some patches for it > about 2

Re: A question about staging driver like pi433

2021-08-10 Thread Greg KH
On Mon, Aug 09, 2021 at 11:27:13PM +, Sidong Yang wrote: > On Mon, Aug 09, 2021 at 08:20:03PM +0200, Greg KH wrote: > > On Mon, Aug 09, 2021 at 04:13:28PM +, Sidong Yang wrote: > > > Hi all, > > > > > > I have a question about staging driver. I'm a

Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers

2021-08-10 Thread Greg KH
On Mon, Aug 09, 2021 at 06:50:44PM -0500, Ian Pilcher wrote: > On 8/9/21 5:43 PM, Marek Behún wrote: > > I confess that I am not very familiar with internal blkdev API. > > It's mainly a matter of symbol visibility. See this thread from a few > months ago: > >

Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers

2021-08-10 Thread Greg KH
On Tue, Aug 10, 2021 at 03:38:40PM +0200, Marek Behún wrote: > On Tue, 10 Aug 2021 08:35:08 +0200 > Greg KH wrote: > > > On Mon, Aug 09, 2021 at 06:50:44PM -0500, Ian Pilcher wrote: > > > On 8/9/21 5:43 PM, Marek Behún wrote: > > > > I confess that I am no

Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers

2021-08-10 Thread Greg KH
On Tue, Aug 10, 2021 at 10:55:33AM -0500, Ian Pilcher wrote: > On 8/10/21 9:48 AM, Greg KH wrote: > > But what about when the device is removed from the system first? Be > > careful about that... > > > > Anyway, sure, try those functions, I really do not know, all

Re: LDD 3rd ed. - It was: Re: read() via USB bus

2021-08-12 Thread Greg KH
On Thu, Aug 12, 2021 at 11:45:45AM +0200, Fabio M. De Francesco wrote: > Hi Greg, > > On Monday, August 9, 2021 10:44:23 AM CEST Greg KH wrote: > > On Mon, Aug 09, 2021 at 10:15:29AM +0200, Oliver Neukum wrote: > > > On 09.08.21 09:58, Muni Sekhar wrote: > > >

Re: [RFC PATCH 1/8] docs: Add block device LED trigger documentation

2021-07-29 Thread Greg KH
On Thu, Jul 29, 2021 at 10:52:06AM -0500, Ian Pilcher wrote: > On 7/28/21 10:09 PM, Valdis Klētnieks wrote: > > > + # cat /sys/class/block/led_trigger_list > > > + baz: 0 > > > + bar: 0 > > > + foo: 0 > > > > This looks like an abuse of the "one entry one value" rule for sysfs. > > Perhaps this

Re: Embedded USB Debug(EUD) driver

2021-07-31 Thread Greg KH
On Fri, Jul 30, 2021 at 11:33:09PM +0530, Subhashini Rao Beerisetty wrote: > Hi All, > > I'm currently looking for the Embedded USB Debug (EUD) interface driver. For what specific hardware? Do you have the needed "special" cable? We have support in the kernel for some types of these cables,

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 05:17:41AM -0400, Ruben Safir wrote: > On Thu, Sep 23, 2021 at 09:13:02AM +0200, Bjørn Mork wrote: > > Ruben Safir writes: > > > > > OS's shouldn't need anything from a boot loader. > > > > Why do you need a bootloader then? > > To boot and that is it. It is a hardware

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 10:02:43PM -0400, Ruben Safir wrote: > On 9/22/21 1:04 PM, Valdis Klētnieks wrote: > > You might want to read Documentation/x86/boot.rst and think about what the > > OS > > is expecting to get passed from the boot loader, and then think about how > > you > > would deal

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 05:38:27AM -0400, Ruben Safir wrote: > > Instead the OS needs UEFI runtime services to talk to the platform > > firmware. > > What is that? The kernel is on the Metal. It is talking directly to > the hardware. No it is not. It is turtles all the way down, sorry. > >

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 05:56:43AM -0400, Ruben Safir wrote: > On Wed, Sep 22, 2021 at 06:07:49PM +0200, Greg KH wrote: > > If you don't like this, wonderful, use a system based on a different > > type of bootloader. But in the end, they end up all having to do the > &g

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 04:41:28AM -0400, Ruben Safir wrote: > On Thu, Sep 23, 2021 at 09:32:00AM +0200, Bjørn Mork wrote: > > Ruben Safir writes: > > > > > I really just want to know what efi varriables exist and why we have a > > > sys file for them > > > > The "why" question is answered

Re: efivars

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 08:24:10AM -0400, Ruben Safir wrote: > On 9/23/21 3:27 AM, FMDF wrote: > > but it still needs to use UEFI at runtime. > no if it is on a bios system If you are using the old "BIOS" interface, there are still places where that BIOS takes over control from the CPU and does

Re: List of all available kernel modules per version

2021-09-23 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? 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

Re: List of all available kernel modules per version

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 06:39:22PM +0200, Leon Gross wrote: > Hi everyone, > > If got more of a general question: Is there a way to list all the standard > kernel modules that are included in a specific kernel version? What do you mean by "standard" exactly? What architecture? What types of

Re: List of all available kernel modules per version

2021-09-23 Thread Greg KH
On Thu, Sep 23, 2021 at 07:55:45PM +0200, Leon Gross wrote: > > > A:http://en.wikipedia.org/wiki/Top_post > > Q: Were do I find info about this thing called top-posting? > > A: Because it messes up the order in which people normally read text. > > Q: Why is top-posting such a bad thing? > > A:

Re: Accessing a pdev or its members

2021-09-25 Thread Greg KH
On Fri, Sep 24, 2021 at 09:30:55PM -0500, Drew Abbott wrote: > Hello all, > > A third party driver has a probe function foo_probe(struct > platform_device) that ends up allocating and initializing a list of > various device structs: > > struct device *dev = >dev; > struct ucsi_dev *udev; > udev

Re: kernel doesn't start booting after chaning to minimum config (on qemu arm64 machine)

2021-10-13 Thread Greg KH
On Tue, Oct 12, 2021 at 11:06:53PM +0900, Chan Kim wrote: > Hello all, > > To make a minimal kernel size (with almost no driver), I copied a .config > that was used for building kernel for sparc machine using linux 3.3 several > years ago to current linux 5.4.21 version build tree. > > (That

Re: Any tracing mechanism can track the executed instructions of a user process in the kernel?

2021-10-18 Thread Greg KH
On Mon, Oct 18, 2021 at 04:41:14PM +0800, Dongliang Mu wrote: > On Mon, Oct 18, 2021 at 4:07 PM FMDF wrote: > > > > On Mon, 18 Oct 2021, 04:46 Dongliang Mu, wrote: > >> > >> Hi all, > >> > >> I am writing to kindly ask one question: is there any tracing > >> mechanism in Linux kernel that can

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 02:22:22AM -0400, Ruben Safir wrote: > What is this for? > > efivarfs on /sys/firmware/efi/efivars type efivarfs > > why would the OS need to know anything about the UEFI > boot loader once it is up and running? Because there are lots of needed system information that

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 11:58:55AM -0400, Ruben Safir wrote: > On 9/22/21 2:35 AM, Greg KH wrote: > > Because there are lots of needed system information that the OS, and > > userspace, needs to get from UEFI after the system has booted. > > OS's shouldn't need anythi

Re: efivars

2021-09-22 Thread Greg KH
On Wed, Sep 22, 2021 at 11:47:42AM -0400, Ruben Safir wrote: > On Wed, Sep 22, 2021 at 08:35:15AM +0200, Greg KH wrote: > > On Wed, Sep 22, 2021 at 02:22:22AM -0400, Ruben Safir wrote: > > > What is this for? > > > > > > efivarfs on /sys/firmware/efi/efivars

Re: PCI: latency

2021-12-04 Thread Greg KH
On Fri, Dec 03, 2021 at 10:30:58PM +0530, Subhashini Rao Beerisetty wrote: > [ Please keep me in CC as I'm not subscribed to the list] > > Hi all, > > We are using the Linux OS on an x86_64 machine. I need to measure the > PCIe latency on my system, does kernel have any latency measurement >

Re: pseudonymous or anonymous testing

2021-12-04 Thread Greg KH
On Fri, Dec 03, 2021 at 08:06:46PM +0100, Tarif H wrote: > Hi all, > > I know the official guidelines explicitly state that when submitting patches > to the kernel the contributions must be signed with a real name and e-mail > address, the reasons for this seem to be clear to me. > The guidelines

Re: When reviewers stop responding

2021-11-18 Thread Greg KH
On Thu, Nov 18, 2021 at 01:55:41PM -0600, Ian Pilcher wrote: > I am looking for advice on how to proceed when kernel patch reviewers > stop responding to patches. I've been working on a patch series for > several months - sending 3 "RFC" and 8 non-RFC versions, receiving > feedback, and

Re: correct source tree to make contributions to Linux thermal framework

2021-11-10 Thread Greg KH
On Tue, Nov 09, 2021 at 08:15:46PM +, Balakrishnan, Anand wrote: > Hello Developers, > > > At our company, we maintain an internal thermal framework patch. We are > exploring the option to up-stream this patch so we don't have to keep porting > this from one Kernel version to the other. >

Re: Kernel module that shuts down the device

2021-11-08 Thread Greg KH
On Mon, Nov 08, 2021 at 02:53:37PM -0600, Drew Abbott wrote: > > There's a whole bunch of ways to schedule work in the kernel, it doesn't > have to be > > a heartbeat function. > > > > Plenty of drivers are split into IRQ and non-IRQ parts (sometimes called > the top and > > bottom parts of the

Re: Kernel module that shuts down the device

2021-11-07 Thread Greg KH
On Sat, Nov 06, 2021 at 07:54:39PM -0500, Drew Abbott wrote: > Hi all, > > I am working on a kernel module that should shut down the device when USB > is unplugged. I make a call to kernel_power_off(), but I see that it gets > stuck trying to call blocking_notifier_call_chain(_notifier_list, >

Re: Kernel module that shuts down the device

2021-11-07 Thread Greg KH
On Sun, Nov 07, 2021 at 06:16:55PM -0600, Drew Abbott wrote: > > Where are you calling it from? Don't call it from irq context, which is > the context that USB urbs are called from. > > I am currently calling it from an irq context, in the fusb302_irq_work() > function of the in-tree fusb302.c

Re: X86 : system call

2021-12-12 Thread Greg KH
On Sun, Dec 12, 2021 at 12:34:54PM +0530, Muni Sekhar wrote: > Also, could someone please point me to a document which explains about > "how to add a new system call" and the "system call flow from user > space to kernel space" in X86 ARCHITECTURE (32-BIT AND 64-BIT). There are many documents

Re: MTD: How to get actual image size from MTD partition

2021-07-16 Thread Greg KH
On Fri, Jul 16, 2021 at 12:12:41PM +0530, Pintu Agarwal wrote: > Hi, > > Our ARM32 Linux embedded system consists of these: > * Linux Kernel: 4.14 > * Processor: Qualcomm Arm32 Cortex-A7 > * Storage: NAND 512MB > * Platform: Simple busybox > * Filesystem: UBIFS, Squashfs > * Consists of nand raw

<    6   7   8   9   10   11   12   >