[PATCH v3 1/3] staging: fbtft: Includes description to mutex and spinlock - Style

2018-08-09 Thread Leonardo Brás
Adds comments explaining what are the spinlock and mutex used for. Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index

[PATCH v3 1/3] staging: fbtft: Includes description to mutex and spinlock - Style

2018-08-09 Thread Leonardo Brás
Adds comments explaining what are the spinlock and mutex used for. Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index

Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level

2018-08-09 Thread rishabhb
On 2018-08-06 01:53, Rafael J. Wysocki wrote: On Fri, Aug 3, 2018 at 12:20 AM, Sodagudi Prasad wrote: From: RAFAEL J. WYSOCKI Date: Wed, Aug 1, 2018 at 2:21 PM Subject: Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level To: Rishabh Bhatnagar Cc: "Rafael J. Wysocki" ,

Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level

2018-08-09 Thread rishabhb
On 2018-08-06 01:53, Rafael J. Wysocki wrote: On Fri, Aug 3, 2018 at 12:20 AM, Sodagudi Prasad wrote: From: RAFAEL J. WYSOCKI Date: Wed, Aug 1, 2018 at 2:21 PM Subject: Re: [PATCH] dd: Invoke one probe retry cycle after every initcall level To: Rishabh Bhatnagar Cc: "Rafael J. Wysocki" ,

Re: [PATCH 5/5] fs/locks: create a tree of dependent requests.

2018-08-09 Thread NeilBrown
On Thu, Aug 09 2018, J. Bruce Fields wrote: > On Thu, Aug 09, 2018 at 12:04:41PM +1000, NeilBrown wrote: >> When we find an existing lock which conflicts with a request, >> and the request wants to wait, we currently add the request >> to a list. When the lock is removed, the whole list is

Re: [PATCH 5/5] fs/locks: create a tree of dependent requests.

2018-08-09 Thread NeilBrown
On Thu, Aug 09 2018, J. Bruce Fields wrote: > On Thu, Aug 09, 2018 at 12:04:41PM +1000, NeilBrown wrote: >> When we find an existing lock which conflicts with a request, >> and the request wants to wait, we currently add the request >> to a list. When the lock is removed, the whole list is

Re: [PATCH RESEND v2] arm64: clean the additional checks before calling ghes_notify_sea()

2018-08-09 Thread gengdongjiu
2018-08-10 5:05 GMT+08:00 Tyler Baicar : > On Thu, Aug 9, 2018 at 8:32 AM, gengdongjiu wrote: >> >> 2018-08-08 0:26 GMT+08:00 Dongjiu Geng : >> > In order to remove the additional check before calling the >> > ghes_notify_sea(), make stub definition when !CONFIG_ACPI_APEI_SEA. >> > >> > After

Re: [PATCH RESEND v2] arm64: clean the additional checks before calling ghes_notify_sea()

2018-08-09 Thread gengdongjiu
2018-08-10 5:05 GMT+08:00 Tyler Baicar : > On Thu, Aug 9, 2018 at 8:32 AM, gengdongjiu wrote: >> >> 2018-08-08 0:26 GMT+08:00 Dongjiu Geng : >> > In order to remove the additional check before calling the >> > ghes_notify_sea(), make stub definition when !CONFIG_ACPI_APEI_SEA. >> > >> > After

Re: [PATCH v2 2/2] firmware: coreboot: Collapse platform drivers into bus core

2018-08-09 Thread kbuild test robot
Hi Stephen, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.18-rc8 next-20180809] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH v2 2/2] firmware: coreboot: Collapse platform drivers into bus core

2018-08-09 Thread kbuild test robot
Hi Stephen, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.18-rc8 next-20180809] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-09 Thread NeilBrown
On Thu, Aug 09 2018, J. Bruce Fields wrote: > I think there's also a problem with multiple tasks sharing the same > lock owner. > > So, all locks are exclusive locks for the same range. We have four > tasks. Tasks 1 and 4 share the same owner, the others' owners are > distinct. > > - Task

Re: [PATCH 0/5 - V2] locks: avoid thundering-herd wake-ups

2018-08-09 Thread NeilBrown
On Thu, Aug 09 2018, J. Bruce Fields wrote: > I think there's also a problem with multiple tasks sharing the same > lock owner. > > So, all locks are exclusive locks for the same range. We have four > tasks. Tasks 1 and 4 share the same owner, the others' owners are > distinct. > > - Task

want to edit

2018-08-09 Thread Tony
We just found that you need image editing. We are an image studio, we do all kinds of image editing such as for e-commerce photos, jewelry images and portrait mages. Our service includes cutting out and clipping path etc , we also do retouching. You may send us a photo, testing will be

