Re: [PATCH] net: appletalk: remove cops support

2023-09-27 Thread Prarit Bhargava
the license issue, if it is still needed and actually used by anyone, we can add it back later once the license is cleared up. Looks good: Acked-by: Christoph Hellwig Ditto. Acked-by: Prarit Bhargava P.

Re: SPDX: Appletalk FW license in the kernel

2023-09-26 Thread Prarit Bhargava
On 9/26/23 04:02, Greg KH wrote: On Tue, Sep 26, 2023 at 12:34:03AM -0700, Christoph Hellwig wrote: On Fri, Sep 15, 2023 at 09:39:05AM -0400, Prarit Bhargava wrote: To be clear, I am not asking for their removal, however, I do think a better license should be issued for these files. The files

Re: [PATCH] x86/apic/vector: Fix ordering in vector assignment

2020-12-11 Thread Prarit Bhargava
affinity is broken. > > If no node is assigned then only the full affinity mask and if that fails > the full online mask is tried. > > Fixes: d6ffc6ac83b1 ("x86/vector: Respect affinity mask in irq descriptor") > Reported-by: Shung-Hsi Yu > Reported-by: Prarit B

Re: "irq 4: Affinity broken due to vector space exhaustion." warning on restart of ttyS0 console

2020-11-11 Thread Prarit Bhargava
On 11/10/20 3:56 PM, Thomas Gleixner wrote: > Prarit, > > On Tue, Nov 10 2020 at 14:24, Prarit Bhargava wrote: >> Occasionally when logging out of the ttyS0 aka serial console I see that >> >> irq 4: Affinity broken due to vector space exhaustion. >> >

"irq 4: Affinity broken due to vector space exhaustion." warning on restart of ttyS0 console

2020-11-10 Thread Prarit Bhargava
Occasionally when logging out of the ttyS0 aka serial console I see that irq 4: Affinity broken due to vector space exhaustion. is output to the console. At boot the default smp_affinity is /proc/irq/4/smp_affinity:00ff,,00ff The irqbalance service runs and can change

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Prarit Bhargava
On 9/1/20 4:17 PM, Lucas De Marchi wrote: > On Tue, Sep 1, 2020 at 12:56 PM Prarit Bhargava wrote: >> >> >> >> On 9/1/20 2:50 PM, Lucas De Marchi wrote: >>> On Sat, Aug 29, 2020 at 4:15 AM Qu Wenruo wrote: >>>> >>>>

Re: [PATCH] module: Add more error message for failed kernel module loading

2020-09-01 Thread Prarit Bhargava
On 9/1/20 2:50 PM, Lucas De Marchi wrote: > On Sat, Aug 29, 2020 at 4:15 AM Qu Wenruo wrote: >> >> When kernel module loading failed, user space only get one of the >> following error messages: >> - -ENOEXEC >> This is the most confusing one. From corrupted ELF header to bad >> WRITE|EXEC

Re: [RFC PATCH] printk: Change timestamp to triplet as mono, boot and real

2020-08-11 Thread Prarit Bhargava
On 8/11/20 9:02 AM, Petr Mladek wrote: > On Tue 2020-08-11 14:05:12, Thomas Gleixner wrote: >> Petr Mladek writes: >>> At least "crash" tool would need an update anyway. AFAIK, it checks >>> the size of struct printk_log and refuses to read it when it changes. >>> >>> It means that the hack

Re: [PATCH V13] printk: Add monotonic, boottime, and realtime timestamps

2020-08-05 Thread Prarit Bhargava
On 8/5/20 10:04 AM, Petr Mladek wrote: > On Wed 2020-07-29 08:22:36, Prarit Bhargava wrote: >> Chunyan Zhang wrote: >>> From: Prarit Bhargava >>> >>> printk.time=1/CONFIG_PRINTK_TIME=1 adds a unmodified local hardware clock >>> timestamp to pri

Re: [PATCH V13] printk: Add monotonic, boottime, and realtime timestamps

2020-07-29 Thread Prarit Bhargava
Chunyan Zhang wrote: > From: Prarit Bhargava > > printk.time=1/CONFIG_PRINTK_TIME=1 adds a unmodified local hardware clock > timestamp to printk messages. The local hardware clock loses time each > day making it difficult to determine exactly when an issue has occurred in &

Re: [PATCH v5] x86/split_lock: Sanitize userspace and guest error output

2020-06-30 Thread Prarit Bhargava
Just re-pinging on this. P. On 6/16/20 7:32 AM, Prarit Bhargava wrote: > There are two problems with kernel messages in fatal mode that were found > during testing of guests and userspace programs. > > The first is that no kernel message is output when the split lock detector &g

[PATCH] turbostat: Use sched_getcpu() instead of hardcoded cpu 0

