Re: [PATCH] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2017-08-27 Thread Joonsoo Kim
On Fri, Aug 25, 2017 at 09:56:10AM +0200, Vlastimil Babka wrote: > On 08/25/2017 02:20 AM, Joonsoo Kim wrote: > > On Thu, Aug 24, 2017 at 11:41:58AM +0200, Vlastimil Babka wrote: > > > > Hmm, this is already pointed by Minchan and I have answered that. > > > > lkml.kernel.org/r/<20170421013243.GA

Linux 4.13-rc7

2017-08-27 Thread Linus Torvalds
Hmm. We had a few issues come up the past week, but nothing that is really impacting the release schedule. So here's rc7, and I still expect this to the the last rc, although the best-laid plans of mice and men.. rc7 is pretty small, with most of the changes in drivers and architecture as usual.

[PATCH 2/2] mm/slub: don't use reserved highatomic pageblock for optimistic try

2017-08-27 Thread js1304
From: Joonsoo Kim High-order atomic allocation is difficult to succeed since we cannot reclaim anything in this context. So, we reserves the pageblock for this kind of request. In slub, we try to allocate higher-order page more than it actually needs in order to get the best performance. If this

[PATCH 1/2] mm/slub: wake up kswapd for initial high order allocation

2017-08-27 Thread js1304
From: Joonsoo Kim slub uses higher order allocation than it actually needs. In this case, we don't want to do direct reclaim to make such a high order page since it causes a big latency to the user. Instead, we would like to fallback lower order allocation that it actually needs. However, we als

Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit

2017-08-27 Thread Nicholas Piggin
On Sun, 27 Aug 2017 16:12:19 -0700 Linus Torvalds wrote: > On Sun, Aug 27, 2017 at 2:40 PM, Linus Torvalds > wrote: > > > > The race goes like this: > > > > thread1 thread2 thread3 > > > > > > .. CPU1 ... > > __lock_page_killable > > w

RE: [PATCH 03/12] PM / devfreq: Move private devfreq_update_stats() into devfreq

2017-08-27 Thread MyungJoo Ham
> From: Chanwoo Choi > > THe devfreq_update_stats() updates the 'struct devfreq_dev_status' > in order to get current status of devfreq device. It is only used > for the governors. > > This patch moves the devfreq_update_stats() into devfreq directory. > > Signed-off-by: Chanwoo Choi > --- >

RE: [PATCH 04/12] PM / devfreq: Add dependency on PM_OPP

2017-08-27 Thread MyungJoo Ham
> The devfreq ues the OPP library to handle the voltage and frequency > for the device basically. This patch adds the dependency on CONFIG_PM_OPP > in order to prevent either the build break or the unknow behavior. > > Signed-off-by: Chanwoo Choi > --- > drivers/devfreq/Kconfig | 1 + > 1 file c

Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit

2017-08-27 Thread Nicholas Piggin
On Mon, 28 Aug 2017 11:16:48 +1000 Nicholas Piggin wrote: > On Sun, 27 Aug 2017 16:12:19 -0700 > Linus Torvalds wrote: > > > diff --git a/mm/filemap.c b/mm/filemap.c > > index baba290c276b..0b41c8cbeabc 100644 > > --- a/mm/filemap.c > > +++ b/mm/filemap.c > > @@ -986,10 +98

RE: Re: [PATCH 01/12] PM / devfreq: Fix memory leak when fail to register device

2017-08-27 Thread MyungJoo Ham
> On 2017년 08월 28일 09:17, MyungJoo Ham wrote: > >> When the devfreq_add_device fails to register deivce, the memory > >> leak of devfreq instance happen. So, this patch fix the memory > >> leak issue. Before freeing the devfreq instance checks whether > >> devfreq instance is NULL or not because th

