[tip:perf/core] kprobes: Don't call BUG_ON() if there is a kprobe in use on free list

2018-09-11 Thread tip-bot for Masami Hiramatsu
Commit-ID: cbdd96f5586151e48317d90a403941ec23f12660 Gitweb: https://git.kernel.org/tip/cbdd96f5586151e48317d90a403941ec23f12660 Author: Masami Hiramatsu AuthorDate: Tue, 11 Sep 2018 19:21:09 +0900 Committer: Ingo Molnar CommitDate: Wed, 12 Sep 2018 08:01:16 +0200 kprobes: Don't call BU

[tip:perf/core] kprobes: Return error if we fail to reuse kprobe instead of BUG_ON()

2018-09-11 Thread tip-bot for Masami Hiramatsu
Commit-ID: 819319fc93461c07b9cdb3064f154bd8cfd48172 Gitweb: https://git.kernel.org/tip/819319fc93461c07b9cdb3064f154bd8cfd48172 Author: Masami Hiramatsu AuthorDate: Tue, 11 Sep 2018 19:20:40 +0900 Committer: Ingo Molnar CommitDate: Wed, 12 Sep 2018 08:01:16 +0200 kprobes: Return error

Re: [PATCH 4/4] sched/numa: Do not move imbalanced load purely on the basis of an idle CPU

2018-09-11 Thread Srikar Dronamraju
* Mel Gorman [2018-09-10 10:41:47]: > On Fri, Sep 07, 2018 at 01:37:39PM +0100, Mel Gorman wrote: > > > Srikar's patch here: > > > > > > > > > http://lkml.kernel.org/r/1533276841-16341-4-git-send-email-sri...@linux.vnet.ibm.com > > > > > > Also frobs this condition, but in a less radical way

Re: [RFC 0/4] perf: Per PMU access controls (paranoid setting)

2018-09-11 Thread Alexey Budankov
Hi, Is there any plans or may be even progress on that so far? Thanks, Alexey On 26.06.2018 18:36, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > For situations where sysadmins might want to allow different level of > access control for different PMUs, we start creating per-PMU > perf_even

Re: [PATCH] printk: inject caller information into the body of message

2018-09-11 Thread Sergey Senozhatsky
On (09/10/18 13:20), Alexander Potapenko wrote: > > Awesome. If you and Fengguang can combine forces and lead the > > whole thing towards "we couldn't care of pr_cont() less", it > > would be really huge. Go for it! > > Sorry, folks, am I understanding right that pr_cont() and flushing the > b

[tip:perf/core] kprobes: Remove pointless BUG_ON() from reuse_unused_kprobe()

2018-09-11 Thread tip-bot for Masami Hiramatsu
Commit-ID: a6d18e65dff2b73ceeb187c598b48898e36ad7b1 Gitweb: https://git.kernel.org/tip/a6d18e65dff2b73ceeb187c598b48898e36ad7b1 Author: Masami Hiramatsu AuthorDate: Tue, 11 Sep 2018 19:20:11 +0900 Committer: Ingo Molnar CommitDate: Wed, 12 Sep 2018 08:01:16 +0200 kprobes: Remove pointl

[tip:perf/core] kprobes: Remove pointless BUG_ON() from disarming process

2018-09-11 Thread tip-bot for Masami Hiramatsu
Commit-ID: d0555fc78fdba5646a460e83bd2d8249c539bb89 Gitweb: https://git.kernel.org/tip/d0555fc78fdba5646a460e83bd2d8249c539bb89 Author: Masami Hiramatsu AuthorDate: Tue, 11 Sep 2018 19:19:14 +0900 Committer: Ingo Molnar CommitDate: Wed, 12 Sep 2018 08:01:15 +0200 kprobes: Remove pointl

[tip:perf/core] kprobes: Remove pointless BUG_ON() from add_new_kprobe()

2018-09-11 Thread tip-bot for Masami Hiramatsu
Commit-ID: c72e6742f62d7bb82a77a41ca53940cb8f73e60f Gitweb: https://git.kernel.org/tip/c72e6742f62d7bb82a77a41ca53940cb8f73e60f Author: Masami Hiramatsu AuthorDate: Tue, 11 Sep 2018 19:19:43 +0900 Committer: Ingo Molnar CommitDate: Wed, 12 Sep 2018 08:01:15 +0200 kprobes: Remove pointl

[PATCH v2] mm: mprotect: check page dirty when change ptes

2018-09-11 Thread Peter Xu
Add an extra check on page dirty bit in change_pte_range() since there might be case where PTE dirty bit is unset but it's actually dirtied. One example is when a huge PMD is splitted after written: the dirty bit will be set on the compound page however we won't have the dirty bit set on each of th

[PATCH] kernel: prevent submission of creds with higher privileges inside container

2018-09-11 Thread My Name
From: Xin Lin <18650033...@163.com> Adversaries often attack the Linux kernel via using commit_creds(prepare_kernel_cred(0)) to submit ROOT credential for the purpose of privilege escalation. For processes inside the Linux container, the above approach also works, because the container and the hos

[PATCH v3 1/2] dmaengine: doc: Add sections for per descriptor metadata support

