[RFC PATCH] rework memory hotplug onlining

2017-03-15 Thread Michal Hocko
Hi, this is a follow up for [1]. In short the current semantic of the memory hotplug is awkward and hard/impossible to use from the udev to online memory as movable. The main problem is that only the last memblock or the adjacent to highest movable memblock can be onlined as movable: : Let's

Re: [PATCH v10 6/7] x86/arch_prctl: Add ARCH_[GET|SET]_CPUID

2017-03-15 Thread H. Peter Anvin
,"open list:KERNEL SELFTEST FRAMEWORK" ,kvm list From: h...@zytor.com Message-ID: On March 14, 2017 12:23:40 PM PDT, Andy Lutomirski

[PATCH] clk: stm32h7: Add stm32h743 clock driver

2017-03-15 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables clocks for STM32H743 boards. Signed-off-by: Gabriel Fernandez --- .../devicetree/bindings/clock/st,stm32h7-rcc.txt | 152 ++ drivers/clk/Makefile |1 +

Re: [PATCH 1/2] ARM64: dts: meson-gxbb-odroidc2: Add GPIO lines names

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 3:52 PM, Neil Armstrong wrote: > This patch describes the GPIO lines usage on the Odroid-C2 board. > > This is useful in the debugfs gpio file and using the cdev gpio API. > > Signed-off-by: Neil Armstrong Very helpful.

Re: [PATCH 05/19] gpio: 104-dio-48e: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The 104-dio-48e gpio driver currently implements an irq_chip for > handling interrupts; due to how irq_chip handling is done, it's > necessary for the irq_chip methods to be invoked from hardirq context, > even on a a

Re: [PATCH 17/19] pinctrl: amd: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The amd pinctrl drivers currently implement an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time

Re: [PATCH v2] mfd: intel_soc_pmic: Fix a mess with compilation units

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Andy Shevchenko wrote: > On Tue, 2017-03-14 at 15:02 +, Lee Jones wrote: > > On Mon, 13 Mar 2017, Andy Shevchenko wrote: > > > > > Crystal Cove and Whiskey Cove are two different PMICs which are > > > installed on Intel Atom SoC based platforms. > > > > > > Moreover

Re: [PATCH 16/19] pinctrl: bcm: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The bcm pinctrl drivers currently implement an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time

[PATCH v5 2/3] printk: rename selected_console -> preferred_console

2017-03-15 Thread Aleksey Makarov
The variable selected_console is set in __add_preferred_console() to point to the last console parameter that was added to the console_cmdline array. Rename it to preferred_console so that the name reflects the usage. Petr Mladek: "[..] the selected_console/preferred_console value is used to

Re: [PATCH 1/2] mfd: retu: Add OF device ID table

2017-03-15 Thread Lee Jones
On Tue, 21 Feb 2017, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the assumption that a > I2C device registered via OF will always match a legacy I2C device ID and > that the

Re: [PATCH v2 5/5] mfd: dt-bindings: Add RK805 device tree bindings document

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Elaine Zhang wrote: > Add device tree bindings documentation for Rockchip's RK805 PMIC. > > Signed-off-by: Elaine Zhang > --- > Documentation/devicetree/bindings/mfd/rk808.txt | 20 +++- > 1 file changed, 19 insertions(+), 1

Re: [PATCH v2 1/5] mfd: rk808: fix up the chip id get failed

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Elaine Zhang wrote: > the rk8xx chip id is: > ((MSB << 8) | LSB) & 0xfff0 > > Signed-off-by: Elaine Zhang > --- > drivers/mfd/rk808.c | 21 +++-- > include/linux/mfd/rk808.h | 1 + > 2 files changed, 16 insertions(+), 6

Re: [PATCH v2 4/5] mfd: rk808: Add RK805 support

2017-03-15 Thread Lee Jones
On Fri, 10 Mar 2017, Elaine Zhang wrote: > The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld > devices. It contains the following components: > > - Regulators > - RTC > - Clocking > > Both RK808 and RK805 chips are using a similar register map, > so we can

[PATCH 1/7] net, netfilter: convert ip_vs_conn.refcnt from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH v4 14/18] mfd: axp20x: add MFD cells for AXP20X and AXP22X battery driver

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the AXP20X/AXP22X battery driver to the MFD cells of the AXP209, AXP221 and AXP223 MFD. Signed-off-by: Quentin Schulz Acked-for-MFD-by: Lee Jones