2020-06-29 Thread Prarit Bhargava
Disabling cpu 0 results in an error turbostat: /sys/devices/system/cpu/cpu0/topology/thread_siblings: open failed: No such file or directory Use sched_getcpu() instead of a hardcoded cpu 0 to get the max cpu number. Signed-off-by: Prarit Bhargava Cc: Len Brown Cc: linux...@vger.kernel.org Cc

[PATCH v5] x86/split_lock: Sanitize userspace and guest error output

2020-06-16 Thread Prarit Bhargava
noticed that the same message was being output three times so I'm cleaning that up too. Fix fatal mode output, and use consistent messages for fatal and warn modes for both userspace and guests. Co-developed-by: Sean Christopherson Signed-off-by: Sean Christopherson Signed-off-by: Prarit Bhargava Cc

Re: [PATCH v4] x86/split_lock: Sanitize userspace and guest error output

2020-06-16 Thread Prarit Bhargava
This was sent in error. Sorry, P. On 6/16/20 7:27 AM, Prarit Bhargava wrote: > There are two problems with kernel messages in fatal mode that were found > during testing of guests and userspace programs. > > The first is that no kernel message is output when the split l

[PATCH v4] x86/split_lock: Sanitize userspace and guest error output

2020-06-16 Thread Prarit Bhargava
There are two problems with kernel messages in fatal mode that were found during testing of guests and userspace programs. The first is that no kernel message is output when the split lock detector is triggered with a userspace program. As a result the userspace process dies from receiving

[PATCH v3] x86/split_lock: Sanitize userspace and guest error output

2020-06-15 Thread Prarit Bhargava
noticed that the same message was being output three times so I'm cleaning that up too. Fix fatal mode output, and use consistent messages for fatal and warn modes for both userspace and guests. Signed-off-by: Prarit Bhargava Signed-off-by: Sean Christopherson Cc: Thomas Gleixner Cc: Ingo Molnar Cc

Re: [PATCH v2] x86/split_lock: Sanitize userspace and guest error output

2020-06-11 Thread Prarit Bhargava
On 6/8/20 1:15 PM, Sean Christopherson wrote: > On Mon, Jun 08, 2020 at 08:21:14AM -0400, Prarit Bhargava wrote: >> diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c >> index 166d7c355896..e02ec81fe1eb 100644 >> --- a/arch/x86/kernel/cpu/intel.c >>

Re: [PATCH v2] x86/split_lock: Sanitize userspace and guest error output

2020-06-11 Thread Prarit Bhargava
On 6/8/20 1:15 PM, Sean Christopherson wrote: > On Mon, Jun 08, 2020 at 08:21:14AM -0400, Prarit Bhargava wrote: >> diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c >> index 166d7c355896..e02ec81fe1eb 100644 >> --- a/arch/x86/kernel/cpu/intel.c >>

[PATCH v2] x86/split_lock: Sanitize userspace and guest error output

2020-06-08 Thread Prarit Bhargava
noticed that the same message was being output three times so I'm cleaning that up too. Fix fatal mode output, and use consistent messages for fatal and warn modes for both userspace and guests. Signed-off-by: Prarit Bhargava Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x

Re: [PATCH] x86/split_lock: Sanitize userspace and guest error output

2020-06-05 Thread Prarit Bhargava
On 6/5/20 11:29 AM, Xiaoyao Li wrote: > On 6/5/2020 7:44 PM, Prarit Bhargava wrote: >> There are two problems with kernel messages in fatal mode that >> were found during testing of guests and userspace programs. >> >> The first is that no kernel message is output w

[PATCH] x86/split_lock: Sanitize userspace and guest error output

2020-06-05 Thread Prarit Bhargava
noticed that the same message was being output three times so I'm cleaning that up too. Fix fatal mode output, and use consistent messages for fatal and warn modes for both userspace and guests. Signed-off-by: Prarit Bhargava Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x

Re: [PATCH v2 0/3] printk: replace ringbuffer

2020-05-13 Thread Prarit Bhargava
On 5/1/20 5:40 AM, John Ogness wrote: > Hello, > > Here is a v2 for the first series to rework the printk subsystem. The > v1 and history are here [0]. This first series only replaces the > existing ringbuffer implementation. No locking is removed. No > semantics/behavior of printk are

[PATCH] intel-speed-select: Fix json perf-profile output output

2020-05-11 Thread Prarit Bhargava
Package strings for json") prettied this output so that it is a single line for some json output commands and the same should be done for other commands. Output package, die, and cpu info in a single line when using json output. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada

Re: [PATCH v3 0/6] Add CascadeLake-N Support

2019-10-14 Thread Prarit Bhargava
/disable > One of the patch for config only change folded to next one where it is > used. > > The patch 1 has nothing to do with the CLX-N. It saves some bytes in the > size. > Reviewed-by: Prarit Bhargava P.

