[PATCH v2 4/4] iio: adc: xilinx: Move request_irq before enabling interrupts

2018-07-23 Thread Manish Narani
Enabling the Interrupts before registering the irq handler is a bad idea. This patch corrects the same for XADC driver. Signed-off-by: Manish Narani --- drivers/iio/adc/xilinx-xadc-core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2 07/12] sched/core: uclamp: enforce last task UCLAMP_MAX

2018-07-23 Thread Patrick Bellasi
On 20-Jul 18:23, Suren Baghdasaryan wrote: > Hi Patrick, Hi Sure, thank! > On Mon, Jul 16, 2018 at 1:29 AM, Patrick Bellasi > wrote: [...] > > @@ -977,13 +991,21 @@ static inline void uclamp_cpu_get_id(struct > > task_struct *p, > > uc_grp = >uclamp.group[clamp_id][0]; > >

[PATCH v2 0/4] iio: adc: xilinx: XADC driver Enhancements and bug fixes

2018-07-23 Thread Manish Narani
This patch series resolves code style problems as reported by code analysis tools. Changes in v2: - From the first version of patches, 2 patches are dropped in this series. - In the v1 patch set, 1/4 was not required as the issue is in checkpatch.pl script and

[PATCH v2 0/4] iio: adc: xilinx: XADC driver Enhancements and bug fixes

2018-07-23 Thread Manish Narani
This patch series resolves code style problems as reported by code analysis tools. Changes in v2: - From the first version of patches, 2 patches are dropped in this series. - In the v1 patch set, 1/4 was not required as the issue is in checkpatch.pl script and

[PATCH v2 3/4] iio: adc: xilinx: Remove platform_get_irq from xadc_remove function

2018-07-23 Thread Manish Narani
This patch avoids getting irq number in xadc_remove function. Instead store 'irq' in xadc struct and use xadc->irq wherever needed. This patch also resolves a warning reported by coverity where it asks to check return value of platform_get_irq() for any errors in xadc_remove. Signed-off-by:

[PATCH v2 3/4] iio: adc: xilinx: Remove platform_get_irq from xadc_remove function

2018-07-23 Thread Manish Narani
This patch avoids getting irq number in xadc_remove function. Instead store 'irq' in xadc struct and use xadc->irq wherever needed. This patch also resolves a warning reported by coverity where it asks to check return value of platform_get_irq() for any errors in xadc_remove. Signed-off-by:

[PATCH v2 1/4] iio: adc: xilinx: Check for return values in clk related functions

2018-07-23 Thread Manish Narani
This patch adds check for return values from clock related functions. This was reported by static code analysis tool. Signed-off-by: Manish Narani --- drivers/iio/adc/xilinx-xadc-core.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

[PATCH v2 1/4] iio: adc: xilinx: Check for return values in clk related functions

2018-07-23 Thread Manish Narani
This patch adds check for return values from clock related functions. This was reported by static code analysis tool. Signed-off-by: Manish Narani --- drivers/iio/adc/xilinx-xadc-core.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

[PATCH v2 2/4] iio: adc: xilinx: limit pcap clock frequency value

2018-07-23 Thread Manish Narani
This patch limits the xadc pcap clock frequency value to be less than 200MHz. This fixes the issue when zynq is booted at higher frequency values, pcap crosses the maximum limit of 200MHz(Fmax) as it is derived from IOPLL. If this limit is crossed it is required to alter the WEDGE and REDGE bits

[PATCH v2 2/4] iio: adc: xilinx: limit pcap clock frequency value

2018-07-23 Thread Manish Narani
This patch limits the xadc pcap clock frequency value to be less than 200MHz. This fixes the issue when zynq is booted at higher frequency values, pcap crosses the maximum limit of 200MHz(Fmax) as it is derived from IOPLL. If this limit is crossed it is required to alter the WEDGE and REDGE bits

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > index ef47a418d819..86149b87cce8 100644 > > ---

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > index ef47a418d819..86149b87cce8 100644 > > ---

[PATCH] staging: gasket: use vzalloc instead of vmalloc/memset

2018-07-23 Thread Ivan Bornyakov
Signed-off-by: Ivan Bornyakov --- drivers/staging/gasket/gasket_page_table.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index 9f8116112e0a..3ffc8d67ec05 100644 ---

[PATCH] staging: gasket: use vzalloc instead of vmalloc/memset

2018-07-23 Thread Ivan Bornyakov
Signed-off-by: Ivan Bornyakov --- drivers/staging/gasket/gasket_page_table.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c index 9f8116112e0a..3ffc8d67ec05 100644 ---

Re: [PATCH v2 5/6] 9p: Use a slab for allocating requests

2018-07-23 Thread Greg Kurz
On Mon, 23 Jul 2018 14:25:31 +0200 Dominique Martinet wrote: > Greg Kurz wrote on Mon, Jul 23, 2018: > > The patch is quite big and I'm not sure I can find time to review it > > carefully, but I'll try to help anyway. > > No worry, thanks for this already. > > > > Sorry for coming back to

Re: [PATCH v2 5/6] 9p: Use a slab for allocating requests

2018-07-23 Thread Greg Kurz
On Mon, 23 Jul 2018 14:25:31 +0200 Dominique Martinet wrote: > Greg Kurz wrote on Mon, Jul 23, 2018: > > The patch is quite big and I'm not sure I can find time to review it > > carefully, but I'll try to help anyway. > > No worry, thanks for this already. > > > > Sorry for coming back to

Re: [PATCH 1/1] getxattr: use correct xattr length

2018-07-23 Thread Christian Brauner
On Wed, Jun 13, 2018 at 10:45:37AM -0500, Serge Hallyn wrote: > On Thu, Jun 07, 2018 at 01:43:48PM +0200, Christian Brauner wrote: > > When running in a container with a user namespace, if you call getxattr > > with name = "system.posix_acl_access" and size % 8 != 4, then getxattr > > silently

Re: [PATCH 1/1] getxattr: use correct xattr length

2018-07-23 Thread Christian Brauner
On Wed, Jun 13, 2018 at 10:45:37AM -0500, Serge Hallyn wrote: > On Thu, Jun 07, 2018 at 01:43:48PM +0200, Christian Brauner wrote: > > When running in a container with a user namespace, if you call getxattr > > with name = "system.posix_acl_access" and size % 8 != 4, then getxattr > > silently

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > index ef47a418d819..86149b87cce8 100644 > --- a/arch/x86/events/intel/core.c > +++ b/arch/x86/events/intel/core.c > @@ -2280,7 +2280,10 @@ static

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > index ef47a418d819..86149b87cce8 100644 > --- a/arch/x86/events/intel/core.c > +++ b/arch/x86/events/intel/core.c > @@ -2280,7 +2280,10 @@ static

Re: [PATCH 1/3] iio: adc: add support for mcp3911

2018-07-23 Thread Jonathan Cameron
On Sun, 22 Jul 2018 21:00:51 +0200 Marcus Folkesson wrote: > Hi Jonathan, > > Thanks, all good catches. > > On Sun, Jul 22, 2018 at 09:08:38AM +0100, Jonathan Cameron wrote: > > On Sat, 21 Jul 2018 23:19:48 +0200 (CEST) > > Peter Meerwald-Stadler wrote: > > > > > Hello, > > > > > > >

Re: [PATCH 1/3] iio: adc: add support for mcp3911

2018-07-23 Thread Jonathan Cameron
On Sun, 22 Jul 2018 21:00:51 +0200 Marcus Folkesson wrote: > Hi Jonathan, > > Thanks, all good catches. > > On Sun, Jul 22, 2018 at 09:08:38AM +0100, Jonathan Cameron wrote: > > On Sat, 21 Jul 2018 23:19:48 +0200 (CEST) > > Peter Meerwald-Stadler wrote: > > > > > Hello, > > > > > > >

Re: Kernel 4.17.4 lockup

2018-07-23 Thread H.J. Lu
On Fri, Jul 20, 2018 at 2:35 PM, Andy Lutomirski wrote: > >> On Jul 16, 2018, at 6:05 AM, H.J. Lu wrote: >> >>> On Fri, Jul 13, 2018 at 7:08 PM, Andy Lutomirski >>> wrote: >>> I'm not at all convinced that this is the problem, but the series here >>> will give a better diagnostic if the issue

Re: Kernel 4.17.4 lockup

2018-07-23 Thread H.J. Lu
On Fri, Jul 20, 2018 at 2:35 PM, Andy Lutomirski wrote: > >> On Jul 16, 2018, at 6:05 AM, H.J. Lu wrote: >> >>> On Fri, Jul 13, 2018 at 7:08 PM, Andy Lutomirski >>> wrote: >>> I'm not at all convinced that this is the problem, but the series here >>> will give a better diagnostic if the issue

Fault injection stacktrace filter for x86-64?

2018-07-23 Thread Gal Pressman
According to commit [1], dwarf2 unwinder had some issues that prevented the fault injection stacktrace filter from working on x86-64. Does anyone know whether this issue still exists 11 years later? Are there any objections to revert this patch? Gal [1] 6d690dcac92a ("fault injection: disable

Fault injection stacktrace filter for x86-64?

2018-07-23 Thread Gal Pressman
According to commit [1], dwarf2 unwinder had some issues that prevented the fault injection stacktrace filter from working on x86-64. Does anyone know whether this issue still exists 11 years later? Are there any objections to revert this patch? Gal [1] 6d690dcac92a ("fault injection: disable

RE: [PATCH v2] ASoC: da7219: Allow pdata to specify a VDDIO

2018-07-23 Thread Adam Thomson
On 23 July 2018 00:28, Daniel Kurtz wrote: > Some systems do not have software controllable regulators driving the > DA7219's supplies, nor can they use device tree to create "always-on fixed > regulators" to easily pretend like they do. > > On these systems the call to devm_regulator_bulk_get()

RE: [PATCH v2] ASoC: da7219: Allow pdata to specify a VDDIO

2018-07-23 Thread Adam Thomson
On 23 July 2018 00:28, Daniel Kurtz wrote: > Some systems do not have software controllable regulators driving the > DA7219's supplies, nor can they use device tree to create "always-on fixed > regulators" to easily pretend like they do. > > On these systems the call to devm_regulator_bulk_get()

Re: linux-next: Tree for Jul 23

2018-07-23 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Changes since 20180720: > > Dropped trees: xarray, ida (complex conflicts) > > The drm-msm tree gained a conflict against the drm tree and a build > failure due to an interaction with the drm tree for which I added a > merge fix patch. > > The kvm-arm tree

Re: linux-next: Tree for Jul 23

2018-07-23 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Changes since 20180720: > > Dropped trees: xarray, ida (complex conflicts) > > The drm-msm tree gained a conflict against the drm tree and a build > failure due to an interaction with the drm tree for which I added a > merge fix patch. > > The kvm-arm tree

Re: [RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-07-23 Thread Patrick Bellasi
On 23-Jul 16:13, Peter Zijlstra wrote: > On Mon, Jul 23, 2018 at 01:49:46PM +0100, Patrick Bellasi wrote: > > On 23-Jul 11:49, Peter Zijlstra wrote: > > > > [...] > > > > > > -void __getparam_dl(struct task_struct *p, struct sched_attr *attr) > > > > +void __getparam_dl(struct task_struct *p,

Re: [RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-07-23 Thread Patrick Bellasi
On 23-Jul 16:13, Peter Zijlstra wrote: > On Mon, Jul 23, 2018 at 01:49:46PM +0100, Patrick Bellasi wrote: > > On 23-Jul 11:49, Peter Zijlstra wrote: > > > > [...] > > > > > > -void __getparam_dl(struct task_struct *p, struct sched_attr *attr) > > > > +void __getparam_dl(struct task_struct *p,

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-23 Thread Yixun Lan
HI Kevin On 07/23/2018 10:12 PM, Kevin Hilman wrote: > Yixun Lan writes: > > [...] > >>> Second, we might like to convert eMMC driver to also use mmc-clkc model. >>> >>> IMO, this should be done as part of merging this series. Otherwise, we >>> have duplicated code for the same thing. >>

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-23 Thread Yixun Lan
HI Kevin On 07/23/2018 10:12 PM, Kevin Hilman wrote: > Yixun Lan writes: > > [...] > >>> Second, we might like to convert eMMC driver to also use mmc-clkc model. >>> >>> IMO, this should be done as part of merging this series. Otherwise, we >>> have duplicated code for the same thing. >>

[PATCH 0/7] x86: Enable a few new instructions

2018-07-23 Thread Fenghua Yu
A few new instructions including direct stores (movdiri and movdir64b) and user wait (umwait, umonitor, and tpause) and IA32_MWAIT_CONTROL MSR to control umwait/umonitor/tpause behaviors will be available in Tremont and other future x86 processors. This patch set enumerates the instructions, adds

[PATCH 0/7] x86: Enable a few new instructions

2018-07-23 Thread Fenghua Yu
A few new instructions including direct stores (movdiri and movdir64b) and user wait (umwait, umonitor, and tpause) and IA32_MWAIT_CONTROL MSR to control umwait/umonitor/tpause behaviors will be available in Tremont and other future x86 processors. This patch set enumerates the instructions, adds

[PATCH 4/7] x86/umwait_contro: Set global umwait maximum time limit and umwait C0.2 state

2018-07-23 Thread Fenghua Yu
UMWAIT or TPAUSE called by user process makes processor to reside in a light-weight power/performance optimized state (C0.1 state) or an improved power/performance optimized state (C0.2 state). IA32_UMWAIT_CONTROL MSR register allows OS to set global maximum umwait time and disable C0.2 on the

[PATCH 4/7] x86/umwait_contro: Set global umwait maximum time limit and umwait C0.2 state

2018-07-23 Thread Fenghua Yu
UMWAIT or TPAUSE called by user process makes processor to reside in a light-weight power/performance optimized state (C0.1 state) or an improved power/performance optimized state (C0.2 state). IA32_UMWAIT_CONTROL MSR register allows OS to set global maximum umwait time and disable C0.2 on the

[PATCH 2/7] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-07-23 Thread Fenghua Yu
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. In low latency offload (e.g. Non-Volatile Memory, etc), MOVDIR64B writes work descriptors (and data in

[PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-23 Thread Fenghua Yu
User wants to query if direct store instructions are supported and use the instructions. The vDSO functions provides fast interface for user to query the support and use the instructions. movdiri_supported and its alias __vdso_movdiri_supported check if movdiri instructions are supported.

[PATCH 2/7] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-07-23 Thread Fenghua Yu
MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity. Direct store is implemented by using write combining (WC) for writing data directly into memory without caching the data. In low latency offload (e.g. Non-Volatile Memory, etc), MOVDIR64B writes work descriptors (and data in

[PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-23 Thread Fenghua Yu
User wants to query if direct store instructions are supported and use the instructions. The vDSO functions provides fast interface for user to query the support and use the instructions. movdiri_supported and its alias __vdso_movdiri_supported check if movdiri instructions are supported.

[PATCH 7/7] selftests/vDSO: Add selftest to test vDSO functions for direct store and user wait instructions

2018-07-23 Thread Fenghua Yu
The selftest tool tests the vDSO functions for calling the instructions including movdiri32, movdiri64, movdir64b, umonitor, umwait, tpause, and their support checking. Limited by testing environment, the selftest doesn't contain some complex tests e.g. wake up process by writing the monitor

[PATCH 7/7] selftests/vDSO: Add selftest to test vDSO functions for direct store and user wait instructions

2018-07-23 Thread Fenghua Yu
The selftest tool tests the vDSO functions for calling the instructions including movdiri32, movdiri64, movdir64b, umonitor, umwait, tpause, and their support checking. Limited by testing environment, the selftest doesn't contain some complex tests e.g. wake up process by writing the monitor

[PATCH 6/7] x86/vdso: Add vDSO functions for user wait instructions

2018-07-23 Thread Fenghua Yu
User wants to query if user wait instructions (umonitor, umwait, and tpause) are supported and use the instructions. The vDSO functions provides fast interface for user to check the support and use the instructions. waitpkg_supported and its alias __vdso_waitpkg_supported check if user wait

[PATCH 6/7] x86/vdso: Add vDSO functions for user wait instructions

2018-07-23 Thread Fenghua Yu
User wants to query if user wait instructions (umonitor, umwait, and tpause) are supported and use the instructions. The vDSO functions provides fast interface for user to check the support and use the instructions. waitpkg_supported and its alias __vdso_waitpkg_supported check if user wait

[PATCH 1/7] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-07-23 Thread Fenghua Yu
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Programmable agents can handle streaming offload (e.g. high speed packet processing in network).

[PATCH 3/7] x86/cpufeatures: Enumerate UMONITOR, UMWAIT, and TPAUSE instructions

2018-07-23 Thread Fenghua Yu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to

[PATCH 1/7] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-07-23 Thread Fenghua Yu
MOVDIRI moves doubleword or quadword from register to memory through direct store which is implemented by using write combining (WC) for writing data directly into memory without caching the data. Programmable agents can handle streaming offload (e.g. high speed packet processing in network).

[PATCH 3/7] x86/cpufeatures: Enumerate UMONITOR, UMWAIT, and TPAUSE instructions

2018-07-23 Thread Fenghua Yu
UMONITOR, UMWAIT, and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to

Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Snild Dolkow
On 07/23/2018 03:55 PM, Steven Rostedt wrote: > Can you add a comment here stating something to the affect of: > /* task is now visible to other tasks */ > > -- Steve Sure, but isn't that a bit misleading? It will have been visible since some unknown point in time between waking up

Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Snild Dolkow
On 07/23/2018 03:55 PM, Steven Rostedt wrote: > Can you add a comment here stating something to the affect of: > /* task is now visible to other tasks */ > > -- Steve Sure, but isn't that a bit misleading? It will have been visible since some unknown point in time between waking up

Re: [PATCH] serial: 8250_ingenic: Add support for the JZ4725B SoC

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 12:58 PM Paul Cercueil wrote: > > Hi Rob, > > Le ven. 20 juil. 2018 à 17:30, Rob Herring a écrit : > > On Fri, Jul 13, 2018 at 04:38:40PM +0200, Paul Cercueil wrote: > >> The UART in the jz4725b works just like in the other JZ SoCs, so > >> this > >> commit simply adds

Re: [PATCH] serial: 8250_ingenic: Add support for the JZ4725B SoC

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 12:58 PM Paul Cercueil wrote: > > Hi Rob, > > Le ven. 20 juil. 2018 à 17:30, Rob Herring a écrit : > > On Fri, Jul 13, 2018 at 04:38:40PM +0200, Paul Cercueil wrote: > >> The UART in the jz4725b works just like in the other JZ SoCs, so > >> this > >> commit simply adds

[PATCH] firewire: init_ohci1394_dma: Replace mdelay with msleep

2018-07-23 Thread Jia-Ju Bai
init_ohci1394_wait_for_busresets() and init_ohci1394_reset_and_init_dma() are never called in atomic context. They call mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by:

[PATCH] firewire: init_ohci1394_dma: Replace mdelay with msleep

2018-07-23 Thread Jia-Ju Bai
init_ohci1394_wait_for_busresets() and init_ohci1394_reset_and_init_dma() are never called in atomic context. They call mdelay() to busily wait, which is not necessary. mdelay() can be replaced with msleep(). This is found by a static analysis tool named DCNS written by myself. Signed-off-by:

Re: [PATCH] rtc: jz4740: Add support for the JZ4725B, JZ4760, JZ4770

2018-07-23 Thread Paul Cercueil
Hi, Le lun. 23 juil. 2018 à 16:18, Rob Herring a écrit : On Fri, Jul 20, 2018 at 1:04 PM Paul Cercueil wrote: Hi, Le ven. 20 juil. 2018 à 17:39, Rob Herring a écrit : > On Sat, Jul 14, 2018 at 03:50:08PM +0200, Paul Cercueil wrote: >> >> >> Le sam. 14 juil. 2018 à 15:32,

Re: [PATCH] rtc: jz4740: Add support for the JZ4725B, JZ4760, JZ4770

2018-07-23 Thread Paul Cercueil
Hi, Le lun. 23 juil. 2018 à 16:18, Rob Herring a écrit : On Fri, Jul 20, 2018 at 1:04 PM Paul Cercueil wrote: Hi, Le ven. 20 juil. 2018 à 17:39, Rob Herring a écrit : > On Sat, Jul 14, 2018 at 03:50:08PM +0200, Paul Cercueil wrote: >> >> >> Le sam. 14 juil. 2018 à 15:32,

Re: [PATCH] rtc: jz4740: Add support for the JZ4725B, JZ4760, JZ4770

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 1:04 PM Paul Cercueil wrote: > > Hi, > > Le ven. 20 juil. 2018 à 17:39, Rob Herring a écrit : > > On Sat, Jul 14, 2018 at 03:50:08PM +0200, Paul Cercueil wrote: > >> > >> > >> Le sam. 14 juil. 2018 à 15:32, Alexandre Belloni > >> a écrit : > >> > On 14/07/2018

Re: [PATCH] rtc: jz4740: Add support for the JZ4725B, JZ4760, JZ4770

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 1:04 PM Paul Cercueil wrote: > > Hi, > > Le ven. 20 juil. 2018 à 17:39, Rob Herring a écrit : > > On Sat, Jul 14, 2018 at 03:50:08PM +0200, Paul Cercueil wrote: > >> > >> > >> Le sam. 14 juil. 2018 à 15:32, Alexandre Belloni > >> a écrit : > >> > On 14/07/2018

Re: [PATCH] power: supply: bq27xxx: Update comments

2018-07-23 Thread Andrew F. Davis
On 07/22/2018 04:58 AM, Liu Xiang wrote: > The URL of bq27441-g1 and bq27426 are missing and bq27520-g4 is duplicated. > > Signed-off-by: Liu Xiang > --- Acked-by: Andrew F. Davis > drivers/power/supply/bq27xxx_battery.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [PATCH] power: supply: bq27xxx: Update comments

2018-07-23 Thread Andrew F. Davis
On 07/22/2018 04:58 AM, Liu Xiang wrote: > The URL of bq27441-g1 and bq27426 are missing and bq27520-g4 is duplicated. > > Signed-off-by: Liu Xiang > --- Acked-by: Andrew F. Davis > drivers/power/supply/bq27xxx_battery.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Nishanth Menon
On 13:56-20180723, Jassi Brar wrote: > On Mon, Jul 23, 2018 at 6:59 PM, Nishanth Menon wrote: [...] > >> .../bindings/mailbox/ti,secure-proxy.txt | 50 +++ > >> drivers/mailbox/ti-msgmgr.c| 353 > >> + > &g

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Nishanth Menon
On 13:56-20180723, Jassi Brar wrote: > On Mon, Jul 23, 2018 at 6:59 PM, Nishanth Menon wrote: [...] > >> .../bindings/mailbox/ti,secure-proxy.txt | 50 +++ > >> drivers/mailbox/ti-msgmgr.c| 353 > >> + > &g

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 08:30:06AM -0500, Josh Poimboeuf wrote: > On Thu, Jul 19, 2018 at 11:19:54PM +0200, Peter Zijlstra wrote: > > --- a/include/uapi/linux/perf_event.h > > +++ b/include/uapi/linux/perf_event.h > > @@ -143,6 +143,8 @@ enum perf_event_sample_format { > >

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 08:30:06AM -0500, Josh Poimboeuf wrote: > On Thu, Jul 19, 2018 at 11:19:54PM +0200, Peter Zijlstra wrote: > > --- a/include/uapi/linux/perf_event.h > > +++ b/include/uapi/linux/perf_event.h > > @@ -143,6 +143,8 @@ enum perf_event_sample_format { > >

Re: [RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 01:49:46PM +0100, Patrick Bellasi wrote: > On 23-Jul 11:49, Peter Zijlstra wrote: > > [...] > > > > -void __getparam_dl(struct task_struct *p, struct sched_attr *attr) > > > +void __getparam_dl(struct task_struct *p, struct sched_attr *attr, > > > +unsigned

Re: [RFC PATCH] sched/deadline: sched_getattr() returns absolute dl-task information

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 01:49:46PM +0100, Patrick Bellasi wrote: > On 23-Jul 11:49, Peter Zijlstra wrote: > > [...] > > > > -void __getparam_dl(struct task_struct *p, struct sched_attr *attr) > > > +void __getparam_dl(struct task_struct *p, struct sched_attr *attr, > > > +unsigned

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-23 Thread Kevin Hilman
Yixun Lan writes: [...] >> >>> Second, we might like to convert eMMC driver to also use mmc-clkc model. >> >> IMO, this should be done as part of merging this series. Otherwise, we >> have duplicated code for the same thing. > > IMO, I'd leave this out of this series, since this patch series

Re: [PATCH v2 1/3] clk: meson: add DT documentation for emmc clock controller

2018-07-23 Thread Kevin Hilman
Yixun Lan writes: [...] >> >>> Second, we might like to convert eMMC driver to also use mmc-clkc model. >> >> IMO, this should be done as part of merging this series. Otherwise, we >> have duplicated code for the same thing. > > IMO, I'd leave this out of this series, since this patch series

Re: [PATCH 0/3] PTI for x86-32 Fixes and Updates

2018-07-23 Thread Pavel Machek
Hi! > here are 3 patches which update the PTI-x86-32 patches recently merged > into the tip-tree. The patches are ordered by importance: It seems PTI is now in -next. I'll test that soon. Meanwhile... it looks like gcc is not slowed down significantly, but other stuff sees 30% .. 40%

Re: [PATCH 0/3] PTI for x86-32 Fixes and Updates

2018-07-23 Thread Pavel Machek
Hi! > here are 3 patches which update the PTI-x86-32 patches recently merged > into the tip-tree. The patches are ordered by importance: It seems PTI is now in -next. I'll test that soon. Meanwhile... it looks like gcc is not slowed down significantly, but other stuff sees 30% .. 40%

Re: [PATCH v2 13/19] mm/migrate: Use xchg instead of spinlock

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:20:32AM -0700, Srikar Dronamraju wrote: > > If you maybe write that like: > > > > if (time_after(jiffies, next_window) && > > xchg(>numabalancing_migrate_nr_pages, 0UL)) { > > > > do { > > next_window += interval; > >

Re: [PATCH v2 13/19] mm/migrate: Use xchg instead of spinlock

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:20:32AM -0700, Srikar Dronamraju wrote: > > If you maybe write that like: > > > > if (time_after(jiffies, next_window) && > > xchg(>numabalancing_migrate_nr_pages, 0UL)) { > > > > do { > > next_window += interval; > >

Re: [PATCH] phy: qcom-qmp: Fix dts bindings to reflect reality

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 11:54 AM Doug Anderson wrote: > > Hi, > > On Fri, Jul 20, 2018 at 10:26 AM, Rob Herring wrote: > > On Fri, Jul 20, 2018 at 9:13 AM Doug Anderson wrote: > >> > >> Rob, > >> > >> On Fri, Jul 20, 2018 at 7:10 AM, Rob Herring wrote: > >> > On Fri, Jul 06, 2018 at 04:31:42PM

Re: [PATCH] phy: qcom-qmp: Fix dts bindings to reflect reality

2018-07-23 Thread Rob Herring
On Fri, Jul 20, 2018 at 11:54 AM Doug Anderson wrote: > > Hi, > > On Fri, Jul 20, 2018 at 10:26 AM, Rob Herring wrote: > > On Fri, Jul 20, 2018 at 9:13 AM Doug Anderson wrote: > >> > >> Rob, > >> > >> On Fri, Jul 20, 2018 at 7:10 AM, Rob Herring wrote: > >> > On Fri, Jul 06, 2018 at 04:31:42PM

Re: kernel BUG at mm/shmem.c:LINE!

2018-07-23 Thread Matthew Wilcox
On Sun, Jul 22, 2018 at 07:28:01PM -0700, Hugh Dickins wrote: > Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! > I don't know, but I'm afraid it has not fixed linux-next breakage of > huge tmpfs: I get a similar page_to_pgoff BUG at mm/filemap.c:1466! > > Please try something

Re: [PATCH v2 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-07-23 Thread Allen Hubbe
On Fri, Jul 20, 2018 at 2:00 PM Logan Gunthorpe wrote: > > This commit fixes pingpong support for existing drivers that do not > implement ntb_default_port_number() and ntb_default_peer_port_number(). > This is required for hardware (like the crosslink topology of > switchtec) which cannot assign

Re: kernel BUG at mm/shmem.c:LINE!

2018-07-23 Thread Matthew Wilcox
On Sun, Jul 22, 2018 at 07:28:01PM -0700, Hugh Dickins wrote: > Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! > I don't know, but I'm afraid it has not fixed linux-next breakage of > huge tmpfs: I get a similar page_to_pgoff BUG at mm/filemap.c:1466! > > Please try something

Re: [PATCH v2 4/8] NTB: ntb_pingpong: Choose doorbells based on port number

2018-07-23 Thread Allen Hubbe
On Fri, Jul 20, 2018 at 2:00 PM Logan Gunthorpe wrote: > > This commit fixes pingpong support for existing drivers that do not > implement ntb_default_port_number() and ntb_default_peer_port_number(). > This is required for hardware (like the crosslink topology of > switchtec) which cannot assign

Re: [PATCH v2 00/19] Fixes for sched/numa_balancing

2018-07-23 Thread Peter Zijlstra
On Wed, Jun 20, 2018 at 10:32:41PM +0530, Srikar Dronamraju wrote: > Srikar Dronamraju (19): > sched/numa: Remove redundant field. > sched/numa: Evaluate move once per node > sched/numa: Simplify load_too_imbalanced > sched/numa: Set preferred_node based on best_cpu > sched/numa: Use

Re: [PATCH v2 00/19] Fixes for sched/numa_balancing

2018-07-23 Thread Peter Zijlstra
On Wed, Jun 20, 2018 at 10:32:41PM +0530, Srikar Dronamraju wrote: > Srikar Dronamraju (19): > sched/numa: Remove redundant field. > sched/numa: Evaluate move once per node > sched/numa: Simplify load_too_imbalanced > sched/numa: Set preferred_node based on best_cpu > sched/numa: Use

[PATCH] bq25890_charger.c : add the BQ25896 part

2018-07-23 Thread Angus Ainslie
Add some debugging to be able to check the proper initialization of the BQ25896 part. Enable the BQ25896 part. Add 2 new parameters "voltage_now" and "model_name". Signed-off-by: Angus Ainslie --- drivers/power/supply/bq25890_charger.c | 68 ++ 1 file changed, 58

[PATCH] bq25890_charger.c : add the BQ25896 part

2018-07-23 Thread Angus Ainslie
Add some debugging to be able to check the proper initialization of the BQ25896 part. Enable the BQ25896 part. Add 2 new parameters "voltage_now" and "model_name". Signed-off-by: Angus Ainslie --- drivers/power/supply/bq25890_charger.c | 68 ++ 1 file changed, 58

RE: [PATCH v3 3/3] dmaengine: imx-sdma: allocate max 20 bds for one transfer

2018-07-23 Thread Robin Gong
> -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年7月23日 18:54 > To: Robin Gong ; vk...@kernel.org; > dan.j.willi...@intel.com; s.ha...@pengutronix.de; li...@armlinux.org.uk > Cc: dmaeng...@vger.kernel.org; dl-linux-imx ; > ker...@pengutronix.de;

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Jassi Brar
ndings: mailbox: Add support for secure proxy threads >> mailbox: ti-msgmgr: Add support for Secure Proxy >> >> .../bindings/mailbox/ti,secure-proxy.txt | 50 +++ >> drivers/mailbox/ti-msgmgr.c | 353 >> + &g

Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Steven Rostedt
On Mon, 23 Jul 2018 15:42:10 +0200 Snild Dolkow wrote: > There was a window for racing when task->comm was being written. The > vsnprintf function writes 16 bytes, then counts the rest, then null > terminates. In the meantime, other threads could see the non-terminated > comm value. In our case,

RE: [PATCH v3 3/3] dmaengine: imx-sdma: allocate max 20 bds for one transfer

2018-07-23 Thread Robin Gong
> -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年7月23日 18:54 > To: Robin Gong ; vk...@kernel.org; > dan.j.willi...@intel.com; s.ha...@pengutronix.de; li...@armlinux.org.uk > Cc: dmaeng...@vger.kernel.org; dl-linux-imx ; > ker...@pengutronix.de;

Re: [PATCH V2 0/6] mailbox: ti-msgmgr: Add support for AM654 Secure Proxy

2018-07-23 Thread Jassi Brar
ndings: mailbox: Add support for secure proxy threads >> mailbox: ti-msgmgr: Add support for Secure Proxy >> >> .../bindings/mailbox/ti,secure-proxy.txt | 50 +++ >> drivers/mailbox/ti-msgmgr.c | 353 >> + &g

Re: [PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Steven Rostedt
On Mon, 23 Jul 2018 15:42:10 +0200 Snild Dolkow wrote: > There was a window for racing when task->comm was being written. The > vsnprintf function writes 16 bytes, then counts the rest, then null > terminates. In the meantime, other threads could see the non-terminated > comm value. In our case,

Re: [PATCH] arch/sh: use slow path for get_user_pages_fast() on SMP

2018-07-23 Thread Thomas Petazzoni
Hello, On Fri, 15 Jun 2018 19:04:45 +0300, Sergei Shtylyov wrote: > Hello! > > On 06/15/2018 06:52 PM, Thomas Petazzoni wrote: > > > The fast path of get_user_pages_fast() disables IRQs and then does: > > > > - gup_pud_range() > >- gup_pmd_range() > > - gup_pte_range() > >-

Re: [PATCH] arch/sh: use slow path for get_user_pages_fast() on SMP

2018-07-23 Thread Thomas Petazzoni
Hello, On Fri, 15 Jun 2018 19:04:45 +0300, Sergei Shtylyov wrote: > Hello! > > On 06/15/2018 06:52 PM, Thomas Petazzoni wrote: > > > The fast path of get_user_pages_fast() disables IRQs and then does: > > > > - gup_pud_range() > >- gup_pmd_range() > > - gup_pte_range() > >-

Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable DRM_PANEL_SEIKO_43WVF1G

2018-07-23 Thread Fabio Estevam
Hi Leonard, On Mon, Jul 23, 2018 at 10:42 AM, Leonard Crestez wrote: > This is one of the default lcdif panel options for several imx > development boards. Now that we switched to CONFIG_DRM_MXSFB=y this > should be enabled as well. > > Signed-off-by: Leonard Crestez Already sent as part of a

Re: [PATCH] ARM: imx_v6_v7_defconfig: Enable DRM_PANEL_SEIKO_43WVF1G

2018-07-23 Thread Fabio Estevam
Hi Leonard, On Mon, Jul 23, 2018 at 10:42 AM, Leonard Crestez wrote: > This is one of the default lcdif panel options for several imx > development boards. Now that we switched to CONFIG_DRM_MXSFB=y this > should be enabled as well. > > Signed-off-by: Leonard Crestez Already sent as part of a

[PATCH] perf build: Build error in libbpf with EXTRA_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -O2"

2018-07-23 Thread Thomas Richter
commit a5b8bd47dcc57 ("bpf tools: Collect eBPF programs from their own sections") cause a compiler error when building the perf tool in the linux-next tree. I compile it using a FEDORA 28 installation, my gcc compiler version: gcc (GCC) 8.0.1 20180324 (Red Hat 8.0.1-0.20) Here is the error

[PATCH] perf build: Build error in libbpf with EXTRA_CFLAGS="-Wp,-D_FORTIFY_SOURCE=2 -O2"

2018-07-23 Thread Thomas Richter
commit a5b8bd47dcc57 ("bpf tools: Collect eBPF programs from their own sections") cause a compiler error when building the perf tool in the linux-next tree. I compile it using a FEDORA 28 installation, my gcc compiler version: gcc (GCC) 8.0.1 20180324 (Red Hat 8.0.1-0.20) Here is the error

[PATCH] ARM: imx_v6_v7_defconfig: Enable DRM_PANEL_SEIKO_43WVF1G

2018-07-23 Thread Leonard Crestez
This is one of the default lcdif panel options for several imx development boards. Now that we switched to CONFIG_DRM_MXSFB=y this should be enabled as well. Signed-off-by: Leonard Crestez --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] ARM: imx_v6_v7_defconfig: Enable DRM_PANEL_SEIKO_43WVF1G

2018-07-23 Thread Leonard Crestez
This is one of the default lcdif panel options for several imx development boards. Now that we switched to CONFIG_DRM_MXSFB=y this should be enabled as well. Signed-off-by: Leonard Crestez --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Snild Dolkow
There was a window for racing when task->comm was being written. The vsnprintf function writes 16 bytes, then counts the rest, then null terminates. In the meantime, other threads could see the non-terminated comm value. In our case, it got into the trace system's saved cmdlines and could cause

[PATCH RESEND] kthread, tracing: Don't expose half-written comm when creating kthreads

2018-07-23 Thread Snild Dolkow
There was a window for racing when task->comm was being written. The vsnprintf function writes 16 bytes, then counts the rest, then null terminates. In the meantime, other threads could see the non-terminated comm value. In our case, it got into the trace system's saved cmdlines and could cause

<    4   5   6   7   8   9   10   11   12   13   >