Re: [PATCH v2 1/2] platform/x86: asus-wmi: Call led hw_changed API on kbd brightness change

2018-06-13 Thread Chris Chiu
On Wed, Jun 13, 2018 at 8:49 PM, Andy Shevchenko wrote: > On Mon, Jun 11, 2018 at 10:18 AM, Chris Chiu wrote: >> Make asus-wmi notify on hotkey kbd brightness changes, listen for >> brightness events and update the brightness directly in the driver. > >> For this purpose, bound check on brightnes

Re: [PATCH v3 6/7] soc: qcom: Add RPMh Power domain driver

2018-06-13 Thread Rajendra Nayak
Hi David, On 06/14/2018 06:02 AM, David Collins wrote: > Hello Rajendra, > > On 06/11/2018 09:40 PM, Rajendra Nayak wrote: >> The RPMh Power domain driver aggregates the corner votes from various >> consumers for the ARC resources and communicates it to RPMh. >> >> We also add data for all power

Re: [PATCH v2 4/5] thermal: tsens: Add support for SDM845

2018-06-13 Thread Vivek Gautam
Hi Amit, On Tue, Jun 12, 2018 at 4:24 PM, Amit Kucheria wrote: > SDM845 uses the TSENS v2 IP block > > Signed-off-by: Amit Kucheria > --- > Documentation/devicetree/bindings/thermal/qcom-tsens.txt | 1 + > drivers/thermal/qcom/Makefile| 2 +- > drivers/thermal/qcom

Re: [PATCH 5/5] soc: qcom: Remove depends on ARCH_QCOM

2018-06-13 Thread Vivek Gautam
On Thu, Jun 14, 2018 at 12:05 PM, Vivek Gautam wrote: > On Wed, Jun 13, 2018 at 6:24 PM, Niklas Cassel > wrote: >> Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), >> we unconditionally include the soc/qcom/Makefile. >> >> This opens up the possibility to compile test th

[PATCH v2] x86/e820: put !E820_TYPE_RAM regions into memblock.reserved

2018-06-13 Thread Naoya Horiguchi
On Thu, Jun 14, 2018 at 07:38:59AM +0200, Oscar Salvador wrote: > On Thu, Jun 14, 2018 at 05:16:18AM +, Naoya Horiguchi wrote: ... > > > > My concern is that there are a few E820 memory types rather than > > E820_TYPE_RAM and E820_TYPE_RESERVED, and I'm not sure that putting them > > all into

Re: [PATCH 7/7] tty: serial: lantiq: Add CCF support

2018-06-13 Thread Wu, Songjun
On 6/13/2018 6:39 AM, Rob Herring wrote: On Tue, Jun 12, 2018 at 01:40:34PM +0800, Songjun Wu wrote: Previous implementation uses platform-dependent API to get the clock. Those functions are not available for other SoC which uses the same IP. The CCF (Common Clock Framework) have an abstracti

Re: [PATCH v3 7/7] soc: qcom: rpmpd/rpmhpd: Add a max vote on all corners at init

2018-06-13 Thread Rajendra Nayak
On 06/14/2018 03:58 AM, David Collins wrote: > Hello Rajendra, > > On 06/11/2018 09:40 PM, Rajendra Nayak wrote: >> As we move from no clients/consumers in kernel voting on corners, >> to *some* voting and some not voting, we might end up in a situation >> where the clients which remove votes c

Re: [PATCH 4.4 00/24] 4.4.137-stable review

2018-06-13 Thread Greg Kroah-Hartman
On Wed, Jun 13, 2018 at 10:48:50PM -0300, Rafael Tinoco wrote: > On 13 June 2018 at 18:08, Rafael David Tinoco > wrote: > > On Wed, Jun 13, 2018 at 6:00 PM, Greg Kroah-Hartman > > wrote: > >> On Wed, Jun 13, 2018 at 05:47:49PM -0300, Rafael Tinoco wrote: > >>> Results from Linaro’s test farm. > >

Re: [PATCH 5/5] soc: qcom: Remove depends on ARCH_QCOM

2018-06-13 Thread Vivek Gautam
On Wed, Jun 13, 2018 at 6:24 PM, Niklas Cassel wrote: > Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), > we unconditionally include the soc/qcom/Makefile. > > This opens up the possibility to compile test the code even when > building for other architectures. Why do we

Re: [PATCH] pinctrl: qcom: spmi-gpio: Add pm8998 and pm8005 to binding

2018-06-13 Thread Vivek Gautam
On 6/13/2018 4:36 AM, Stephen Boyd wrote: Update the binding for two more PMICs supported by the same driver. While we're here, remove the duplicate pmi8994 lines because that support got merged twice. Cc: Rajendra Nayak Cc: Vivek Gautam Cc: Signed-off-by: Stephen Boyd --- .../devicetre

Re: [GIT PULL] Kbuild updates for 4.18 (2nd round)

2018-06-13 Thread Linus Torvalds
On Thu, Jun 14, 2018 at 3:16 AM Masahiro Yamada wrote: > > Could you run sed directly in your tree? Sure, I did that on the plane. Now on the ground, pushed out. Somebody should double- and triple-check it. Linus

Re: [PATCH v3 5/7] dt-bindings: power: Add qcom rpmh power domain driver bindings

