[RFC PATCH 3/3] powerpc64/bpf: Add support for bpf trampolines

2022-02-06 Thread Naveen N. Rao
Add support for bpf_arch_text_poke() and arch_prepare_bpf_trampoline() for powerpc64 -mprofile-kernel. We set aside space for two stubs at the beginning of each bpf program. These stubs are used if having to branch to locations outside the range of a branch instruction. BPF Trampolines adhere to

[RFC PATCH 2/3] powerpc/ftrace: Override ftrace_location_lookup() for MPROFILE_KERNEL

2022-02-06 Thread Naveen N. Rao
With CONFIG_MPROFILE_KERNEL, ftrace location is within the first 5 instructions of a function. Override ftrace_location_lookup() to search within this range for the ftrace location. Also convert kprobe_lookup_name() to utilize this function. Signed-off-by: Naveen N. Rao ---

[RFC PATCH 1/3] ftrace: Add ftrace_location_lookup() to lookup address of ftrace location

2022-02-06 Thread Naveen N. Rao
Add a new function ftrace_location_lookup() that can be used to determine the exact ftrace location around function entry. This is useful on architectures where the ftrace location is not the very first instruction in a function. Such architectures can override this function to search for ftrace

[RFC PATCH 0/3] powerpc64/bpf: Add support for BPF Trampolines

2022-02-06 Thread Naveen N. Rao
This is an early RFC series that adds support for BPF Trampolines on powerpc64. Some of the selftests are passing for me, but this needs more testing and I've likely missed a few things as well. A review of the patches and feedback about the overall approach will be great. This series depends on

[RESEND PATCH v4] powerpc: Set crashkernel offset to mid of RMA region

2022-02-06 Thread Sourabh Jain
On large config LPARs (having 192 and more cores), Linux fails to boot due to insufficient memory in the first memblock. It is due to the memory reservation for the crash kernel which starts at 128MB offset of the first memblock. This memory reservation for the crash kernel doesn't leave enough

Re: [PATCH v2 3/3] vstatus: Display an informational message when the VSTATUS character is pressed or TIOCSTAT ioctl is called.

2022-02-06 Thread Jiri Slaby
On 06. 02. 22, 16:48, Walt Drummond wrote: When triggered by pressing the VSTATUS key or calling the TIOCSTAT ioctl, the n_tty line discipline will display a message on the user's tty that provides basic information about the system and an 'interesting' process in the current foreground process

Re: [PATCH v2 5/5] powerpc: Select ARCH_WANTS_MODULES_DATA_IN_VMALLOC on book3s/32 and 8xx

2022-02-06 Thread Michael Ellerman
Christophe Leroy writes: > Le 03/02/2022 à 06:39, Michael Ellerman a écrit : >> Luis Chamberlain writes: >>> On Thu, Jan 27, 2022 at 11:28:12AM +, Christophe Leroy wrote: book3s/32 and 8xx have a separate area for allocating modules, defined by MODULES_VADDR / MODULES_END.

[PATCH] Styleguide fix: Removed un-needed whitespaces and formatting errors in drivers/tty

2022-02-06 Thread Ankit Kumar Pandey
There were lot of styleguide errors raised by checkpatch.pl against drivers/tty/* which I have fixed. There is zero code change apart from changes related to styleguide. checkpatch.pl returns 0 error for style guide now. --- drivers/tty/amiserial.c| 285 ++---

[PATCH v2] i2c: pasemi: Drop I2C classes from platform driver variant

2022-02-06 Thread Martin Povišer
Drop I2C device-probing classes from platform variant of the PASemi controller as it is only used on platforms where I2C devices should be instantiated in devicetree. (The I2C_CLASS_DEPRECATED flag is not raised as up to this point no devices relied on the old behavior.) Fixes: d88ae2932df0

Re: [PATCH] Styleguide fix: Removed un-needed whitespaces and formatting errors in drivers/tty

2022-02-06 Thread Greg KH
On Mon, Feb 07, 2022 at 12:33:07AM +0530, Ankit Kumar Pandey wrote: > There were lot of styleguide errors raised by checkpatch.pl against > drivers/tty/* which I have fixed. There is zero code change apart from > changes related to styleguide. checkpatch.pl returns 0 error for > style guide now. >

Re: [PATCH v2 3/3] vstatus: Display an informational message when the VSTATUS character is pressed or TIOCSTAT ioctl is called.

2022-02-06 Thread Greg KH
On Sun, Feb 06, 2022 at 07:48:54AM -0800, Walt Drummond wrote: > When triggered by pressing the VSTATUS key or calling the TIOCSTAT > ioctl, the n_tty line discipline will display a message on the user's > tty that provides basic information about the system and an > 'interesting' process in the

Re: [PATCH v2 2/3] status: Add user space API definitions for VSTATUS, NOKERNINFO and TIOCSTAT

2022-02-06 Thread Greg KH
On Sun, Feb 06, 2022 at 07:48:53AM -0800, Walt Drummond wrote: > Add definitions for the VSTATUS control character, and the NOKERNINFO > local control flag in the termios struct, and add an ioctl number for > the ioctl TIOCSTAT. Also add a default VSTATUS character (Ctrl-T) > default valuses in

[PATCH v2 3/3] vstatus: Display an informational message when the VSTATUS character is pressed or TIOCSTAT ioctl is called.

2022-02-06 Thread Walt Drummond
When triggered by pressing the VSTATUS key or calling the TIOCSTAT ioctl, the n_tty line discipline will display a message on the user's tty that provides basic information about the system and an 'interesting' process in the current foreground process group, eg: load: 0.58 cmd: sleep 744474

[PATCH v2 2/3] status: Add user space API definitions for VSTATUS, NOKERNINFO and TIOCSTAT

2022-02-06 Thread Walt Drummond
Add definitions for the VSTATUS control character, and the NOKERNINFO local control flag in the termios struct, and add an ioctl number for the ioctl TIOCSTAT. Also add a default VSTATUS character (Ctrl-T) default valuses in termios.c_cc. Do this for all architectures. Signed-off-by: Walt

[PATCH v2 1/3] vstatus: Allow the n_tty line dicipline to write to a user tty

2022-02-06 Thread Walt Drummond
Refactor the implementation of n_tty_write() into do_n_tty_write(), and change n_tty_write() to call do_n_tty_write() after acquiring tty.termios_rwsem. This allows the n_tty line dicipline to write to a user tty via do_n_tty_write() when already holding tty.termios_rwsem. Signed-off-by: Walt

[PATCH v2 0/3] vstatus: TTY status message request

2022-02-06 Thread Walt Drummond
This patchset adds TTY status message request feature to the n_tty line dicipline. This feature prints a brief message containing basic system and process group information to a user's TTY in response to a new control character in the line dicipline (default Ctrl-T) or the TIOCSTAT ioctl. The

Re: [PATCH v2] i2c: pasemi: Drop I2C classes from platform driver variant

2022-02-06 Thread Hector Martin
On 04/02/2022 18.59, Martin Povišer wrote: > Drop I2C device-probing classes from platform variant of the PASemi > controller as it is only used on platforms where I2C devices should > be instantiated in devicetree. (The I2C_CLASS_DEPRECATED flag is not > raised as up to this point no devices