[PATCH v2 05/14] [media] rc: sunxi-cir: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from devm_reset_control_get_optional and to call reset_control_(de)assert unconditionally.

Re: crypto: deadlock between crypto_alg_sem/rtnl_mutex/genl_mutex

2017-03-15 Thread Sowmini Varadhan
On (03/15/17 10:08), Dmitry Vyukov wrote: > After I've applied the patch these reports stopped to happen, and I > have not seem any other reports that look relevant. > However, it there was one, but it looks like a different issue and it > was probably masked by massive amounts of original

[PATCH v2 04/14] [media] st_rc: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from reset_control_get_optional and to call reset_control_(de)assert unconditionally.

[PATCH v2 08/14] mmc: sunxi: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from devm_reset_control_get_optional and to call reset_control_(de)assert unconditionally.

[PATCH v4] mm/vmscan: more restrictive condition for retry in do_try_to_free_pages

2017-03-15 Thread Yisheng Xie
By reviewing code, I find that when enter do_try_to_free_pages, the may_thrash is always clear, and it will retry shrink zones to tap cgroup's reserves memory by setting may_thrash when the former shrink_zones reclaim nothing. However, when memcg is disabled or on legacy hierarchy, or there do

Re: [PATCH] serial: 8250: 8250_core: Use dev_name() during request_irq()

2017-03-15 Thread Vignesh R
On Tuesday 14 March 2017 09:29 PM, Andy Shevchenko wrote: > On Tue, Mar 14, 2017 at 3:44 PM, Vignesh R wrote: >> On Monday 13 March 2017 01:35 AM, Andy Shevchenko wrote: >>> On Wed, Mar 8, 2017 at 2:19 PM, Vignesh R wrote: Passing "serial" as name during

Re: [RFC PATCH] ASoC: wm8960: Use physical width for bclk

2017-03-15 Thread Daniel Baluta
On Mi, 2017-03-15 at 09:19 +, Charles Keepax wrote: > On Tue, Mar 14, 2017 at 06:57:02PM +0200, Daniel Baluta wrote: > > > > bclk is derived from sysclk with the help of bclk_divs. Anyhow, for > > S20_3LE format there is no bclk_divs that could be used to derive > > an exact bclk. > > > > We

Re: [PATCH v8 2/4] irqchip/qeic: merge qeic init code from platforms to a common function

2017-03-15 Thread kbuild test robot
-for-QEIC/20170315-154031 config: powerpc-mpc836x_rdk_defconfig (attached as .config) compiler: powerpc-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin

[PATCH v4 13/18] power: supply: add battery driver for AXP20X and AXP22X PMICs

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the battery power supply driver to get various data from the PMIC, such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage

RE: [PATCH 6/7] megasas: Remove expensive inline from megasas_return_cmd