2018-06-13 Thread Rajendra Nayak
Hi David, On 06/14/2018 03:42 AM, David Collins wrote: > Hello Rajendra, > > On 06/11/2018 09:40 PM, Rajendra Nayak wrote: >> Add DT bindings to describe the rpmh powerdomains found on Qualcomm > > s/powerdomains/power domains/ > >> Technologies, Inc. SoCs. These power domains communicate a per

[tip:perf/urgent] perf script: Show hw-cache events

2018-06-13 Thread tip-bot for Seeteena Thoufeek
Commit-ID: fad76d4333fe73cf3f73704aa34d4ce523b1c458 Gitweb: https://git.kernel.org/tip/fad76d4333fe73cf3f73704aa34d4ce523b1c458 Author: Seeteena Thoufeek AuthorDate: Fri, 8 Jun 2018 16:32:28 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 8 Jun 2018 13:41:30 -0300 perf scrip

Re: [PATCH 1/2] arm64: avoid alloc memory on offline node

2018-06-13 Thread Hanjun Guo
Hi Punit, On 2018/6/14 1:39, Punit Agrawal wrote: > Punit Agrawal writes: > > > [...] > >> >> CONFIG_HAVE_MEMORYLESS node is not enabled on arm64 which means we end >> up returning the original node in the fallback path. >> >> Xie, does the below patch help? I can submit a proper patch if this

[tip:perf/urgent] perf c2c: Keep struct hist_entry at the end of struct c2c_hist_entry

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: 4c8205273626f27b9e5a64bdc194ab483a8cce66 Gitweb: https://git.kernel.org/tip/4c8205273626f27b9e5a64bdc194ab483a8cce66 Author: Jiri Olsa AuthorDate: Fri, 8 Jun 2018 02:22:11 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 8 Jun 2018 13:35:53 -0300 perf c2c: Keep str

[tip:perf/urgent] perf stat: Add event parsing error handling to add_default_attributes

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: a5cfa6217c94a1f1cfad4481fc14f5fc399abde3 Gitweb: https://git.kernel.org/tip/a5cfa6217c94a1f1cfad4481fc14f5fc399abde3 Author: Jiri Olsa AuthorDate: Thu, 7 Jun 2018 00:15:10 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 16:03:21 -0300 perf stat: Add eve

Re: [PATCH 01/14] ubi: fastmap: Read PEB numbers more carefully