want to edit

2018-08-09 Thread Tony
We just found that you need image editing. We are an image studio, we do all kinds of image editing such as for e-commerce photos, jewelry images and portrait mages. Our service includes cutting out and clipping path etc , we also do retouching. You may send us a photo, testing will be

Re: [PATCH v3 5/7] firmware: coreboot: Remap RAM with memremap() instead of ioremap()

2018-08-09 Thread Stephen Boyd
Quoting Julius Werner (2018-08-09 11:24:29) > One thing to note is that we still want this space to be mappable by > userspace applications via /dev/mem, so we need to make sure that > there's no weird memory type mismatch that causes problems with that. > Adding Aaron to see if he has any

Re: [PATCH v3 5/7] firmware: coreboot: Remap RAM with memremap() instead of ioremap()

2018-08-09 Thread Stephen Boyd
Quoting Julius Werner (2018-08-09 11:24:29) > One thing to note is that we still want this space to be mappable by > userspace applications via /dev/mem, so we need to make sure that > there's no weird memory type mismatch that causes problems with that. > Adding Aaron to see if he has any

[PATCH v2] clk: qcom: Add some missing gcc clks for msm8996

2018-08-09 Thread Bjorn Andersson
From: Rajendra Nayak Add a few missing gcc clks for msm8996 Signed-off-by: Rajendra Nayak [bjorn: omit aggre0_noc_qosgen_extref_clk] Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped LPASS SMMU clocks already introduced by Srinivas drivers/clk/qcom/gcc-msm8996.c

[PATCH v2] clk: qcom: Add some missing gcc clks for msm8996

2018-08-09 Thread Bjorn Andersson
From: Rajendra Nayak Add a few missing gcc clks for msm8996 Signed-off-by: Rajendra Nayak [bjorn: omit aggre0_noc_qosgen_extref_clk] Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped LPASS SMMU clocks already introduced by Srinivas drivers/clk/qcom/gcc-msm8996.c

Re: [PATCH v2 1/2] dt: bindings: lm3697: Add bindings for lm3697 driver

2018-08-09 Thread Pavel Machek
Hi! > > Following node would describe strings connected to the outputs > > HVLED1 and HVLED2 controlled by bank A. > > > > led@0 { > > reg = <0>; > > led-sources = <0>. <1>; > > label = "white:first_backlight_cluster"; > > linux,default-trigger = "backlight"; > > }; > > > > > >

Re: [PATCH v2 1/2] dt: bindings: lm3697: Add bindings for lm3697 driver

2018-08-09 Thread Pavel Machek
Hi! > > Following node would describe strings connected to the outputs > > HVLED1 and HVLED2 controlled by bank A. > > > > led@0 { > > reg = <0>; > > led-sources = <0>. <1>; > > label = "white:first_backlight_cluster"; > > linux,default-trigger = "backlight"; > > }; > > > > > >

Re: [PATCH v5 03/14] PM: Introduce an Energy Model management framework