2017-03-15 Thread Sumit Saxena
>-Original Message- >From: megaraidlinux@broadcom.com >[mailto:megaraidlinux@broadcom.com] On Behalf Of Andi Kleen >Sent: Wednesday, March 15, 2017 7:45 AM >To: a...@linux-foundation.org >Cc: linux-kernel@vger.kernel.org; Andi Kleen; >megaraidlinux@broadcom.com >Subject: [PATCH

Re: [PATCH RESEND 4/4] mfd: arizona: Use regmap_read_poll_timeout instead of hard coding it

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Charles Keepax wrote: > On Tue, Mar 14, 2017 at 05:07:04PM +, Lee Jones wrote: > > On Thu, 09 Mar 2017, Charles Keepax wrote: > > > > > arizona_poll_reg essentially hard-codes regmap_read_poll_timeout, this > > > patch updates the implementation to use

Re: [PATCH 1/3] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-15 Thread Chris Zhong
Hi Heiko On 03/15/2017 05:03 PM, Heiko Stübner wrote: Am Mittwoch, 15. März 2017, 16:42:30 CET schrieb Chris Zhong: For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, add the description for this clock. Signed-off-by: Chris Zhong ---

Re: [PATCH 07/19] gpio: bcm-kona: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The bcm-kona gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time

Re: [PATCH v3 0/7] mmc: bcm2835: Add new driver for the sdhost controller

2017-03-15 Thread Peter Robinson
On Wed, Mar 15, 2017 at 8:21 AM, Gerd Hoffmann wrote: > Hi, > >> First the flipping of the mmc host driver for the SD card slot will >> cause issues for users that build it as a module. When I tested this >> on Fedora the first update I ended up with a system that didn't

Re: [PATCH 19/19] pinctrl: sunxi: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:22 PM, Julia Cartwright wrote: > The sunxi pinctrl driver currently implement an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time

Re: [PATCH v3 2/8] staging: rtl8192e: Fix coding style

2017-03-15 Thread Dan Carpenter
On Wed, Mar 15, 2017 at 03:21:51PM +0530, suni...@techveda.org wrote: > @@ -1796,7 +1796,7 @@ static short _rtl92e_alloc_rx_ring(struct net_device > *dev) > > for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx++) { > priv->rx_ring[rx_queue_idx] =

Re: [PATCH net] bridge: ebtables: fix reception of frames DNAT-ed to bridge device

2017-03-15 Thread Pablo Neira Ayuso
On Wed, Mar 15, 2017 at 04:18:11AM +0100, Linus Lüssing wrote: > When trying to redirect bridged frames to the bridge device itself > via the ebtables nat-prerouting chain and the dnat target then this > currently fails: > > The ethernet destination of the frame is dnat'ed to the MAC address of >

Re: [PATCH 2/2] mfd: tps6105x: Add OF device ID table

2017-03-15 Thread Lee Jones
On Tue, 21 Feb 2017, Javier Martinez Canillas wrote: > The driver doesn't have a struct of_device_id table but supported devices > are registered via Device Trees. This is working on the assumption that a > I2C device registered via OF will always match a legacy I2C device ID and > that the

Re: [PATCH 2/2] usb; dwc3: of-simple: Add support to get resets for the device

2017-03-15 Thread Philipp Zabel
On Wed, 2017-02-22 at 10:54 +0530, Vivek Gautam wrote: > Add support to get a list of resets available for the device. > These resets must be kept de-asserted until the device is > in use. > > Cc: Felipe Balbi > Signed-off-by: Vivek Gautam > --- >

[PATCH v4 15/18] ARM: dtsi: axp209: add battery power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP209 PMIC exposes battery supply various data such as the battery status (charging, discharging, full, dead), current max limit, current current, battery capacity (in percentage), voltage max and min limits, current voltage, and battery capacity (in Ah). This adds the battery power

Re: [PATCH] sched/deadline: Add missing update_rq_clock() in dl_task_timer()

2017-03-15 Thread Juri Lelli
Hi, On 06/03/17 21:51, Wanpeng Li wrote: > From: Wanpeng Li > > The following warning can be triggered by hot-unplugging the CPU > on which an active SCHED_DEADLINE task is running on: > > [ cut here ] > WARNING: CPU: 7 PID: 0 at

Re: [PATCH v4 4/5] mfd: exynos-lpass: Use common soc/exynos-regs-pmu.h header

2017-03-15 Thread Krzysztof Kozlowski
On Wed, Mar 15, 2017 at 12:10 PM, Lee Jones wrote: > On Tue, 14 Mar 2017, Krzysztof Kozlowski wrote: > >> The MFD-specific header will go away because it duplicates defines from >> exynos-regs-pmu.h. >> >> Reported-by: kbuild test robot >>

Re: [Resend PATCH 4/4] dt-bindings: mfd: Add STM32F7 RCC numeric constants into DT include file

2017-03-15 Thread Lee Jones
On Thu, 09 Mar 2017, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch lists STM32F7's RCC numeric constants. > It will be used by clock and reset drivers, and DT bindings. > > Signed-off-by: Gabriel Fernandez > --- >

Re: [PATCH v3 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-03-15 Thread Enric Balletbo i Serra
Hi Lee, On 15/03/17 11:24, Lee Jones wrote: > On Tue, 14 Mar 2017, Enric Balletbo i Serra wrote: >> On 14/03/17 14:59, Lee Jones wrote: >>> On Tue, 14 Feb 2017, Enric Balletbo i Serra wrote: >>> From: Stephen Barber If the EC supports RTC host commands,

Re: [PATCH] perf/record: make perf_event__synthesize_mmap_events() scale

2017-03-15 Thread Jiri Olsa
On Tue, Mar 14, 2017 at 11:57:21PM -0700, Stephane Eranian wrote: > This patch significantly improves the execution time of > perf_event__synthesize_mmap_events() when running perf record > on systems where processes have lots of threads. It just happens > that cat /proc/pid/maps support uses a

[PATCH v2 10/14] phy: meson8b-usb2: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from devm_reset_control_get_optional_shared and to call reset_control_reset unconditionally.

[PATCH v2 12/14] usb: dwc2: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from devm_reset_control_get_optional and to call reset_control_(de)assert unconditionally.

Re: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization

2017-03-15 Thread Vadim Lomovtsev
Hi Jon, On Wed, Mar 15, 2017 at 07:14:38AM -0400, Jon Masters wrote: > Hi Bjorn, Vadim, > > Following up to this old thread... > > On 02/01/2017 10:18 AM, Bjorn Helgaas wrote: > > On Wed, Feb 01, 2017 at 04:53:25AM -0800, Vadim Lomovtsev wrote: > > Because there is no such ACPI ID as

[PATCH v2 14/14] ASoC: sunxi: simplify optional reset handling

2017-03-15 Thread Philipp Zabel
As of commit bb475230b8e5 ("reset: make optional functions really optional"), the reset framework API calls use NULL pointers to describe optional, non-present reset controls. This allows to return errors from devm_reset_control_get_optional and to call reset_control_deassert unconditionally.

[PATCH 2/2] soc: qcom: smsm: Avoid the use of an uninitialized value

2017-03-15 Thread Jonathan Neuschäfer
If qcom_smem_get returns an error besides -EPROBE_DEFER or -ENOENT, don't assume that size has been set. Signed-off-by: Jonathan Neuschäfer --- drivers/soc/qcom/smsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/qcom/smsm.c

[PATCH v4 12/18] mfd: axp20x: add CHRG_CTRL1/2/3 to writeable regs for AXP20X/AXP22X

2017-03-15 Thread Quentin Schulz
The CHRG_CTRL1 and CHRG_CTRL2 registers are made for controlling different battery charging settings such as the constant current charge value. The AXP22X also have a third register CHRG_CTRL3 which has settings for battery charging too. This adds the CHRG_CTRL1, CHRG_CTRL2 and CHRG_CTRL3

Re: [PATCH] clk: stm32h7: Add stm32h743 clock driver

2017-03-15 Thread Lee Jones
On Wed, 15 Mar 2017, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch enables clocks for STM32H743 boards. > > Signed-off-by: Gabriel Fernandez > --- > .../devicetree/bindings/clock/st,stm32h7-rcc.txt | 152 ++ >

Re: [PATCH v4 00/18] add support for AXP20X and AXP22X power supply drivers

2017-03-15 Thread Lee Jones
On Wed, 15 Mar 2017, Quentin Schulz wrote: > The X-Powers AXP20X and AXP22X PMICs have multiple ADCs. They expose > information and data of the various power supplies they support such as > ACIN, battery and VBUS. For example, they expose the current battery > voltage, charge or discharge, as

Re: [PATCH] s390/decompressor: fix initrd corruption caused by bss clear

2017-03-15 Thread Heiko Carstens
On Mon, Mar 13, 2017 at 12:14:58PM -0300, Marcelo Henrique Cerri wrote: > Reorder the operations in decompress_kernel() to ensure initrd is moved > to a safe location before the bss section is zeroed. > > During decompression bss can overlap with the initrd and this can > corrupt the initrd

[PATCH 3/3] drm/rockchip/dsi: correct the grf_switch_reg name

2017-03-15 Thread Chris Zhong
For the RK3399, the grf_switch_reg name should be RK3399_GRF_SOC_CON20, not RK3399_GRF_SOC_CON19. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/3] drm/rockchip/dsi: enable the grf clk before writing grf registers

2017-03-15 Thread Chris Zhong
For RK3399, the grf clk should be enabled before writing grf registers, otherwise the register value can not be changed. Signed-off-by: Chris Zhong --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 24 1 file changed, 24 insertions(+) diff --git

[PATCH 1/3] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-15 Thread Chris Zhong
For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, add the description for this clock. Signed-off-by: Chris Zhong --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 0/5] mm: support parallel free of memory