2018-06-13 Thread Richard Weinberger
Am Donnerstag, 14. Juni 2018, 03:04:40 CEST schrieb kbuild test robot: > Hi Richard, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on mtd/master] > [also build test WARNING on v4.17 next-20180613] > [if your patch is applied to the wrong

[tip:perf/urgent] perf stat: Allow to specify specific metric column len

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: c1a1f5d9da800dc715d8c1d8a9692c63c70c2955 Gitweb: https://git.kernel.org/tip/c1a1f5d9da800dc715d8c1d8a9692c63c70c2955 Author: Jiri Olsa AuthorDate: Thu, 7 Jun 2018 00:15:09 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 16:01:44 -0300 perf stat: Allow t

[tip:perf/urgent] perf stat: Fix metric column header display alignment

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: f515572734fb323aa0efe9ea2c546cd7fee327f7 Gitweb: https://git.kernel.org/tip/f515572734fb323aa0efe9ea2c546cd7fee327f7 Author: Jiri Olsa AuthorDate: Thu, 7 Jun 2018 00:15:08 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 15:59:13 -0300 perf stat: Fix met

[tip:perf/urgent] perf stat: Use only color_fprintf call in print_metric_only

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: b37d33edbf41b532ddd156707c037c6f4784e40b Gitweb: https://git.kernel.org/tip/b37d33edbf41b532ddd156707c037c6f4784e40b Author: Jiri Olsa AuthorDate: Thu, 7 Jun 2018 00:15:07 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 15:58:13 -0300 perf stat: Use onl

[tip:perf/urgent] perf tools: Fix error index for pmu event parser

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: f7fa827f5f432a0b1f34e10fc49da93aeef9f817 Gitweb: https://git.kernel.org/tip/f7fa827f5f432a0b1f34e10fc49da93aeef9f817 Author: Jiri Olsa AuthorDate: Thu, 7 Jun 2018 00:15:05 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 15:50:14 -0300 perf tools: Fix er

[tip:perf/urgent] perf stat: Add --interval-clear option

2018-06-13 Thread tip-bot for Jiri Olsa
Commit-ID: 9660e08ee8cbc94ac835f2c30576c6e51fbece8f Gitweb: https://git.kernel.org/tip/9660e08ee8cbc94ac835f2c30576c6e51fbece8f Author: Jiri Olsa AuthorDate: Thu, 7 Jun 2018 00:15:06 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 15:53:36 -0300 perf stat: Add --i

[tip:perf/urgent] perf hists: Reimplement hists__has_callchains()

2018-06-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: c9d366287042489090da0391318df528bdce9941 Gitweb: https://git.kernel.org/tip/c9d366287042489090da0391318df528bdce9941 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 7 Jun 2018 14:42:27 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 14:42:27 -0300 per

Re: [PATCH] infiniband: fix a subtle race condition

2018-06-13 Thread Cong Wang
On Wed, Jun 13, 2018 at 10:34 PM, Leon Romanovsky wrote: > > Hi Cong, > > If the compiler optimizes the first line (mutex_lock) as you wrote, > it will reuse "f" for the second line (mutex_unlock) too. Nope, check the assembly if you don't trust me, at least my compiler always fetches ctx->file w

[tip:perf/urgent] perf hists: Make hist_entry__has_callchains() work with 'perf c2c'

2018-06-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: e5654455795f2f89328f7b301dacb6926e57e2b8 Gitweb: https://git.kernel.org/tip/e5654455795f2f89328f7b301dacb6926e57e2b8 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 7 Jun 2018 14:27:19 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 14:27:19 -0300 per

[tip:perf/urgent] perf hists browser gtk: Use hist_entry__has_callchains()

2018-06-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 29f9fcdd3f8edccad5809cf939ce921752460fe7 Gitweb: https://git.kernel.org/tip/29f9fcdd3f8edccad5809cf939ce921752460fe7 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 7 Jun 2018 14:33:31 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 14:33:31 -0300 per

Re: [PATCH V6 11/30] block: implement bio_pages_all() via bio_for_each_segment_all()

2018-06-13 Thread Christoph Hellwig
On Thu, Jun 14, 2018 at 09:23:54AM +0800, Ming Lei wrote: > On Wed, Jun 13, 2018 at 07:44:12AM -0700, Christoph Hellwig wrote: > > Given that we have a single, dubious user of bio_pages_all I'd rather > > see it as an opencoded bio_for_each_ loop in the caller. > > Yeah, that is fine since there i

[tip:perf/urgent] perf hists: Save the callchain_size in struct hist_entry

2018-06-13 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 41477acf092251eb0cfe83068f48dbcb2521478a Gitweb: https://git.kernel.org/tip/41477acf092251eb0cfe83068f48dbcb2521478a Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 7 Jun 2018 14:19:54 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Jun 2018 14:22:53 -0300 per

Re: [GIT PULL 00/12] perf/urgent fixes and improvements

2018-06-13 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 2696ec4566f598ab483a6bebc4ec841b2efb88ec: > > Merge tag 'perf-core-for-mingo-4.18-20180606' of > gi

Re: [PATCH] infiniband: fix a subtle race condition

2018-06-13 Thread Leon Romanovsky
On Wed, Jun 13, 2018 at 04:49:47PM -0700, Cong Wang wrote: > In ucma_event_handler() we lock the mutex like this: > > mutex_lock(&ctx->file->mut); > ... > mutex_unlock(&ctx->file->mut); > > which seems correct, but we could translate it into this: > > f = ctx->file; > mutex_lock(&f->mut); > ... > f

[PATCH v4 0/7] add virt-dma support for imx-sdma

2018-06-13 Thread Robin Gong
The legacy sdma driver has below limitations or drawbacks: 1. Hardcode the max BDs number as "PAGE_SIZE / sizeof(*)", and alloc one page size for one channel regardless of only few BDs needed most time. But in few cases, the max PAGE_SIZE maybe not enough. 2. One SDMA channel can't st

[PATCH v4 2/7] dmaengine: imx-sdma: factor out a struct sdma_desc from struct sdma_channel

2018-06-13 Thread Robin Gong
From: Sascha Hauer This is a preparation step to make the adding of virt-dma easier. We create a struct sdma_desc, move some fields from struct sdma_channel there and add a pointer from the former to the latter. For now we allocate the data statically in struct sdma_channel, but with virt-dma sup

[PATCH v4 4/7] dmaengine: imx-sdma: remove useless 'lock' and 'enabled' in 'struct sdma_channel'

2018-06-13 Thread Robin Gong
Since 'sdmac->vc.lock' and 'sdmac->desc' can be used as 'lock' and 'enabled' in 'struct sdma_channel sdmac', remove them. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma

[PATCH v4 6/7] dmaengine: imx-sdma: add sdma_transfer_init to decrease code overlap

2018-06-13 Thread Robin Gong
There are lot of codes overlap between prep_sg and prep_cyclic function. Add sdma_transfer_init() function to elimated the code overlap. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 83 ++ 1 file changed, 37 insertions(+), 46 deletions(-)

[PATCH v4 3/7] dmaengine: imx-sdma: add virt-dma support

2018-06-13 Thread Robin Gong
The legacy sdma driver has below limitations or drawbacks: 1. Hardcode the max BDs number as "PAGE_SIZE / sizeof(*)", and alloc one page size for one channel regardless of only few BDs needed most time. But in few cases, the max PAGE_SIZE maybe not enough. 2. One SDMA channel can't st

[PATCH v4 5/7] dmaengine: imx-sdma: remove the maximum limitation for bd numbers

2018-06-13 Thread Robin Gong
No this limitation now after virtual dma used since bd is allocated dynamically instead of static. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 27b76eb..f56226f 100644

[PATCH v4 7/7] tty: serial: imx: split all dma setup operations out of 'port.lock' protector

2018-06-13 Thread Robin Gong
After sdma driver change to virt-dma, all bds will be allocated dynamically with 'port.lock' acquired instead of statically allocated before. That means the lock sequence is 'port.lock' -> 'fs_reclaim_acquire' .But in case uart rx/tx dma callback coming after other kernel code which have already ac

[PATCH v4 1/7] tty: serial: imx: correct dma cookie status

2018-06-13 Thread Robin Gong
Correct to check the right rx dma cookie status in spit of it works because only one cookie is running in the current sdma. But it will not once sdma driver support multi cookies running based on virt-dma. Signed-off-by: Robin Gong --- drivers/tty/serial/imx.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v2 1/7] vmw_balloon: fix inflation of 64-bit GFNs