linux-next: manual merge of the net-next tree with the rockchip tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: arch/arm64/boot/dts/rockchip/rk3328-evb.dts between commit: 0e54e062692a ("arm64: dts: rockchip: add mmc nodes for rk3328 evaluation board") 57fca160b2be ("arm64: dts: rockchip: add cpu regulator for rk3328 evaluati

Re: [PATCH] block: Fix warning when I/O elevator is changed as request_queue is being removed

2017-08-27 Thread Ming Lei
On Wed, Aug 23, 2017 at 11:34 AM, Ming Lei wrote: > On Wed, Aug 9, 2017 at 9:44 AM, Ming Lei wrote: >> Hi David, >> >> On Wed, Aug 9, 2017 at 2:13 AM, David Jeffery wrote: >>> On 08/07/2017 07:53 PM, Ming Lei wrote: On Tue, Aug 8, 2017 at 3:38 AM, David Jeffery wrote: >>> > > Signe

RE: [PATCH 10/12] PM / devfreq: Remove 'devfreq' prefix from helper function

2017-08-27 Thread MyungJoo Ham
> This patch just removes the 'devfreq' prefix from internal helper > function in order to clarify the role of the following functions. > - devfreq_get_freq_level() - get_freq_level() > - devfreq_set_freq_table() - set_freq_table() > > Also, this patch changes the return value of set_freq_table()

Re: [PATCH v2] ASoC: Add a sanity check before using dai driver name

2017-08-27 Thread Donglin Peng
On Sun, Aug 27, 2017 at 10:31 PM, Jeffy Chen wrote: > hi dong, > > thanks for noticing, but i think mark've applied the right version. > > this amazing robot would help to test all patches, not only the ones already > applied :) I also think so.

[PATCH v7 1/2] mtd: spi-nor: add a quad_enable callback in struct flash_info

2017-08-27 Thread Andy Yan
Some manufacturers may use different bit to set QE on different memories. The GD25Q256 from GigaDevice is an example, which uses S6(bit 6 of the Status Register-1) to set QE, which is different with other supported memories from GigaDevice that use S9(bit 1 of the Status Register-2). This makes it

[PATCH v7 2/2] mtd: spi-nor: add support for GD25Q256

2017-08-27 Thread Andy Yan
Add support for GD25Q256, a 32MiB SPI Nor flash from GigaDevice. Signed-off-by: Andy Yan --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/mtd/spi-nor/spi-nor.c | 8 1 file changed, 8 insertions(+) diff

[PATCH] ARM: dts: uniphier: add pinctrl groups of ethernet phy mode

2017-08-27 Thread Kunihiko Hayashi
Add pinctrl groups of ethenet phy mode, such as "ether_rgmii", "ether_rmii", and "ether_mii". Signed-off-by: Kunihiko Hayashi --- arch/arm/boot/dts/uniphier-pinctrl.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/uniphier-pinctrl.dtsi b/arch/arm/boot/

linux-next: build failure after merge of the l2-mtd tree

2017-08-27 Thread Stephen Rothwell
Hi Brian, After merging the l2-mtd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/mtd/nand/nandsim.c: In function 'ns_init_module': drivers/mtd/nand/nandsim.c:2353:2: error: implicit declaration of function 'nandsim_debugfs_remove' [-Werror=implicit-function-decla

[PATCH] pinctrl: uniphier: fix members of rmii group for Pro4

2017-08-27 Thread Kunihiko Hayashi
The ether_rmii_groups should have "ether_rmii" and "ether_rmiib" as members. This patch replaces to them. Signed-off-by: Kunihiko Hayashi --- drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/uniphier/pinctrl-unip

Re: [PATCH v2 03/10] ASoC: Intel: Remove unnecessary function call

2017-08-27 Thread Donglin Peng
Hi Mark, On Wed, Aug 23, 2017 at 8:19 PM, Peng Donglin wrote: > The work of the function platform_set_drvdata is done by > devm_snd_soc_register_card. > > Signed-off-by: Peng Donglin > --- > > Changes in v2: > -add missed occurrences. > > sound/soc/intel/boards/bytcht_da7213.c | 6 ++

Re: [PATCH 10/12] PM / devfreq: Remove 'devfreq' prefix from helper function

2017-08-27 Thread Chanwoo Choi
On 2017년 08월 28일 10:37, MyungJoo Ham wrote: >> This patch just removes the 'devfreq' prefix from internal helper >> function in order to clarify the role of the following functions. >> - devfreq_get_freq_level() - get_freq_level() >> - devfreq_set_freq_table() - set_freq_table() >> >> Also, this pa

Re: [PATCH -tip v3 0/2] kprobes/x86: Another way to make insn buffer RO and cleanup

2017-08-27 Thread Masami Hiramatsu
Hi Ingo, What would you think about fixing this way? This makes the instruction buffer always RO and poke it via text_poke. Thank you, On Fri, 18 Aug 2017 17:22:54 +0900 Masami Hiramatsu wrote: > Hi, > > This series modifies how to handle RO insn buffer and > cleans up addressof operators. >

Re: [PATCH] pinctrl: uniphier: fix members of rmii group for Pro4

2017-08-27 Thread Masahiro Yamada
2017-08-28 11:21 GMT+09:00 Kunihiko Hayashi : > The ether_rmii_groups should have "ether_rmii" and "ether_rmiib" as > members. This patch replaces to them. Linus, When you pick up this, please add Fixes: 1e359ab1285e ("1e359ab1285eaa7") > Signed-off-by: Kunihiko Hayashi Otherwise, looks goo

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

2017-08-27 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/imx/ipuv3-plane.c between commit: 5be5dd38d462 ("drm/imx: ipuv3-plane: fix YUV framebuffer scanout on the base plane") from Linus' tree and commit: 58dff39904c0 ("drm/imx: ipuv3-plane: use fb local var

Re: [PATCH 0/3] KVM, pkeys: fix handling of PKRU across migration

2017-08-27 Thread Yang Zhang
On 2017/8/24 18:12, Paolo Bonzini wrote: The host pkru is restored right after vcpu exit (commit 1be0e61), so KVM_GET_XSAVE will return the host PKRU value instead. In general, the PKRU value in vcpu->arch.guest_fpu.state cannot be trusted. Series as follows: 1) fix independent bug which would

Re: [patch v6 0/3] JTAG driver introduction

2017-08-27 Thread Rick Altherr
On Sun, Aug 27, 2017 at 3:30 PM, Linus Walleij wrote: > On Fri, Aug 25, 2017 at 6:52 PM, Rick Altherr wrote: > >>> Incidentally, people are sending patches to expose the FTDI >>> expanders as common GPIO chips under Linux, so we can >>> internally in the kernel or from the usersapce character dev

[PATCH V2] pinctrl: qcom: spmi-gpio: Correct power_source range check

2017-08-27 Thread fenglinw
From: Fenglin Wu Power source selection in DIG_VIN_CTL is indexed from 0, in the range check it shouldn't be equal to the total number of power sources. Signed-off-by: Fenglin Wu Acked-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH v2] membarrier: provide register sync core cmd

2017-08-27 Thread Mathieu Desnoyers
- On Aug 27, 2017, at 3:53 PM, Andy Lutomirski l...@amacapital.net wrote: >> On Aug 27, 2017, at 1:50 PM, Mathieu Desnoyers >> >> wrote: >> >> Add a new MEMBARRIER_CMD_REGISTER_SYNC_CORE command to the membarrier >> system call. It allows processes to register their intent to have their >>

Re: [PATCH] pinctrl: uniphier: fix members of rmii group for Pro4

2017-08-27 Thread Masahiro Yamada
2017-08-28 11:28 GMT+09:00 Masahiro Yamada : > 2017-08-28 11:21 GMT+09:00 Kunihiko Hayashi : >> The ether_rmii_groups should have "ether_rmii" and "ether_rmiib" as >> members. This patch replaces to them. > > > Linus, > When you pick up this, please add > > Fixes: 1e359ab1285e ("1e359ab1285eaa7")

[PATCH] Input: elantech - Support new touchpad IC and extend elan's touchpad command

2017-08-27 Thread KT Liao
Origianl ic-body field is not sufficient for upcoming IC, Elan ps/2 driver extend the formation to support future IC. If the IC ver is 0xf, the setting of etd->hw_version still keep 4 And add a new command to indicate a real IC body Signed-off-by: KT Liao --- drivers/input/mouse/elantech.c | 21

[PATCH v8 02/13] x86/apic: Prepare for unifying the interrupt delivery modes setup

2017-08-27 Thread Dou Liyang
There are three positions for initializing the interrupt delivery modes: 1) In IRQ initial function, may setup the through-local-APIC virtual wire mode. 2) In an SMP-capable system, will try to switch to symmetric I/O model when preparing the cpus in native_smp_prepare_cpus(). 3) In UP sys