Re: [PATCH v2 3/7] intel-speed-select: Add check for CascadeLake-N models

2019-10-04 Thread Prarit Bhargava
On 10/4/19 1:15 PM, Srinivas Pandruvada wrote: > On Thu, 2019-10-03 at 08:11 -0400, Prarit Bhargava wrote: >> Three CascadeLake-N models (6252N, 6230N, and 5218N) have SST-PBF >> support. >> >> Return an error if the CascadeLake processor is not one of

[PATCH v2 6/7] intel-speed-select: Implement 'perf-profile info' on CascadeLake-N

2019-10-03 Thread Prarit Bhargava
Add functionality for perf-profile info on CascadeLake-N. Signed-off-by: Prarit Bhargava --- .../x86/intel-speed-select/isst-config.c | 20 +++ .../x86/intel-speed-select/isst-display.c | 12 +++ tools/power/x86/intel-speed-select/isst.h | 1 + 3 files

[PATCH v2 7/7] intel-speed-select: Implement base-freq commands on CascadeLake-N

2019-10-03 Thread Prarit Bhargava
Add functionality for base-freq info|enable|disable info on CascadeLake-N. The enable command always returns success, and the disable command always returns failed because SST-BF cannot be enabled or disabled from the OS on CascadeLake-N. Signed-off-by: Prarit Bhargava --- .../x86/intel-speed

[PATCH v2 3/7] intel-speed-select: Add check for CascadeLake-N models

2019-10-03 Thread Prarit Bhargava
Three CascadeLake-N models (6252N, 6230N, and 5218N) have SST-PBF support. Return an error if the CascadeLake processor is not one of these specific models. v2: Add is_clx_n_platform() Signed-off-by: Prarit Bhargava --- .../x86/intel-speed-select/isst-config.c | 44 ++- 1

[PATCH v2 0/7] Add CascadeLake-N Support

2019-10-03 Thread Prarit Bhargava
Bhargava Prarit Bhargava (7): intel-speed-select: Add int argument to command functions intel-speed-select: Make process_command generic intel-speed-select: Add check for CascadeLake-N models intel-speed-select: Add configuration for CascadeLake-N intel-speed-select: Implement

[PATCH v2 1/7] intel-speed-select: Add int argument to command functions

2019-10-03 Thread Prarit Bhargava
functions. Add int argument to the command function structure. Signed-off-by: Prarit Bhargava --- .../x86/intel-speed-select/isst-config.c | 216 +++--- 1 file changed, 88 insertions(+), 128 deletions(-) diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools

[PATCH v2 4/7] intel-speed-select: Add configuration for CascadeLake-N

2019-10-03 Thread Prarit Bhargava
Create a 'dummy' pkg_dev struct for use by CascadeLake-N processors. This struct will be used in later patches to implement info and status calls for CascadeLake-N SST-BF. Signed-off-by: Prarit Bhargava --- .../x86/intel-speed-select/isst-config.c | 98 ++- .../x86/intel

[PATCH v2 5/7] intel-speed-select: Implement CascadeLake-N help and command functions structures

2019-10-03 Thread Prarit Bhargava
-by: Prarit Bhargava --- .../x86/intel-speed-select/isst-config.c | 37 ++- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c index 164c4e5e6ccb..3ab0edade5ec 100644

[PATCH v2 2/7] intel-speed-select: Make process_command generic

2019-10-03 Thread Prarit Bhargava
Make the process_command take any help command and command list. This will make it easier to help commands and a command list for CascadeLake-N. Signed-off-by: Prarit Bhargava --- .../x86/intel-speed-select/isst-config.c | 20 ++- 1 file changed, 11 insertions(+), 9

Re: [PATCH 1/7] intel-speed-select: Add int argument to command functions

2019-09-30 Thread Prarit Bhargava
On 9/26/19 4:21 PM, Srinivas Pandruvada wrote: > On Thu, 2019-09-26 at 08:54 -0400, Prarit Bhargava wrote: >> The current code structure has similar but separate command functions >> for >> the enable and disable operations. This can be improved by adding an >> int

[PATCH 0/7] intel-speed-select: Add CascadeLake-N support

2019-09-26 Thread Prarit Bhargava
Add support for SST-BF on CascadeLake-N support. The CascadeLake-N processor only support SST-BF and not other SST functionality. Prarit Bhargava (7): intel-speed-select: Add int argument to command functions intel-speed-select: Make process_command generic intel-speed-select: Add check

[PATCH 2/7] intel-speed-select: Make process_command generic

2019-09-26 Thread Prarit Bhargava
Make the process_command take any help command and command list. This will make it easier to help commands and a command list for CascadeLake-N. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 20 ++- 1 file changed