2018-06-13 Thread Nadav Amit
at 10:50 PM, Greg Kroah-Hartman wrote: > On Thu, Jun 14, 2018 at 05:41:01AM +, Nadav Amit wrote: >> at 10:23 PM, Greg Kroah-Hartman wrote: >> >>> On Wed, Jun 13, 2018 at 06:54:06AM -0700, Nadav Amit wrote: When balloon batching is not supported by the hypervisor, the guest frame n

Re: [PATCH v2 1/7] vmw_balloon: fix inflation of 64-bit GFNs

2018-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 14, 2018 at 05:41:01AM +, Nadav Amit wrote: > at 10:23 PM, Greg Kroah-Hartman wrote: > > > On Wed, Jun 13, 2018 at 06:54:06AM -0700, Nadav Amit wrote: > >> When balloon batching is not supported by the hypervisor, the guest > >> frame number (GFN) must fit in 32-bit. However, due

Re: [PATCH v2 6/7] vmw_balloon: update copyright message

2018-06-13 Thread Greg Kroah-Hartman
On Thu, Jun 14, 2018 at 05:33:46AM +, Nadav Amit wrote: > at 10:24 PM, Greg Kroah-Hartman wrote: > > > On Wed, Jun 13, 2018 at 06:54:11AM -0700, Nadav Amit wrote: > >> Removing the paragraph about writing to the Free Software Foundation's > >> mailing address from the sample GPL notice accord

Re: [PATCH v2 1/7] vmw_balloon: fix inflation of 64-bit GFNs

2018-06-13 Thread Nadav Amit
at 10:23 PM, Greg Kroah-Hartman wrote: > On Wed, Jun 13, 2018 at 06:54:06AM -0700, Nadav Amit wrote: >> When balloon batching is not supported by the hypervisor, the guest >> frame number (GFN) must fit in 32-bit. However, due to a bug, this check >> was mistakenly ignored. In practice, when tota

Re: [PATCH] Staging: octeon-usb: octeon-hcd.c: Remove boiler plate and add SPDX

2018-06-13 Thread Greg KH
On Wed, Jun 13, 2018 at 05:28:25PM -0400, Javier Martinez wrote: > Removed massive boiler plate text at top of the file and instead > replaced it with a simple SPDX license identifier. > > Signed-off-by: Javier Martinez > --- > drivers/staging/octeon-usb/octeon-hcd.c | 47 ++-

Re: [PATCH] gpio: uniphier: set legitimate irq trigger type in .to_irq hook

2018-06-13 Thread Masahiro Yamada
2018-06-14 14:27 GMT+09:00 Masahiro Yamada : > If a GPIO chip is a part of a hierarchy IRQ domain, there is no > way to specify the trigger type when gpio(d)_to_irq() allocates an > interrupt on-the-fly. > > Currently, uniphier_gpio_to_irq() sets IRQ_TYPE_NONE, but it causes > an error in the .allo

Re: [PATCH] selftests: vm: return Kselftest Skip code for skipped tests

2018-06-13 Thread Mike Rapoport
On Wed, Jun 13, 2018 at 09:35:57PM -0600, Shuah Khan (Samsung OSG) wrote: > When vm test is skipped because of unmet dependencies and/or unsupported > configuration, it exits with error which is treated as a fail by the > Kselftest framework. This leads to false negative result even when the > test

Re: [PATCH v1] mm: zero remaining unavailable struct pages (Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM)

2018-06-13 Thread Oscar Salvador
On Thu, Jun 14, 2018 at 05:16:18AM +, Naoya Horiguchi wrote: > On Wed, Jun 13, 2018 at 11:07:00AM +0200, Michal Hocko wrote: > > On Wed 13-06-18 05:41:08, Naoya Horiguchi wrote: > > [...] > > > From: Naoya Horiguchi > > > Date: Wed, 13 Jun 2018 12:43:27 +0900 > > > Subject: [PATCH] mm: zero re

RE: [RFC PATCH 3/3] sdhci: arasan: Add support to read Tap Delay values from DT

2018-06-13 Thread Manish Narani
Ping for RFC > -Original Message- > From: Manish Narani [mailto:manish.nar...@xilinx.com] > Sent: Thursday, June 7, 2018 5:42 PM > To: robh...@kernel.org; mark.rutl...@arm.com; catalin.mari...@arm.com; > will.dea...@arm.com; m...@kernel.org; stefan.krsmano...@aggios.com; > linux-arm-ker...

[PATCH v4 4/7] dmaengine: imx-sdma: remove useless 'lock' and 'enabled' in 'struct sdma_channel'

2018-06-13 Thread Robin Gong
Since 'sdmac->vc.lock' and 'sdmac->desc' can be used as 'lock' and 'enabled' in 'struct sdma_channel sdmac', remove them. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma

[PATCH v4 3/7] dmaengine: imx-sdma: add virt-dma support

2018-06-13 Thread Robin Gong
The legacy sdma driver has below limitations or drawbacks: 1. Hardcode the max BDs number as "PAGE_SIZE / sizeof(*)", and alloc one page size for one channel regardless of only few BDs needed most time. But in few cases, the max PAGE_SIZE maybe not enough. 2. One SDMA channel can't st