2018-08-09 Thread Rafael J. Wysocki
On Tuesday, July 24, 2018 2:25:10 PM CEST Quentin Perret wrote: > Several subsystems in the kernel (task scheduler and/or thermal at the > time of writing) can benefit from knowing about the energy consumed by > CPUs. Yet, this information can come from different sources (DT or > firmware for

Re: [PATCH v5 03/14] PM: Introduce an Energy Model management framework

2018-08-09 Thread Rafael J. Wysocki
On Tuesday, July 24, 2018 2:25:10 PM CEST Quentin Perret wrote: > Several subsystems in the kernel (task scheduler and/or thermal at the > time of writing) can benefit from knowing about the energy consumed by > CPUs. Yet, this information can come from different sources (DT or > firmware for

[PATCH] perf tools: Check for null when copying nsinfo.

2018-08-09 Thread Benno Evers
The argument to nsinfo__copy() was assumed to be valid, but some code paths exist that will lead to NULL being passed. In particular, running 'perf script -D' on a perf.data file containing an PERF_RECORD_MMAP event associating the '[vdso]' dso with pid 0 earlier in the event stream will lead to

[PATCH] perf tools: Check for null when copying nsinfo.

2018-08-09 Thread Benno Evers
The argument to nsinfo__copy() was assumed to be valid, but some code paths exist that will lead to NULL being passed. In particular, running 'perf script -D' on a perf.data file containing an PERF_RECORD_MMAP event associating the '[vdso]' dso with pid 0 earlier in the event stream will lead to

Re: [PATCH v3 1/4] dt-bindings: add binding for i.MX8MQ CCM

2018-08-09 Thread Rob Herring
On Thu, Aug 09, 2018 at 05:45:38PM +0300, Abel Vesa wrote: > From: Lucas Stach > > This adds the binding for the i.MX8MQ Clock Controller Module. > > Signed-off-by: Lucas Stach > Signed-off-by: Abel Vesa > --- > .../devicetree/bindings/clock/imx8mq-clock.txt | 20 + >

Re: [PATCH v3 1/4] dt-bindings: add binding for i.MX8MQ CCM

2018-08-09 Thread Rob Herring
On Thu, Aug 09, 2018 at 05:45:38PM +0300, Abel Vesa wrote: > From: Lucas Stach > > This adds the binding for the i.MX8MQ Clock Controller Module. > > Signed-off-by: Lucas Stach > Signed-off-by: Abel Vesa > --- > .../devicetree/bindings/clock/imx8mq-clock.txt | 20 + >

Re: [PATCH v5 2/6] dt-bindings: iio: accel: Add docs for ADXL372

2018-08-09 Thread Rob Herring
On Tue, Aug 07, 2018 at 05:52:16PM +0300, Stefan Popa wrote: > Add the device tree binding documentation for the ADXL372 3-axis digital > accelerometer. > > Signed-off-by: Stefan Popa > --- > .../devicetree/bindings/iio/accel/adxl372.txt | 22 > ++ > MAINTAINERS

Re: [PATCH v5 2/6] dt-bindings: iio: accel: Add docs for ADXL372

2018-08-09 Thread Rob Herring
On Tue, Aug 07, 2018 at 05:52:16PM +0300, Stefan Popa wrote: > Add the device tree binding documentation for the ADXL372 3-axis digital > accelerometer. > > Signed-off-by: Stefan Popa > --- > .../devicetree/bindings/iio/accel/adxl372.txt | 22 > ++ > MAINTAINERS

Re: [PATCH] sched: idle: Reenable sched tick for cpuidle request

2018-08-09 Thread Rafael J. Wysocki
On Thursday, August 9, 2018 6:43:55 PM CEST Rafael J. Wysocki wrote: > On Thu, Aug 9, 2018 at 6:29 PM, wrote: > > On Thu, Aug 09, 2018 at 05:42:30PM +0200, Rafael J. Wysocki wrote: > > > > [...] > > > >> >> This issue can be easily reproduce with the case on Arm Hikey board: use > >> >> CPU0 to

Re: [PATCH] sched: idle: Reenable sched tick for cpuidle request

2018-08-09 Thread Rafael J. Wysocki
On Thursday, August 9, 2018 6:43:55 PM CEST Rafael J. Wysocki wrote: > On Thu, Aug 9, 2018 at 6:29 PM, wrote: > > On Thu, Aug 09, 2018 at 05:42:30PM +0200, Rafael J. Wysocki wrote: > > > > [...] > > > >> >> This issue can be easily reproduce with the case on Arm Hikey board: use > >> >> CPU0 to

Re: [PATCH v6 3/5] thermal: qcom-spmi: Use PMIC thermal stage 2 for critical trip points

2018-08-09 Thread Doug Anderson
Hi, On Tue, Jul 31, 2018 at 11:59 AM, Matthias Kaehlcke wrote: > There are three thermal stages defined in the PMIC: > > stage 1: warning > stage 2: system should shut down > stage 3: emergency shut down > > By default the PMIC assumes that the OS isn't doing anything and thus > at stage 2 it

Re: [PATCH v6 3/5] thermal: qcom-spmi: Use PMIC thermal stage 2 for critical trip points

2018-08-09 Thread Doug Anderson
Hi, On Tue, Jul 31, 2018 at 11:59 AM, Matthias Kaehlcke wrote: > There are three thermal stages defined in the PMIC: > > stage 1: warning > stage 2: system should shut down > stage 3: emergency shut down > > By default the PMIC assumes that the OS isn't doing anything and thus > at stage 2 it

Re: [PATCH v2 2/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Guenter Roeck
On Thu, Aug 09, 2018 at 01:25:24PM -0700, Palmer Dabbelt wrote: > This file is expected to be included multiple times in the same file in > order to allow the __SYSCALL macro to generate system call tables. With > a global include guard we end up missing __NR_riscv_flush_icache in the > syscall

Re: [PATCH v2 2/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Guenter Roeck
On Thu, Aug 09, 2018 at 01:25:24PM -0700, Palmer Dabbelt wrote: > This file is expected to be included multiple times in the same file in > order to allow the __SYSCALL macro to generate system call tables. With > a global include guard we end up missing __NR_riscv_flush_icache in the > syscall

Re: [PATCH v2 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n

2018-08-09 Thread Guenter Roeck
On Thu, Aug 09, 2018 at 01:25:23PM -0700, Palmer Dabbelt wrote: > This would be necessary to make non-SMP builds work, but there is > another error in the implementation of our syscall linkage that actually > just causes sys_riscv_flush_icache to never build. I've build tested > this on

Re: [PATCH v2 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n

2018-08-09 Thread Guenter Roeck
On Thu, Aug 09, 2018 at 01:25:23PM -0700, Palmer Dabbelt wrote: > This would be necessary to make non-SMP builds work, but there is > another error in the implementation of our syscall linkage that actually > just causes sys_riscv_flush_icache to never build. I've build tested > this on

Re: [PATCH v1 10/10] MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:42PM +0530, Amit Kucheria wrote: > Create an entry for the TSENS drivers and mark them as maintained > > Signed-off-by: Amit Kucheria > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index

Re: [PATCH v1 10/10] MAINTAINERS: Add entry for Qualcomm TSENS thermal drivers

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:42PM +0530, Amit Kucheria wrote: > Create an entry for the TSENS drivers and mark them as maintained > > Signed-off-by: Amit Kucheria > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index

Re: [PATCH v3 7/7] firmware: coreboot: Request table region for exclusive access

2018-08-09 Thread Julius Werner
On Thu, Aug 9, 2018 at 10:17 AM Stephen Boyd wrote: > > Call request_mem_region() on the entire coreboot table to make sure > other devices don't attempt to map the coreboot table in their drivers. > If drivers need that support, it would be better to provide bus APIs > they can use to do that

Re: [PATCH v3 7/7] firmware: coreboot: Request table region for exclusive access

2018-08-09 Thread Julius Werner
On Thu, Aug 9, 2018 at 10:17 AM Stephen Boyd wrote: > > Call request_mem_region() on the entire coreboot table to make sure > other devices don't attempt to map the coreboot table in their drivers. > If drivers need that support, it would be better to provide bus APIs > they can use to do that

[for-next][PATCH 1/6] tracing: Partial revert of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. But it caused lockdep to trigger several false positives. We have not figured out why yet, but removing lockdep from

[for-next][PATCH 1/6] tracing: Partial revert of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. But it caused lockdep to trigger several false positives. We have not figured out why yet, but removing lockdep from

[for-next][PATCH 0/6] tracing: Last minute updates before pushing to linux-next

2018-08-09 Thread Steven Rostedt
Joel, These are the last minute updates I have on top of your changes. A couple of them I may have already posted to you. I'm trying to get my tests to all pass without errors or new warnings. My tests are still running, and hopefully this will have all the fixes. -- Steve

[for-next][PATCH 2/6] tracing/irqsoff: Handle preempt_count for different configs

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" I was hitting the following warning: WARNING: CPU: 0 PID: 1 at kernel/trace/trace_irqsoff.c:631 tracer_hardirqs_off+0x15/0x2a Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-rc6-test+ #13 Hardware name: MSI MS-7823/CSM-H87M-G43 (MS-7823),

[for-next][PATCH 4/6] ftrace: Remove unused pointer ftrace_swapper_pid

2018-08-09 Thread Steven Rostedt
From: Colin Ian King Pointer ftrace_swapper_pid is defined but is never used hence it is redundant and can be removed. The use of this variable was removed in commit 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap like events do"). Cleans up clang warning: warning:

[for-next][PATCH 0/6] tracing: Last minute updates before pushing to linux-next

2018-08-09 Thread Steven Rostedt
Joel, These are the last minute updates I have on top of your changes. A couple of them I may have already posted to you. I'm trying to get my tests to all pass without errors or new warnings. My tests are still running, and hopefully this will have all the fixes. -- Steve

[for-next][PATCH 2/6] tracing/irqsoff: Handle preempt_count for different configs

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" I was hitting the following warning: WARNING: CPU: 0 PID: 1 at kernel/trace/trace_irqsoff.c:631 tracer_hardirqs_off+0x15/0x2a Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.0-rc6-test+ #13 Hardware name: MSI MS-7823/CSM-H87M-G43 (MS-7823),

[for-next][PATCH 4/6] ftrace: Remove unused pointer ftrace_swapper_pid

2018-08-09 Thread Steven Rostedt
From: Colin Ian King Pointer ftrace_swapper_pid is defined but is never used hence it is redundant and can be removed. The use of this variable was removed in commit 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap like events do"). Cleans up clang warning: warning:

[for-next][PATCH 5/6] tracing: Fix synchronizing to event changes with tracepoint_synchronize_unregister()

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Now that some trace events can be protected by srcu_read_lock(tracepoint_srcu), we need to make sure all locations that depend on this are also protected. There were many places that did a synchronize_sched() thinking that it was enough to protect againts access

[for-next][PATCH 3/6] tracing: More reverting of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. But the latency tracer is triggering warnings when using tracepoints to call into the latency tracer's routines.

[for-next][PATCH 6/6] uprobes: Use synchronize_rcu() not synchronize_sched()

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" While debugging another bug, I was looking at all the synchronize*() functions being used in kernel/trace, and noticed that trace_uprobes was using synchronize_sched(), with a comment to synchronize with {u,ret}_probe_trace_func(). When looking at those functions,

[for-next][PATCH 6/6] uprobes: Use synchronize_rcu() not synchronize_sched()

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" While debugging another bug, I was looking at all the synchronize*() functions being used in kernel/trace, and noticed that trace_uprobes was using synchronize_sched(), with a comment to synchronize with {u,ret}_probe_trace_func(). When looking at those functions,

[for-next][PATCH 5/6] tracing: Fix synchronizing to event changes with tracepoint_synchronize_unregister()

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Now that some trace events can be protected by srcu_read_lock(tracepoint_srcu), we need to make sure all locations that depend on this are also protected. There were many places that did a synchronize_sched() thinking that it was enough to protect againts access

[for-next][PATCH 3/6] tracing: More reverting of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-09 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. But the latency tracer is triggering warnings when using tracepoints to call into the latency tracer's routines.

Re: [RESEND PATCH v1 2/2] cpuidle: menu: Dismiss tick impaction on correction factors

2018-08-09 Thread Rafael J. Wysocki
On Thu, Aug 9, 2018 at 7:20 PM, Leo Yan wrote: > If the idle duration predictor detects the tick is triggered, and with > meeting the condition 'data->next_timer_us > TICK_USEC', it will give a > big compensation for the 'measured' interval; this is purposed to avoid > artificially small

Re: [RESEND PATCH v1 2/2] cpuidle: menu: Dismiss tick impaction on correction factors

2018-08-09 Thread Rafael J. Wysocki
On Thu, Aug 9, 2018 at 7:20 PM, Leo Yan wrote: > If the idle duration predictor detects the tick is triggered, and with > meeting the condition 'data->next_timer_us > TICK_USEC', it will give a > big compensation for the 'measured' interval; this is purposed to avoid > artificially small

Re: [PATCH v1 09/10] arm64: dts: qcom: Add reg-names for all tsens nodes

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:41PM +0530, Amit Kucheria wrote: > Instead of showing up as thermal-sensor@, the nodes will show up as > tsens0_tm, tsen1_tm, tsens1_srot, etc. in /proc/iomem making it easier to > read. > > IOW, > > 0c222000-0c2221fe : thermal-sensor@c263000 > 0c223000-0c2231fe :

Re: [PATCH v1 09/10] arm64: dts: qcom: Add reg-names for all tsens nodes

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:41PM +0530, Amit Kucheria wrote: > Instead of showing up as thermal-sensor@, the nodes will show up as > tsens0_tm, tsen1_tm, tsens1_srot, etc. in /proc/iomem making it easier to > read. > > IOW, > > 0c222000-0c2221fe : thermal-sensor@c263000 > 0c223000-0c2231fe :

Re: WARNING in try_charge

2018-08-09 Thread Tetsuo Handa
On 2018/08/10 0:07, Michal Hocko wrote: > On Thu 09-08-18 22:57:43, Tetsuo Handa wrote: >> >From b1f38168f14397c7af9c122cd8207663d96e02ec Mon Sep 17 00:00:00 2001 >> From: Tetsuo Handa >> Date: Thu, 9 Aug 2018 22:49:40 +0900 >> Subject: [PATCH] mm, oom: task_will_free_mem(current) should retry

Re: WARNING in try_charge

2018-08-09 Thread Tetsuo Handa
On 2018/08/10 0:07, Michal Hocko wrote: > On Thu 09-08-18 22:57:43, Tetsuo Handa wrote: >> >From b1f38168f14397c7af9c122cd8207663d96e02ec Mon Sep 17 00:00:00 2001 >> From: Tetsuo Handa >> Date: Thu, 9 Aug 2018 22:49:40 +0900 >> Subject: [PATCH] mm, oom: task_will_free_mem(current) should retry

Re: [PATCH v3 6/7] firmware: coreboot: Only populate devices in coreboot_table_init()

2018-08-09 Thread Julius Werner
On Thu, Aug 9, 2018 at 10:17 AM Stephen Boyd wrote: > > This function checks the header for sanity, registers a bus, and > populates devices for each coreboot table entry. Let's just populate > devices here and pull the other bits up into the caller so that this > function can be repurposed for

Re: [PATCH v3 6/7] firmware: coreboot: Only populate devices in coreboot_table_init()

2018-08-09 Thread Julius Werner
On Thu, Aug 9, 2018 at 10:17 AM Stephen Boyd wrote: > > This function checks the header for sanity, registers a bus, and > populates devices for each coreboot table entry. Let's just populate > devices here and pull the other bits up into the caller so that this > function can be repurposed for

Re: [PATCH v2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Palmer Dabbelt
On Wed, 08 Aug 2018 22:58:30 PDT (-0700), Christoph Hellwig wrote: This actually seems to break the compilation for me in for-next: hch@carbon:~/work/linux$ make ARCH=riscv CALLscripts/checksyscalls.sh :1335:2: warning: #warning syscall rseq not implemented [-Wcpp] CHK

Re: [PATCH v2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Palmer Dabbelt
On Wed, 08 Aug 2018 22:58:30 PDT (-0700), Christoph Hellwig wrote: This actually seems to break the compilation for me in for-next: hch@carbon:~/work/linux$ make ARCH=riscv CALLscripts/checksyscalls.sh :1335:2: warning: #warning syscall rseq not implemented [-Wcpp] CHK

Re: [PATCH] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Palmer Dabbelt
On Thu, 09 Aug 2018 06:26:12 PDT (-0700), li...@roeck-us.net wrote: On Fri, Aug 03, 2018 at 12:53:44PM -0700, Palmer Dabbelt wrote: This file is expected to be included multiple times in the same file in order to allow the __SYSCALL macro to generate system call tables. With a global include

Re: [PATCH] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Palmer Dabbelt
On Thu, 09 Aug 2018 06:26:12 PDT (-0700), li...@roeck-us.net wrote: On Fri, Aug 03, 2018 at 12:53:44PM -0700, Palmer Dabbelt wrote: This file is expected to be included multiple times in the same file in order to allow the __SYSCALL macro to generate system call tables. With a global include

Re: [PATCH v1 08/10] thermal: tsens: Get rid of 'id' field

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:40PM +0530, Amit Kucheria wrote: > The hw_id field in 'struct tsens_sensor' can do the job of tracking > unique ids for each sensor connected to each tsens device instance. It > also allows hw_ids to be overridden (e.g. 8916) in cases where some > sensors in a

Re: [PATCH v1 08/10] thermal: tsens: Get rid of 'id' field

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:40PM +0530, Amit Kucheria wrote: > The hw_id field in 'struct tsens_sensor' can do the job of tracking > unique ids for each sensor connected to each tsens device instance. It > also allows hw_ids to be overridden (e.g. 8916) in cases where some > sensors in a

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Oscar Salvador
On Thu, Aug 09, 2018 at 12:58:21PM -0400, Jerome Glisse wrote: > > I would really prefer to be explicit about these requirements rather > > than having subtle side effects quite deep in the memory hotplug code > > and checks for zone device sprinkled at places for special handling. > > I agree, i

Re: [RFC PATCH 2/3] mm/memory_hotplug: Create __shrink_pages and move it to offline_pages

2018-08-09 Thread Oscar Salvador
On Thu, Aug 09, 2018 at 12:58:21PM -0400, Jerome Glisse wrote: > > I would really prefer to be explicit about these requirements rather > > than having subtle side effects quite deep in the memory hotplug code > > and checks for zone device sprinkled at places for special handling. > > I agree, i

[PATCH] checkpatch: DT bindings should be a separate patch

2018-08-09 Thread Rob Herring
Devicetree bindings should be their own patch as documented in Documentation/devicetree/bindings/submitting-patches.txt section I.1. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same

[PATCH] checkpatch: DT bindings should be a separate patch

2018-08-09 Thread Rob Herring
Devicetree bindings should be their own patch as documented in Documentation/devicetree/bindings/submitting-patches.txt section I.1. This is because bindings are logically independent from a driver implementation, they have a different maintainer (even though they often are applied via the same

Re: [RESEND PATCH v1 1/2] cpuidle: menu: Correct the criteria for stopping tick

2018-08-09 Thread Rafael J. Wysocki
On Thu, Aug 9, 2018 at 7:20 PM, Leo Yan wrote: > The criteria for keeping tick running is the prediction duration is less > than TICK_USEC, Yes, because if the predicted idle duration is less than the tick period, stopping the tick is pointless overhead (if the governor predicts a CPU wakeup

Re: [RESEND PATCH v1 1/2] cpuidle: menu: Correct the criteria for stopping tick

2018-08-09 Thread Rafael J. Wysocki
On Thu, Aug 9, 2018 at 7:20 PM, Leo Yan wrote: > The criteria for keeping tick running is the prediction duration is less > than TICK_USEC, Yes, because if the predicted idle duration is less than the tick period, stopping the tick is pointless overhead (if the governor predicts a CPU wakeup

[PATCH v2 0/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.

2018-08-09 Thread Palmer Dabbelt
It turns out that we weren't actually hooking sys_riscv_flush_icache into the syscall table, which results in any flush_icache() call that escapes the vDSO to silently do nothing. Changes since v1: * sys_riscv_flush_icache is now defined even when SMP=n, which allows this patch set to build

[PATCH v2 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n

2018-08-09 Thread Palmer Dabbelt
This would be necessary to make non-SMP builds work, but there is another error in the implementation of our syscall linkage that actually just causes sys_riscv_flush_icache to never build. I've build tested this on allnoconfig and allnoconfig+SMP=y, as well as defconfig like normal. CC:

[PATCH v2 0/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.

2018-08-09 Thread Palmer Dabbelt
It turns out that we weren't actually hooking sys_riscv_flush_icache into the syscall table, which results in any flush_icache() call that escapes the vDSO to silently do nothing. Changes since v1: * sys_riscv_flush_icache is now defined even when SMP=n, which allows this patch set to build

[PATCH v2 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n

2018-08-09 Thread Palmer Dabbelt
This would be necessary to make non-SMP builds work, but there is another error in the implementation of our syscall linkage that actually just causes sys_riscv_flush_icache to never build. I've build tested this on allnoconfig and allnoconfig+SMP=y, as well as defconfig like normal. CC:

[PATCH v2 2/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Palmer Dabbelt
This file is expected to be included multiple times in the same file in order to allow the __SYSCALL macro to generate system call tables. With a global include guard we end up missing __NR_riscv_flush_icache in the syscall table, which results in icache flushes that escape the vDSO call to not

[PATCH v2 2/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-09 Thread Palmer Dabbelt
This file is expected to be included multiple times in the same file in order to allow the __SYSCALL macro to generate system call tables. With a global include guard we end up missing __NR_riscv_flush_icache in the syscall table, which results in icache flushes that escape the vDSO call to not

Re: [PATCH v1 07/10] thermal: tsens: Check if the IP is correctly enabled by firmware

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:39PM +0530, Amit Kucheria wrote: > The SROT registers are initialised by the secure firmware at boot. We > don't have write access to the registers. Check if the block is enabled > before continuing. > > Signed-off-by: Amit Kucheria > --- >

Re: [PATCH v1 07/10] thermal: tsens: Check if the IP is correctly enabled by firmware

2018-08-09 Thread Matthias Kaehlcke
On Thu, Aug 09, 2018 at 06:02:39PM +0530, Amit Kucheria wrote: > The SROT registers are initialised by the secure firmware at boot. We > don't have write access to the registers. Check if the block is enabled > before continuing. > > Signed-off-by: Amit Kucheria > --- >

[PATCH v7 04/10] x86: refcount: prevent gcc distortions

2018-08-09 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v7 05/10] x86: alternatives: macrofy locks for better inlining

2018-08-09 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v7 05/10] x86: alternatives: macrofy locks for better inlining

2018-08-09 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

[PATCH v7 04/10] x86: refcount: prevent gcc distortions

2018-08-09 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

Re: [PATCH v8 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-09 Thread Tony Krowiak
On 08/09/2018 04:17 AM, David Hildenbrand wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Tony Krowiak Introduces a new CPU model feature and two CPU model facilities to support AP virtualization for KVM guests. CPU model feature: The KVM_S390_VM_CPU_FEAT_AP feature indicates that AP

Re: [PATCH v8 21/22] KVM: s390: CPU model support for AP virtualization

2018-08-09 Thread Tony Krowiak
On 08/09/2018 04:17 AM, David Hildenbrand wrote: On 08.08.2018 16:44, Tony Krowiak wrote: From: Tony Krowiak Introduces a new CPU model feature and two CPU model facilities to support AP virtualization for KVM guests. CPU model feature: The KVM_S390_VM_CPU_FEAT_AP feature indicates that AP

Re: [PATCH v7 01/10] xtensa: defining LINKER_SCRIPT for the linker script

2018-08-09 Thread Max Filippov
On Thu, Aug 9, 2018 at 1:15 PM, Nadav Amit wrote: > Defining the LINKER_SCRIPT when building the linker script as being done > in other architectures. This is required for the next Makefile changes > would otherwise break things. > > Cc: Chris Zankel > Cc: Max Filippov > Cc:

Re: [PATCH v7 01/10] xtensa: defining LINKER_SCRIPT for the linker script

2018-08-09 Thread Max Filippov
On Thu, Aug 9, 2018 at 1:15 PM, Nadav Amit wrote: > Defining the LINKER_SCRIPT when building the linker script as being done > in other architectures. This is required for the next Makefile changes > would otherwise break things. > > Cc: Chris Zankel > Cc: Max Filippov > Cc:

Re: [PATCH v4 0/3] PCI: NVMe reset quirks

2018-08-09 Thread Bjorn Helgaas
On Thu, Aug 09, 2018 at 02:04:03PM -0600, Alex Williamson wrote: > v4: Fix 0-day i386 build error for readq, simply use readl > instead, the bits we're interested in are 24:31 and the NVMe > spec indicates that smaller, aligned accesses are allowed. > Update bz links for both device

Re: [PATCH v4 0/3] PCI: NVMe reset quirks

2018-08-09 Thread Bjorn Helgaas
On Thu, Aug 09, 2018 at 02:04:03PM -0600, Alex Williamson wrote: > v4: Fix 0-day i386 build error for readq, simply use readl > instead, the bits we're interested in are 24:31 and the NVMe > spec indicates that smaller, aligned accesses are allowed. > Update bz links for both device

[PATCH v2] selftests: membarrier: fix test by checking supported commands

2018-08-09 Thread Rafael David Tinoco
Makes membarrier_test compatible with older kernels (LTS) by checking if the membarrier features exist before running the tests. Link: https://bugs.linaro.org/show_bug.cgi?id=3771 Signed-off-by: Rafael David Tinoco Cc: #v4.17 --- .../selftests/membarrier/membarrier_test.c| 71

[PATCH v2] selftests: membarrier: fix test by checking supported commands

2018-08-09 Thread Rafael David Tinoco
Makes membarrier_test compatible with older kernels (LTS) by checking if the membarrier features exist before running the tests. Link: https://bugs.linaro.org/show_bug.cgi?id=3771 Signed-off-by: Rafael David Tinoco Cc: #v4.17 --- .../selftests/membarrier/membarrier_test.c| 71

[PATCH v7 01/10] xtensa: defining LINKER_SCRIPT for the linker script

2018-08-09 Thread Nadav Amit
Defining the LINKER_SCRIPT when building the linker script as being done in other architectures. This is required for the next Makefile changes would otherwise break things. Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org Signed-off-by: Nadav Amit ---

[PATCH v7 01/10] xtensa: defining LINKER_SCRIPT for the linker script

2018-08-09 Thread Nadav Amit
Defining the LINKER_SCRIPT when building the linker script as being done in other architectures. This is required for the next Makefile changes would otherwise break things. Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org Signed-off-by: Nadav Amit ---

[PATCH v7 06/10] x86: bug: prevent gcc distortions

2018-08-09 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

Re: [PATCH v2 5/7] mhi_bus: core: add support to get external modem time

2018-08-09 Thread Randy Dunlap
On 07/09/2018 01:08 PM, Sujeev Dias wrote: > For accurate synchronizations between external modem and > host processor, mhi host will capture modem time relative > to host time. Client may use time measurements for adjusting > any drift between host and modem. > > Signed-off-by: Sujeev Dias >

[PATCH v7 06/10] x86: bug: prevent gcc distortions

2018-08-09 Thread Nadav Amit
GCC considers the number of statements in inlined assembly blocks, according to new-lines and semicolons, as an indication to the cost of the block in time and space. This data is distorted by the kernel code, which puts information in alternative sections. As a result, the compiler may perform

Re: [PATCH v2 5/7] mhi_bus: core: add support to get external modem time

2018-08-09 Thread Randy Dunlap
On 07/09/2018 01:08 PM, Sujeev Dias wrote: > For accurate synchronizations between external modem and > host processor, mhi host will capture modem time relative > to host time. Client may use time measurements for adjusting > any drift between host and modem. > > Signed-off-by: Sujeev Dias >

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