2017-03-15 Thread Aaron Lu
For regular processes, the time taken in its exit() path to free its used memory is not a problem. But there are heavy ones that consume several Terabytes memory and the time taken to free its memory in its exit() path could last more than ten minutes if THP is not used. As Dave Hansen explained

Re: [PATCH 0/6] x86: 5-level paging enabling for v4.12, Part 1

2017-03-15 Thread Michal Hocko
On Tue 14-03-17 08:47:29, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > Here's the first bunch of patches of 5-level patchset. Let's see if I'm on > > right track addressing Ingo's feedback. :) > > > > These patches prepare x86 code to be switched

Re: [PATCH v3 2/3] gpio: wm831x: Add basic device tree support

2017-03-15 Thread Charles Keepax
On Wed, Mar 15, 2017 at 10:18:31AM +0100, Linus Walleij wrote: > On Mon, Mar 6, 2017 at 5:46 PM, Charles Keepax > wrote: > > > Now the wm831x-core has basic DT support we can update this driver to > > allow use of the GPIOs within a device tree system. > > >

Re: [PATCH 1/3] pinctrl: meson-gxbb: Fix typo in i2c ao groups

2017-03-15 Thread Linus Walleij
On Tue, Mar 7, 2017 at 2:31 PM, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong Patch applied for fixes. Yours, Linus Walleij