[PATCH v4 6/7] dmaengine: imx-sdma: add sdma_transfer_init to decrease code overlap

2018-06-13 Thread Robin Gong
There are lot of codes overlap between prep_sg and prep_cyclic function. Add sdma_transfer_init() function to elimated the code overlap. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 83 ++ 1 file changed, 37 insertions(+), 46 deletions(-)

[PATCH v4 0/7] add virt-dma support for imx-sdma

2018-06-13 Thread Robin Gong
The legacy sdma driver has below limitations or drawbacks: 1. Hardcode the max BDs number as "PAGE_SIZE / sizeof(*)", and alloc one page size for one channel regardless of only few BDs needed most time. But in few cases, the max PAGE_SIZE maybe not enough. 2. One SDMA channel can't st

[PATCH v4 2/7] dmaengine: imx-sdma: factor out a struct sdma_desc from struct sdma_channel

2018-06-13 Thread Robin Gong
From: Sascha Hauer This is a preparation step to make the adding of virt-dma easier. We create a struct sdma_desc, move some fields from struct sdma_channel there and add a pointer from the former to the latter. For now we allocate the data statically in struct sdma_channel, but with virt-dma sup

[PATCH v4 1/7] tty: serial: imx: correct dma cookie status

2018-06-13 Thread Robin Gong
Correct to check the right rx dma cookie status in spit of it works because only one cookie is running in the current sdma. But it will not once sdma driver support multi cookies running based on virt-dma. Signed-off-by: Robin Gong --- drivers/tty/serial/imx.c | 2 +- 1 file changed, 1 insertion

[PATCH v4 5/7] dmaengine: imx-sdma: remove the maximum limitation for bd numbers

2018-06-13 Thread Robin Gong
No this limitation now after virtual dma used since bd is allocated dynamically instead of static. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 27b76eb..f56226f 100644

[PATCH v4 7/7] tty: serial: imx: split all dma setup operations out of 'port.lock' protector

2018-06-13 Thread Robin Gong
After sdma driver change to virt-dma, all bds will be allocated dynamically with 'port.lock' acquired instead of statically allocated before. That means the lock sequence is 'port.lock' -> 'fs_reclaim_acquire' .But in case uart rx/tx dma callback coming after other kernel code which have already ac

Re: [PATCH v2 6/7] vmw_balloon: update copyright message

2018-06-13 Thread Nadav Amit
at 10:24 PM, Greg Kroah-Hartman wrote: > On Wed, Jun 13, 2018 at 06:54:11AM -0700, Nadav Amit wrote: >> Removing the paragraph about writing to the Free Software Foundation's >> mailing address from the sample GPL notice according to checkpatch >> request. >> >> In addition, updating the year an

[PATCH] gpio: uniphier: set legitimate irq trigger type in .to_irq hook