[PATCH v8 03/13] x86/apic: Split local APIC timer setup from the APIC setup

2017-08-27 Thread Dou Liyang
apic_bsp_setup() sets up the local APIC, I/O APIC and APIC timer. The local APIC and I/O APIC setup belongs to interrupt delivery mode setup. Setting up the local APIC timer for booting CPU is another job and has nothing to do with interrupt delivery mode setup. Split local APIC timer setup from

[PATCH v8 13/13] x86/apic: Remove the init_bsp_APIC()

2017-08-27 Thread Dou Liyang
The init_bsp_APIC() which works for the virtual wire mode is used in ISA irq initialization at the booting time. Currently, enable and setup the interrupt mode has been unified and advanced just behind the timer IRQ setup. Kernel switches to the final interrupt delivery mode directly. So init_bsp_

[PATCH v8 09/13] x86/init: add intr_mode_init to x86_init_ops

2017-08-27 Thread Dou Liyang
X86 and XEN initialize interrupt delivery mode in different way. Ordinary conditional function calls will make the code mess. Add an unconditional x86_init_ops function which defaults to the standard function and can be overridden by the early platform code. Signed-off-by: Dou Liyang --- arch/

[PATCH v8 07/13] x86/apic: Unify interrupt mode setup for UP system

2017-08-27 Thread Dou Liyang
In UniProcessor kernel with UP_LATE_INIT=y, it enables and setups interrupt delivery mode in up_late_init(). Unify it to apic_intr_mode_init(), remove APIC_init_uniprocessor(). Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 1 - arch/x86/kernel/apic/apic.c | 47 ++-

[PATCH v8 06/13] x86/apic: Mark the apic_intr_mode extern for sanity check cleanup

2017-08-27 Thread Dou Liyang
Calling native_smp_prepare_cpus() to prepare for SMP bootup, does some sanity checking, enables APIC mode and disables SMP feature. Now, APIC mode setup has been unified to apic_intr_mode_init(), some sanity checks are redundant and need to be cleanup. Mark the apic_intr_mode extern to refine the

[PATCH v8 00/13] Unify the interrupt delivery mode and do its setup in advance

2017-08-27 Thread Dou Liyang
Changes V7 --> V8: - Change the order of [12/13] patch and [11/13]patch suggested by Rafael J. Wysocki. - Fix some comments. - Do more tests in Thinkpad x121e -- Thanks for Borislav Petkov's help. [Background] MP specification defines three different interrupt delivery modes as follows:

[PATCH v8 12/13] x86/time: Initialize interrupt mode behind timer init

2017-08-27 Thread Dou Liyang
In start_kernel(), firstly, it works on the default interrupy mode, then switch to the final mode. Normally, Booting with BIOS reset is OK. But, At dump-capture kernel, it boot up without BIOS reset, default mode may not be compatible with the actual registers, that causes the delivery interrupt t

[PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Dou Liyang
XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() initializes interrupts in the XEN PV specific way and does not invoke native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is not invoked either. The invocation of x86_init.intr_mode_init() will be moved from native_s

[PATCH v8 11/13] ACPI / init: Invoke early ACPI initialization earlier

2017-08-27 Thread Dou Liyang
Linux uses acpi_early_init() to put the ACPI table management into the late stage from the early stage.The two stages are different. the mapped ACPI tables in early stage is temporary and should be unmapped, but in late stage, it permanent and don't need to be unmapped. Originally, mapping and par

[PATCH v8 05/13] x86/apic: Unify interrupt mode setup for SMP-capable system

2017-08-27 Thread Dou Liyang
In the SMP-capable system, enable and setup the interrupt delivery mode in native_smp_prepare_cpus(). This design mixs the APIC and SMP together, it has highly coupling. Make the initialization of interrupt mode independent, Unify and refine it to apic_intr_mode_init() for SMP-capable system. Si

[PATCH v8 08/13] x86/ioapic: Refactor the delay logic in timer_irq_works()

2017-08-27 Thread Dou Liyang
Kernel use timer_irq_works() to detects the timer IRQs. It calls mdelay(10) to delay ten ticks and check whether the timer IRQ work or not. The mdelay() depends on the loops_per_jiffy which is set up in calibrate_delay(). Current kernel defaults the IRQ 0 is available when it calibrates delay. But

Re: [RESEND PATCH v4 2/2] i2c: Add Spreadtrum I2C controller driver

2017-08-27 Thread Baolin Wang
Hi Wolfram, On 27 August 2017 at 23:30, Wolfram Sang wrote: > Hi, > > thanks for your submission. > >> +static void sprd_i2c_dump_reg(struct sprd_i2c *i2c_dev) >> +{ >> + dev_err(&i2c_dev->adap.dev, ": ==dump i2c-%d reg===\n", >> + i2c_dev->adap.nr); >> + dev_err(&i2c_

[PATCH v8 04/13] x86/apic: Move logical APIC ID away from apic_bsp_setup()

2017-08-27 Thread Dou Liyang
apic_bsp_setup() sets and returns logical APIC ID for initializing cpu0_logical_apicid in SMP-capable system. The id has nothing to do with the initialization of local APIC and I/O APIC. And apic_bsp_setup() should be called for interrupt mode setup intently. Move the id setup into a separate hel

[PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-08-27 Thread Dou Liyang
Now, there are many switches in kernel which are used to determine the final interrupt delivery mode, as shown below: 1) kconfig: CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC 2) kernel option: disable_apic; skip_ioapic_setup 3) CPU Capability: boot_cpu_has(X86_FEATURE_APIC) 4) MP ta

Re: [kernel-hardening] [PATCH net-next v7 00/10] Landlock LSM: Toward unprivileged sandboxing

2017-08-27 Thread James Morris
On Mon, 21 Aug 2017, Mickaël Salaün wrote: > ## Why a new LSM? Are SELinux, AppArmor, Smack and Tomoyo not good enough? > > The current access control LSMs are fine for their purpose which is to give > the > *root* the ability to enforce a security policy for the *system*. What is > missing is a