Re: [PATCH 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-03-15 Thread Eva Rachel Retuya
On Mon, Mar 13, 2017 at 02:12:54PM +0200, Andy Shevchenko wrote: > On Mon, Mar 13, 2017 at 1:11 PM, Eva Rachel Retuya > wrote: > Hello Andy, Thanks for the review. > Missed commit message is no-no! > > > Signed-off-by: Eva Rachel Retuya > > > -int

Re: [PATCH 2/3] pinctrl: meson-gxl: Fix inverted registers and add missing pins

2017-03-15 Thread Neil Armstrong
On 03/15/2017 10:43 AM, Linus Walleij wrote: > On Tue, Mar 7, 2017 at 2:31 PM, Neil Armstrong > wrote: > >> Fix some inverted bit numbers in some pinctrl groups and add missing pins >> and groups to be in pair with the GXBB pinctrl pins definition. >> >> Signed-off-by:

Re: [PATCH 06/19] gpio: ath79: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The ath79 gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time

Re: [PATCH 08/19] gpio: etraxfs: make use of raw_spinlock variants

2017-03-15 Thread Linus Walleij
On Thu, Mar 9, 2017 at 5:21 PM, Julia Cartwright wrote: > The etraxfs gpio driver currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time

Re: [PATCH v4 0/5] perf report: Show inline stack

2017-03-15 Thread Milian Wolff
On Friday, March 3, 2017 11:43:00 AM CET Jin Yao wrote: > v4: Remove the options "--inline-line" and "--inline-name". Just use > a new option "--inline" to print the inline function information. > The policy is if the inline function name can be resolved then > print the name in

Re: [PATCH fixes v4] pinctrl: Do not check previous and current state

2017-03-15 Thread Linus Walleij
On Mon, Mar 13, 2017 at 8:06 PM, Andy Shevchenko wrote: > On Mon, Mar 13, 2017 at 8:59 PM, Florian Fainelli > wrote: >> On 03/07/2017 10:52 AM, Florian Fainelli wrote: > >> Linus am I hitting some of your spam folder, or you are really having >>

Re: Getting "Wrong diagnostic page; asked for 7 got 0" error message on HBA's virtual SES device

2017-03-15 Thread Sreekanth Reddy
Hi, Any Update? Thanks, Sreekanth On Mon, Mar 13, 2017 at 12:13 PM, Sreekanth Reddy wrote: > Hi, > > Our LSI(Broadcom) SAS3.5 HBA device's support virtual SES device. > > Whenever we load the mpt3sas driver then we are observing below error message, > > "Wrong

Re: media / v4l2-mc: wishlist for complex cameras (was Re: [PATCH v4 14/36] [media] v4l2-mc: add a function to inherit controls from a pipeline)

2017-03-15 Thread Philippe De Muyter
On Tue, Mar 14, 2017 at 09:54:31PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 14 Mar 2017 23:32:54 +0100 > Pavel Machek escreveu: > > > > > Well, I believe first question is: what applications would we want to > > run on complex devices? Will sending control from video to

[PATCH 2/7] net, netfilter: convert ip_vs_dest.refcnt from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH 0/7] net, netfilter refcounter conversions

2017-03-15 Thread Elena Reshetova
This series, for the netfilter subsystem, replaces atomic_t reference counters with the new refcount_t type and API (see include/linux/refcount.h). By doing this we prevent intentional or accidental underflows or overflows that can led to use-after-free vulnerabilities. Please take the series to

Re: [PATCH v3 2/8] staging: rtl8192e: Fix coding style

