[PATCH v2] perf/core: Update cgroup time with descendants

2017-09-19 Thread linxiulei
From: "leilei.lin" This fix updating cgroup time when event is being scheduled in by descendants Signed-off-by: leilei.lin Reviewed-and-tested-by: Jiri Olsa --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c

[PATCH -tip v3 0/7] kprobes/x86: Preempt related enhancements

2017-09-19 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the series to improve preempt related behavior in kprobes/x86. This actually includes many enhancements/fixes from the 2nd version, which is https://lkml.org/lkml/2017/9/11/482 With the previous patch, lkp-bot reported that an issue ( https://lkml.org/lkml/2017/9/1

[PATCH -tip v3 1/7] kprobes: Improve smoke test to check preemptible

2017-09-19 Thread Masami Hiramatsu
Add preemptible check to each handler. Handlers are called with non-preemtible, which is guaranteed by Documentation/kprobes.txt. Signed-off-by: Masami Hiramatsu --- kernel/test_kprobes.c | 20 1 file changed, 20 insertions(+) diff --git a/kernel/test_kprobes.c b/kernel/t

[PATCH -tip v3 2/7] kprobes/x86: Move get_kprobe_ctlblk in irq-disabled block

2017-09-19 Thread Masami Hiramatsu
Since get_kprobe_ctlblk() accesses per-cpu variable which calls smp_processor_id(), it must be called under preempt-disabled or irq-disabled. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/opt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/k

Re: [PATCH] powerpc/sysrq: Fix oops whem ppmu is not registered

2017-09-19 Thread Michael Ellerman
Ravi Bangoria writes: > Kernel crashes if power pmu is not registered and user tries to dump > regs with 'echo p > /proc/sysrq-trigger'. Sample log: > > Unable to handle kernel paging request for data at address 0x0008 > Faulting instruction address: 0xc00d52f0 > > NIP [c000

[PATCH -tip v3 3/7] kprobes: Warn if optprobe handler tries to change execution path

2017-09-19 Thread Masami Hiramatsu
Warn if optprobe handler tries to change execution path. As described in Documentation/kprobes.txt, with optprobe user handler can not change instruction pointer. In that case user must avoid optimizing the kprobes by setting post_handler or break_handler. Signed-off-by: Masami Hiramatsu --- ker

[PATCH -tip v3 4/7] kprobes/x86: Disable preempt in optprobe

2017-09-19 Thread Masami Hiramatsu
Disable preempt in optprobe handler as described in Documentation/kprobes.txt, there is "Probe handlers are run with preemption disabled." Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/opt.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/kprobes/opt.c b/a

[PATCH -tip v3 5/7] kprobes/x86: Disable preempt ftrace-based jprobe

2017-09-19 Thread Masami Hiramatsu
Disable preempt in ftrace-based jprobe handler as described in Documentation/kprobes.txt, there is "Probe handlers are run with preemption disabled." This will fix jprobes behavior when CONFIG_PREEMPT=y. Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/ftrace.c | 23 ++

[PATCH -tip v3 6/7] kprobes/x86: Remove disable_irq from ftrace-based/optimized kprobe

2017-09-19 Thread Masami Hiramatsu
Actually kprobes doesn't need to disable irq if it is called from ftrace/jump trampoline code because Documentation/kprobes.txt says - Probe handlers are run with preemption disabled. Depending on the architecture and optimization state, handlers may also run with interrupts disabled (e.g., k

[PATCH -tip v3 7/7] kprobes: Use synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT

2017-09-19 Thread Masami Hiramatsu
To enable jump optimized probe with CONFIG_PREEMPT, use synchronize_rcu_tasks() to wait for all tasks preempted on trampoline code back on track. Since the jump optimized kprobes can replace multiple instructions, there can be tasks which are preempted on the 2nd (or 3rd) instructions. If the kpro

Re: [PATCH] powerpc/sysrq: Fix oops whem ppmu is not registered

2017-09-19 Thread Madhavan Srinivasan
On Tuesday 19 September 2017 03:30 PM, Michael Ellerman wrote: Ravi Bangoria writes: Kernel crashes if power pmu is not registered and user tries to dump regs with 'echo p > /proc/sysrq-trigger'. Sample log: Unable to handle kernel paging request for data at address 0x0008 Faultin

Re: [RFC] sched/fair: Use wake_q length as a hint for wake_wide

2017-09-19 Thread Brendan Jackman
On Mon, Sep 18 2017 at 22:15, Joel Fernandes wrote: > Hi Brendan, Hi Joel, Thanks for taking a look :) > On Fri, Aug 11, 2017 at 2:45 AM, Brendan Jackman > wrote: >> This patch adds a parameter to select_task_rq, sibling_count_hint >> allowing the caller, where it has this information, to inform

Re: [PATCH v2 3/4] iommu/iova: Extend rbtree node caching