2018-09-11 Thread Peter Ujfalusi
Update the provider and client documentation with details about the metadata support. Signed-off-by: Peter Ujfalusi --- Documentation/driver-api/dmaengine/client.rst | 75 +++ .../driver-api/dmaengine/provider.rst | 46 2 files changed, 121 insertions(+) dif

[PATCH v3 0/2] dmaengine: Add per descriptor metadata support

2018-09-11 Thread Peter Ujfalusi
Hi, Changes since v2: - EXPORT_SYMBOL_GPL() for the metadata functions - Added note to Documentation to not mix the two defined metadata modes - Fixed the typos in Documentation Changes since v1: - Move code from header to dmaengine.c - Fix spelling - Use BIT() macro for bit definition - Update b

[PATCH v3 2/2] dmaengine: Add metadata_ops for dma_async_tx_descriptor

2018-09-11 Thread Peter Ujfalusi
The metadata is best described as side band data or parameters traveling alongside the data DMAd by the DMA engine. It is data which is understood by the peripheral and the peripheral driver only, the DMA engine see it only as data block and it is not interpreting it in any way. The metadata can b

[PATCH 2/2] kbuild: remove dead code in cmd_files calculation in top Makefile

2018-09-11 Thread Masahiro Yamada
Nobody sets 'targets' in the top-level Makefile or arch/*/Makefile, hence $(targets) is empty. $(wildcard .*.cmd) will do for including the .vmlinux.cmd file. Signed-off-by: Masahiro Yamada --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile i

[PATCH 1/2] kbuild: hide most of targets when running config or mixed targets

2018-09-11 Thread Masahiro Yamada
When mixed/config targets are being processed, the top Makefile does not need to parse the rest of targets. Signed-off-by: Masahiro Yamada --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4d5c883..4b76e22 100644 --- a/Makefile +++ b

Re: [REGRESSION] Errors at reboot after 722e5f2b1eec

2018-09-11 Thread Pingfan Liu
On Tue, Sep 11, 2018 at 5:37 PM Greg Kroah-Hartman wrote: > > On Tue, Sep 11, 2018 at 10:17:44AM +0200, Takashi Iwai wrote: > > [ seems like my previous post didn't go out properly; if you have > > already received it, please discard this one ] > > Sorry, I got it, it's just in my large queue :(

Re: [PATCH 2/8] regulator: Support ROHM BD71847 power management IC

2018-09-11 Thread Matti Vaittinen
Hello Lee, Thanks again for the review! I see you did bunch of them... I really admire your devotion. For me reviewing is hard work. I do appreciate it. So nice to see you're back in the business =) On Tue, Sep 11, 2018 at 02:48:08PM +0100, Lee Jones wrote: > On Wed, 29 Aug 2018, Matti Vaittinen

Re: [PATCH v2 2/3] x86/mm/KASLR: Calculate the actual size of vmemmap region

2018-09-11 Thread Ingo Molnar
* Baoquan He wrote: > On 09/11/18 at 08:08pm, Baoquan He wrote: > > On 09/11/18 at 11:28am, Ingo Molnar wrote: > > > Yeah, so proper context is still missing, this paragraph appears to > > > assume from the reader a > > > whole lot of prior knowledge, and this is one of the top comments in >

RE: Charity Support

2018-09-11 Thread M. M. Fridman
-- I, Mikhail Fridman have selected you specifically as one of my beneficiaries for my Charitable Donation of $5 Million Dollars, Check the link below for confirmation: https://www.rt.com/business/343781-mikhail-fridman-will-charity/ I await your earliest response for further directives.

[PATCH] kbuild: remove old check for CFLAGS use

2018-09-11 Thread Masahiro Yamada
This check has been here more than a decade since commit 0c53c8e6eb45 ("kbuild: check for wrong use of CFLAGS"). Enough time for migration has passed. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 10 -- 1 file changed, 10 deletions(-) diff --git a/scripts/Makefile.build

[PATCH v2] perf test: Add watchpoint test

2018-09-11 Thread Ravi Bangoria
We don't have perf test available to test watchpoint functionality. Add simple set of tests: - Read only watchpoint - Write only watchpoint - Read / Write watchpoint - Runtime watchpoint modification Ex on powerpc: $ sudo ./perf test 22 22: Watchpoint

Re: [PATCH] staging: remove unneeded static set .owner field in platform_driver

2018-09-11 Thread Vaibhav Agarwal
On Wed, Sep 12, 2018 at 9:22 AM zhong jiang wrote: > > platform_driver_register will set the .owner field. So it is safe > to remove the redundant assignment. > > The issue is detected with the help of Coccinelle. > > Signed-off-by: zhong jiang > --- > drivers/staging/greybus/audio_codec.c|

Re: [PATCH V3 4/6] x86/intel_rdt: Create required perf event attributes

2018-09-11 Thread kbuild test robot
Hi Reinette, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/x86/core] [also build test ERROR on v4.19-rc3 next-20180911] [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: [LKP] [rcu] 02a5c550b2: BUG:kernel_reboot-without-warning_in_test_stage

2018-09-11 Thread Paul E. McKenney
On Wed, Sep 12, 2018 at 01:25:27PM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 02a5c550b2738f2bfea8e1e00aa75944d71c9e18 ("rcu: Abstract extended > quiescent state determination") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/lin

Re: [PATCH -next] staging: mt7621-pci: Use PTR_ERR_OR_ZERO in mt7621_pcie_parse_dt()

2018-09-11 Thread Sergio Paracuellos
On Wed, Sep 12, 2018 at 02:50:08AM +, YueHaibing wrote: > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > Signed-off-by: YueHaibing > --- > drivers/staging/mt7621-pci/pci-mt7621.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/staging/mt76

Re: [PATCH 06/11] compat_ioctl: remove /dev/random commands

2018-09-11 Thread Martin Schwidefsky
On Tue, 11 Sep 2018 22:26:54 +0200 Arnd Bergmann wrote: > On Sun, Sep 9, 2018 at 6:12 AM Al Viro wrote: > > > > On Sat, Sep 08, 2018 at 04:28:12PM +0200, Arnd Bergmann wrote: > > > These are all handled by the random driver, so instead of listing > > > each ioctl, we can just use the same func

Re: [PATCH v2 2/2] dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver

2018-09-11 Thread Masahiro Yamada
2018-09-12 13:35 GMT+09:00 Vinod : > On 12-09-18, 12:01, Masahiro Yamada wrote: >> Hi Vinod, >> >> >> 2018-09-11 16:00 GMT+09:00 Vinod : >> > On 24-08-18, 10:41, Masahiro Yamada wrote: >> > >> >> +/* mc->vc.lock must be held by caller */ >> >> +static u32 __uniphier_mdmac_get_residue(struct uniphie

[LKP] [rcu] 02a5c550b2: BUG:kernel_reboot-without-warning_in_test_stage

2018-09-11 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: 02a5c550b2738f2bfea8e1e00aa75944d71c9e18 ("rcu: Abstract extended quiescent state determination") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: perf_event_tests with following parameters:

Re: [PATCH] firmware: vpd: fix spelling mistake "partion" -> "partition"

2018-09-11 Thread Greg Kroah-Hartman
On Tue, Sep 11, 2018 at 09:58:48PM -0700, Guenter Roeck wrote: > On 09/11/2018 09:58 AM, Colin King wrote: > > From: Colin Ian King > > > > Trivial fix to spelling mistake in comment > > > > Signed-off-by: Colin Ian King > > Reviewed-by: Guenter Roeck > > Interesting - drivers/firmware/googl

[PATCH v2 0/1] gpio: mvebu: Add support for multiple PWM lines

2018-09-11 Thread Aditya Prayoga
Hi everyone, Helios4, an Armada 388 based NAS SBC, provides 2 (4-pins) fan connectors. The PWM pins on both connector are connected to GPIO on bank 1. Current gpio-mvebu does not allow more than one PWM on the same bank. Aditya --- Changes v1->v2: * Merge/squash "[Patch 2/2] gpio: mvebu: Al

[PATCH v2 1/1] gpio: mvebu: Add support for multiple PWM lines per GPIO chip

2018-09-11 Thread Aditya Prayoga
Allow more than 1 PWM request (eg. PWM fan) on the same GPIO chip. If the other PWM counter is unused, allocate it to next PWM request. The priority would be: 1. Default counter assigned to the bank 2. Unused counter that is assigned to other bank Since there are only two PWM counters, only two PW

Re: [PATCH] xtensa: remove unnecessary KBUILD_SRC ifeq conditional

2018-09-11 Thread Max Filippov
On Tue, Sep 11, 2018 at 9:25 PM, Masahiro Yamada wrote: > You can always prefix variant/platform header search paths with > $(srctree)/ because $(srctree) is '.' for in-tree building. > > Signed-off-by: Masahiro Yamada > --- > > arch/xtensa/Makefile | 4 > 1 file changed, 4 deletions(-) Th

Re: [LKP] 0a3856392c [ 10.513760] INFO: trying to register non-static key.

2018-09-11 Thread Rong Chen
On 09/07/2018 10:19 AM, Matthew Wilcox wrote: On Fri, Sep 07, 2018 at 09:05:39AM +0800, kernel test robot wrote: Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit 0a3856392cf

Re: [PATCH] firmware: vpd: fix spelling mistake "partion" -> "partition"

2018-09-11 Thread Guenter Roeck
On 09/11/2018 09:58 AM, Colin King wrote: From: Colin Ian King Trivial fix to spelling mistake in comment Signed-off-by: Colin Ian King Reviewed-by: Guenter Roeck Interesting - drivers/firmware/google/ does not have a maintainer. Greg - is it correct to assume that you are the de-facto ma

[PATCH] kbuild: prefix Makefile.dtbinst path with $(srctree) unconditionally

2018-09-11 Thread Masahiro Yamada
$(srctree) always points to the top of the source tree whether KBUILD_SRC is set or not. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index ce53639..46cc43e 100644 --

linux-next: Tree for Sep 12

2018-09-11 Thread Stephen Rothwell
Hi all, News: there will be no linux-next releases on Friday or Monday. Changes since 20180911: Dropped trees: xarray, ida (temporarily) I applied a patch for a runtime problem in the vfs tree and I still disabled building some samples. The drm-misc tree gained a conflict against the drm tree

Re: [PATCH v2 2/2] dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver

2018-09-11 Thread Vinod
On 12-09-18, 12:01, Masahiro Yamada wrote: > Hi Vinod, > > > 2018-09-11 16:00 GMT+09:00 Vinod : > > On 24-08-18, 10:41, Masahiro Yamada wrote: > > > >> +/* mc->vc.lock must be held by caller */ > >> +static u32 __uniphier_mdmac_get_residue(struct uniphier_mdmac_desc *md) > >> +{ > >> + u32 re

Re: [PATCH] RISC-V: Show IPI stats

2018-09-11 Thread Anup Patel
On Mon, Sep 10, 2018 at 7:16 PM, Christoph Hellwig wrote: > On Fri, Sep 07, 2018 at 06:14:29PM +0530, Anup Patel wrote: >> This patch provides arch_show_interrupts() implementation to >> show IPI stats via /proc/interrupts. >> >> Now the contents of /proc/interrupts" will look like below: >>

[PATCH] xtensa: remove unnecessary KBUILD_SRC ifeq conditional

2018-09-11 Thread Masahiro Yamada
You can always prefix variant/platform header search paths with $(srctree)/ because $(srctree) is '.' for in-tree building. Signed-off-by: Masahiro Yamada --- arch/xtensa/Makefile | 4 1 file changed, 4 deletions(-) diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile index 295c120..d

[PATCH] ARM: remove unnecessary KBUILD_SRC ifeq conditional

2018-09-11 Thread Masahiro Yamada
You can always prefix machine/plat header search paths with $(srctree)/ because $(srctree) is '.' for in-tree building. Signed-off-by: Masahiro Yamada --- KernelVersion: v4.19-rc3 arch/arm/Makefile | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile in

Re: [PATCH] include/linux/compiler-clang.h: define __naked

2018-09-11 Thread Miguel Ojeda
Hi Arnd, Nick, Stefan, On Mon, Sep 10, 2018 at 2:14 PM, Arnd Bergmann wrote: > On Mon, Sep 10, 2018 at 8:05 AM Stefan Agner wrote: >> >> ARM32 arch code uses the __naked attribute. This has previously been >> defined in include/linux/compiler-gcc.h, which is no longer included >> for Clang. Defi

[PATCH] dt-bindings: power: Introduce suspend states supported properties

2018-09-11 Thread Keerthy
Introuduce linux generic suspend states supported properties. It is convenient for the generic suspend path to have the knowledge of the suspend states supported based on the device tree properties based on which it can either be suspended or safely bailed out of suspend if none of the suspend stat

Re: [PATCH 2/3] sound: enable interrupt after dma buffer initialization

2018-09-11 Thread Vinod
On 11-09-18, 14:58, Yu Zhao wrote: > On Tue, Sep 11, 2018 at 08:06:49AM +0200, Takashi Iwai wrote: > > On Mon, 10 Sep 2018 23:21:50 +0200, > > Yu Zhao wrote: > > > > > > In snd_hdac_bus_init_chip(), we enable interrupt before > > > snd_hdac_bus_init_cmd_io() initializing dma buffers. If irq has >

Re: [Question] Are the trace APIs declared by "TRACE_EVENT(irq_handler_entry" allowed to be used in Ko?

2018-09-11 Thread Steven Rostedt
On Wed, 12 Sep 2018 10:08:37 +0800 "Leizhen (ThunderTown)" wrote: > After patch 7e066fb870fc ("tracepoints: add DECLARE_TRACE() and > DEFINE_TRACE()"), > the trace APIs declared by "TRACE_EVENT(irq_handler_entry" can not be > directly used > by ko, because it's not explicitly exported by EXPORT

[PATCH] ASoC: remove unneeded static set .owner field in platform_driver

2018-09-11 Thread zhong jiang
platform_driver_register will set the .owner field. So it is safe to remove the redundant assignment. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang --- sound/soc/mediatek/mt2701/mt2701-wm8960.c | 1 - sound/soc/mediatek/mt6797/mt6797-mt6351.c | 1 - sound/soc/roc

[PATCH TRIVIAL] Punctuation fixes

2018-09-11 Thread Diego Viola
Signed-off-by: Diego Viola --- CREDITS | 2 +- MAINTAINERS | 2 +- Makefile| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CREDITS b/CREDITS index 5befd2d71..b82efb36d 100644 --- a/CREDITS +++ b/CREDITS @@ -1473,7 +1473,7 @@ W: http://www.linux-ide.org/ W: http://w

[PATCH] staging: remove unneeded static set .owner field in platform_driver

2018-09-11 Thread zhong jiang
platform_driver_register will set the .owner field. So it is safe to remove the redundant assignment. The issue is detected with the help of Coccinelle. Signed-off-by: zhong jiang --- drivers/staging/greybus/audio_codec.c| 1 - drivers/staging/mt7621-eth/gsw_mt7621.c | 1 - drivers/staging

[PATCH] sparc: vdso: clean-up vdso Makefile

2018-09-11 Thread Masahiro Yamada
arch/sparc/vdso/Makefile is a replica of arch/x86/entry/vdso/Makefile. Clean-up the Makefile in the same way as I did for x86: - Remove unnecessary export - Put the generated linker script to $(obj)/ instead of $(src)/ - Simplify cmd_vdso2c The corresponding x86 commits are: - 61615faf0a89

[PATCH] pstore: fix incorrect persistent ram buffer mapping

2018-09-11 Thread Bin Yang
persistent_ram_vmap() returns the page start vaddr. persistent_ram_iomap() supports non-page-aligned mapping. persistent_ram_buffer_map() always adds offset-in-page to the vaddr returned from these two functions, which causes incorrect mapping of non-page-aligned persistent ram buffer. Signed-off

Re: [PATCH v2 2/9] nios2: build .dtb files in dts directory

2018-09-11 Thread Ley Foon Tan
On Fri, 2018-09-07 at 13:09 -0500, Rob Herring wrote: > On Thu, Sep 6, 2018 at 9:21 PM Ley Foon Tan > wrote: > > > > > > On Wed, 2018-09-05 at 18:53 -0500, Rob Herring wrote: > > > > > > Align nios2 with other architectures which build the dtb files in > > > the > > > same directory as the dts

Re: [PATCH v2 2/3] x86/mm/KASLR: Calculate the actual size of vmemmap region

2018-09-11 Thread Baoquan He
On 09/11/18 at 08:08pm, Baoquan He wrote: > On 09/11/18 at 11:28am, Ingo Molnar wrote: > > Yeah, so proper context is still missing, this paragraph appears to assume > > from the reader a > > whole lot of prior knowledge, and this is one of the top comments in > > kaslr.c so there's nowhere > >

Re: [PATCH] perf test: Add watchpoint test

2018-09-11 Thread Ravi Bangoria
> While testing, I got curious, as a 'perf test' user, why one of the > tests had the "Skip" result: > > [root@seventh ~]# perf test watchpoint > 22: Watchpoint: > 22.1: Read Only Watchpoint: Skip > 22.2: Write Only Watc

Re: [PATCH v2 1/4] arm64: dts: rockchip: Split out common nodes for Rock960 based boards

2018-09-11 Thread Manivannan Sadhasivam
Hi Ezequiel, On Tue, Sep 11, 2018 at 04:40:29PM -0300, Ezequiel Garcia wrote: > On Tue, 2018-09-11 at 08:00 +0530, Manivannan Sadhasivam wrote: > > Since the same family members of Rock960 boards (Rock960 and Ficus) > > share the same configuration, split out the common nodes into a common > > dts

Re: [PATCH] perf test: Add watchpoint test

2018-09-11 Thread Ravi Bangoria
On 09/10/2018 11:01 PM, Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 10, 2018 at 11:18:30AM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Sep 10, 2018 at 10:47:54AM -0300, Arnaldo Carvalho de Melo escreveu: >>> Em Mon, Sep 10, 2018 at 12:31:54PM +0200, Jiri Olsa escreveu: On Mon, Se

Re: [PATCH v2 2/2] dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver

2018-09-11 Thread Masahiro Yamada
Hi Vinod, 2018-09-11 16:00 GMT+09:00 Vinod : > On 24-08-18, 10:41, Masahiro Yamada wrote: > >> +/* mc->vc.lock must be held by caller */ >> +static u32 __uniphier_mdmac_get_residue(struct uniphier_mdmac_desc *md) >> +{ >> + u32 residue = 0; >> + int i; >> + >> + for (i = md->sg_cur; i

[PATCH -next] staging: mt7621-pci: Use PTR_ERR_OR_ZERO in mt7621_pcie_parse_dt()

2018-09-11 Thread YueHaibing
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: YueHaibing --- drivers/staging/mt7621-pci/pci-mt7621.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c index ba1f117

[PATCH] drivers: pci: remove set but unused variable

2018-09-11 Thread Joshua Abraham
This patch removes a set but unused variable in quirks.c. Fixes warning: variable ‘mmio_sys_info’ set but not used [-Wunused-but-set-variable] Signed-off-by: Joshua Abraham --- drivers/pci/quirks.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c

Re: [WTF?] extremely old dead code

2018-09-11 Thread Linus Torvalds
On Mon, Sep 10, 2018 at 1:55 PM Al Viro wrote: > > Hadn't that sucker been dead code since 0.98.2? What am I missing here? > Note that this thing had quite a few functionality changes over those > years; had they even been tested? Looks about right to me. The only point that actually acts on FIO

Re: [RFC v9 PATCH 2/4] mm: mmap: zap pages with read mmap_sem in munmap

2018-09-11 Thread Matthew Wilcox
On Tue, Sep 11, 2018 at 04:35:03PM -0700, Yang Shi wrote: > On 9/11/18 2:16 PM, Matthew Wilcox wrote: > > On Wed, Sep 12, 2018 at 04:58:11AM +0800, Yang Shi wrote: > > > mm/mmap.c | 97 > > > +-- > > I really think you're going about thi

Re: [PATCH 06/11] dts: arm: imx7{d,s}: Update coresight binding for hardware ports

2018-09-11 Thread Shawn Guo
On Tue, Sep 11, 2018 at 11:17:07AM +0100, Suzuki K Poulose wrote: > Switch to the updated coresight bindings. > > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Pengutronix Kernel Team > Cc: Fabio Estevam > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose As per the convention we use for subje

Re: [PATCH v2 3/6] drivers: qcom: rpmh: disallow active requests in solver mode

2018-09-11 Thread Lina Iyer
On Tue, Sep 11 2018 at 17:02 -0600, Matthias Kaehlcke wrote: Hi Raju/Lina, On Fri, Jul 27, 2018 at 03:34:46PM +0530, Raju P L S S S N wrote: From: Lina Iyer Controllers may be in 'solver' state, where they could be in autonomous mode executing low power modes for their hardware and as such ar

[PATCH v3] iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.

2018-09-11 Thread Song Qiang
This driver was originally written by ST in 2016 as a misc input device driver, and hasn't been maintained for a long time. I grabbed some code from it's API and reformed it into a iio proximity device driver. This version of driver uses i2c bus to talk to the sensor and polling for measuring compl

Re: [PATCH v2 1/6] drivers: qcom: rpmh-rsc: return if the controller is idle

2018-09-11 Thread Lina Iyer
On Tue, Sep 11 2018 at 16:39 -0600, Matthias Kaehlcke wrote: Hi Raju/Lina, On Fri, Jul 27, 2018 at 03:34:44PM +0530, Raju P L S S S N wrote: From: Lina Iyer Allow the controller status be queried. The controller is busy if it is actively processing request. Signed-off-by: Lina Iyer Signed-o

[Question] Are the trace APIs declared by "TRACE_EVENT(irq_handler_entry" allowed to be used in Ko?

2018-09-11 Thread Leizhen (ThunderTown)
After patch 7e066fb870fc ("tracepoints: add DECLARE_TRACE() and DEFINE_TRACE()"), the trace APIs declared by "TRACE_EVENT(irq_handler_entry" can not be directly used by ko, because it's not explicitly exported by EXPORT_TRACEPOINT_SYMBOL_GPL or EXPORT_TRACEPOINT_SYMBOL. Did we miss it? or it's n

Re: Question: How to switch a process namespace by nsfs "device" and inode number directly?

2018-09-11 Thread Chengdong Li
Thank you, Andi! Yes, that's a situation, also it's an important one I guess. Another case is that a process running inside a container has exited but the container still alive.I think this is also a common case. The potential fix solutions I am thinking are following: - Using nsfs "device"

Re: [PATCH i2c-next v6] i2c: aspeed: Handle master/slave combined irq events properly

2018-09-11 Thread Guenter Roeck
On Tue, Sep 11, 2018 at 04:58:44PM -0700, Jae Hyun Yoo wrote: > On 9/11/2018 4:33 PM, Guenter Roeck wrote: > >Looking into the patch, clearing the interrupt status at the end of an > >interrupt handler is always suspicious and tends to result in race > >conditions (because additional interrupts may

Re: [PATCH v3] ARM: dts: imx6ul: Add DTS for ConnectCore 6UL SBC Pro

2018-09-11 Thread Shawn Guo
On Mon, Sep 10, 2018 at 11:37:52AM +0200, Alex Gonzalez wrote: > The ConnectCore 6UL Single Board Computer (SBC) Pro contains the > ConnectCore 6UL System-On-Module. > > Its hardware specifications are: > > * 256MB DDR3 memory > * On module 256MB NAND flash > * Dual 10/100 Ethernet > * USB Host a

Re: [PATCH v9 6/6] ARM: dts: imx6: RIoTboard provide standby on power off option

2018-09-11 Thread Shawn Guo
On Thu, Aug 02, 2018 at 12:34:25PM +0200, Oleksij Rempel wrote: > This board, as well as some other boards with i.MX6 and a PMIC, uses a > "PMIC_STBY_REQ" line to notify the PMIC about a state change. > The PMIC is programmed for a specific state change before triggering the > line. > In this case,

Re: KASAN: use-after-free Read in cma_bind_port

2018-09-11 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:11da3a7f84f1 Linux 4.19-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11766c6940 kernel config: https://syzkaller.appspot.com/x/.config?x=9917ff4b798e1a1e dashboard link: https:

Re: [PATCH v9 2/6] ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set

2018-09-11 Thread Shawn Guo
On Thu, Aug 02, 2018 at 12:34:21PM +0200, Oleksij Rempel wrote: > One of the Freescale recommended sequences for power off with external > PMIC is the following: > ... > 3. SoC is programming PMIC for power off when standby is asserted. > 4. In CCM STOP mode, Standby is asserted, PMIC gates SoC s

Re: [PATCH v3 3/3] drivers: soc: xilinx: Add ZynqMP PM driver

2018-09-11 Thread Ahmed S. Darwish
Hi! [ Thanks a lot for upstreaming this.. ] On Tue, Sep 11, 2018 at 02:34:57PM -0700, Jolly Shah wrote: > From: Rajan Vaja > > Add ZynqMP PM driver. PM driver provides power management > support for ZynqMP. > > Signed-off-by: Rajan Vaja > Signed-off-by: Jolly Shah > --- [...] > +static irqre

Re: [PATCH v9 1/6] ARM: imx6q: provide documentation for new fsl,pmic-stby-poweroff property

2018-09-11 Thread Shawn Guo
I updated the subject as below to make it clear this is a bindings change. dt-bindings: imx6q-clock: add new fsl,pmic-stby-poweroff property Patch applied, thanks. Shawn On Thu, Aug 02, 2018 at 12:34:20PM +0200, Oleksij Rempel wrote: > Signed-off-by: Oleksij Rempel > Acked-by: Rob Herring >

Re: [PATCH 4.4 34/80] enic: handle mtu change for vf properly

2018-09-11 Thread Ben Hutchings
On Mon, 2018-09-03 at 18:49 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Govindarajulu Varadarajan > > [ Upstream commit ab123fe071c9aa9680ecd62eb080eb26cff4892c ] > > When driver gets notificati

Re: [PATCHv3] iscsi-target: Don't use stack buffer for scatterlist

2018-09-11 Thread Martin K. Petersen
> Applied to 4.20/scsi-queue, thank you! 4.19/scsi-fixes, that is... -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCHv3] iscsi-target: Don't use stack buffer for scatterlist

2018-09-11 Thread Martin K. Petersen
Laura, > There are two cases that trigger this bug. Switch to using a > dynamically allocated buffer for one case and do not assign > a NULL buffer in another case. Applied to 4.20/scsi-queue, thank you! -- Martin K. Petersen Oracle Linux Engineering

[LKP] [kernel] 92114220fe: BUG:unable_to_handle_kernel

2018-09-11 Thread kernel test robot
ith-higher-privileges-inside-container/20180911-162532 in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu S

[PATCH -V5 RESEND 05/21] swap: Support PMD swap mapping in free_swap_and_cache()/swap_free()

2018-09-11 Thread Huang Ying
When a PMD swap mapping is removed from a huge swap cluster, for example, unmap a memory range mapped with PMD swap mapping, etc, free_swap_and_cache() will be called to decrease the reference count to the huge swap cluster. free_swap_and_cache() may also free or split the huge swap cluster, and f

[PATCH -V5 RESEND 20/21] swap: create PMD swap mapping when unmap the THP

2018-09-11 Thread Huang Ying
This is the final step of the THP swapin support. When reclaiming a anonymous THP, after allocating the huge swap cluster and add the THP into swap cache, the PMD page mapping will be changed to the mapping to the swap space. Previously, the PMD page mapping will be split before being changed. I

[PATCH -V5 RESEND 15/21] swap: Support to copy PMD swap mapping when fork()

2018-09-11 Thread Huang Ying
During fork, the page table need to be copied from parent to child. A PMD swap mapping need to be copied too and the swap reference count need to be increased. When the huge swap cluster has been split already, we need to split the PMD swap mapping and fallback to PTE copying. When swap count co

[PATCH -V5 RESEND 21/21] swap: Update help of CONFIG_THP_SWAP

2018-09-11 Thread Huang Ying
The help of CONFIG_THP_SWAP is updated to reflect the latest progress of THP (Tranparent Huge Page) swap optimization. Signed-off-by: "Huang, Ying" Reviewed-by: Dan Williams Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins C

[PATCH -V5 RESEND 19/21] swap: Support PMD swap mapping in common path

2018-09-11 Thread Huang Ying
Original code is only for PMD migration entry, it is revised to support PMD swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc: Dave Hansen Cc: N

[PATCH -V5 RESEND 18/21] swap: Support PMD swap mapping in mincore()

2018-09-11 Thread Huang Ying
During mincore(), for PMD swap mapping, swap cache will be looked up. If the resulting page isn't compound page, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johan

[PATCH -V5 RESEND 17/21] swap: Support PMD swap mapping for MADV_WILLNEED

2018-09-11 Thread Huang Ying
During MADV_WILLNEED, for a PMD swap mapping, if THP swapin is enabled for the VMA, the whole swap cluster will be swapin. Otherwise, the huge swap cluster and the PMD swap mapping will be split and fallback to PTE swap mapping. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea A

[PATCH -V5 RESEND 16/21] swap: Free PMD swap mapping when zap_huge_pmd()

2018-09-11 Thread Huang Ying
For a PMD swap mapping, zap_huge_pmd() will clear the PMD and call free_swap_and_cache() to decrease the swap reference count and maybe free or split the huge swap cluster and the THP in swap cache. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc:

[PATCH -V5 RESEND 12/21] swap: Support PMD swap mapping in swapoff

2018-09-11 Thread Huang Ying
During swapoff, for a huge swap cluster, we need to allocate a THP, read its contents into the THP and unuse the PMD and PTE swap mappings to it. If failed to allocate a THP, the huge swap cluster will be split. During unuse, if it is found that the swap cluster mapped by a PMD swap mapping is sp

[PATCH -V5 RESEND 13/21] swap: Support PMD swap mapping in madvise_free()

2018-09-11 Thread Huang Ying
When madvise_free() found a PMD swap mapping, if only part of the huge swap cluster is operated on, the PMD swap mapping will be split and fallback to PTE swap mapping processing. Otherwise, if all huge swap cluster is operated on, free_swap_and_cache() will be called to decrease the PMD swap mapp

[PATCH -V5 RESEND 14/21] swap: Support to move swap account for PMD swap mapping

2018-09-11 Thread Huang Ying
Previously the huge swap cluster will be split after the THP is swapout. Now, to support to swapin the THP in one piece, the huge swap cluster will not be split after the THP is reclaimed. So in memcg, we need to move the swap account for PMD swap mappings in the process's page table. When the p

[PATCH -V5 RESEND 06/21] swap: Support PMD swap mapping when splitting huge PMD

2018-09-11 Thread Huang Ying
A huge PMD need to be split when zap a part of the PMD mapping etc. If the PMD mapping is a swap mapping, we need to split it too. This patch implemented the support for this. This is similar as splitting the PMD page mapping, except we need to decrease the PMD swap mapping count for the huge swa

[PATCH -V5 RESEND 11/21] swap: Add sysfs interface to configure THP swapin

2018-09-11 Thread Huang Ying
Swapin a THP as a whole isn't desirable in some situations. For example, for completely random access pattern, swapin a THP in one piece will inflate the reading greatly. So a sysfs interface: /sys/kernel/mm/transparent_hugepage/swapin_enabled is added to configure it. Three options as follow ar

[PATCH -V5 RESEND 08/21] swap: Support to read a huge swap cluster for swapin a THP

2018-09-11 Thread Huang Ying
To swapin a THP in one piece, we need to read a huge swap cluster from the swap device. This patch revised the __read_swap_cache_async() and its callers and callees to support this. If __read_swap_cache_async() find the swap cluster of the specified swap entry is huge, it will try to allocate a T

[PATCH -V5 RESEND 10/21] swap: Support to count THP swapin and its fallback

2018-09-11 Thread Huang Ying
2 new /proc/vmstat fields are added, "thp_swapin" and "thp_swapin_fallback" to count swapin a THP from swap device in one piece and fallback to normal page swapin. Signed-off-by: "Huang, Ying" Cc: "Kirill A. Shutemov" Cc: Andrea Arcangeli Cc: Michal Hocko Cc: Johannes Weiner Cc: Shaohua Li C

[PATCH -V5 RESEND 09/21] swap: Swapin a THP in one piece

2018-09-11 Thread Huang Ying
With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP in one piece. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page() is added in th

[PATCH -V5 RESEND 04/21] swap: Support PMD swap mapping in put_swap_page()

2018-09-11 Thread Huang Ying
Previously, during swapout, all PMD page mapping will be split and replaced with PTE swap mapping. And when clearing the SWAP_HAS_CACHE flag for the huge swap cluster in put_swap_page(), the huge swap cluster will be split. Now, during swapout, the PMD page mappings to the THP will be changed to

[PATCH -V5 RESEND 07/21] swap: Support PMD swap mapping in split_swap_cluster()

2018-09-11 Thread Huang Ying
When splitting a THP in swap cache or failing to allocate a THP when swapin a huge swap cluster, the huge swap cluster will be split. In addition to clear the huge flag of the swap cluster, the PMD swap mapping count recorded in cluster_count() will be set to 0. But we will not touch PMD swap map

[PATCH -V5 RESEND 00/21] swap: Swapout/swapin THP in one piece

2018-09-11 Thread Huang Ying
Hi, Andrew, could you help me to check whether the overall design is reasonable? Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the swap part of the patchset? Especially [02/21], [03/21], [04/21], [05/21], [06/21], [07/21], [08/21], [09/21], [10/21], [11/21], [12/21], [20/21], [2

[PATCH -V5 RESEND 02/21] swap: Add __swap_duplicate_locked()

2018-09-11 Thread Huang Ying
The part of __swap_duplicate() with lock held is separated into a new function __swap_duplicate_locked(). Because we will add more logic about the PMD swap mapping into __swap_duplicate() and keep the most PTE swap mapping related logic in __swap_duplicate_locked(). Just mechanical code refactori

[PATCH -V5 RESEND 03/21] swap: Support PMD swap mapping in swap_duplicate()

2018-09-11 Thread Huang Ying
To support to swapin the THP in one piece, we need to create PMD swap mapping during swapout, and maintain PMD swap mapping count. This patch implements the support to increase the PMD swap mapping count (for swapout, fork, etc.) and set SWAP_HAS_CACHE flag (for swapin, etc.) for a huge swap clus

[PATCH -V5 RESEND 01/21] swap: Enable PMD swap operations for CONFIG_THP_SWAP

2018-09-11 Thread Huang Ying
Currently, "the swap entry" in the page tables is used for a number of things outside of actual swap, like page migration, etc. We support the THP/PMD "swap entry" for page migration currently and the functions behind this are tied to page migration's config option (CONFIG_ARCH_ENABLE_THP_MIGRATIO

Re: [LKP] [vfs] fd0002870b: BUG:KASAN:null-ptr-deref_in_n

2018-09-11 Thread Rong Chen
On 09/12/2018 04:29 AM, David Howells wrote: kernel test robot wrote: [ 18.568403] nfs_fs_mount+0x901/0x1220 I don't suppose you can tell me what file and line number this corresponds to? $ faddr2line vmlinux nfs_fs_mount+0x901 nfs_fs_mount+0x901/0x1218: nfs_parse_devname at fs/nfs/sup

Inquiry

2018-09-11 Thread Sinara Group
Hello, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel Murray Purcha

  1   2   3   4   5   6   7   >