2018-06-13 Thread Masahiro Yamada
If a GPIO chip is a part of a hierarchy IRQ domain, there is no way to specify the trigger type when gpio(d)_to_irq() allocates an interrupt on-the-fly. Currently, uniphier_gpio_to_irq() sets IRQ_TYPE_NONE, but it causes an error in the .alloc() hook of the parent domain. (drivers/irq/irq-uniphier

Re: [PATCH v2 6/7] vmw_balloon: update copyright message

2018-06-13 Thread Greg Kroah-Hartman
On Wed, Jun 13, 2018 at 06:54:11AM -0700, Nadav Amit wrote: > Removing the paragraph about writing to the Free Software Foundation's > mailing address from the sample GPL notice according to checkpatch > request. > > In addition, updating the year and adding a license tag. > > Reviewed-by: Xavier

Re: [PATCH v2 1/7] vmw_balloon: fix inflation of 64-bit GFNs

2018-06-13 Thread Greg Kroah-Hartman
On Wed, Jun 13, 2018 at 06:54:06AM -0700, Nadav Amit wrote: > When balloon batching is not supported by the hypervisor, the guest > frame number (GFN) must fit in 32-bit. However, due to a bug, this check > was mistakenly ignored. In practice, when total RAM is greater than > 16TB, the balloon does

[PATCH 1/2] PM / Domains: Rename opp_node to np

2018-06-13 Thread Viresh Kumar
The DT node passed here isn't necessarily an OPP node, as this routine can also be used for cases where the "required-opps" property is present directly in the device's node. Rename it. This also removes a stale comment. Signed-off-by: Viresh Kumar --- drivers/base/power/domain.c | 7 +++ 1

[PATCH 2/2] PM / Domains: Fix return value of of_genpd_opp_to_performance_state()

2018-06-13 Thread Viresh Kumar
of_genpd_opp_to_performance_state() should return 0 for errors, but the dummy routine isn't doing that. Fix it. Signed-off-by: Viresh Kumar --- include/linux/pm_domain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h inde

Re: [PATCH v1] mm: zero remaining unavailable struct pages (Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM)

2018-06-13 Thread Naoya Horiguchi
On Wed, Jun 13, 2018 at 11:07:00AM +0200, Michal Hocko wrote: > On Wed 13-06-18 05:41:08, Naoya Horiguchi wrote: > [...] > > From: Naoya Horiguchi > > Date: Wed, 13 Jun 2018 12:43:27 +0900 > > Subject: [PATCH] mm: zero remaining unavailable struct pages > > > > There is a kernel panic that is trig

[PATCH v2 3/3] mtd: rawnand: denali: optimize timing parameters for data interface

2018-06-13 Thread Masahiro Yamada
This commit improves the ->setup_data_interface() hook. The denali_setup_data_interface() needs the frequency of clk_x and the ratio of clk_x / clk. The latter is currently hardcoded in the driver, like this: #define DENALI_CLK_X_MULT 6 The IP datasheet requires that clk_x / clk be 4, 5

[PATCH v2 0/3] mtd: rawnand: denali: add new clocks and improve setup_data_interface

2018-06-13 Thread Masahiro Yamada
The ->setup_data_interface() hook needs to know the clock frequency. In fact, this IP needs three clocks, bus "which clock?" is really confusing. (It is not described in the DT-binding at all.) This series adds more clocks. In the new binding, three clocks are required: core clock, bus interfa

linux-kernel@vger.kernel.org

2018-06-13 Thread Masahiro Yamada
Add 'dev' as a shorthand before adding more code that takes a pointer to struce device. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/raw/denali_dt.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/raw/denali_dt.c

[PATCH v2 2/3] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-13 Thread Masahiro Yamada
According to the Denali User's Guide, this IP needs three clocks: - clk: controller core clock - clk_x: bus interface clock - ecc_clk: clock at which ECC circuitry is run Currently, denali_dt.c requires a single anonymous clock and its frequency. However, the driver needs to get the frequen

Re: [PATCH v1] mm: zero remaining unavailable struct pages (Re: kernel panic in reading /proc/kpageflags when enabling RAM-simulated PMEM)

2018-06-13 Thread Naoya Horiguchi
On Wed, Jun 13, 2018 at 10:40:32AM +0200, Oscar Salvador wrote: > On Wed, Jun 13, 2018 at 05:41:08AM +, Naoya Horiguchi wrote: > > Hi everyone, > > > > I wrote a patch for this issue. > > There was a discussion about prechecking approach, but I finally found > > out it's hard to make change o

[PATCH] extcon: Release locking when sending the notification of connector state

2018-06-13 Thread Chanwoo Choi
Previously, extcon used the spinlock before calling the notifier_call_chain to prevent the scheduled out of task and to prevent the notification delay. When spinlock is locked for sending the notification, deadlock issue occured on the side of extcon consumer device. To fix this issue, extcon consu

Re: [PATCH] selftests: kselftest_harness: return Kselftest Skip code for skipped tests

2018-06-13 Thread Kees Cook
On Wed, Jun 13, 2018 at 6:34 PM, Shuah Khan (Samsung OSG) wrote: > When a test is skipped because of unmet dependencies and/or unsupported > configuration, kselftest_harness exits with error which is treated as a > fail by the Kselftest framework. This leads to false negative result even > when th

Improving kselfests cross compilation

2018-06-13 Thread Florian Fainelli
Hi Shuah, I was giving a shot at building the kselftests from within buildroot [1] as of Linux be779f03d563981c65cc7417cc5e0dbbc5b89d30 and there are a number of things that make it still reasonably hard even today: - 3c545084130c1fd5cf873a5fec3ee29070128e06 ("selftests: sparc64: char: Selftest f

Re: linux-next: manual merge of the cifs tree with Linus' tree

2018-06-13 Thread Ronnie Sahlberg
Steve, Looks good. It builds and seems to work in my testing. Thanks. - Original Message - From: "Steve French" To: "Stephen Rothwell" Cc: "CIFS" , "Linux-Next Mailing List" , "Linux Kernel Mailing List" , "Kees Cook" , "Ronnie Sahlberg" , "Aurelien Aptel" Sent: Thursday, 14 June, 2

[PATCH] selftests: vm: return Kselftest Skip code for skipped tests

2018-06-13 Thread Shuah Khan (Samsung OSG)
When vm test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets skipp

[PATCH] devres: Add devm_of_iomap()

2018-06-13 Thread Benjamin Herrenschmidt
There are still quite a few cases where a device might want to get to a different node of the device-tree, obtain the resources and map them. This is generally open coded in drivers which is quite error prone We have of_iomap() and of_io_request_and_map() but they both have shortcomings, such as

[PATCH] selftests: user: return Kselftest Skip code for skipped tests

2018-06-13 Thread Shuah Khan (Samsung OSG)
When user test is skipped because of unmet dependencies and/or unsupported configuration, it exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a test gets ski

Re: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings

2018-06-13 Thread Sean Wang
On Tue, 2018-06-12 at 17:58 +0800, Sean Wang wrote: > On Wed, 2018-05-30 at 08:26 +0200, Marcel Holtmann wrote: > > Hi Sean, > > > > >> > > [ ... ] > > > >>> * Unknown packet (code 14 len 30) > > >>> 0.641509 > > >>> 01 00 00 00 02 00 01 0e 00 01

Re: [PATCH v3 0/6] add virt-dma support for imx-sdma

2018-06-13 Thread Robin Gong
Hi Lucas, I have identified the root cause besides the lockdep issue. Will contain the UART patch into my next v4 patchset. Hi Sascha, Will address your comments in v4 too. Thank you both input. On 三, 2018-06-13 at 18:07 +0200, Lucas Stach wrote: > Hi Robin, > > Am Dienstag, den

linux-next: Tree for Jun 14

2018-06-13 Thread Stephen Rothwell
Hi all, Note: please do *not* add any v4.19 material to your linux-next included branches until after v4.18-rc1 has been released. Changes since 20180613: The cifs tree gained a conflict against Linus' tree. The fbdev tree gained a conflict against Linus' tree. The akpm-current t

Re: [PATCH 2/2] iio: adc: Add Spreadtrum SC27XX PMICs ADC support

2018-06-13 Thread Baolin Wang
Hi Peter, On 13 June 2018 at 17:17, Baolin Wang wrote: > Hi Peter, > > On 13 June 2018 at 16:53, Peter Meerwald-Stadler wrote: >> >>> From: Freeman Liu >> >> some comments below >> >>> The Spreadtrum SC27XX PMICs ADC controller contains 32 channels, >>> which is used to sample voltages with 12

Re: [PATCH 08/11] staging: lustre: obdclass: move linux/linux-foo.c to foo.c

2018-06-13 Thread James Simmons
> As lustre is now linux-only, having this linux sub-directory > with files named "linux-something" is just noise. Move them > to a more friendly name. Reviewed-by: James Simmons > Signed-off-by: NeilBrown > --- > drivers/staging/lustre/lustre/obdclass/Makefile|2 > .../lustre/lus

Re: [PATCH 09/11] staging: lustre: discard WIRE_ATTR

2018-06-13 Thread James Simmons
> This macro adds nothing of value, and make the code harder > to read for new readers. Reviewed-by: James Simmons > Signed-off-by: NeilBrown > --- > .../staging/lustre/include/linux/lnet/socklnd.h|8 ++- > .../lustre/include/uapi/linux/lnet/lnet-types.h| 28 +--- > ..

Re: [PATCH 07/11] staging: lustre: fold lprocfs_call_handler functionality into lnet_debugfs_*

2018-06-13 Thread James Simmons
> The calling convention for ->proc_handler is rather clumsy, > as a comment in fs/procfs/proc_sysctl.c confirms. > lustre has copied this convention to lnet_debugfs_{read,write}, > and then provided a wrapper for handlers - lprocfs_call_handler - > to work around the clumsiness. > > It is clean

Re: [PATCH 4.4 00/24] 4.4.137-stable review

2018-06-13 Thread Rafael Tinoco
On 13 June 2018 at 18:08, Rafael David Tinoco wrote: > On Wed, Jun 13, 2018 at 6:00 PM, Greg Kroah-Hartman > wrote: >> On Wed, Jun 13, 2018 at 05:47:49PM -0300, Rafael Tinoco wrote: >>> Results from Linaro’s test farm. >>> Regressions detected. >>> >>> NOTE: >>> >>> 1) LTP vma03 test (cve-2011-24

linux-next: manual merge of the akpm-current tree with Linus' tree

2018-06-13 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/ocfs2/journal.c between commit: 6396bb221514 ("treewide: kzalloc() -> kcalloc()") from Linus' tree and commits: 18dc5b7810ff ("ocfs2: without quota support, avoid calling quota recovery") aa935a9c155b

linux-next: manual merge of the akpm-current tree with Linus' tree

2018-06-13 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/binfmt_elf.c between commit: 42bc47b35320 ("treewide: Use array_size() in vmalloc()") from Linus' tree and commit: 1d5239111f52 ("coredump: fix spam with zero VMA process") from the akpm-current tree. I

[PATCH] selftests: kselftest_harness: return Kselftest Skip code for skipped tests

2018-06-13 Thread Shuah Khan (Samsung OSG)
When a test is skipped because of unmet dependencies and/or unsupported configuration, kselftest_harness exits with error which is treated as a fail by the Kselftest framework. This leads to false negative result even when the test could not be run. Change it to return kselftest skip code when a t

Re: [PATCH 0/3] sched/swait: Convert to full exclusive mode

2018-06-13 Thread Paul E. McKenney
On Tue, Jun 12, 2018 at 10:34:49AM +0200, Peter Zijlstra wrote: > As mentioned by Linus, swait is exclusive mode and had better behave like it > and be named like it. > > Make it so. Cool! When I tried testing it on x86 against recent mainline, I got: "WARNING: WARNING: Bad or missing .orc_unwi

Re: Bug with dwc3 id detect and regulators

2018-06-13 Thread Chanwoo Choi
Hi Roger, On 2018년 06월 11일 17:53, Roger Quadros wrote: > Chanwoo, > > On 11/06/18 11:33, H. Nikolaus Schaller wrote: >> Hi Tony, >> another bug... >> >> [ 174.540313] BUG: scheduling while atomic: kworker/0:4/1327/0x0002 >> [ 174.547353] Modules linked in: omapdrm drm_kms_helper syscopyarea

Re: [PATCH v6 18/29] fpga: dfl: add fpga manager platform driver for FME

2018-06-13 Thread Moritz Fischer
Hi Hao, small nit below, looks good otherwise. On Tue, Jun 12, 2018 at 06:10:32PM +0800, Wu Hao wrote: > This patch adds fpga manager driver for FPGA Management Engine (FME). It > implements fpga_manager_ops for FPGA Partial Reconfiguration function. > > Signed-off-by: Tim Whisonant > Signed-of

Re: [PATCH v6 1/3] phy: Update PHY power control sequence

2018-06-13 Thread cang
On 2018-06-12 19:34, Vivek Gautam wrote: Hi Can, On 5/29/2018 10:07 AM, Can Guo wrote: All PHYs should be powered on before register configuration starts. And only PCIe PHYs need an extra power control before deasserts reset state. Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom

Re: [PATCH v6 17/29] fpga: dfl: fme: add partial reconfiguration sub feature support

2018-06-13 Thread Moritz Fischer
Hi, quick question for Alan inline below. On Tue, Jun 12, 2018 at 06:10:31PM +0800, Wu Hao wrote: > From: Kang Luwei > > Partial Reconfiguration (PR) is the most important function for FME. It > allows reconfiguration for given Port/Accelerated Function Unit (AFU). > > It creates platform devi

[PATCH] selftests: sparc64: Add missing SPDX License Identifiers

2018-06-13 Thread Shuah Khan (Samsung OSG)
Add missing SPDX License Identifiers to Makefile(s). Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/sparc64/Makefile | 1 + tools/testing/selftests/sparc64/drivers/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/

Re: [PATCH 01/14] ubi: fastmap: Read PEB numbers more carefully

2018-06-13 Thread kbuild test robot
Hi Richard, I love your patch! Perhaps something to improve: [auto build test WARNING on mtd/master] [also build test WARNING on v4.17 next-20180613] [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/linux

Re: [PATCH] arm64: dts: stingray: use NUM_SATA to configure number of sata ports

2018-06-13 Thread Florian Fainelli
On 06/13/2018 01:18 PM, Scott Branden wrote: > Hi Rob, > > Thanks for comment - reply inline. > > > On 18-06-13 12:31 PM, Florian Fainelli wrote: >> On 06/12/2018 03:54 PM, Rob Herring wrote: >>> On Thu, Jun 7, 2018 at 12:53 PM, Scott Branden >>> wrote: Hi Rob, Could you please k

Re: linux-next: manual merge of the cifs tree with Linus' tree

2018-06-13 Thread Steve French
Ronnie, I fixed up that patch and repushed to cifs-2.6.git for-next. Seems trivial. Let me know if any issues. On Wed, Jun 13, 2018 at 6:01 PM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the cifs tree got a conflict in: > > fs/cifs/transport.c > > between commit: > >

Re: [PATCH] optoe: driver to read/write SFP/QSFP EEPROMs

2018-06-13 Thread Don Bollinger
On Mon, Jun 11, 2018 at 03:43:02PM +0200, Arnd Bergmann wrote: > On Mon, Jun 11, 2018 at 6:25 AM, Don Bollinger wrote: > > optoe is an i2c based driver that supports read/write access to all > > the pages (tables) of MSA standard SFP and similar devices (conforming > > to the SFF-8472 spec) and MS

Re: [PATCH v3 6/7] soc: qcom: Add RPMh Power domain driver

2018-06-13 Thread David Collins
Hello Rajendra, On 06/11/2018 09:40 PM, Rajendra Nayak wrote: > The RPMh Power domain driver aggregates the corner votes from various > consumers for the ARC resources and communicates it to RPMh. > > We also add data for all power domains on sdm845 SoC as part of the patch. > The driver can be e

Re: [PATCH 3.18 00/21] 3.18.113-stable review

2018-06-13 Thread Kevin Hilman
Greg Kroah-Hartman writes: > On Tue, Jun 12, 2018 at 03:08:12PM -0700, kernelci.org bot wrote: >> stable-rc/linux-3.18.y boot: 52 boots: 28 failed, 18 passed with 1 offline, >> 5 conflicts (v3.18.112-22-gb0582263e3c9) >> >> Full Boot Summary: >> https://kernelci.org/boot/all/job/stable-rc/bran

[PATCH] infiniband: fix a subtle race condition

2018-06-13 Thread Cong Wang
In ucma_event_handler() we lock the mutex like this: mutex_lock(&ctx->file->mut); ... mutex_unlock(&ctx->file->mut); which seems correct, but we could translate it into this: f = ctx->file; mutex_lock(&f->mut); ... f = ctx->file; mutex_unlock(&f->mut); as the compiler does. And, because ucma_ev

linux-next: manual merge of the fbdev tree with Linus' tree

2018-06-13 Thread Stephen Rothwell
Hi Bartlomiej, Today's linux-next merge of the fbdev tree got a conflict in: drivers/video/fbdev/mmp/fb/mmpfb.c between commit: 6396bb221514 ("treewide: kzalloc() -> kcalloc()") from Linus' tree and commit: e0e894f59418 ("video: fbdev-MMP: Delete an error message for a failed memory al

Re: [PATCH 1/5] ARM: dts: cygnus: Fix I2C controller interrupt type

2018-06-13 Thread Ray Jui
On 6/13/2018 4:33 PM, Florian Fainelli wrote: On 06/13/2018 04:32 PM, Ray Jui wrote: On 6/13/2018 12:49 PM, Florian Fainelli wrote: On 06/12/2018 01:21 PM, Ray Jui wrote: Fix I2C controller interrupt to use IRQ_TYPE_LEVEL_HIGH for Broadcom Cygnus SoC Fixes: b51c05a331ff ("ARM: dts: add I

  1   2   3   4   5   6   >