2017-09-19 Thread Robin Murphy
On 19/09/17 10:42, Leizhen (ThunderTown) wrote: [...] static void __cached_rbnode_delete_update(struct iova_domain *iovad, struct iova *free) { struct iova *cached_iova; -struct rb_node *curr; +struct rb_node **curr = NULL; -if (!i

Re: [PATCH] staging: ion: create one device entry per heap

2017-09-19 Thread Benjamin Gaignard
2017-09-19 11:40 GMT+02:00 Dan Carpenter : > On Mon, Sep 18, 2017 at 04:58:46PM +0200, Benjamin Gaignard wrote: >> -static int validate_ioctl_arg(unsigned int cmd, union ion_ioctl_arg *arg) >> +static int validate_ioctl_arg(struct file *filp, >> + unsigned int cmd, union i

Re: [PATCH] zram: fix null dereference of handle

2017-09-19 Thread Sergey Senozhatsky
Hi Minchan, On (09/19/17 15:59), Minchan Kim wrote: [..] > > another question, "!handle == value & ZRAM_SAME"? if so, then why not > > just check for `flags & ZRAM_SAME'? if not then: > > > > - for `value & ZRAM_SAME' you fill the page with zram_get_element(zram, > > index) > >and return

Re: [PATCH] staging: ion: create one device entry per heap

2017-09-19 Thread Tomas Winkler
On Tue, Sep 19, 2017 at 1:07 PM, Benjamin Gaignard wrote: > 2017-09-19 11:40 GMT+02:00 Dan Carpenter : >> On Mon, Sep 18, 2017 at 04:58:46PM +0200, Benjamin Gaignard wrote: >>> -static int validate_ioctl_arg(unsigned int cmd, union ion_ioctl_arg *arg) >>> +static int validate_ioctl_arg(struct file

Re: [PATCH v2 9/9] tty/serial: atmel: Prevent a warning on suspend

2017-09-19 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > The atmel serial port driver reported the following warning on suspend: > atmel_usart f802.serial: ttyS1: Unable to drain transmitter > > As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared > when the transmitter is disabled, we ne

[PATCH] VFS: Handle lazytime in do_mount()

2017-09-19 Thread Markus Trippelsdorf
The lazytime option didn't get passed on when using current util-linux, which passes MS_LAZYTIME in the mountflags directly. Fix the issue by handling the option in do_mount(). Signed-off-by: Markus Trippelsdorf --- fs/namespace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

Re: [PATCH] staging: ion: create one device entry per heap

2017-09-19 Thread Benjamin Gaignard
2017-09-19 12:15 GMT+02:00 Tomas Winkler : > On Tue, Sep 19, 2017 at 1:07 PM, Benjamin Gaignard > wrote: >> 2017-09-19 11:40 GMT+02:00 Dan Carpenter : >>> On Mon, Sep 18, 2017 at 04:58:46PM +0200, Benjamin Gaignard wrote: -static int validate_ioctl_arg(unsigned int cmd, union ion_ioctl_arg *a

Re: [PATCH] zram: fix null dereference of handle

2017-09-19 Thread Sergey Senozhatsky
Minchan, I just ran across it [because I had a bug to analize where this part was involved]. I'd really prefer the kernel to BUG_ON immediately instead of dying in agony. can we, please, return BUG_ON() back? there is no point in trying to save the kernel once it did that type of violation. ---

Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference

2017-09-19 Thread Michael Ellerman
"Naveen N. Rao" writes: > On 2017/09/16 12:53PM, Sergey Senozhatsky wrote: >> We are moving towards separate kernel and module function descriptor >> dereference callbacks. This patch enables it for powerpc64. >> >> For pointers that belong to the kernel >> - Added __start_opd and __end_opd poi

[PATCH v2 0/2] staging: ion: get one device per heap

2017-09-19 Thread Benjamin Gaignard
version 2: - simplify ioctl check like propose by Dan - make sure that we don't register more than ION_DEV_MAX heaps Instead a getting one common device "/dev/ion" for all the heaps this patch allow to create one device entry ("/dev/ionX") per heap. Getting an entry per heap could allow to set sec

[PATCH v2 2/2] staging: ion: create one device entry per heap

2017-09-19 Thread Benjamin Gaignard
Instead a getting one common device "/dev/ion" for all the heaps this patch allow to create one device entry ("/dev/ionX") per heap. Getting an entry per heap could allow to set security rules per heap and global ones for all heaps. Allocation requests will be only allowed if the mask_id match wit

[PATCH v2 1/2] staging: ion: simplify ioctl args checking function

2017-09-19 Thread Benjamin Gaignard
Make arguments checking more easy to read. Signed-off-by: Benjamin Gaignard --- drivers/staging/android/ion/ion-ioctl.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/android/ion/ion-ioctl.c b/drivers/staging/android/ion/ion-ioctl.c index d9f8b14

I Want To Know Your Opinion In Doing This Project.

2017-09-19 Thread MRS.LOVETH KONNIA
My Dear, >From Mrs. Loveth Konnia. I belief that you can help in setting up a charity foundation for the benefit of mankind, I wish to establish a charity foundation to help the poor in your country under your care, Can you help to build this project in your country? Together We can make the wor

Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference

2017-09-19 Thread Sergey Senozhatsky
On (09/19/17 20:22), Michael Ellerman wrote: > > On 2017/09/16 12:53PM, Sergey Senozhatsky wrote: > >> We are moving towards separate kernel and module function descriptor > >> dereference callbacks. This patch enables it for powerpc64. > >> > >> For pointers that belong to the kernel > >> - Adde

[PATCH V5] clk: qcom: Add spmi_pmic clock divider support

2017-09-19 Thread Tirupathi Reddy
Clkdiv module provides a clock output on the PMIC with CXO as the source. This clock can be routed through PMIC GPIOs. Add a device driver to configure this clkdiv module. Signed-off-by: Tirupathi Reddy --- .../bindings/clock/clk-spmi-pmic-div.txt | 56 drivers/clk/qcom/Kconfig

[PATCH v2] VFS: Handle lazytime in do_mount()

2017-09-19 Thread Markus Trippelsdorf
Since commit e462ec50cb5fa ("VFS: Differentiate mount flags (MS_*) from internal superblock flags") the lazytime mount option didn't get passed on anymore. Fix the issue by handling the option in do_mount(). Signed-off-by: Markus Trippelsdorf --- fs/namespace.c | 3 ++- 1 file changed, 2 insert

Re: linux-4.14-rc1/arch/powerpc/perf/hv-24x7.c:541: bad condition ?

2017-09-19 Thread Michael Ellerman
David Binderman writes: > Hello there, > > linux-4.14-rc1/arch/powerpc/perf/hv-24x7.c:543]: (warning) Identical > condition 's1 > Source code is > > if (s1 < s2) > return 1; > if (s2 > s1) > return -1; > > Suggest code rework. Um thanks. It's trying to implement a sort

BUG_ON when zsmalloc from IRQ (was zram: fix null dereference of handle)

2017-09-19 Thread Sergey Senozhatsky
ah... this should have had another Subject line sorry. -ss On (09/19/17 19:21), Sergey Senozhatsky wrote: > Minchan, > > I just ran across it [because I had a bug to analize where this > part was involved]. I'd really prefer the kernel to BUG_ON immediately > instead of dying in agon

Re: [Part1 PATCH v4 15/17] percpu: introduce DEFINE_PER_CPU_UNENCRYPTED

2017-09-19 Thread Borislav Petkov
On Sat, Sep 16, 2017 at 07:34:16AM -0500, Brijesh Singh wrote: > When SEV is active, memory is encrypted with guest-specific key, and if with a > guest OS wants to share the memory region with hypervisor then it must the guest OS ...

[PATCH] MIPS: Fix PCI host bridge map_irq() hook section mismatches

2017-09-19 Thread Lorenzo Pieralisi
Commit 04c81c7293df ("MIPS: PCI: Replace pci_fixup_irqs() call with host bridge IRQ mapping hooks") allowed to move the PCI irq fixup to the new host bridge map/swizzle_irq() hooks mechanism. Those hooks can also be called after boot completed - with all __init/__initdata/__initconst sections freed

Re: [PATCH] iommu/ipmmu-vmsa: Do not replace bus IOMMU ops on driver init.

2017-09-19 Thread Robin Murphy
Hi Laurent, On 19/09/17 08:07, Laurent Pinchart wrote: > Hi Liviu, > > Thank you for the patch. > > On Monday, 18 September 2017 13:04:44 EEST Liviu Dudau wrote: >> If the IPMMU driver is compiled in the kernel it will replace the >> platform bus IOMMU ops on running the ipmmu_init() function, r

Re: [PATCH] thermal: imx: add NVMEM dependency

2017-09-19 Thread Leonard Crestez
On Mon, 2017-09-18 at 22:48 +0200, Arnd Bergmann wrote: > The driver now fails to link into vmlinux when CONFIG_NVMEM is a loadable > module: > > drivers/thermal/imx_thermal.o: In function `imx_thermal_probe': > imx_thermal.c:(.text+0x360): undefined reference to > `nvmem_cell_read_u32' > imx_ther

Re: [PATCH 1/3] sched/loadavg: consolidate LOAD_INT, LOAD_FRAC macros

2017-09-19 Thread kbuild test robot
Hi Johannes, [auto build test ERROR on v4.13] [cannot apply to mmotm/master linus/master tip/sched/core v4.14-rc1 next-20170919] [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/commits/Johannes-Weiner

[RESEND PATCH v2 1/5] mtd: spi-nor: cadence-quadspi: Add TI 66AK2G SoC specific compatible

2017-09-19 Thread Vignesh R
Update binding documentation to add a new compatible for TI 66AK2G SoC, to handle TI SoC specific quirks in the driver. Signed-off-by: Vignesh R Acked-by: Rob Herring --- Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --g

[RESEND PATCH v2 4/5] mtd: spi-nor: cadence-quadspi: Add support to enable loop-back clock circuit

2017-09-19 Thread Vignesh R
Cadence QSPI IP has a adapted loop-back circuit which can be enabled by setting BYPASS field to 0 in READCAPTURE register. It enables use of QSPI return clock to latch the data rather than the internal QSPI reference clock. For high speed operations, adapted loop-back circuit using QSPI return cloc

[RESEND PATCH v2 2/5] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-09-19 Thread Vignesh R
As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access Controller programming sequence, a delay equal to couple of QSPI master clock(~5ns) is required after setting CQSPI_REG_INDIRECTWR_START bit and writing data to the flash. Introduce a quirk flag CQSPI_NEEDS_WR_DELAY to handle this an

[RESEND PATCH v2 3/5] mtd: spi-nor: cadence-quadspi: Add new binding to enable loop-back circuit

2017-09-19 Thread Vignesh R
Cadence QSPI IP has a adapted loop-back circuit which can be enabled by setting BYPASS field to 0 in READCAPTURE register. It enables use of QSPI return clock to latch the data rather than the internal QSPI reference clock. For high speed operations, adapted loop-back circuit using QSPI return cloc

[RESEND PATCH v2 5/5] mtd: spi-nor: cadence-quadspi: Add runtime PM support

2017-09-19 Thread Vignesh R
Add pm_runtime* calls to cadence-quadspi driver. This is required to switch on QSPI power domain on TI 66AK2G SoC during probe. Signed-off-by: Vignesh R --- drivers/mtd/spi-nor/cadence-quadspi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.

[RESEND PATCH v2 0/5] K2G: Add QSPI support

2017-09-19 Thread Vignesh R
This series adds support for Cadence QSPI IP present in TI's 66AK2G SoC. The patches enhance the existing cadence-quadspi driver to support loopback clock circuit, pm_runtime support and tweaks for 66AK2G SoC. Change log: Resend: * Rebase to latest linux-next. * Collect Acked-bys v2: * Drop DT p

Re: [PATCH] staging: ion: create one device entry per heap

2017-09-19 Thread Greg Kroah-Hartman
On Tue, Sep 19, 2017 at 12:20:15PM +0200, Benjamin Gaignard wrote: > 2017-09-19 12:15 GMT+02:00 Tomas Winkler : > > On Tue, Sep 19, 2017 at 1:07 PM, Benjamin Gaignard > > wrote: > >> 2017-09-19 11:40 GMT+02:00 Dan Carpenter : > >>> On Mon, Sep 18, 2017 at 04:58:46PM +0200, Benjamin Gaignard wrote:

Re: [PATCH 1/3] sched/loadavg: consolidate LOAD_INT, LOAD_FRAC macros

2017-09-19 Thread kbuild test robot
Hi Johannes, [auto build test ERROR on v4.13] [cannot apply to mmotm/master linus/master tip/sched/core v4.14-rc1 next-20170919] [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/commits/Johannes-Weiner

Re: [PATCH v2 2/2] staging: ion: create one device entry per heap

2017-09-19 Thread Greg KH
On Tue, Sep 19, 2017 at 12:25:38PM +0200, Benjamin Gaignard wrote: > Instead a getting one common device "/dev/ion" for > all the heaps this patch allow to create one device > entry ("/dev/ionX") per heap. > Getting an entry per heap could allow to set security rules > per heap and global ones for

Re: [Part1 PATCH v4 16/17] X86/KVM: Unencrypt shared per-cpu variables when SEV is active

2017-09-19 Thread Borislav Petkov
On Sat, Sep 16, 2017 at 07:34:17AM -0500, Brijesh Singh wrote: > When SEV is active, guest memory is encrypted with guest-specific key, a with a guest-specific key > guest memory region shared with hypervisor must be mapped as unencrypted

[PATCH] x86/events/amd/iommu: make iommu_pmu const and __initconst

2017-09-19 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Also, make it __initconst as it is only used during the init phase and after this it is not referenced anywhere. Signed-off-by: Bhumika Goyal --- arch/x86/events/amd/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH] ALSA: hrtimer: make hrtimer_hw const and __initconst

2017-09-19 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Also, make it __initconst as it is only used during the init phase and after this it is not referenced anywhere. Signed-off-by: Bhumika Goyal --- sound/core/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s

Re: [PATCH 4.4 00/31] 4.4.88-stable review

2017-09-19 Thread Mark Brown
On Mon, Sep 18, 2017 at 10:50:37PM -0700, Stephen Boyd wrote: > storm with mmc? There are some regulator warnings that seem to be > ignored earlier for the mmc. > [2.252965] s4: voltage operation not allowed > [2.258505] mmci-pl18x 1240.sdcc: Voltage switch failed > No idea if that f

backport "nfsd: Fix general protection fault in release_lock_stateid()" to 4.4

2017-09-19 Thread Christian Theune
Hi, I’d like to request inclusion of commit f46c445b79906a9da55c13e0a6f6b6a006b892fe into the 4.4 series. This happens to us regularly on a 4.4.59 machine and a review of the released later changes in 4.4 show that this hasn’t made it into 4.4 yet. I’m guessing that using “Option 2” of the sta

[PATCH] kbuild: comments cleanup in Makefile.lib

2017-09-19 Thread Cao jin
It has: 1. Move comments close to what it want to comment. 2. Comments cleanup & improvement. Signed-off-by: Cao jin --- scripts/Makefile.lib | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 58c05e5..7de9c0

Re: [PATCH] iommu/arm-smmu-v3: Avoid ILLEGAL setting of STE.S1STALLD

2017-09-19 Thread Jean-Philippe Brucker
On 14/09/17 06:08, Yisheng Xie wrote: > According to Spec, it is ILLEGAL to set STE.S1STALLD if STALL_MODEL > is not 0b00, which means we should not disable stall mode if stall > or terminate mode is not configuable. > > As Jean-Philippe's suggestion, this patch introduce a feature bit > ARM_SMMU_

Re: perf: weird si_code results on overflow signal

2017-09-19 Thread Vince Weaver
On Wed, 13 Sep 2017, Vince Weaver wrote: > I just compiled up a fresh git kernel and all of the perf_event_test > overflow tests are failing. > > The reason is that instead of getting POLL_IN or POLL_HUP sources as > expected, they are getting weird results in si_code of "-5". > > I haven't ha

[PATCH] clk: stm32h7: fix test of clock config

2017-09-19 Thread gabriel.fernandez
From: Gabriel Fernandez fix test of composite clock config (bad copy / past) Signed-off-by: Gabriel Fernandez Fixes: 3e4d618b0722 ("clk: stm32h7: Add stm32h743 clock driver") --- drivers/clk/clk-stm32h7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-s

[PATCH] dt-bindings: clk: stm32h7: fix clock-cell size

2017-09-19 Thread gabriel.fernandez
From: Gabriel Fernandez The clock-cell size is 1 on stm32h7 plaform. Signed-off-by: Gabriel Fernandez Fixes: 3e4d618b0722 ("clk: stm32h7: Add stm32h743 clock driver") --- Documentation/devicetree/bindings/clock/st,stm32h7-rcc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: usb/hid: slab-out-of-bounds read in usbhid_parse

2017-09-19 Thread Kim Jaejoong
Hi, Andrey Konovalov Thanks for the report. 2017-09-19 2:33 GMT+09:00 Andrey Konovalov : > Hi! > > I've got the following crash while fuzzing the kernel with syzkaller. > > On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 18). > > It seems that there's no proper check on the hdesc->bNumDes

Re: [Part1 PATCH v4 17/17] X86/KVM: Clear encryption attribute when SEV is active

2017-09-19 Thread Borislav Petkov
On Sat, Sep 16, 2017 at 07:34:18AM -0500, Brijesh Singh wrote: > The guest physical memory area holding the struct pvclock_wall_clock and > struct pvclock_vcpu_time_info are shared with the hypervisor. Hypervisor the hypervisor. It ... > periodicall

Re: [PATCH v2] mm: introduce validity check on vm dirtiness settings

2017-09-19 Thread Yafang Shao
2017-09-19 16:35 GMT+08:00 Jan Kara : > On Tue 19-09-17 06:53:00, Yafang Shao wrote: >> we can find the logic in domain_dirty_limits() that >> when dirty bg_thresh is bigger than dirty thresh, >> bg_thresh will be set as thresh * 1 / 2. >> if (bg_thresh >= thresh) >> bg_thresh =

[PATCH] ARM: uaccess: Add missing include for set_thread_flag

2017-09-19 Thread Jonathan Liu
Fixes "implicit declaration of function" compile error for out-of-tree kernel modules including asm/uaccess.h. Fixes: 73ac5d6a2b6a ("arm/syscalls: Check address limit on user-mode return") Signed-off-by: Jonathan Liu --- arch/arm/include/asm/uaccess.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] livepatch: __klp_shadow_get_or_alloc() is local to shadow.c

2017-09-19 Thread Miroslav Benes
On Thu, 14 Sep 2017, Jiri Kosina wrote: > From: Jiri Kosina > > ... therefore make it static. > > Fixes: 439e7271dc2 ("livepatch: introduce shadow variable API") > Signed-off-by: Jiri Kosina > --- FWIW (but I noticed you've already applied it) Acked-by: Miroslav Benes Miroslav

Re: [PATCH 3/3 v11] printk: Add monotonic, boottime, and realtime timestamps

2017-09-19 Thread Prarit Bhargava
On 09/17/2017 06:46 AM, Sergey Senozhatsky wrote: > I'm a bit uncomfortable with the "breaks user space" part. since this > is a strictly debugging option, would it be sufficient to store those > extended timestamps as prefixes of every message? > see (sorry for "self-quoting"): > lkml.ker

Re: [PATCH v3 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation

2017-09-19 Thread Mark Brown
On Fri, Sep 15, 2017 at 03:29:15PM +0800, Baolin Wang wrote: > This patch adds the binding documentation for Spreadtrum ADI > controller device. Please submit patches using subject lines reflecting the style for the subsystem. This makes it easier for people to identify relevant patches. Look at

Re: usb/core: slab-out-of-bounds in usb_set_configuration

2017-09-19 Thread Andrey Konovalov
On Mon, Sep 18, 2017 at 8:50 PM, Greg Kroah-Hartman wrote: > On Mon, Sep 18, 2017 at 07:22:24PM +0200, Andrey Konovalov wrote: >> Hi! >> >> I've got the following crash while fuzzing the kernel with syzkaller. >> >> On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 18). >> >> It seems there'

Re: [PATCH v2 2/2] staging: ion: create one device entry per heap

2017-09-19 Thread Benjamin Gaignard
2017-09-19 13:02 GMT+02:00 Greg KH : > On Tue, Sep 19, 2017 at 12:25:38PM +0200, Benjamin Gaignard wrote: >> Instead a getting one common device "/dev/ion" for >> all the heaps this patch allow to create one device >> entry ("/dev/ionX") per heap. >> Getting an entry per heap could allow to set sec

Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller

2017-09-19 Thread Maxime Ripard
On Tue, Sep 19, 2017 at 04:23:14PM +0800, Icenowy Zheng wrote: > > > 于 2017年9月19日 GMT+08:00 下午4:20:19, Maxime Ripard > 写到: > >On Mon, Sep 18, 2017 at 11:42:04PM +0800, Icenowy Zheng wrote: > >> Allwinner A64/H5 SoCs come with a SID controller like the one in H3, > >but > >> without the silicon

Premiere Classes Show 2017

2017-09-19 Thread Susan Lundeen
Hi, Would you be interested in the " Premiere Classes Show 2017 Pairs, France Attendees ?" Please Let me know your interest to send you the number of attendees and cost. Just let me know if you have any questions. Awaiting your reply Regards, Susan Lundeen Marketing Executive To remove from th

[PATCH v2 0/4] fw_cfg: add DMA operations & etc/vmcoreinfo support

2017-09-19 Thread marcandre . lureau
From: Marc-André Lureau Hi, This series brings DMA operations support to the fw_cfg kernel module and provide "etc/vmcoreinfo" support. At the current iteration of "[Qemu-devel] [PATCH v6 0/7] KASLR kernel dump support" patch series, a "etc/vmcoreinfo" entry is added with qemu -device vmcoreinf

[PATCH v2 2/4] fw_cfg: do DMA read operation

2017-09-19 Thread marcandre . lureau
From: Marc-André Lureau Modify fw_cfg_read_blob() to use DMA if the device supports it. Return errors, because the operation may fail. This is a proof-of-concept patch with some FIXME. It uses yield() to wait for the memory to be cleared. Help on how to improve this is welcome. We may also want

[PATCH v2 4/4] RFC: fw_cfg: add DMA write operation in sysfs

2017-09-19 Thread marcandre . lureau
From: Marc-André Lureau Since qemu 2.9, DMA write operations are allowed. However, usage of this interface from kernel or user-space is strongly discouraged by the maintainers. This patch is meant for experimentations for now. Signed-off-by: Marc-André Lureau --- drivers/firmware/qemu_fw_cfg.c

[PATCH v2 3/4] fw_cfg: write vmcoreinfo details

2017-09-19 Thread marcandre . lureau
From: Marc-André Lureau If the "etc/vmcoreinfo" file is present, write the addr/size of the vmcoreinfo ELF note. Signed-off-by: Marc-André Lureau --- drivers/firmware/qemu_fw_cfg.c | 80 +- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH v2 1/4] fw_cfg: add DMA register

2017-09-19 Thread marcandre . lureau
From: Marc-André Lureau Add an optional kernel module (or command line) parameter using the following syntax: [fw_cfg.]ioport=@[::[:]] or [fw_cfg.]mmio=@[::[:]] and initializes the register address using given or default offset. Signed-off-by: Marc-André Lureau --- drivers/firm

[PATCH 2/2] dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding

2017-09-19 Thread Neil Armstrong
Cc: supp...@tronsmart.com Signed-off-by: Oleg Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/arm/amlogic.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.txt b/Documentation/devicetree/bindings/arm/amlogic.txt index 4e4bc

[PATCH 0/2] ARM64: Add Vega S96 board support

2017-09-19 Thread Neil Armstrong
This patchset adds support for the Tronsmart Vega S96 TV Box based on the Q200 Amlogic Reference design. Neil Armstrong (2): ARM64: dts: meson-gxm: Add Vega S96 board dt-bindings: arm: amlogic: Add Tronsmart Vega S96 binding Documentation/devicetree/bindings/arm/amlogic.txt | 1 + arch/arm

[PATCH 1/2] ARM64: dts: meson-gxm: Add Vega S96 board

2017-09-19 Thread Neil Armstrong
The Tronsmart Vega S96 is a TV box derived from Amlogic q200 reference design. Cc: supp...@tronsmart.com Signed-off-by: Oleg Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/Makefile | 1 + arch/arm64/boot/dts/amlogic/meson-gxm-vega-s96.dts | 39 +

Re: [PATCH v2 2/2] staging: ion: create one device entry per heap

2017-09-19 Thread Dan Carpenter
If you had spelled out how this patch breaks user space in the changelog then you wouldn't be catching so much flak for it now... You should fix that in v3. regards, dan carpenter

Re: [PATCH v2 06/14] irqchip: add initial support for ompic

2017-09-19 Thread Stafford Horne
On Mon, Sep 18, 2017 at 03:43:39PM -0500, Rob Herring wrote: > On Sun, Sep 10, 2017 at 03:49:18PM +0900, Stafford Horne wrote: > > From: Stefan Kristiansson > > > > IPI driver for the Open Multi-Processor Interrupt Controller (ompic) as > > described in the Multicore support section of the OpenRI

Re: [patch] mremap.2: Add description of old_size == 0 functionality

2017-09-19 Thread Florian Weimer
On 09/18/2017 07:11 PM, Mike Kravetz wrote: On 09/18/2017 06:45 AM, Florian Weimer wrote: On 09/15/2017 11:53 PM, Mike Kravetz wrote: +If the value of \fIold_size\fP is zero, and \fIold_address\fP refers to +a private anonymous mapping, then +.BR mremap () +will create a new mapping of the same

Re: [RFC] ASoC: codecs: msm8916-wcd-analog: use btn0 released detection

2017-09-19 Thread Mark Brown
On Mon, Sep 18, 2017 at 10:08:04AM +0100, Srinivas Kandagatla wrote: > On 13/09/17 21:43, Damien Riegel wrote: > > msm8916-wcd-analog uses button0 to differentiate between headphone and > > headset. Under some circumstances, button pressed and released > > interrupts are not fired as the driver exp

[PATCH] Fix for hanging si2168 in PCTV 292e, making the code match

2017-09-19 Thread Nigel Kettlewell
[re-sending as plain text] Fix for hanging si2168 in PCTV 292e USB, making the code match the comment. Using firmware v4.0.11 the 292e would work once and then hang on subsequent attempts to view DVB channels, until physically unplugged and plugged back in. With this patch, the warm state is

Re: [PATCH v2 1/2] include: linux: sysfs: Add __ATTR_NAMED macro

2017-09-19 Thread Lars-Peter Clausen
On 09/13/2017 11:29 PM, Greg KH wrote: > On Wed, Sep 13, 2017 at 09:23:31PM +0200, Lars-Peter Clausen wrote: >> On 09/13/2017 08:58 PM, Greg KH wrote: >>> On Wed, Sep 13, 2017 at 06:03:10PM +0100, Jonathan Cameron wrote: On Wed, 13 Sep 2017 14:14:07 +0530 Himanshi Jain wrote: >

Re: [PATCH v2 06/14] irqchip: add initial support for ompic

2017-09-19 Thread Stafford Horne
On Mon, Sep 18, 2017 at 03:29:58PM -0500, Rob Herring wrote: > On Thu, Sep 14, 2017 at 03:54:02PM +0900, Stafford Horne wrote: > > On Wed, Sep 13, 2017 at 06:21:39PM +0100, Marc Zyngier wrote: > > > On Sun, Sep 10 2017 at 3:49:18 pm BST, Stafford Horne > > > wrote: > > > > From: Stefan Kristians

Re: [PATCH v7 2/8] mfd: wm97xx-core: core support for wm97xx Codec

2017-09-19 Thread Mark Brown
On Mon, Sep 18, 2017 at 09:52:36AM +0100, Lee Jones wrote: > On Thu, 14 Sep 2017, Mark Brown wrote: > > On Thu, Sep 14, 2017 at 08:43:00AM +0100, Lee Jones wrote: > > > Change of plan. It looks like there are deps. > > > Unapplied. > > The core stuff went in during the merge window, you should

Re: [PATCH 5/6] staging: fsl-dpaa2/ethsw: Add README

2017-09-19 Thread Andrew Lunn
On Tue, Sep 19, 2017 at 12:01:37PM +0300, Razvan Stefanescu wrote: > +Driver uses the switch device driver model and exposes each switch port as > +a network interface, which can be included in a bridge. Traffic switched > +between ports is offloaded into the hardware. Exposed network interfaces >

Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller

2017-09-19 Thread icenowy
在 2017-09-19 19:55,Maxime Ripard 写道: On Tue, Sep 19, 2017 at 04:23:14PM +0800, Icenowy Zheng wrote: 于 2017年9月19日 GMT+08:00 下午4:20:19, Maxime Ripard 写到: >On Mon, Sep 18, 2017 at 11:42:04PM +0800, Icenowy Zheng wrote: >> Allwinner A64/H5 SoCs come with a SID controller like the one in H3, >bu

Re: [RESEND PATCH v2 1/3] ASoC: rockchip: Add dapm route for HDMI

2017-09-19 Thread Mark Brown
On Mon, Sep 18, 2017 at 07:17:59PM +0800, Jeffy Chen wrote: > Add dapm route for DP codec. This is a resend of a patch you posted earlier in the same day? signature.asc Description: PGP signature

linux-4.14-rc1/arch/x86/include/asm/uaccess.h: Missing include of

2017-09-19 Thread Stefan Mätje
Resend with changed subject: Hi, there is a change in Linus' mainline kernel for 4.14-rc1 (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/include/asm/uaccess.h?id=6c51e67b64d169419fb13318035bb442f9176612) that changes the set_fs() macro into an inline function.

Re: [PATCH] thermal: imx: add NVMEM dependency

2017-09-19 Thread Arnd Bergmann
On Tue, Sep 19, 2017 at 12:53 PM, Leonard Crestez wrote: > On Mon, 2017-09-18 at 22:48 +0200, Arnd Bergmann wrote: >> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig >> index 07002df4f83a..cb14f1ec5953 100644 >> --- a/drivers/thermal/Kconfig >> +++ b/drivers/thermal/Kconfig >> @@ -2

Re: [PATCH] media: default for RC_CORE should be n

2017-09-19 Thread Geert Uytterhoeven
On Fri, Sep 8, 2017 at 6:39 PM, Stephen Hemminger wrote: > The Linus policy on Kconfig is that the default should be no > for all new devices. I.e the user rebuild a new kernel from an > old config should not by default get a larger kernel. > > Fixes: b4c184e506a4 ("[media] media: reorganize the m

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-09-19 Thread Jiri Olsa
On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: SNIP > > -struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr); > +// parse inlined frames for the given address > +struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr, > +

[PATCH] params: Align add_sysfs_param documentation with code

2017-09-19 Thread Jean Delvare
This parameter is named kp, so the documentation should use that. Signed-off-by: Jean Delvare Fixes: 9b473de87209 ("param: Fix duplicate module prefixes") Cc: Rusty Russell --- kernel/params.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-4.14-rc1.orig/kernel/params.c 2017

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-09-19 Thread Jiri Olsa
On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: SNIP > +void inlines__tree_insert(struct rb_root *tree, struct inline_node *inlines) > +{ > + struct rb_node **p = &tree->rb_node; > + struct rb_node *parent = NULL; > + const u64 addr = inlines->addr; > + struct inline

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-09-19 Thread Jiri Olsa
On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > The inlined frames use a fake symbol that is maintained by > inline_node which in turn is maintained by the dso->inlines tree. > This tree is always sorted by name. All other entries of the symbol > beside the function name are unused

Re: [PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver

2017-09-19 Thread Andrew Lunn
On Tue, Sep 19, 2017 at 12:01:32PM +0300, Razvan Stefanescu wrote: > This patchset introduces the Ethernet Switch Driver for Freescale/NXP SoCs > with DPAA2 (DataPath Acceleration Architecture v2). The driver manages > switch objects discovered on the fsl-mc bus. A description of the driver > can b

Re: [RESEND PATCH v2 3/3] ASoC: rockchip: Init dapm routes dynamically

2017-09-19 Thread Mark Brown
On Mon, Sep 18, 2017 at 07:18:01PM +0800, Jeffy Chen wrote: > Currently we are using a fixed list of dapm routes. > > Init dapm routes dynamically when parsing dailinks, since we are > supporting optional codecs. This doesn't apply against current code, please check and resend. signature.asc De

Re: [PATCH] MIPS: Fix PCI host bridge map_irq() hook section mismatches

2017-09-19 Thread Arnd Bergmann
On Tue, Sep 19, 2017 at 12:49 PM, Lorenzo Pieralisi wrote: > Commit 04c81c7293df ("MIPS: PCI: Replace pci_fixup_irqs() call with host > bridge IRQ mapping hooks") allowed to move the PCI irq fixup to the new > host bridge map/swizzle_irq() hooks mechanism. Those hooks can also be > called after bo

Re: [RFC] iommu: arm-smmu: stall support

2017-09-19 Thread Joerg Roedel
Hi Rob, thanks for the RFC patch. I have some comments about the interface to the IOMMU-API below. On Thu, Sep 14, 2017 at 03:44:33PM -0400, Rob Clark wrote: > +/** > + * iommu_domain_resume - Resume translations for a domain after a fault. > + * > + * This can be called at some point after the f

Re: [PATCH 1/3] dt-bindings: spi: spi-davinci: Update binding for 66AK2Gx pwr dm property

2017-09-19 Thread Mark Brown
On Fri, Sep 08, 2017 at 03:46:36PM -0500, Franklin S Cooper Jr wrote: > Add pm-domains property which is required for 66AK2Gx. Also document 66AK2G > unique clocks property usage. Please submit patches using subject lines reflecting the style for the subsystem. This makes it easier for people to

Re: [PATCH v2 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-19 Thread Mathias Nyman
Hi, sorry about the long delay On 07.09.2017 18:49, Hans de Goede wrote: Hi, On 07-09-17 15:14, Mathias Nyman wrote: On 05.09.2017 19:42, Hans de Goede wrote: The Intel cherrytrail xhci controller has an extended cap mmio-range which contains registers to control the muxing to the xhci (host

[PATCH] x86/setup: Clarify a comment

2017-09-19 Thread Jean Delvare
It's not obvious to everybody that BP stands for boot processor. At least it was not for me. Signed-off-by: Jean Delvare Cc: Alok Kataria --- arch/x86/kernel/setup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-4.14-rc1.orig/arch/x86/kernel/setup.c 2017-09-17 00:47:51.000

Re: [RESEND PATCH v2 1/3] ASoC: rockchip: Add dapm route for HDMI

2017-09-19 Thread jeffy
Hi Mark, On 09/19/2017 08:19 PM, Mark Brown wrote: On Mon, Sep 18, 2017 at 07:17:59PM +0800, Jeffy Chen wrote: Add dapm route for DP codec. This is a resend of a patch you posted earlier in the same day? sorry, this is a resend of yesterday patches, to correct the wrong the wrong patch tag(

Re: usb/hid: slab-out-of-bounds read in usbhid_parse

2017-09-19 Thread Andrey Konovalov
On Tue, Sep 19, 2017 at 1:47 PM, Kim Jaejoong wrote: > Hi, Andrey Konovalov > > Thanks for the report. > > 2017-09-19 2:33 GMT+09:00 Andrey Konovalov : >> Hi! >> >> I've got the following crash while fuzzing the kernel with syzkaller. >> >> On commit ebb2c2437d8008d46796902ff390653822af6cc4 (Sep 1

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