2017-03-15 Thread Suniel Mahesh
On Wednesday 15 March 2017 03:44 PM, Dan Carpenter wrote: On Wed, Mar 15, 2017 at 03:21:51PM +0530, suni...@techveda.org wrote: @@ -1796,7 +1796,7 @@ static short _rtl92e_alloc_rx_ring(struct net_device *dev) for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx++) {

Re: [PATCH 2/8] mfd: db8500-prcmu: fix stub helper interface

2017-03-15 Thread Arnd Bergmann
On Wed, Mar 15, 2017 at 11:27 AM, Lee Jones wrote: > On Tue, 14 Mar 2017, Arnd Bergmann wrote: >> On Tue, Mar 14, 2017 at 12:14 PM, Lee Jones wrote: >> > On Tue, 28 Feb 2017, Arnd Bergmann wrote: >> > Is this patch still valid? >> >> Yes. The build

[PATCH] clk: sunxi-ng: Fix div/mult settings for osc12M on A64

2017-03-15 Thread Philipp Tomsich
The mult/div for osc12M was previously backwards (giving a 48M rate for osc12M). Fix it. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich Tested-by: Christoph Muellner Cc: Maxime Ripard

Re: [PATCH 4/4] eeprom: at24: Add OF device ID table

2017-03-15 Thread Javier Martinez Canillas
Hello Andy, On 03/15/2017 08:21 AM, Andy Shevchenko wrote: > On Wed, Mar 15, 2017 at 12:58 PM, Javier Martinez Canillas > wrote: >> On 03/15/2017 04:58 AM, Wolfram Sang wrote: > >> Unfortunately some maintainers do and don't accept patches adding I2C tables >> only to

[PATCH v4 11/18] dt-bindings: power: supply: add AXP20X/AXP22X battery DT binding

2017-03-15 Thread Quentin Schulz
The X-Powers AXP20X and AXP22X PMICs can have a battery as power supply. This patch adds the DT binding documentation for the battery power supply which gets various data from the PMIC, such as the battery status (charging, discharging, full, dead), current max limit, current current, battery

Re: [PATCH 3/6] cpufreq: schedutil: ensure max frequency while running RT/DL tasks

2017-03-15 Thread Rafael J. Wysocki
On Friday, March 03, 2017 12:38:30 PM Patrick Bellasi wrote: > On 03-Mar 14:01, Viresh Kumar wrote: > > On 02-03-17, 15:45, Patrick Bellasi wrote: > > > diff --git a/kernel/sched/cpufreq_schedutil.c > > > b/kernel/sched/cpufreq_schedutil.c > > > @@ -293,15 +305,29 @@ static void

Re: [PATCH] drivers/pcmcia: NO_IRQ removal for electra_cf.c

2017-03-15 Thread Arnd Bergmann
On Wed, Mar 15, 2017 at 6:35 AM, Michael Ellerman wrote: > Arnd Bergmann writes: >> On Tue, Mar 14, 2017 at 11:51 AM, Michael Ellerman >> wrote: >>> Michael Ellerman writes: >>> >> >> drivers/ata/pata_mpc52xx.c:

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-15 Thread Jon Hunter
Hi Rajendra, On 15/03/17 03:47, Nayak, Rajendra wrote: > Hey Jon, > Looks like there is still some interest/needs in/for this. Any thoughts on how we can move this forward? >>> >>> At the Linaro Connect last week, I was talking to Björn, Rajendra and >>> Stephen more about these

Re: [PATCH 1/3] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-15 Thread Heiko Stübner
Am Mittwoch, 15. März 2017, 16:42:30 CET schrieb Chris Zhong: > For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, > add the description for this clock. > > Signed-off-by: Chris Zhong > --- > >

Re: [PATCH v6 00/11] perf: arm64: Support for Hisilicon SoC Hardware event counters

2017-03-15 Thread Anurup M
Please have a look at this patch series. Looking forward for any feedback and comments. Thanks, Anurup On Friday 10 March 2017 11:55 AM, Anurup M wrote: Provide Support for Hisilicon SoC(HiP05/06/07) Hardware event counters. The Hisilicon SoC HiP0x series has many uncore or non-CPU

Re: [PATCH 1/3] kvm: arm/arm64: Take mmap_sem in stage2_unmap_vm

2017-03-15 Thread Christoffer Dall
On Tue, Mar 14, 2017 at 02:52:32PM +, Suzuki K Poulose wrote: > From: Marc Zyngier > > We don't hold the mmap_sem while searching for the VMAs when > we try to unmap each memslot for a VM. Fix this properly to > avoid unexpected results. > > Fixes: commit 957db105c997

Re: [RFC PATCH] ASoC: wm8960: Use physical width for bclk

2017-03-15 Thread Charles Keepax
On Tue, Mar 14, 2017 at 06:57:02PM +0200, Daniel Baluta wrote: > bclk is derived from sysclk with the help of bclk_divs. Anyhow, for > S20_3LE format there is no bclk_divs that could be used to derive > an exact bclk. > > We can fix this by using storage size instead the exact > number of bits of

Re: [PATCH v3 2/3] gpio: wm831x: Add basic device tree support

2017-03-15 Thread Linus Walleij
On Mon, Mar 6, 2017 at 5:46 PM, Charles Keepax wrote: > Now the wm831x-core has basic DT support we can update this driver to > allow use of the GPIOs within a device tree system. > > Signed-off-by: Charles Keepax >

Re: [PATCH v2 16/23] MAINTAINERS: Add file patterns for powerpc device tree bindings

2017-03-15 Thread Michael Ellerman
Geert Uytterhoeven writes: > On Wed, Mar 15, 2017 at 1:19 AM, Michael Ellerman wrote: >> Geert Uytterhoeven writes: >>> Submitters of device tree binding documentation may forget to CC >>> the subsystem maintainer if this is

Re: [PATCH 2/2] MIPS: NI 169445 board support

2017-03-15 Thread Linus Walleij
On Mon, Mar 6, 2017 at 9:06 PM, Nathan Sullivan wrote: > Support the National Instruments 169445 board. > > Signed-off-by: Nathan Sullivan (...) > + gpio1:gpio-controller@1f300010 { > + compatible =

Re: [PATCH v2 16/23] MAINTAINERS: Add file patterns for powerpc device tree bindings

2017-03-15 Thread Geert Uytterhoeven
Hi Michael, On Wed, Mar 15, 2017 at 10:30 AM, Michael Ellerman wrote: > Geert Uytterhoeven writes: >> On Wed, Mar 15, 2017 at 1:19 AM, Michael Ellerman >> wrote: >>> Geert Uytterhoeven writes:

Re: [PATCH 1/3] dt-bindings: add the grf clock for dw-mipi-dsi

2017-03-15 Thread Heiko Stübner
Am Mittwoch, 15. März 2017, 17:55:23 CET schrieb Chris Zhong: > Hi Heiko > > On 03/15/2017 05:03 PM, Heiko Stübner wrote: > > Am Mittwoch, 15. März 2017, 16:42:30 CET schrieb Chris Zhong: > >> For RK3399, the grf clock should be controlled by dw-mipi-dsi driver, > >> add the description for this

Re: [PATCH v4 4/5] mfd: exynos-lpass: Use common soc/exynos-regs-pmu.h header

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Krzysztof Kozlowski wrote: > The MFD-specific header will go away because it duplicates defines from > exynos-regs-pmu.h. > > Reported-by: kbuild test robot > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Bartlomiej

Re: [PATCH v3 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Enric Balletbo i Serra wrote: > On 14/03/17 14:59, Lee Jones wrote: > > On Tue, 14 Feb 2017, Enric Balletbo i Serra wrote: > > > >> From: Stephen Barber > >> > >> If the EC supports RTC host commands, expose an RTC device. > >> > >> Signed-off-by:

Re: [PATCH fixes v4] pinctrl: Do not check previous and current state

2017-03-15 Thread Linus Walleij
On Tue, Mar 7, 2017 at 7:52 PM, Florian Fainelli wrote: > In case a platform only defaults a "default" set of pins, but not a > "sleep" set of pins, and this particular platform suspends and resumes > in a way that the pin states are not preserved by the hardware, when we >

[PATCH 1/1] tty: serial_core, remove state checks in uart_poll*

2017-03-15 Thread Jiri Slaby
Coverity complains about uart_state checks in polling functions. And it is indeed correct. We do something like this: struct uart_state *state = drv->state + line; if (!state) return; Adding 'line' to drv->state would move the potential NULL pointer to something

[PATCH 1/1] sisusb_con: fix coccinelle warning

2017-03-15 Thread Jiri Slaby
After commit d705ff3818 (tty: vt, cleanup and document con_scroll), in the coccinelle output, we can see: drivers/usb/misc/sisusbvga/sisusb_con.c:852:8-9: WARNING: return of 0/1 in function 'sisusbcon_scroll_area' with return type bool Return true instead of 1 in the function returning bool

Re: [PATCH 4/4] eeprom: at24: Add OF device ID table

2017-03-15 Thread Javier Martinez Canillas
Hello Wolfram, On 03/15/2017 04:58 AM, Wolfram Sang wrote: > >> So there isn't an agreement if is better to just rely in the current behavior >> (and have a superfluous I2C device ID table) or fix the I2C core (and need a >> OF device ID table). > > For at24, the i2c_device_id table is not

Re: [PATCH v1 0/7] initialize dtsi file and dts file for RK3328 SoCs

2017-03-15 Thread Heiko Stübner
Hi Liang, Am Mittwoch, 15. März 2017, 18:03:50 CET schrieb c...@rock-chips.com: > From: Liang Chen > > These patchs depend on pinctrl patchs as below: > > https://patchwork.kernel.org/patch/9566427/ > https://patchwork.kernel.org/patch/9566425/ >

[PATCH 6/7] net, netfilter: convert nfulnl_instance.use from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

[PATCH 3/7] net, netfilter: convert ctnl_timeout.refcnt from atomic_t to refcount_t

2017-03-15 Thread Elena Reshetova
refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Signed-off-by: Elena Reshetova Signed-off-by:

Re: [RFC v3 5/5] sched/{core,cpufreq_schedutil}: add capacity clamping for RT/DL tasks

2017-03-15 Thread Patrick Bellasi
On 13-Mar 03:08, Joel Fernandes (Google) wrote: > Hi Patrick, > > On Tue, Feb 28, 2017 at 6:38 AM, Patrick Bellasi > wrote: > > Currently schedutil enforce a maximum OPP when RT/DL tasks are RUNNABLE. > > Such a mandatory policy can be made more tunable from userspace

Re: [PATCH] tpm: select CONFIG_CRYPTO

2017-03-15 Thread Arnd Bergmann
On Wed, Mar 15, 2017 at 9:30 AM, Jarkko Sakkinen wrote: > Arnd, > > On Tue, Mar 14, 2017 at 10:40:24PM +0100, Arnd Bergmann wrote: >> As we need the CRYPTO_HASH_INFO implementation, we should also >> select CRYPTO itself to avoid this build warning: >> >> warning:

Re: [RFC v3 0/5] Add capacity capping support to the CPU controller

2017-03-15 Thread Rafael J. Wysocki
On Tuesday, February 28, 2017 02:38:37 PM Patrick Bellasi wrote: > Was: SchedTune: central, scheduler-driven, power-perfomance control > > This series presents a possible alternative design for what has been presented > in the past as SchedTune. This redesign has been defined to address the main

Re: [PATCH v2 2/5] mm: parallel free pages

2017-03-15 Thread Aaron Lu
On Wed, Mar 15, 2017 at 05:42:42PM +0800, Hillf Danton wrote: > > On March 15, 2017 5:00 PM Aaron Lu wrote: > > void tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned > > long end) > > { > > + struct batch_free_struct *batch_free, *n; > > + > s/*n/*next/ > > >

Re: [PATCH RFC 10/14] block, bfq: add Early Queue Merge (EQM)

2017-03-15 Thread Paolo Valente
> Il giorno 07 mar 2017, alle ore 18:44, Jens Axboe ha > scritto: > > On 03/04/2017 09:01 AM, Paolo Valente wrote: >> @@ -560,6 +600,15 @@ struct bfq_data { >> struct bfq_io_cq *bio_bic; >> /* bfqq associated with the task issuing current bio for merging */ >>

Re: [PATCH 1/7] mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Boris Brezillon wrote: > On Tue, 14 Mar 2017 17:00:03 + > Lee Jones wrote: > > > On Mon, 20 Feb 2017, Boris Brezillon wrote: > > > > > These new helpers + macro definitions are meant to replace the old ones > > > which are unpractical to use. > >

[PATCH] Bluetooth: hci_bcm: Fix clock (un)prepare

2017-03-15 Thread John Keeping
The hci_bcm driver currently does not prepare/unprepare the clock and goes directly to enable, but as the documentation for clk_enable says, clk_prepare must be called before clk_enable. Signed-off-by: John Keeping --- drivers/bluetooth/hci_bcm.c | 4 ++-- 1 file changed, 2

Re: [PATCH 1/2] blk-mq: don't complete un-started request in timeout handler

2017-03-15 Thread Ming Lei
On Wed, Mar 15, 2017 at 12:07:37AM +, Bart Van Assche wrote: > On Thu, 2017-03-09 at 21:02 +0800, Ming Lei wrote: > > diff --git a/block/blk-mq.c b/block/blk-mq.c > > index 159187a28d66..0aff380099d5 100644 > > --- a/block/blk-mq.c > > +++ b/block/blk-mq.c > > @@ -697,17 +697,8 @@ static void

  1   2   3   4   5   6   7   8   9   10   >