[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: Hans Liljestrand Signed-off-

[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: Hans Liljestrand Signed-off-

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/ > https://patchwork.kernel.org/patch/9566431/ > >

[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: Hans Liljestrand Signed-off-

Re: [PATCH v3 5/5] phy: exynos: Use one define for enable bit

2017-03-15 Thread Lee Jones
On Sat, 11 Mar 2017, Krzysztof Kozlowski wrote: > There is no need for separate defines for Exynos4 and Exynos5 phy enable > bit and MIPI phy reset bits. In both cases there are the same so > simplify it. > > This reduces number of defines and allows removal of one header file. > > Signed-off-b

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

2017-03-15 Thread Dan Carpenter
On Wed, Mar 15, 2017 at 04:39:20PM +0530, Suniel Mahesh wrote: > 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) > >> > >>

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

2017-03-15 Thread Jon Masters
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 "THRX0002" registered (http://www.uefi.org/acpi_id_list). There is still no "THRX" pr

Re: [PATCH V2] arm64: hwpoison: add VM_FAULT_HWPOISON[_LARGE] handling

2017-03-15 Thread Catalin Marinas
Hi Punit, Adding David Woods since he seems to have added the arm64-specific huge_pte_offset() code. On Thu, Mar 09, 2017 at 05:46:36PM +, Punit Agrawal wrote: > From d5ad3f428e629c80b0f93f2bbdf99b4cae28c9bc Mon Sep 17 00:00:00 2001 > From: Punit Agrawal > Date: Thu, 9 Mar 2017 16:16:29 +000

Re: [PATCH 14/19] mfd: t7l66xb: make use of raw_spinlock variants

2017-03-15 Thread Lee Jones
On Thu, 09 Mar 2017, Julia Cartwright wrote: > The t7l66xb mfd 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 kernel. Because the spinloc

Re: [PATCHv2 1/5] dt-bindings: mfd: Add Altera Arria10 SR Reset Controller bindings

2017-03-15 Thread Philipp Zabel
On Wed, 2017-03-15 at 11:06 +, Lee Jones wrote: > On Wed, 22 Feb 2017, thor.tha...@linux.intel.com wrote: > > > From: Thor Thayer > > > > This patch adds documentation for the Altera A10-SR Reset > > Controller DT bindings. > > > > Signed-off-by: Thor Thayer > > --- > > v2 No change > > -

Re: [RFC v3 1/5] sched/core: add capacity constraints to CPU controller

2017-03-15 Thread Patrick Bellasi
On 13-Mar 03:46, Joel Fernandes (Google) wrote: > On Tue, Feb 28, 2017 at 6:38 AM, Patrick Bellasi > wrote: > > The CPU CGroup controller allows to assign a specified (maximum) > > bandwidth to tasks within a group, however it does not enforce any > > constraint on how such bandwidth can be consum

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

2017-03-15 Thread Andy Shevchenko
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 have module autoloading working so I still think it should be fixed. Wait, how does it work for

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 > --- > arch/arm/boot/dts/stm32f746.dtsi | 51

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, expose an RTC device. >

[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 Acked-by: Chen-Yu Tsai --- v2: - changed DT node name fro

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 deadlock

[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. Signed

[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. S

[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. S

[PATCH v2 07/14] mmc: sdhci-st: 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. S

[PATCH v2 11/14] serial: 8250_dw: 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. S

[PATCH v2 09/14] mtd: nand: 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. S

[PATCH v2 01/14] crypto: sun4i-ss - 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. S

[PATCH v2 13/14] usb: host: ehci-st: 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 unconditionally. Signed-off-by: Philipp Zabel -

[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. S

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 "THRX

[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. Sig

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 O(N

[PATCH v2 03/14] [media] coda: 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 without special cases and to call reset_control_reset un

[PATCH v2 06/14] mmc: dw_mmc: 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. S

[PATCH v2 02/14] i2c: mv64xxx: 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. S

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 error was resolved with a different patch, but

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: (TCG_TPM && TRUSTED_KEYS && IMA)

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 thus > > allowing for exampl

[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 --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

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 have module autoloading wor

[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 capa

[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 not

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] 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 request_irq() results in all serial

[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 b/drivers/soc/qcom/smsm.c index 39

[PATCH 1/2] soc: qcom: smsm: Handle probe deferral

2017-03-15 Thread Jonathan Neuschäfer
If qcom_smem_get or qcom_smem_alloc return -EPROBE_DEFER, let the caller the caller handle it, instead of treating it as an error. Signed-off-by: Jonathan Neuschäfer --- v1: - TODO: Reading qcom_smsm_probe, I noticed memory leaks in error paths: smsm, smsm->entries, etc. are allocated (with de

Re: [PATCH] tty/serial: atmel_serial: BUG: stop DMA from transmitting in stop_tx

2017-03-15 Thread Nicolas Ferre
Le 13/12/2016 à 17:27, Richard Genoud a écrit : > If we don't disable the transmitter in atmel_stop_tx, the DMA buffer > continues to send data until it is emptied. > This cause problems with the flow control (CTS is asserted and data are > still sent). > > So, disabling the transmitter in atmel_s

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: [RFC 0/9] cpufreq: schedutil: Allow remote wakeups

2017-03-15 Thread Rafael J. Wysocki
On Thursday, March 09, 2017 05:15:10 PM Viresh Kumar wrote: > Hi, > > This is based of the work done by Steve Muckle [1] before he left Linaro > and most of the patches are still under his authorship. I have done > couple of improvements (detailed in individual patches) and removed the > late call

[PATCH v8] mm: Add memory allocation watchdog kernel thread.

2017-03-15 Thread Tetsuo Handa
This patch adds a watchdog which periodically reports number of memory allocating tasks, dying tasks and OOM victim tasks when some task is spending too long time inside __alloc_pages_slowpath(). This patch also serves as a hook for obtaining additional information using SystemTap (e.g. examine oth

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/ > > > tlb_flu

[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 registe

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 sugov_update_share

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

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 */ >> struct bfq_queue *b

Re: [PATCH] sched: write better comments for weight calculations

2017-03-15 Thread Patrick Bellasi
Few comments inline, otherwise LGTM. Cheers Patrick On 10-Mar 12:47, Joel Fernandes wrote: > This patch rewrites comments related task priorities and CPU usage > along with an example to show how it works. > > Cc: Juri Lelli > Cc: Patrick Bellasi > Cc: Dietmar Eggemann > Cc: Peter Zijlstra >

Re: [PATCH v5 3/7] perf/sdt: Directly record SDT events with 'perf record'

2017-03-15 Thread Jiri Olsa
On Tue, Mar 14, 2017 at 08:36:54PM +0530, Ravi Bangoria wrote: SNIP > --- > tools/perf/builtin-record.c| 27 ++- > tools/perf/util/parse-events.c | 60 +++ > tools/perf/util/parse-events.h | 3 + > tools/perf/util/probe-event.c | 165 > ++

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: if (ata_irq == NO_IRQ) { >> drivers/ata/sata_dwc_460ex.c:#ifndef NO_IRQ >> dri

[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 v3 4/4] mfd: cros_ec: add RTC as mfd subdevice

2017-03-15 Thread Lee Jones
On Wed, 15 Mar 2017, Enric Balletbo i Serra wrote: > 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 > >

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

2017-03-15 Thread Lee Jones
On Wed, 15 Mar 2017, Krzysztof Kozlowski wrote: > 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 robo

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 regmap_read_poll_ti

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 ++ > drivers/clk/Makefile |

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 well

[PATCH] i2c: tegra-bpmp: Enable Tegra BPMP I2C adapter

2017-03-15 Thread Jon Hunter
Enable the Tegra BPMP I2C adapter by default if the Tegra BPMP itself is enabled. This adapter is used as the I2C interface for the PMIC on the Tegra186 Jetson-TX2 platform. Signed-off-by: Jon Hunter --- drivers/i2c/busses/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/b

[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 insertions(+), 2 dele

[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 insertions(+), 2 dele

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 b

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. > > > > > > Note that the

Re: [PATCH 23/35] drivers/mfd: Convert remaining uses of pr_warning to pr_warn

2017-03-15 Thread Lee Jones
On Tue, 14 Mar 2017, Joe Perches wrote: > On Tue, 2017-03-14 at 14:04 +, Lee Jones wrote: > > On Thu, 16 Feb 2017, Joe Perches wrote: > > > To enable eventual removal of pr_warning > [] > > > diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c > [] > > > @@ -502,9 +502,7 @@

Re: [PATCH v2 1/6] powerpc/perf: Define big-endian version of perf_mem_data_src

2017-03-15 Thread Peter Zijlstra
On Wed, Mar 15, 2017 at 05:20:15PM +1100, Michael Ellerman wrote: > > I see no implementation; so why are you poking at it. > > Maddy has posted an implementation of the kernel part for powerpc in > patch 2 of this series, but maybe you're not on Cc? I am not indeed. That and a completely inadeq

Re: [PATCH v4.9] sched/fair: Overload-On-Wakeup fix.

2017-03-15 Thread Peter Zijlstra
On Tue, Mar 14, 2017 at 11:34:06PM +0200, Jarmo Tiitto wrote: > Try improve multi-core scaling. > The changes are experimental - the fix works > but possible regressions are unknown. > > Please read the orginal author's paper to understand > the overall problem this patch tries to solve. > > See

Re: [PATCH 4/7] kref: Remove WARN_ON for NULL release functions

2017-03-15 Thread Peter Zijlstra
On Wed, Mar 15, 2017 at 10:46:56AM +0800, Greg KH wrote: > On Tue, Mar 14, 2017 at 07:14:28PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > The kref functions check for NULL release functions. > > This WARN_ON seems rather pointless. We will eventually release and > > then just crash nice

ZONE_NORMAL vs. ZONE_MOVABLE (was: Re: [RFC PATCH] rework memory hotplug onlining)

2017-03-15 Thread Michal Hocko
On Wed 15-03-17 11:48:37, Vitaly Kuznetsov wrote: > Michal Hocko writes: [...] > Speaking about long term approach, Not really related to the patch but ok (I hope this will not distract from the original intention here)... > (I'm not really familiar with the history of memory zones code so plea

Re: [PATCH] drm/exynos: Print kernel pointers in a restricted form

2017-03-15 Thread Tobias Jakobi
Hello Andrzej, note that i had already pointed Krzysztof to that documentation in my previous mail. - Tobias Andrzej Hajda wrote: > Hi Tobias, > > On 14.03.2017 21:41, Tobias Jakobi wrote: >> Krzysztof Kozlowski wrote: >>> On Tue, Mar 14, 2017 at 08:17:35PM +0100, Tobias Jakobi wrote: Krzy

Re: [PATCH] sched: write better comments for weight calculations

2017-03-15 Thread Joel Fernandes
On Wed, Mar 15, 2017 at 5:04 AM, Patrick Bellasi wrote: > Few comments inline, otherwise LGTM. Ok, I'll take that as an Acked-by with the following comment addressed if that's Ok with you. > > On 10-Mar 12:47, Joel Fernandes wrote: >> This patch rewrites comments related task priorities and CPU

Re: [PATCH] ARM: tegra: Select SOC_TEGRA_PMC to fix linking error

2017-03-15 Thread Jon Hunter
On 11/03/17 20:26, Krzysztof Kozlowski wrote: > It is possible to create a ARMv7 config with ARCH_TEGRA but without any > SoC specific flavors. Such configs fails because mach-tegra/pm.c is > compiled always and it references SOC_TEGRA_PMC driver: > > arch/arm/mach-tegra/built-in.o: In fun

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

2017-03-15 Thread Jack Wang
2017-03-13 7:43 GMT+01:00 Sreekanth Reddy : > 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 diagnostic page; asked for 7 got 0" > > Our virtual SES device doesn't support Diagno

[PATCH v4 17/18] ARM: dts: sun8i: sina33: enable battery power supply subnode

2017-03-15 Thread Quentin Schulz
The Sinlinx SinA33 has an AXP223 PMIC and a battery connector, thus, we enable the battery power supply subnode in its Device Tree. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 4 1 file changed, 4 insert

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 08:18:53PM +0800, Ming Lei wrote: > On Wed, Mar 15, 2017 at 12:07:37AM +, Bart Van Assche wrote: > > > or __blk_mq_requeue_request(). Another issue with this function is that the > > __blk_mq_requeue_request() can be run from two pathes: > > - dispatch failure,

[PATCH] clk: tegra: add Tegra210 special resets

2017-03-15 Thread Peter De Schrijver
Tegra210 has 2 special resets which don't follow the normal pattern: DVCO and ADSP. Add them in this patch. Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra210.c | 85 1 file changed, 85 insertions(+) diff --git a/drivers/clk/tegra/clk-t

Re: stable build: 199 builds: 1 failed, 198 passed, 1 error, 31 warnings (v4.4.52)

2017-03-15 Thread Arnd Bergmann
On Wed, Mar 15, 2017 at 8:22 AM, gregkh wrote: > On Tue, Feb 28, 2017 at 02:55:42PM +0100, Arnd Bergmann wrote: >> On Sun, Feb 26, 2017 at 3:09 PM, kernelci.org bot wrote: >> > stable build: 199 builds: 1 failed, 198 passed, 1 error, 31 warnings >> >> d43e6fb4ac4a ("cpmac: remove hopeless #warni

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

2017-03-15 Thread Michal Hocko
On Wed 15-03-17 19:36:48, Yisheng Xie wrote: > 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

Re: [PATCH v6 03/14] mmc: core: Add mmc-card dt sub-node parse in core layer

2017-03-15 Thread Ulf Hansson
On 14 February 2017 at 18:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Some vendor host, like Xenon, can support multiple types. > In dts, use mmc-card dt sub-node to indicate eMMC is in use. > > Add a generic mmc-card parse function in mmc core layer. > If mmc-card sub-node is detected, set eM

Re: stable build: 203 builds: 3 failed, 200 passed, 5 errors, 28 warnings (v4.9.13)

2017-03-15 Thread Arnd Bergmann
On Wed, Mar 15, 2017 at 8:22 AM, gregkh wrote: > On Tue, Feb 28, 2017 at 02:50:03PM +0100, Arnd Bergmann wrote: >> On Sun, Feb 26, 2017 at 2:52 PM, kernelci.org bot wrote: >> > >> > stable build: 203 builds: 3 failed, 200 passed, 5 errors, 28 warnings >> > (v4.9.13) >> >> Only one warning that d

Re: [PATCH v6 07/14] dt: bindings: Add bindings for Marvell Xenon SD Host Controller

2017-03-15 Thread Ulf Hansson
[...] > + > +Example: > +- For eMMC: > + > + sdhci@aa { > + compatible = "marvell,armada-ap806-sdhci"; > + reg = <0xaa 0x1000>; > + interrupts = > + clocks = <&emmc_clk>; > + clock-names = "core"; > +

Re: ZONE_NORMAL vs. ZONE_MOVABLE

2017-03-15 Thread Vitaly Kuznetsov
Michal Hocko writes: > On Wed 15-03-17 11:48:37, Vitaly Kuznetsov wrote: >> Michal Hocko writes: > [...] >> Speaking about long term approach, > > Not really related to the patch but ok (I hope this will not distract > from the original intention here)... > Yes, not directly related to your pat

Re: net/sctp: recursive locking in sctp_do_peeloff

2017-03-15 Thread Marcelo Ricardo Leitner
On Tue, Mar 14, 2017 at 09:52:15PM -0700, Cong Wang wrote: > On Fri, Mar 10, 2017 at 12:04 PM, Dmitry Vyukov wrote: > > On Fri, Mar 10, 2017 at 8:46 PM, Marcelo Ricardo Leitner > > wrote: > >> On Fri, Mar 10, 2017 at 4:11 PM, Dmitry Vyukov wrote: > >>> Hello, > >>> > >>> I've got the following r

[PATCH v4 18/18] ARM: sun5i: chip: enable battery power supply subnode

2017-03-15 Thread Quentin Schulz
The NextThing Co. CHIP has an AXP209 PMIC with battery connector. This enables the battery power supply subnode. Signed-off-by: Quentin Schulz Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun5i-r8-chip.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/ar

[PATCH v2] clk: tegra: add Tegra210 special resets

2017-03-15 Thread Peter De Schrijver
Tegra210 has 2 special resets which don't follow the normal pattern: DVCO and ADSP. Add them in this patch. Changelog: v2: add DT bindings file Signed-off-by: Peter De Schrijver --- drivers/clk/tegra/clk-tegra210.c | 85 include/dt-bindings/reset/tegra2

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

2017-03-15 Thread Patrick Bellasi
On 15-Mar 12:41, Rafael J. Wysocki wrote: > 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 SchedT

[GIT PULL] intel_th: Fixes for char-misc-linus

2017-03-15 Thread Alexander Shishkin
://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git tags/stm-fixes-for-greg-20170315 for you to fetch changes up to 340837f985c2cb87ca0868d4aa9ce42b0fab3a21: intel_th: pci: Add Gemini Lake support (2017-03-15 14:55:18 +0200

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

2017-03-15 Thread Joel Fernandes
On Wed, Mar 15, 2017 at 4:40 AM, Patrick Bellasi wrote: > 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

Re: [PATCH 0/7] net, netfilter refcounter conversions

2017-03-15 Thread Pablo Neira Ayuso
On Wed, Mar 15, 2017 at 01:10:38PM +0200, Elena Reshetova wrote: > 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 tha

Re: [RFC PATCH 0/4] pinctrl: rockchip: PREEMPT_RT_FULL fixes

2017-03-15 Thread Linus Walleij
On Mon, Mar 13, 2017 at 7:38 PM, John Keeping wrote: > As described in Documentation/gpio/driver.txt, we should not be using > sleepable APIs in the irqchip implementation. Since this includes the > regmap API, this patch series ends up moving the mux setup for IRQs into > an irq_bus_sync_unlock

Re: [PATCH v6 08/14] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2017-03-15 Thread Ulf Hansson
On 14 February 2017 at 18:01, Gregory CLEMENT wrote: > From: Hu Ziji > > Add Xenon eMMC/SD/SDIO host controller core functionality. > Add Xenon specific initialization process. > Add Xenon specific mmc_host_ops APIs. > Add Xenon specific register definitions. > > Add CONFIG_MMC_SDHCI_XENON suppor

[PATCH v4 16/18] ARM: dtsi: axp22x: add battery power supply subnode

2017-03-15 Thread Quentin Schulz
The X-Powers AXP22X 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 limit, current voltage, and battery capacity (in Ah). This adds the battery power supply su

Re: ZONE_NORMAL vs. ZONE_MOVABLE

2017-03-15 Thread Michal Hocko
On Wed 15-03-17 13:53:09, Vitaly Kuznetsov wrote: > Michal Hocko writes: > > > On Wed 15-03-17 11:48:37, Vitaly Kuznetsov wrote: [...] > >> What actually stops us from having the following approach: > >> 1) Everything is added to MOVABLE > >> 2) When we're out of memory for kernel allocations in

[PATCH] mmc: logging copyrights is useless

2017-03-15 Thread Corentin Labbe
Logging copyrights does not add any useful information in logs. This patch remove such logging Signed-off-by: Corentin Labbe --- drivers/mmc/host/sdhci.c | 1 - drivers/mmc/host/wbsd.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index

Re: stable build: 203 builds: 4 failed, 199 passed, 5 errors, 41 warnings (v4.10.1)

2017-03-15 Thread Arnd Bergmann
On Wed, Mar 15, 2017 at 8:22 AM, gregkh wrote: > > All now queued up in the stable trees, thanks. Like 4.9.y it builds clean except for a couple of stack frame size warnings and this one that continues to puzzle me. /bin/sh: 1: /home/buildslave/workspace/kernel-builder/arch/x86/defconfig/allmod

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 2:12 PM, Lee Jones wrote: > On Wed, 15 Mar 2017, Krzysztof Kozlowski wrote: > >> 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 >> >>

[PATCH 1/2] selftests: keep consistency for uname -m usage

2017-03-15 Thread Fathi Boudra
powerpc selftests allow to override ARCH for cross-compilation by making the first ARCH assignment weak. Use the same approach in breakpoints, ipc and prctl tests to: - keep uname usage consistent across selftests - make it easier to cross-compile Signed-off-by: Fathi Boudra --- tools/testing/

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