Re: [PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-27 Thread James Morris
On Tue, 22 Aug 2017, Alexei Starovoitov wrote: > more general question: what is the status of security/ bits? > I'm assuming they still need to be reviewed and explicitly acked by James, > right? Yep, along with other core security developers where possible. -- James Morris

Re: [kernel-hardening] Re: [PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-27 Thread James Morris
On Wed, 23 Aug 2017, Mickaël Salaün wrote: > >> + struct { > >> + __u32 abi; /* minimal ABI version, cf. user doc */ > > > > the concept of abi (version) sounds a bit weird to me. > > Why bother with it at all? > > Once the first set of patches lands the kernel as whole will h

linux-next: manual merge of the tip tree with the spi tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: tools/Makefile between commit: e9d4650dcc59 ("spi: tools: add install section") from the spi tree and commit: ecda85e70277 ("x86/lguest: Remove lguest support") from the tip tree. I fixed it up (see below) and can car

Re: [PATCH net-next v7 04/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode()

2017-08-27 Thread James Morris
On Mon, 21 Aug 2017, Mickaël Salaün wrote: > @@ -85,6 +90,8 @@ enum bpf_arg_type { > > ARG_PTR_TO_CTX, /* pointer to context */ > ARG_ANYTHING, /* any (initialized) argument is ok */ > + > + ARG_CONST_PTR_TO_HANDLE_FS, /* pointer to an abstract FS struct */

Re: [PATCH 3.18 00/10] 3.18.67-stable review

2017-08-27 Thread Greg Kroah-Hartman
On Sun, Aug 27, 2017 at 09:49:48AM -0700, Guenter Roeck wrote: > On Tue, Aug 22, 2017 at 12:09:32PM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.67 release. > > There are 10 patches in this series, all will be posted as a response > > to this one.

linux-next: build failure after merge of the rcu tree

2017-08-27 Thread Stephen Rothwell
Hi Paul, After merging the rcu tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/kernel/asm-offsets.c:14:0: include/linux/sched.h: In function 'membarrier_sched_out': include/linux/sched.h:1680:3: error: implicit declaration of function 'syn

Re: [Xen-devel] [PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Juergen Gross
On 28/08/17 05:20, Dou Liyang wrote: > XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() > initializes interrupts in the XEN PV specific way and does not invoke > native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is > not invoked either. > > The invocation of x86_

[PATCH] IB/hfi1: constify vm_operations_struct

2017-08-27 Thread Arvind Yadav
vm_operations_struct are not supposed to change at runtime. vm_area_struct structure working with const vm_operations_struct. So mark the non-const vm_operations_struct structs as const. Signed-off-by: Arvind Yadav --- drivers/infiniband/hw/hfi1/file_ops.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] IB/rxe: constify vm_operations_struct

2017-08-27 Thread Arvind Yadav
vm_operations_struct are not supposed to change at runtime. vm_area_struct structure working with const vm_operations_struct. So mark the non-const vm_operations_struct structs as const. Signed-off-by: Arvind Yadav --- drivers/infiniband/sw/rxe/rxe_mmap.c | 2 +- 1 file changed, 1 insertion(+),

Re: [Xen-devel] [PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Juergen Gross
On 28/08/17 06:25, Juergen Gross wrote: > On 28/08/17 05:20, Dou Liyang wrote: >> XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() >> initializes interrupts in the XEN PV specific way and does not invoke >> native_smp_prepare_cpus(). As a consequence, x86_init.intr_mode_init() is >> n

Re: [PATCH v7 04/12] powerpc/vas: Define helpers to access MMIO regions

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Hi Suka, > > Comments inline. > > Sukadev Bhattiprolu writes: > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > index 6156fbe..a3a705a 100644 > > --- a/arch/powerpc/platforms/powernv

Re: [PATCH] Fix compat_sys_sigpending breakage introduced by v4.13-rc1~6^2~12

2017-08-27 Thread Al Viro
On Sun, Aug 06, 2017 at 07:22:03PM +0100, Al Viro wrote: > I would pick it through my tree, but the local network is half-disasembled > for move (containers arrive tomorrow, flight to Boston on 9th, stuff should > arrive there by the weekend, so I hope to be back to normal by the 14th > or so, ass

Re: Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-27 Thread Paul Mackerras
On Sun, Aug 27, 2017 at 10:02:20PM +0100, Al Viro wrote: > On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote: > > > It seems to me that it would be better to do the anon_inode_getfd() > > call before the kvm_get_kvm() call, and go to the fail label if it > > fails. > > And what happe

Re: [PATCH v7 05/12] powerpc/vas: Define helpers to init window context

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > index a3a705a..3a50d6a 100644 > > --- a/arch/powerpc/platforms/powernv/vas-window.c > > +++ b/arch/powerpc

linux-next: manual merge of the kvm tree with the tip tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kvm/mmu.c between commit: ea2800ddb20d ("kvm/x86: Avoid clearing the C-bit in rsvd_bits()") from the tip tree and commit: d6321d493319 ("KVM: x86: generalize guest_cpuid_has_ helpers") from the kvm tree. I fi

Re: [PATCH v7 06/12] powerpc/vas: Define helpers to alloc/free windows

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > + rc = ida_pre_get(ida, GFP_KERNEL); > > + if (!rc) > > + return -EAGAIN; > > + > > + spi

Re: [PATCH v7 08/12] powerpc/vas: Define vas_win_id()

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > > Define an interface to return a system-wide unique id for a given VAS > > window. > > > > The vas_win_id() will be used in a follow-on patch to generate an unique > > handle for a user space receive window. Applicat

[PATCH] tracing: make dynamic types can use __TRACE_LAST_TYPE

2017-08-27 Thread Zhou Chengming
Obviously, trace_events that defined staticly in trace.h won't use __TRACE_LAST_TYPE, so make dynamic types can use it. And some minor changes to trace_search_list() to make code clearer. Signed-off-by: Zhou Chengming --- kernel/trace/trace_output.c | 12 ++-- 1 file changed, 6 insertion

Re: [PATCH V1] thermal: qcom-spmi-temp-alarm: add support for GEN2 PMIC peripherals

2017-08-27 Thread kgunda
On 2017-08-26 04:49, Stephen Boyd wrote: On 08/25, Zhang Rui wrote: On Thu, 2017-08-17 at 13:12 +0530, kgu...@codeaurora.org wrote: > On 2017-08-16 17:53, kgu...@codeaurora.org wrote: > > > > On 2017-08-08 13:42, Zhang Rui wrote: > > > > > > On Thu, 2017-07-13 at 17:39 +0530, Kiran Gunda wrote:

Re: [PATCH v7 10/12] powerpc/vas: Define vas_win_close() interface

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Hi Suka, > > More comments :) Thanks! > > Sukadev Bhattiprolu writes: > > > diff --git a/arch/powerpc/platforms/powernv/vas-window.c > > b/arch/powerpc/platforms/powernv/vas-window.c > > index 2dd4b63..24288dd 100644 > > --- a/arch/powerpc/plat

Re: [Xen-devel] [PATCH v8 10/13] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-08-27 Thread Dou Liyang
Hi Juergen, At 08/28/2017 12:32 PM, Juergen Gross wrote: On 28/08/17 06:25, Juergen Gross wrote: On 28/08/17 05:20, Dou Liyang wrote: XEN PV overrides smp_prepare_cpus(). xen_pv_smp_prepare_cpus() initializes interrupts in the XEN PV specific way and does not invoke native_smp_prepare_cpus().

Re: [PATCH 2/2 v2] sched/wait: Introduce lock breaker in wake_up_page_bit

2017-08-27 Thread Linus Torvalds
On Sun, Aug 27, 2017 at 6:29 PM, Nicholas Piggin wrote: > > BTW. since you are looking at this stuff, one other small problem I remember > with exclusive waiters is that losing to a concurrent locker puts them to > the back of the queue. I think that could be fixed with some small change to > the

Re: [PATCH 3/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-27 Thread Huang, Ying
"Huang, Ying" writes: > Hi, Peter, > > "Huang, Ying" writes: > >> Peter Zijlstra writes: >> >>> On Sat, Aug 05, 2017 at 08:47:02AM +0800, Huang, Ying wrote: Yes. That looks good. So you will prepare the final patch? Or you hope me to do that? >>> >>> I was hoping you'd do it ;-) >>

linux-next: manual merge of the xen-tip tree with the tip tree

2017-08-27 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got conflicts in: arch/x86/xen/xen-asm.S arch/x86/xen/xen-asm_64.S between commit: edcb5cf84f05 ("x86/paravirt/xen: Remove xen_patch()") from the tip tree and commits: ad5b8c4ba323("xen: get rid of paravirt op adjust_exception_frame

Re: [PATCH v7 12/12] powerpc/vas: Define copy/paste interfaces

2017-08-27 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: > Hi Suka, > > A few more things ... > > Sukadev Bhattiprolu writes: > > > diff --git a/arch/powerpc/platforms/powernv/copy-paste.h > > b/arch/powerpc/platforms/powernv/copy-paste.h > > new file mode 100644 > > index 000..7783bb8 > > --- /dev/n

Re: [PATCH v2 RESEND 1/2] dt-bindings: serial: 8250: Add MediaTek BTIF controller bindings

2017-08-27 Thread Matthias Brugger
On 08/27/2017 10:39 PM, Sean Wang wrote: On Sun, 2017-08-27 at 22:00 +0300, Matthias Brugger wrote: On 08/19/2017 09:06 PM, sean.w...@mediatek.com wrote: From: Sean Wang Document the devicetree bindings in 8250.txt for MediaTek BTIF controller which could be found on MT7622 and MT7623 SoC.

Re: [PATCH net-next v7 05/10] landlock: Add LSM hooks related to filesystem

2017-08-27 Thread Alexei Starovoitov
On Sun, Aug 27, 2017 at 03:31:35PM +0200, Mickaël Salaün wrote: > > > How can you add 3rd argument? All FS events would have to get it, > > but in some LSM hooks such argument will be meaningless, whereas > > in other places it will carry useful info that rule can operate on. > > Would that mean t

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-27 Thread Joel Fernandes
Hi Mike, On Sun, Aug 27, 2017 at 11:07 AM, Mike Galbraith wrote: > On Sat, 2017-08-26 at 23:39 -0700, Joel Fernandes wrote: >> >> Also about real world benchmarks, in Android we have usecases that >> show that the graphics performance and we have risk of frame drops if >> we don't use the sync fl

Re: Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-27 Thread Al Viro
On Mon, Aug 28, 2017 at 02:38:37PM +1000, Paul Mackerras wrote: > On Sun, Aug 27, 2017 at 10:02:20PM +0100, Al Viro wrote: > > On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote: > > > > > It seems to me that it would be better to do the anon_inode_getfd() > > > call before the kvm_get

[PATCH 0/2] constify clk clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by work with const clk_div_table. So mark the non-const structs as const. Arvind Yadav (2): [PATCH 1/2] clk: imx: constify clk_div_table [PATCH 2/2] clk: zte: constify clk_div_table driver

[PATCH 1/2] clk: imx: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by work with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/clk/imx/clk-imx6sl.c | 6 +++--- drivers/clk/imx/clk-imx6sx.c | 6 +++--- driv

[PATCH 2/2] clk: zte: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. All functions working with clk_div_table provided by work with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/clk/zte/clk-zx296718.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletion

[PATCH] remoteproc: Stop subdevices in reverse order

2017-08-27 Thread Bjorn Andersson
Subdevices might depend on earlier registered subdevices for communication purposes, as such they should be stopped in reverse order so that said communication channel is removed after the dependent subdevice is stopped. Signed-off-by: Bjorn Andersson --- drivers/remoteproc/remoteproc_core.c | 2

[PATCH] remoteproc: Introduce rproc handle accessor for children

2017-08-27 Thread Bjorn Andersson
In certain circumstances rpmsg devices needs to acquire a handle to the ancestor remoteproc instance, e.g. to invoke rproc_report_crash() when a fatal error is detected. Introduce an interface that walks the device tree in search for a remoteproc instance and return this. Signed-off-by: Bjorn Ande

Re: [PATCH v8 00/13] Unify the interrupt delivery mode and do its setup in advance

2017-08-27 Thread Dou Liyang
Hi, Follow Juergen's advice, +CC xen-devel and linux-acpi In case a single patch of a series isn't stand alone it would be nice to receive at least the cover letter of the series in order to know what its all about. Thanks, dou. At 08/28/2017 11:20 AM, Dou Liyang wrote: Changes V7 -->

[PATCH] leds: pca955x: Don't invert requested value in pca955x_gpio_set_value()

2017-08-27 Thread Andrew Jeffery
The PCA9552 lines can be used either for driving LEDs or as GPIOs. The manual states that for LEDs, the operation is open-drain: The LSn LED select registers determine the source of the LED data. 00 = output is set LOW (LED on) 01 = output is set high-impedance (LED

[PATCH] net: stmmac: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. meson8b_dwmac structure is working with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [LKP] [lkp-robot] [sched/cfs] 625ed2bf04: unixbench.score -7.4% regression

2017-08-27 Thread Huang, Ying
kernel test robot writes: > Greeting, > > FYI, we noticed a -7.4% regression of unixbench.score due to commit: > > > commit: 625ed2bf049d5a352c1bcca962d6e133454eaaff ("sched/cfs: Make > util/load_avg more stable") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > in t

[PATCH] powerpc/512x: clk: constify clk_div_table

2017-08-27 Thread Arvind Yadav
clk_div_table are not supposed to change at runtime. mpc512x_clk_divtable function working with const clk_div_table. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/powerpc/platforms/512x/clock-commonclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

Re: [PATCH] connector: Delete an error message for a failed memory allocation in cn_queue_alloc_callback_entry()

2017-08-27 Thread Dan Carpenter
On Sun, Aug 27, 2017 at 11:16:06PM +, Waskiewicz Jr, Peter wrote: > On 8/27/17 3:26 PM, SF Markus Elfring wrote: > > From: Markus Elfring > > Date: Sun, 27 Aug 2017 21:18:37 +0200 > > > > Omit an extra message for a memory allocation failure in this function. > > > > This issue was detected

Re: Re: [PATCH] fix memory leak on kvm_vm_ioctl_create_spapr_tce

2017-08-27 Thread Paul Mackerras
On Mon, Aug 28, 2017 at 06:28:08AM +0100, Al Viro wrote: > On Mon, Aug 28, 2017 at 02:38:37PM +1000, Paul Mackerras wrote: > > On Sun, Aug 27, 2017 at 10:02:20PM +0100, Al Viro wrote: > > > On Wed, Aug 23, 2017 at 04:06:24PM +1000, Paul Mackerras wrote: > > > > > > > It seems to me that it would b

Re: [PATCH RFC/RFT] sched/fair: Improve the behavior of sync flag

2017-08-27 Thread Mike Galbraith
On Sun, 2017-08-27 at 22:27 -0700, Joel Fernandes wrote: > Hi Mike, > > On Sun, Aug 27, 2017 at 11:07 AM, Mike Galbraith wrote: > > On Sat, 2017-08-26 at 23:39 -0700, Joel Fernandes wrote: > >> > >> Also about real world benchmarks, in Android we have usecases that > >> show that the graphics per

[PATCH] [media] uvcvideo: zero seq number when disabling stream

2017-08-27 Thread Hans Yang
For bulk-based devices, when disabling the video stream, in addition to issue CLEAR_FEATURE(HALT), it is better to set alternate setting 0 as well or the sequnce number in host side will probably not reset to zero. Then in next time video stream start, the device will expect host starts packet fro

[PATCH net-next v3 3/3] ftgmac100: Support NCSI VLAN filtering when available

2017-08-27 Thread Samuel Mendoza-Jonas
Register the ndo_vlan_rx_{add,kill}_vid callbacks and set the NETIF_F_HW_VLAN_CTAG_FILTER if NCSI is available. This allows the VLAN core to notify the NCSI driver when changes occur so that the remote NCSI channel can be properly configured to filter on the set VLAN tags. Signed-off-by: Samuel Me

[PATCH net-next v3 2/3] net/ncsi: Configure VLAN tag filter

2017-08-27 Thread Samuel Mendoza-Jonas
Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI stack process new VLAN tags and configure the channel VLAN filter appropriately. Several VLAN tags can be set and a "Set VLAN Filter" packet must be sent for each one, meaning the ncsi_dev_state_config_svf state must be repeated.

[PATCH net-next v3 0/3] NCSI VLAN Filtering Support

2017-08-27 Thread Samuel Mendoza-Jonas
This series (mainly patch 2) adds VLAN filtering to the NCSI implementation. A fair amount of code already exists in the NCSI stack for VLAN filtering but none of it is actually hooked up. This goes the final mile and fixes a few bugs in the existing code found along the way (patch 1). Patch 3 add

Re: [PATCH] staging: rtl8723bs: remove memset before memcpy

2017-08-27 Thread Dan Carpenter
On Mon, Aug 28, 2017 at 01:43:31AM +0530, Himanshu Jha wrote: > calling memcpy immediately after memset with the same region of memory > makes memset redundant. > > Build successfully. > Thanks for the patch, it looks good. You don't need to say that it builds successfully, because we already a

[PATCH net-next v3 1/3] net/ncsi: Fix several packet definitions

2017-08-27 Thread Samuel Mendoza-Jonas
Signed-off-by: Samuel Mendoza-Jonas --- v2: Rebased on latest net-next net/ncsi/ncsi-cmd.c | 10 +- net/ncsi/ncsi-pkt.h | 2 +- net/ncsi/ncsi-rsp.c | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/net/ncsi/ncsi-cmd.c b/net/ncsi/ncsi-cmd.c index 5e03ed190e18..7567

Re: [PATCH 12/12] dma-mapping: turn dma_cache_sync into a dma_map_ops method

2017-08-27 Thread Geert Uytterhoeven
Hi Christoph, On Sun, Aug 27, 2017 at 6:10 PM, Christoph Hellwig wrote: > After we removed all the dead wood it turns out only two architectures > actually implement dma_cache_sync as a no-op: mips and parisc. Add s/no-op/real op/ > a cache_sync method to struct dma_map_ops and implement it fo

[PATCH v2 1/2] ARM: dts: sun7i: Fix A20-OLinuXino-MICRO dts for LAN8710

2017-08-27 Thread Stefan Mavrodiev
>From revision J the board uses new phy chip LAN8710. Compared with RTL8201, RA17 pin is TXERR. It has pullup which causes phy not to work. To fix this PA17 is muxed with GMAC function. This makes the pin output-low. This patch is compatible with earlier board revisions, since this pin wasn't conn

[PATCH v2 0/2] Update board support for A20-OLinuXino-MICRO

2017-08-27 Thread Stefan Mavrodiev
>From rev.J of A20-OLinuXino-MICRO, the board has new PHY chip (LAN8710) which replace RTL8201. Also there is option for 4GB eMMC chip. Changes in v2: * Remove pinctrl request for eMMC reset pin * Dump the idea of renaming boards with emmc * Using txerr as gmac function St

[PATCH v2 2/2] ARM: dts: sun7i: Add dts file for A20-OLinuXino-MICRO-eMMC

2017-08-27 Thread Stefan Mavrodiev
A20-OLinuXino-MICRO has option with onboard eMMC chip. For now it's only shipped with 4BG chip, but in the future this may change. Signed-off-by: Stefan Mavrodiev --- arch/arm/boot/dts/Makefile | 1 + .../boot/dts/sun7i-a20-olinuxino-micro-emmc.dts| 70 ++

Re: [PATCH] s390/zcrypt: make CPRBX const

2017-08-27 Thread Harald Freudenberger
On 08/25/2017 03:10 PM, Bhumika Goyal wrote: > Make this const as it is only used in a copy operation. > > Signed-off-by: Bhumika Goyal > --- > drivers/s390/crypto/zcrypt_msgtype6.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/s390/crypto/zcrypt_msgtype6.c > b

Re: [PATCH] DSA support for Micrel KSZ8895

2017-08-27 Thread Pavel Machek
Hi! > > No, tag_ksz part probably is not acceptable. Do you see solution > > better than just copying it into tag_ksz1 file? > > How about something like this, which needs further work to actually > compile, but should give you the idea. If that's acceptable, yes, I can do something similar. I d

linux-next: manual merge of the scsi tree with the staging tree

2017-08-27 Thread Stephen Rothwell
Hi James, Today's linux-next merge of the scsi tree got a conflict in: drivers/staging/unisys/visorhba/visorhba_main.c between commits: 781facd05eb9 ("staging: unisys: visorhba: visorhba_main.c: fixed comment formatting issues") from the staging tree and commit: 7bc4e528d9f6 ("scsi: vi

<    1   2   3   4   >