[PATCH 5/7] intel-speed-select: Implement CascadeLake-N help and command functions structures

2019-09-26 Thread Prarit Bhargava
-by: Prarit Bhargava Cc: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 37 ++- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c index

[PATCH 1/7] intel-speed-select: Add int argument to command functions

2019-09-26 Thread Prarit Bhargava
functions. Add int argument to the command function structure. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 184 +++--- 1 file changed, 69 insertions(+), 115 deletions(-) diff --git a/tools/power/x86/intel-speed-select

[PATCH 4/7] intel-speed-select: Add configuration for CascadeLake-N

2019-09-26 Thread Prarit Bhargava
Create a 'dummy' pkg_dev struct for use by CascadeLake-N processors. This struct will be used in later patches to implement info and status calls for CascadeLake-N SST-BF. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 98

[PATCH 3/7] intel-speed-select: Add check for CascadeLake-N models

2019-09-26 Thread Prarit Bhargava
Three CascadeLake-N models (6252N, 6230N, and 5218N) have SST-PBF support. Return an error if the CascadeLake processor is not one of these specific models. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 32 +-- 1

[PATCH 6/7] intel-speed-select: Implement 'perf-profile info' on CascadeLake-N

2019-09-26 Thread Prarit Bhargava
Add functionality for perf-profile info on CascadeLake-N. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada --- .../x86/intel-speed-select/isst-config.c | 24 +++ .../x86/intel-speed-select/isst-display.c | 22 + tools/power/x86/intel-speed-select

[PATCH 7/7] intel-speed-select: Implement base-freq commands on CascadeLake-N

2019-09-26 Thread Prarit Bhargava
Add functionality for base-freq info|enable|disable info on CascadeLake-N. The enable command always returns success, and the disable command always returns failed because SST-BF cannot be enabled or disabled from the OS on CascadeLake-N. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada

[PATCH 1/2] intel-speed-select: Display turbo-ratio-limits as a table

2019-09-23 Thread Prarit Bhargava
The output of the Turbo Ratio Limits is 75 lines long (each bucket has 3 lines and the headers). This can be shrunk down into a table that is easier to consume for both scripts and humans. Display Turbo Ratio Limits in a table. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada

[PATCH 0/2] intel-speed-select: Convert output to tables

2019-09-23 Thread Prarit Bhargava
The turbo ratio limits and turbo frequencies add a large amount of lines to the output. The output can be truncated into human and machine readable tables to reduce the number of lines of output. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Prarit Bhargava (2): intel-speed-select

[PATCH 2/2] intel-speed-select: Display turbo frequencies in a table

2019-09-23 Thread Prarit Bhargava
The output of turbo frequencies is also long (each bucket has 3 lines and the headers). This can be shrunk down into a table that is easier to consume for both scripts and humans. Display the turbo and clip frequencies in a table. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada

Re: [PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-08 Thread Prarit Bhargava
On 9/7/19 2:18 PM, Andy Shevchenko wrote: > On Fri, Sep 6, 2019 at 10:47 PM Srinivas Pandruvada > wrote: >> >> On Fri, 2019-09-06 at 07:50 -0700, Srinivas Pandruvada wrote: >>> On Fri, 2019-09-06 at 16:46 +0300, Andy Shevchenko wrote: >>>> On Fri, S

Re: [PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-06 Thread Prarit Bhargava
On 9/5/19 7:37 PM, Srinivas Pandruvada wrote: > Read the bucket and core count relationship via MSR and display > when displaying turbo ratio limits. > > Signed-off-by: Srinivas Pandruvada > --- > .../power/x86/intel-speed-select/isst-core.c | 22 +++ >

Re: [PATCH v2 9/9] tools/power/x86/intel-speed-select: Fix memory leak

2019-09-05 Thread Prarit Bhargava
On 9/5/19 3:42 PM, Srinivas Pandruvada wrote: > On Thu, 2019-09-05 at 08:03 -0400, Prarit Bhargava wrote: >> cpumasks are allocated by calling the alloc_cpu_mask() function and >> are >> never free'd. They should be free'd after the commands have run. >> >>

Re: [PATCH v2 9/9] tools/power/x86/intel-speed-select: Fix memory leak

2019-09-05 Thread Prarit Bhargava
On 9/5/19 3:42 PM, Srinivas Pandruvada wrote: > On Thu, 2019-09-05 at 08:03 -0400, Prarit Bhargava wrote: >> cpumasks are allocated by calling the alloc_cpu_mask() function and >> are >> never free'd. They should be free'd after the commands have run. >> >>

[PATCH v2 9/9] tools/power/x86/intel-speed-select: Fix memory leak

2019-09-05 Thread Prarit Bhargava
cpumasks are allocated by calling the alloc_cpu_mask() function and are never free'd. They should be free'd after the commands have run. Fix the memory leaks by calling free_cpu_set(). Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org

[PATCH v2 6/9] tools/power/x86/intel-speed-select: Change turbo ratio output to maximum turbo frequency

2019-09-05 Thread Prarit Bhargava
The intel-speed-select tool currently outputs the turbo ratio for every bucket. Make the output more user-friendly by changing the output to the maximum turbo frequency. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel

[PATCH v2 4/9] tools/power/x86/intel-speed-select: Simplify output for turbo-freq and base-freq

2019-09-05 Thread Prarit Bhargava
status of disabled, enabled, and unsupported. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel-speed-select/isst-display.c | 30 ++- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tools

[PATCH v2 3/9] tools/power/x86/intel-speed-select: Fix cpu-count output

2019-09-05 Thread Prarit Bhargava
I have a system with 28 threads/socket but intel-speed-select reports a cpu-count of 29. Fix an off-by-one error in the cpu_count() function. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst

[PATCH v2 5/9] tools/power/x86/intel-speed-select: Switch output to MHz

2019-09-05 Thread Prarit Bhargava
These features are introduced on new processors that will never operate in the KHz range. Save some zeros and switch the output to MHz. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel-speed-select/isst-display.c

[PATCH v2 2/9] tools/power/x86/intel-speed-select: Fix help option typo

2019-09-05 Thread Prarit Bhargava
Help is -h, not --h. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/intel-speed-select/isst

[PATCH v2 0/9] tools-power-x86-intel-speed-select: Fixes and updates for output

2019-09-05 Thread Prarit Bhargava
. - avoiding reporting "0|1" as success|fail as these can be confusing for a user. v2: Add additional patch to fix memory leak and remove help text in 8/9. Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org Prarit Bhargava (9): tools/power/x86/intel-speed-select: F

[PATCH v2 8/9] tools/power/x86/intel-speed-select: Output success/failed for command output

2019-09-05 Thread Prarit Bhargava
he command output to 'success' or 'failed'. v2: Remove help output line. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-config.c | 1 - tools/power/x86/intel-speed-select/isst-display.c | 5

[PATCH v2 7/9] tools/power/x86/intel-speed-select: Output human readable CPU list

2019-09-05 Thread Prarit Bhargava
The intel-speed-select tool currently only outputs a hexidecimal CPU mask, which requires translation for use with kernel parameters such as isolcpus. Along with the CPU mask, output a human readable CPU list. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux

[PATCH v2 1/9] tools/power/x86/intel-speed-select: Fix package typo

2019-09-05 Thread Prarit Bhargava
packag_ should be package_. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-display.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/power/x86/intel-speed

Re: [PATCH 0/8] tools-power-x86-intel-speed-select: Fixes and updates for output

2019-09-04 Thread Prarit Bhargava
On 9/4/19 4:06 PM, Srinivas Pandruvada wrote: > On Tue, 2019-09-03 at 11:37 -0400, Prarit Bhargava wrote: >> Some general fixes and updates for intel-speed-select. Fixes include >> some >> typos as well as an off-by-one cpu count reporting error. Updates

[PATCH 3/8] tools/power/x86/intel-speed-select: Fix cpu-count output

2019-09-03 Thread Prarit Bhargava
I have a system with 28 threads/socket but intel-speed-select reports a cpu-count of 29. Fix an off-by-one error in the cpu_count() function. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst

[PATCH 1/8] tools/power/x86/intel-speed-select: Fix package typo

2019-09-03 Thread Prarit Bhargava
packag_ should be package_. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-display.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/power/x86/intel-speed

[PATCH 6/8] tools/power/x86/intel-speed-select: Change turbo ratio output to maximum turbo frequency

2019-09-03 Thread Prarit Bhargava
The intel-speed-select tool currently outputs the turbo ratio for every bucket. Make the output more user-friendly by changing the output to the maximum turbo frequency. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel

[PATCH 4/8] tools/power/x86/intel-speed-select: Simplify output for turbo-freq and base-freq

2019-09-03 Thread Prarit Bhargava
status of disabled, enabled, and unsupported. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel-speed-select/isst-display.c | 30 ++- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tools

[PATCH 5/8] tools/power/x86/intel-speed-select: Switch output to MHz

2019-09-03 Thread Prarit Bhargava
These features are introduced on new processors that will never operate in the KHz range. Save some zeros and switch the output to MHz. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- .../x86/intel-speed-select/isst-display.c

[PATCH 8/8] tools/power/x86/intel-speed-select: Output success/failed for command output

2019-09-03 Thread Prarit Bhargava
he command output to 'success' or 'failed'. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-display.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/power/x86/i

[PATCH 7/8] tools/power/x86/intel-speed-select: Output human readable CPU list

2019-09-03 Thread Prarit Bhargava
The intel-speed-select tool currently only outputs a hexidecimal CPU mask, which requires translation for use with kernel parameters such as isolcpus. Along with the CPU mask, output a human readable CPU list. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux

[PATCH 2/8] tools/power/x86/intel-speed-select: Fix help option typo

2019-09-03 Thread Prarit Bhargava
Help is -h, not --h. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org --- tools/power/x86/intel-speed-select/isst-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/intel-speed-select/isst

[PATCH 0/8] tools-power-x86-intel-speed-select: Fixes and updates for output

2019-09-03 Thread Prarit Bhargava
. - avoiding reporting "0|1" as success|fail as these can be confusing for a user. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Cc: David Arcari Cc: linux-kernel@vger.kernel.org Prarit Bhargava (8): tools/power/x86/intel-speed-select: Fix package typo tools/power/x86/intel-sp

Re: [PATCH AUTOSEL 5.2 13/85] kernel/module.c: Only return -EEXIST for modules that have finished loading

2019-07-26 Thread Prarit Bhargava
On 7/26/19 9:38 AM, Sasha Levin wrote: > From: Prarit Bhargava > > [ Upstream commit 6e6de3dee51a439f76eb73c22ae2ffd2c9384712 ] > > Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and > linux guests boot with repeated errors: > Hey Sasha, I'd pre

Re: [GIT PULL] Modules updates for v5.3

2019-07-19 Thread Prarit Bhargava
On 7/18/19 3:20 PM, Linus Torvalds wrote: > On Thu, Jul 18, 2019 at 4:33 AM Jessica Yu wrote: >> >> Modules updates for v5.3 >> >> - Fix bug where -EEXIST was being returned for going modules > > Hmm. > > I have pulled this, but this change makes me a bit nervous. > > I have this dim memory

[tip:x86/urgent] x86/resctrl: Prevent NULL pointer dereference when local MBM is disabled

2019-06-12 Thread tip-bot for Prarit Bhargava
Commit-ID: c7563e62a6d720aa3b068e26ddffab5f0df29263 Gitweb: https://git.kernel.org/tip/c7563e62a6d720aa3b068e26ddffab5f0df29263 Author: Prarit Bhargava AuthorDate: Mon, 10 Jun 2019 13:15:44 -0400 Committer: Thomas Gleixner CommitDate: Wed, 12 Jun 2019 10:31:50 +0200 x86/resctrl

[PATCH] x86/resctrl: Fix panic on systems that do not enable local MBM

2019-06-10 Thread Prarit Bhargava
bandwith update loop if the system has local MBM enabled. Signed-off-by: Prarit Bhargava Cc: Fenghua Yu Cc: Reinette Chatre Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: x...@kernel.org --- arch/x86/kernel/cpu/resctrl/monitor.c | 3 +++ 1 file change

[PATCH v3] kernel/module.c: Only return -EEXIST for modules that have finished loading

2019-05-29 Thread Prarit Bhargava
attempts to load amd64_edac_mod, which fails because of unknown symbols from edac_mce_amd. add_unformed_module() must wait to return for any case other than MODULE_STATE_LIVE to prevent a race between multiple loads of dependent modules. Signed-off-by: Prarit Bhargava Signed-off-by: Barret Rhoden Cc

Re: [PATCH] modules: fix livelock in add_unformed_module()

2019-05-28 Thread Prarit Bhargava
On 5/22/19 1:08 PM, Prarit Bhargava wrote: > > > On 5/13/19 10:37 AM, Barret Rhoden wrote: >> Hi - >> > > Hey Barret, my apologies for not getting back to you earlier. I got caught up > in something that took me away from this issue. > >> On 5/13/19 7

Re: [PATCH] modules: fix livelock in add_unformed_module()

2019-05-22 Thread Prarit Bhargava
On 5/13/19 10:37 AM, Barret Rhoden wrote: > Hi - > Hey Barret, my apologies for not getting back to you earlier. I got caught up in something that took me away from this issue. > On 5/13/19 7:23 AM, Prarit Bhargava wrote: > [snip] >> A module is loaded once for each cpu.

Re: [PATCH] modules: fix livelock in add_unformed_module()

2019-05-13 Thread Prarit Bhargava
On 5/10/19 2:42 PM, Barret Rhoden wrote: > When add_unformed_module() finds an existing module with the same name, > it waits until the preexisting module finished loading. Prior to commit > f9a75c1d717f, this meant if the module was either UNFORMED or COMING, > we'd wait. That commit changed

[PATCH v2] modules: Only return -EEXIST for modules that have finished loading

2019-05-07 Thread Prarit Bhargava
erruptible() puts each thread to sleep until the a module finishes loading an executes the module_wq workqueue. The result is a long delay during the boot. Switching to wait_event_interruptible_timeout() resolves the sleep problem. Signed-off-by: Prarit Bhargava Cc: Jessica Yu Cc: Heiko Ca

Re: [PATCH v3] kernel/module: Reschedule while waiting for modules to finish loading

2019-05-02 Thread Prarit Bhargava
On 5/2/19 8:41 AM, Prarit Bhargava wrote: > > > On 5/2/19 5:48 AM, Jessica Yu wrote: >> +++ Prarit Bhargava [01/05/19 17:26 -0400]: >>> >>> >>> On 4/30/19 6:22 PM, Prarit Bhargava wrote: >>>> On a s390 z14 LAR with 2 cpus about stalls ab

Re: [PATCH v3] kernel/module: Reschedule while waiting for modules to finish loading

2019-05-02 Thread Prarit Bhargava
On 5/2/19 5:48 AM, Jessica Yu wrote: > +++ Prarit Bhargava [01/05/19 17:26 -0400]: >> >> >> On 4/30/19 6:22 PM, Prarit Bhargava wrote: >>> On a s390 z14 LAR with 2 cpus about stalls about 3% of the time while >>> loading the s390_trng.ko module. >

Re: [PATCH v3] kernel/module: Reschedule while waiting for modules to finish loading

2019-05-01 Thread Prarit Bhargava
On 4/30/19 6:22 PM, Prarit Bhargava wrote: > On a s390 z14 LAR with 2 cpus about stalls about 3% of the time while > loading the s390_trng.ko module. > > Add a reschedule point to the loop that waits for modules to complete > loading. > > v3: cleanup Fixes

[PATCH v3] kernel/module: Reschedule while waiting for modules to finish loading

2019-04-30 Thread Prarit Bhargava
EXIST for modules that have finished loading") Signed-off-by: Prarit Bhargava Cc: Jessica Yu Cc: Heiko Carstens --- kernel/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/module.c b/kernel/module.c index 410eeb7e4f1d..48748cfec991 100644 --- a/kernel/module.c +++ b/kerne

Re: [PATCH v2] kernel/module: Reschedule while waiting for modules to finish loading

2019-04-30 Thread Prarit Bhargava
On 4/30/19 6:18 PM, Prarit Bhargava wrote: > On a s390 z14 LAR with 2 cpus about stalls about 3% of the time while > loading the s390_trng.ko module. > > Add a reschedule point to the loop that waits for modules to complete > loading. > Sorry, sent in error. P. > v

[PATCH v2] kernel/module: Reschedule while waiting for modules to finish loading

2019-04-30 Thread Prarit Bhargava
EXIST for modules that have finished loading") Signed-off-by: Prarit Bhargava Cc: Jessica Yu Cc: Heiko Carstens --- kernel/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/module.c b/kernel/module.c index 410eeb7e4f1d..48748cfec991 100644 --- a/kernel/module.c +++ b/kerne

Re: linux-next: Fixes tag needs some work in the modules tree

2019-04-30 Thread Prarit Bhargava
On 4/30/19 6:10 PM, Stephen Rothwell wrote: > Hi all, > > In commit > > 7e470ea99bcd ("kernel/module: Reschedule while waiting for modules to > finish loading") > > Fixes tag > > Fixes: linux-next commit f9a75c1d717f ("modules: Only return -EEXIST for > modules that have finished

Re: [PATCH] kernel/module: Reschedule while waiting for modules to finish loading

2019-04-30 Thread Prarit Bhargava
On 4/30/19 3:51 AM, Jessica Yu wrote: > +++ Prarit Bhargava [29/04/19 11:17 -0400]: >> Heiko, do you want a Signed-off-by or a Reported-by?  Either one works >> for me. >> >> P. > > I think you forgot to CC Heiko :) #oops. I forgot that git-send-email

[PATCH] kernel/module: Reschedule while waiting for modules to finish loading

2019-04-29 Thread Prarit Bhargava
iko Carstens Fixes: linux-next commit f9a75c1d717f ("modules: Only return -EEXIST for modules that have finished loading") Signed-off-by: Prarit Bhargava Cc: Jessica Yu --- kernel/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/module.c b/kernel/module.c index

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-27 Thread Prarit Bhargava
On 4/27/19 6:24 AM, Heiko Carstens wrote: > > diff --git a/kernel/module.c b/kernel/module.c > index 410eeb7e4f1d..48748cfec991 100644 > --- a/kernel/module.c > +++ b/kernel/module.c > @@ -3585,6 +3585,7 @@ again: > finished_loading(mod->name)); >

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-27 Thread Prarit Bhargava
On 4/27/19 6:24 AM, Heiko Carstens wrote: > On Fri, Apr 26, 2019 at 08:20:52PM -0400, Prarit Bhargava wrote: >> Heiko and Jessica, >> >> The issue doesn't appear to be with my patch AFAICT. The s390_trng fails to >> load and then the kernel occasionally hangs (

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-26 Thread Prarit Bhargava
On 4/26/19 3:45 PM, Prarit Bhargava wrote: > > > On 4/26/19 2:10 PM, Prarit Bhargava wrote: >> >> >> On 4/26/19 12:09 PM, Jessica Yu wrote: >>> +++ Heiko Carstens [26/04/19 17:07 +0200]: >>>> On Fri, Apr 26, 2019 at 09:22:34AM -0400, Prarit

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-26 Thread Prarit Bhargava
On 4/26/19 2:10 PM, Prarit Bhargava wrote: > > > On 4/26/19 12:09 PM, Jessica Yu wrote: >> +++ Heiko Carstens [26/04/19 17:07 +0200]: >>> On Fri, Apr 26, 2019 at 09:22:34AM -0400, Prarit Bhargava wrote: >>>> On 4/26/19 9:07 AM, Heiko Carstens wrote: >

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-26 Thread Prarit Bhargava
On 4/26/19 12:09 PM, Jessica Yu wrote: > +++ Heiko Carstens [26/04/19 17:07 +0200]: >> On Fri, Apr 26, 2019 at 09:22:34AM -0400, Prarit Bhargava wrote: >>> On 4/26/19 9:07 AM, Heiko Carstens wrote: >>> > Hello Prarit, >>> > >>> > it look

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-26 Thread Prarit Bhargava
On 4/26/19 12:09 PM, Jessica Yu wrote: > +++ Heiko Carstens [26/04/19 17:07 +0200]: >> On Fri, Apr 26, 2019 at 09:22:34AM -0400, Prarit Bhargava wrote: >>> On 4/26/19 9:07 AM, Heiko Carstens wrote: >>> > Hello Prarit, >>> > >>> > it look

Re: [-next] system hangs likely due to "modules: Only return -EEXIST for modules that have finished loading"

2019-04-26 Thread Prarit Bhargava
On 4/26/19 9:07 AM, Heiko Carstens wrote: > Hello Prarit, > > it looks like your commit f9a75c1d717f ("modules: Only return -EEXIST > for modules that have finished loading") _sometimes_ causes hangs on > s390. This is unfortunately not 100% reproducible, however the > mentioned commit seems

Re: [PATCH] modules: Only return -EEXIST for modules that have finished loading

2019-04-15 Thread Prarit Bhargava
On 4/15/19 7:23 AM, Jessica Yu wrote: > +++ Prarit Bhargava [02/04/19 09:39 -0400]: >> Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and >> linux guests boot with repeated errors: >> >> amd64_edac_mod: Unknown symbol amd_unregister_ecc_decoder

Re: [PATCH] tools/power turbostat: fix file descriptor leaks

2019-04-08 Thread Prarit Bhargava
t: Warn on bad ACPI LPIT data") > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Prarit Bhargava P. > --- > tools/power/x86/turbostat/turbostat.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/power/x86/turbostat/turbostat.c > b/tools/power/x

Re: [PATCH] modules: Only return -EEXIST for modules that have finished loading

2019-04-08 Thread Prarit Bhargava
Jessica? ping? P. On 4/2/19 9:39 AM, Prarit Bhargava wrote: > Microsoft HyperV disables the X86_FEATURE_SMCA bit on AMD systems, and > linux guests boot with repeated errors: > > amd64_edac_mod: Unknown symbol amd_unregister_ecc_decoder (err -2) > amd64_edac_mod:

Re: [PATCH v1] tools/power: turbostat: fix buffer overrun

2019-04-03 Thread Prarit Bhargava
On 4/3/19 3:02 AM, Naoya Horiguchi wrote: > turbostat could be terminated by general protection fault on some latest > hardwares which (for example) support 9 levels of C-states and show 18 > "tADDED" lines. That bloats the total output and finally causes buffer > overrun. So let's extend the

[PATCH] modules: Only return -EEXIST for modules that have finished loading

2019-04-02 Thread Prarit Bhargava
attempts to load amd64_edac_mod, which fails because of unknown symbols from edac_mce_amd. add_unformed_module() must wait to return for any case other than MODULE_STATE_LIVE to prevent a race between multiple loads of dependent modules. Signed-off-by: Prarit Bhargava Reported-by: Cathy Avery Cc

x86: Complete data loss during NMI lockup

2019-03-18 Thread Prarit Bhargava
Kernel 4.18.0 has a partial data loss when an NMI occurs but 5.0.0 has complete data loss. I tested with this simple kernel lockup code on kernels 4.18.0 through 5.0.0. On 4.18.0 (and after) the expected lockup messages Uhhuh. NMI received for unknown reason 25 on CPU 0. Do you have a strange

  1   2   3   4   5   6   7   8   9   10   >