[PATCH] Input: elan: enable middle button of touchpads on ThinkPad P52

2018-06-12 Thread Aaron Ma
PNPID is better way to identify the type of touchpads. Enable middle button support on 2 types of touchpads on Lenovo P52. Cc: sta...@vger.kernel.org Cc: KT Liao Signed-off-by: Aaron Ma --- drivers/input/mouse/elantech.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-12 Thread Boris Brezillon
On Tue, 12 Jun 2018 06:42:42 + Yogesh Narayan Gaur wrote: > I have tried JFFS2 mounting with smaller partition size but still getting > failure. > For partition size equal or less than 1MB, getting errors as > [ 25.044930] jffs2: Too few erase blocks (4) > Thus, need to have size more

Re: [PATCH v1] clk: qcom: Add support for RCG to register for DFS

2018-06-12 Thread Stephen Boyd
Quoting Taniya Das (2018-05-25 03:45:50) > In the cases where a RCG requires a Dynamic Frequency switch support > requires to register which would at runtime read the clock perf level > registers to identify the frequencies supported and update the frequency > table accordingly. This sentence does

[PATCH] autofs: Fix typo s/thenew new/the new/ in AUTOFS4_FS description

2018-06-12 Thread Geert Uytterhoeven
Fixes: a2225d931f75ddd3 ("autofs: remove left-over autofs4 stubs") Signed-off-by: Geert Uytterhoeven --- fs/autofs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/autofs/Kconfig b/fs/autofs/Kconfig index 55c3930a907b395e..eaebcd430cc3d404 100644 --- a/fs/autofs/Kcon

Re: [PATCH] mtd: spi-nor: honour max_data_size for spi-nor writes

2018-06-12 Thread Boris Brezillon
Hi Neil, On Tue, 12 Jun 2018 08:05:13 +1000 NeilBrown wrote: > On Mon, Jun 11 2018, Boris Brezillon wrote: > > > > Also, I'd prefer to have this patch split in 2: > > 1/ one patch removing the check in spi_nor_write() > > 2/ and the second patch removing the while() loop in m25p80_write() > > >

Re: [PATCH] pwm: stm32: fix build warning with CONFIG_DMA_ENGINE disabled

2018-06-12 Thread Geert Uytterhoeven
Hi Arnd, On Fri, May 25, 2018 at 11:09 PM Arnd Bergmann wrote: > Without dmaengine support, we get a harmless warning about an > unused function: > > drivers/pwm/pwm-stm32.c:166:12: error: 'stm32_pwm_capture' defined but not > used [-Werror=unused-function] > > Changing the #ifdef to an IS_ENABL

[PATCH] ubi: Initialize Fastmap checkmapping correctly

2018-06-12 Thread Richard Weinberger
We cannot do it last, otherwithse it will be skipped for dynamic volumes. Reported-by: Lachmann, Juergen Fixes: 34653fd8c46e ("ubi: fastmap: Check each mapping only once") Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/vtbl.c | 20 ++-- 1 file changed, 10 insertions(+), 1

Re: [PATCH v3 2/7] soc: qcom: rpmpd: Add a Power domain driver to model corners

2018-06-12 Thread Ulf Hansson
[...] > +static int rpmpd_probe(struct platform_device *pdev) > +{ > + int i; > + size_t num; > + struct genpd_onecell_data *data; > + struct qcom_smd_rpm *rpm; > + struct rpmpd **rpmpds; > + const struct rpmpd_desc *desc; > + > + rpm = dev_get_drvdata(pde

Re: [PATCH] inotify: add error handling for kmem_cache_create

2018-06-12 Thread cgxu...@gmx.com
> 在 2018年6月12日,下午12:22,Zhouyang Jia 写道: > > When kmem_cache_create fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling kmem_cache_create. I think SLAB_PANIC can handle this case. Thanks, Chengguang. > > Signed-off-by:

Re: [PATCH v5 4/4] clk: bd71837: Add driver for BD71837 PMIC clock

2018-06-12 Thread Stephen Boyd
Quoting Matti Vaittinen (2018-06-04 06:19:13) > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index 41492e980ef4..e693496f202a 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -279,6 +279,13 @@ config COMMON_CLK_STM32H7 > ---help--- > Support for stm3

Re: [PATCH v3 6/7] soc: qcom: Add RPMh Power domain driver

2018-06-12 Thread Ulf Hansson
On 12 June 2018 at 06:40, Rajendra Nayak wrote: > The RPMh Power domain driver aggregates the corner votes from various > consumers for the ARC resources and communicates it to RPMh. > > We also add data for all power domains on sdm845 SoC as part of the patch. > The driver can be extended to supp

Re: [PATCH v1] clk: tegra: emc: Avoid out-of-bounds bug

2018-06-12 Thread Stephen Boyd
Quoting Dmitry Osipenko (2018-06-05 05:12:32) > Apparently there was an attempt to avoid out-of-bounds accesses when there > is only one memory timing available, but there is a typo in the code that > neglects that attempt. > > Signed-off-by: Dmitry Osipenko Fixes: tag?

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-12 Thread Michal Hocko
On Mon 11-06-18 12:23:58, Jason Baron wrote: > On 06/11/2018 11:03 AM, Michal Hocko wrote: > > So can we start discussing whether we want to allow MADV_DONTNEED on > > mlocked areas and what downsides it might have? Sure it would turn the > > strong mlock guarantee to have the whole vma resident bu

Re: [PATCH] ASoC: twl6040: make pointer dmic_codec_dev static

2018-06-12 Thread Peter Ujfalusi
Hi, On 2018-06-06 12:35, Colin King wrote: > From: Colin Ian King > > The pointer dmic_codec_dev is local to the source and does not need > to be in global scope, so make it static. > > Cleans up sparse warning: > warning: symbol 'dmic_codec_dev' was not declared. Should it be static? can you

Re: [PATCH v3 0/7] Add powerdomain driver for corners on msm8996/sdm845

2018-06-12 Thread Ulf Hansson
On 12 June 2018 at 06:40, Rajendra Nayak wrote: > Changes in v3: > * Bindings split into seperate patches > * Bindings updated to remove duplicate OPP table phandles > * DT headers defining macros for Power domain indexes and OPP levels > * Optimisations to use rpmh_write_async() whereever applica

[PATCH v1 5/6] perf: Drop PERF_FLAG_FD_OUTPUT

2018-06-12 Thread Alexander Shishkin
Since commit: ac9721f3f54b ("perf_events: Fix races and clean up perf_event and perf_mmap_data interaction") ... PERF_FLAG_FD_OUTPUT has been always returning -EINVAL. This can be either fixed by supplying enough context information to the set_output path to validate the request, or it can sim

[PATCH v1 6/6] perf: Allow set-output for task contexts of different types

2018-06-12 Thread Alexander Shishkin
From: Adrian Hunter Set-output must be limited to events that cannot be active on different cpus at the same time. Thus either the event cpu must be the same, or the event task must be the same. Current logic does not check the task directly but checks whether the perf_event_context is the same

[PATCH v1 3/6] perf: Add an iterator for AUX data

2018-06-12 Thread Alexander Shishkin
A helper function to sequentially walk through the AUX buffer with a given callback. This is useful to copy the AUX data out of its buffer. Signed-off-by: Alexander Shishkin --- kernel/events/internal.h| 5 + kernel/events/ring_buffer.c | 34 ++ 2 files c

[PATCH v1 2/6] perf: Disable IRQs in address filter sync path

2018-06-12 Thread Alexander Shishkin
If PMU callbacks are executed in hardirq context, the address filter sync code needs to disable interrupts when taking its spinlock, to be consistent with the rest of its users. This may happen if the PMU is used in AUX sampling or the PMI is delivered as a regular interrupt. Signed-off-by: Alexan

[PATCH v1 4/6] perf: Allow using AUX data in perf samples

2018-06-12 Thread Alexander Shishkin
AUX data can be used to annotate perf events such as performance counters or tracepoints/breakpoints by including it in sample records when PERF_SAMPLE_AUX flag is set. Such samples would be instrumental in debugging and profiling by providing, for example, a history of instruction flow leading up

RE: [PATCH] scsi: qla4xxx: add error handling for try_module_get

2018-06-12 Thread Rangankar, Manish
> -Original Message- > From: Zhouyang Jia > Sent: Tuesday, June 12, 2018 10:18 AM > Cc: Zhouyang Jia ; Dept-Eng QLogic Storage > Upstream ; James E.J. Bottomley > ; Martin K. Petersen ; > linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH] scsi: qla4xxx: add error

[PATCH v1 0/6] perf: Add AUX data sampling

2018-06-12 Thread Alexander Shishkin
Hi, This series introduces AUX data sampling for perf events, which in case of our instruction/branch tracing PMUs like Intel PT, BTS, CS ETM means execution flow history leading up to a perf event's overflow. In case of Intel PT, this can be used as an alternative to LBR, with virtually as many

[PATCH v1 1/6] perf: Disable PMU around address filter adjustment

2018-06-12 Thread Alexander Shishkin
If the PMU is used for AUX data sampling, the hardware event that triggers it may come in during a critical section of address filters adjustment (if it's delivered as NMI) and in turn call the address filter sync code, causing a spinlock recursion. To prevent this, disable the PMU around these cr

Re: [PATCH 2/2] clk: qcom: Add display clock controller driver for SDM845

2018-06-12 Thread Stephen Boyd
Quoting Taniya Das (2018-06-04 00:56:25) > diff --git a/drivers/clk/qcom/dispcc-sdm845.c > b/drivers/clk/qcom/dispcc-sdm845.c > new file mode 100644 > index 000..317ab33 > --- /dev/null > +++ b/drivers/clk/qcom/dispcc-sdm845.c > @@ -0,0 +1,679 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* >

[PATCH v3 1/8] vfio: ccw: Moving state change out of IRQ context

2018-06-12 Thread Pierre Morel
From: Pierre Morel Having state changes out of IRQ context allows to protect critical sections with mutexes. Next patches in the serie will use this possibility. We use work queues to thread the interrupts. Signed-off-by: Pierre Morel --- drivers/s390/cio/vfio_ccw_drv.c | 20 +++--

[PATCH v3 3/8] vfio: ccw: new VFIO_CCW_EVENT_SCHIB_CHANGED event

2018-06-12 Thread Pierre Morel
From: Pierre Morel The Sub channel event callback is threaded using workqueues. The work uses the FSM introducing the VFIO_CCW_EVENT_SCHIB_CHANGED event. The update of the SCHIB is now done inside the FSM function. Signed-off-by: Pierre Morel --- drivers/s390/cio/vfio_ccw_drv.c | 33 ++

[PATCH v3 7/8] vfio: ccw: Introduce the INIT event

2018-06-12 Thread Pierre Morel
This patch introduce a new event: VFIO_CCW_EVENT_INIT. This event is sent to the FSM during the open of the mediated device, when a guest is about to take care of the real device. At this moment the FSM state is VFIO_CCW_STATE_NOT_OPER, nothing can be done with the device as no one is there to ta

[PATCH v3 8/8] vfio: ccw: Suppressing the BOXED state

2018-06-12 Thread Pierre Morel
VFIO_CCW_STATE_BOXED and VFIO_CCW_STATE_BUSY are the same. Let's only keep one: VFIO_CCW_STATE_BUSY Signed-off-by: Pierre Morel --- drivers/s390/cio/vfio_ccw_fsm.c | 9 + drivers/s390/cio/vfio_ccw_private.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers

[PATCH v3 6/8] vfio: ccw: Make FSM functions atomic

2018-06-12 Thread Pierre Morel
We use mutex around the FSM function call to make the FSM event handling and state change atomic. Signed-off-by: Pierre Morel --- drivers/s390/cio/vfio_ccw_drv.c | 1 + drivers/s390/cio/vfio_ccw_private.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/s390/cio/vfio_ccw_drv.c

Re: [PATCH 1/2] dt-bindings: clock: Introduce QCOM Display clock bindings

2018-06-12 Thread Stephen Boyd
Quoting Taniya Das (2018-06-04 00:56:24) > Add device tree bindings for display clock controller for Qualcomm > Technology Inc's SoCs. SDM845 SoCs?

[PATCH v3 4/8] vfio: ccw: Only accept SSCH as an IO request

2018-06-12 Thread Pierre Morel
This patch simplifies the IO request handling to handle the only implemented request: SSCH. Other requests are invalid and get a return value of -ENOTSUP as before. Signed-off-by: Pierre Morel --- drivers/s390/cio/vfio_ccw_fsm.c | 55 - drivers/s390/cio/vf

[PATCH v3 5/8] vfio: ccw: Suppress unused event parameter

2018-06-12 Thread Pierre Morel
The fsm_func_t function type definition does not need the event parameter since all functions are in a state/event table. Signed-off-by: Pierre Morel --- drivers/s390/cio/vfio_ccw_fsm.c | 24 drivers/s390/cio/vfio_ccw_private.h | 5 ++--- 2 files changed, 10 inserti

[PATCH v3 2/8] vfio: ccw: Transform FSM functions to return state

2018-06-12 Thread Pierre Morel
We change the FSM functions to return the next state, and adapt the fsm_func_t function type. Doing this change will allow to move the state changes out of the action functions to a common point. This is important to guaranty the coherency of the FSM and add to readibility. Signed-off-by: Pierre

[PATCH v3 0/8] vfio: ccw: Refactoring the VFIO CCW state machine

2018-06-12 Thread Pierre Morel
The goal of the patch serie is to secure the state machine by: - centralizing all state changes inside the state machine wrapper - make the state change atomic using mutexes - refactor the initialization to avoid using a subchannel without a guest This series introduces new states and events and

[PATCH v3 2/2] gpio: davinci: Do not assume continuous IRQ numbering

2018-06-12 Thread Keerthy
Currently the driver assumes that the interrupts are continuous and does platform_get_irq only once and assumes the rest are continuous, instead call platform_get_irq for all the interrupts and store them in an array for later use. Signed-off-by: Keerthy --- Tested for GPIO Interrupts on da850-l

[PATCH v3 1/2] gpio: davinci: Shuffle IRQ resource fetching from DT to beginning of probe

2018-06-12 Thread Keerthy
This is needed in case of PROBE_DEFER if IRQ resource is not yet ready. Signed-off-by: Keerthy --- Tested for GPIO Interrupts on da850-lcdk board. Changes in v3: Changed type of bank_irq to int from unsigned * Changed irqs type from unsigned to int drivers/gpio/gpio-davinci.c | 29

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
On 12.06.2018 01:32, Dmitry Osipenko wrote: > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: >> Add support for the NAND flash controller found on NVIDIA >> Tegra 2 SoCs. This implementation does not make use of the >> command queue feature. Regular operations/data transfers are >> done i

Re: [PATCH v4 1/7] dt-bindings: clk: at91: add an I2S mux clock

2018-06-12 Thread Stephen Boyd
Quoting Codrin Ciubotariu (2018-06-07 03:30:14) > > > > Seems to me that clock additions could use a new binding and we start > > with a new driver that handles these few clocks initially. But I > > haven't looked whether both can coexist. > > Mark already applied to broonie/sound.git the I2S bin

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
On 12.06.2018 02:03, Dmitry Osipenko wrote: > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: >> Add support for the NAND flash controller found on NVIDIA >> Tegra 2 SoCs. This implementation does not make use of the >> command queue feature. Regular operations/data transfers are >> done i

Re: [PATCH v6 3/5] dt-bindings: timer: add i.MX EPIT timer binding

2018-06-12 Thread Clément Péron
Hi Rob, On Mon, 11 Jun 2018 at 20:10, Rob Herring wrote: > > On Thu, Jun 07, 2018 at 04:05:42PM +0200, Clément Péron wrote: > > From: Clément Peron > > > > Add devicetree binding document for NXP's i.MX SoC specific > > EPIT timer driver. > > > > Signed-off-by: Clément Peron > > --- > > .../de

Re: [PATCH 7/7] tty: serial: lantiq: Add CCF support

2018-06-12 Thread kbuild test robot
Hi Songjun, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17 next-20180612] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

[RFC PATCH 0/4] x86/boot/KASLR: Parse ACPI table and limit kaslr in immovable memory.

2018-06-12 Thread Chao Fan
***Background: People reported that kaslr may randomly chooses some positions which are located in movable memory regions. This will break memory hotplug feature and make the memory can't be removed. ***Solutions: There should be a method to limit kaslr to choosing immovable memory regions, so the

[RFC PATCH 4/4] x86/boot/KASLR: Limit kaslr to choosing the immovable memory

2018-06-12 Thread Chao Fan
If 'CONFIG_MEMORY_HOTREMOVE' specified and the account of immovable memory regions is not zero. Calculate the intersection between memory regions from e820/efi memory table and immovable memory regions. Rename process_mem_region to slots_count to match slots_fetch_random, and name new function as

Re: [PATCH] dmaengine: rcar-dmac: don't use DMAC error interrupt

2018-06-12 Thread Kuninori Morimoto
Hi Geert Thank you for your light speed review :) > > From: Kuninori Morimoto > > > > Current rcar-dmac is using DMAC error interrupt which will handle all > > channel's error. But in this design, error handling itself will be > > issue if user want to use virtualization, multi OS, etc. > > Th

[RFC PATCH 2/4] x86/boot: Add acpitb.c to parse acpi tables

2018-06-12 Thread Chao Fan
To get more information about memory, acpi tables should be parsed. But can't use ACPI code directely, so imitate the ACPI code to dig the useful srat tables from ACPI tables. Only dig the useful tables, and don't influence the initialization of ACPI. Signed-off-by: Chao Fan --- arch/x86/boot/co

[RFC PATCH 1/4] x86/boot: Add acpitb.h to help parse acpi tables

2018-06-12 Thread Chao Fan
In order to parse ACPI tables, some structers and functions of ACPI code are needed. But ACPI code is an independent part and has its closed logic. So dig the necessary structures and functions from ACPI head files. Can be used to help parse efi/bios tables, ACPI root tables, rsdp tables, srat tabl

Re: [PATCH 4/7] tty: serial: lantiq: Always use readl()/writel()

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 8:40 AM, Songjun Wu wrote: > Previous implementation uses platform-dependent functions > ltq_w32()/ltq_r32() to access registers. Those functions are not > available for other SoC which uses the same IP. > Change to OS provided readl()/writel() and readb()/writeb(), so > th

[RFC PATCH 3/4] x86/boot/KASLR: Walk srat tables to filter immovable memory

2018-06-12 Thread Chao Fan
If 'CONFIG_MEMORY_HOTREMOVE' specified, walk the acpi srat memory tables, store the immovable memory regions, so that kaslr can get the information abouth where can be selected or not. Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c | 55 1 file chan

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Boris Brezillon
On Tue, 12 Jun 2018 10:02:12 +0200 Stefan Agner wrote: > >> +static int tegra_nand_read_page_hwecc(struct mtd_info *mtd, > >> +struct nand_chip *chip, > >> +uint8_t *buf, int oob_required, int page) > >> +{ > >> + struct tegra_nand_

Re: [PATCH 01/19 v3] regulator: fixed: Convert to use GPIO descriptor only

2018-06-12 Thread Linus Walleij
On Mon, Jun 11, 2018 at 5:00 PM, Mark Brown wrote: > On Mon, Jun 11, 2018 at 03:11:14PM +0200, Linus Walleij wrote: > >> The DT binding for "regulator-fixed" specifies that enable-active-high >> should be set for polarity inversion. For historical reasons, I guess, >> we screwed up. The example in

Re: [PATCH v5 4/4] clk: bd71837: Add driver for BD71837 PMIC clock

2018-06-12 Thread Matti Vaittinen
Hello Stephen, Thanks again for the review. I'll do new patch which fixes these issues. On Tue, Jun 12, 2018 at 12:44:11AM -0700, Stephen Boyd wrote: > Quoting Matti Vaittinen (2018-06-04 06:19:13) > > +config COMMON_CLK_BD71837 > > + tristate "Clock driver for ROHM BD71837 PMIC MFD" > > +

Re: [PATCH v2 2/5] PCI: iproc: Fix up corrupted PAXC root complex config registers

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: On certain versions of Broadcom PAXC based root complexes, certain regions of the configuration space are corrupted. As a result, it prevents the Linux PCIe stack from traversing the linked list of the capability registers completely and therefore the root comp

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Boris Brezillon
On Tue, 12 Jun 2018 10:06:42 +0200 Stefan Agner wrote: > On 12.06.2018 02:03, Dmitry Osipenko wrote: > > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: > >> Add support for the NAND flash controller found on NVIDIA > >> Tegra 2 SoCs. This implementation does not make use of the > >> c

Re: [PATCH v2 3/5] PCI: iproc: Disable MSI parsing in certain PAXC blocks

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: The internal MSI parsing logic in certain revisions of PAXC root complexes does not work properly and can casue corruptions on the writes. They need to be disabled Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- drivers/pci/host/pcie-iproc.c | 34

Re: [PATCH v2 4/5] PCI: iproc: Reject unconfigured physical functions from PAXC

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: PAXC is an emulated PCIe root complex internally in various Broadcom based SoCs. PAXC internally connects to the embedded network processor within these SoCs, with the embedeed network processor exposed as an endpoint device The number of physical functions fr

Re: [PATCH v2 1/5] PCI: iproc: Activate PAXC bridge quirk for more devices

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: Activate PAXC bridge quirk for more PAXC based PCIe root complex with the following PCIe device ID: 0xd750, 0xd802, 0xd804 Signed-off-by: Ray Jui --- drivers/pci/quirks.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/p

Re: [PATCH v2 5/5] PCI: iproc: Reduce inbound/outbound mapping print level

2018-06-12 Thread poza
On 2018-06-12 05:51, Ray Jui wrote: Reduce inbound/outbound mapping print level from dev_info to dev_dbg. This reduces the console logs during Linux boot process Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- drivers/pci/host/pcie-iproc.c | 34 +- 1 file

Re: [PATCH] gpio: max732x: add error handling for i2c_new_dummy

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 6:28 AM, Zhouyang Jia wrote: > When i2c_new_dummy fails, the lack of error-handling code may > cause unexpected results. What results? Where is the analisys? Would driver work w/o these dummy devices? -- With Best Regards, Andy Shevchenko

Re: [PATCH] serial: 8250_dw: 8250_dw need to depend on COMMON_CLK

2018-06-12 Thread Geert Uytterhoeven
On Mon, Jun 11, 2018 at 11:03 PM Andy Shevchenko wrote: > On Wed, Jun 6, 2018 at 10:27 PM Corentin Labbe wrote: > > This patch fix the following build error on M68K: Not plain m68k, but coldfire only (and MIPS AR7, I guess). > > drivers/tty/serial/8250/8250_dw.o: In function `dw8250_set_termios

Re: [PATCH v4] mm: fix race between kmem_cache destroy, create and deactivate

2018-06-12 Thread Vladimir Davydov
On Mon, Jun 11, 2018 at 12:29:51PM -0700, Shakeel Butt wrote: > The memcg kmem cache creation and deactivation (SLUB only) is > asynchronous. If a root kmem cache is destroyed whose memcg cache is in > the process of creation or deactivation, the kernel may crash. > > Example of one such crash: >

Re: [PATCH] drivers/of: Add devm_of_iomap()

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 3:01 AM, Benjamin Herrenschmidt wrote: > There are still quite a few cases where a device might want to get to a > different node of the device-tree, obtain the resources and map them. > > Drivers doing that currently open code the whole thing, which is error > proe. prone

Re: [PATCH] serial: 8250_dw: 8250_dw need to depend on COMMON_CLK

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 11:31 AM, Geert Uytterhoeven wrote: > On Mon, Jun 11, 2018 at 11:03 PM Andy Shevchenko > wrote: >> On Wed, Jun 6, 2018 at 10:27 PM Corentin Labbe wrote: >> > This patch fix the following build error on M68K: > > Not plain m68k, but coldfire only (and MIPS AR7, I guess). >

Re: [PATCH 3/3] pinctrl: actions: Add interrupt support for OWL S900 SoC

2018-06-12 Thread Linus Walleij
On Sat, Jun 2, 2018 at 6:54 PM, Manivannan Sadhasivam wrote: > Add interrupt support for Actions Semi OWL S900 SoC. > > Signed-off-by: Manivannan Sadhasivam (...) > +++ b/drivers/pinctrl/actions/Kconfig > @@ -5,6 +5,7 @@ config PINCTRL_OWL > select PINCONF > select GENERIC_PINCO

[PATCH 0/3] sched/swait: Convert to full exclusive mode

2018-06-12 Thread Peter Zijlstra
As mentioned by Linus, swait is exclusive mode and had better behave like it and be named like it. Make it so. --- arch/mips/kvm/mips.c | 4 ++-- arch/powerpc/kvm/book3s_hv.c | 6 +++--- arch/s390/kvm/interrupt.c| 2 +- arch/x86/kernel/kvm.c| 4 ++-- arch/x86/kvm/lapic.c

Re: [PATCH v7 2/4] random: Return nbytes filled from hw RNG

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 3:39 AM, Tobin C. Harding wrote: > Currently the function get_random_bytes_arch() has return value 'void'. > If the hw RNG fails we currently fall back to using get_random_bytes(). > This defeats the purpose of requesting random material from the hw RNG > in the first place

[PATCH 1/3] sched/swait: Remove __prepare_to_swait

2018-06-12 Thread Peter Zijlstra
There is no public user of this API, remove it. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/swait.h |1 - kernel/sched/swait.c |2 +- 2 files changed, 1 insertion(+), 2 deletions(-) --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -161,7 +161,6 @@ extern void swak

Re: [PATCH] gpio: Fix wrong rounding in gpio-menz127

2018-06-12 Thread Linus Walleij
On Mon, Jun 4, 2018 at 3:58 PM, Nadav Amit wrote: > men_z127_debounce() tries to round up and down, but uses functions which > are only suitable when the divider is a power of two, which is not the > case. Use the appropriate ones. > > Found by static check. Compile tested. > > Fixes: f436bc2726c

[PATCH 3/3] sched/swait: Rename to exclusive

2018-06-12 Thread Peter Zijlstra
Since swait basically implemented exclusive waits only, make sure the API reflects that. $ git grep -l -e "\" -e "\" | while read file; do sed -i -e 's/\/&_one/g' -e 's/\/&_exclusive/g' $file; done With a few manual touch-ups. Suggested-by: Linus

Re: [PATCH] mmc: Move the mmc driver init earlier

2018-06-12 Thread Feng Tang
Hi Ulf, Thanks for the review. On Tue, Jun 12, 2018 at 08:25:44AM +0200, Ulf Hansson wrote: > On 8 June 2018 at 11:51, Feng Tang wrote: > > When doing some boot time optimization for an eMMC rootfs NUCs, > > we found the rootfs may spend around 100 microseconds waiting > > for eMMC card to be in

[PATCH 2/3] sched/swait: Switch to full exclusive mode

2018-06-12 Thread Peter Zijlstra
Linus noted that swait basically implements exclusive mode -- because swake_up() only wakes a single waiter. And because of that it should take care to properly deal with the interruptible case. In short, the problem is that swake_up() can race with a signal. In this this case it is possible the s

RE: [PATCH 03/11] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-06-12 Thread Yogesh Narayan Gaur
Hi Boris, -Original Message- From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] Sent: Tuesday, June 12, 2018 12:43 PM To: Yogesh Narayan Gaur Cc: rich...@nod.at; Prabhakar Kushwaha ; Han Xu ; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; marek.va...@gmail.com; Friede

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-12 Thread jackm
On Fri, 8 Jun 2018 10:42:18 -0700 Matthew Wilcox wrote: > + rcu_read_lock(); > + mad_agent = idr_find(&ib_mad_clients, hi_tid); > + if (mad_agent > && !atomic_inc_not_zero(&mad_agent->refcount)) > + mad_agent = NULL; > + rcu_rea

Re: [PATCH 2/6] PCI: iproc: Add INTx support with better modeling

2018-06-12 Thread poza
On 2018-05-30 03:28, Ray Jui wrote: Add PCIe legacy interrupt INTx support to the iProc PCIe driver by modeling it with its own IRQ domain. All 4 interrupts INTA, INTB, INTC, INTD share the same interrupt line connected to the GIC in the system, while the status of each INTx can be obtained throu

Re: [PATCH v6 08/11] cpufreq/schedutil: take into account interrupt

2018-06-12 Thread Dietmar Eggemann
On 06/08/2018 02:09 PM, Vincent Guittot wrote: [...] @@ -182,21 +183,30 @@ static void sugov_get_util(struct sugov_cpu *sg_cpu) sg_cpu->util_dl = cpu_util_dl(rq); sg_cpu->bw_dl= cpu_bw_dl(rq); sg_cpu->util_rt = cpu_util_rt(rq); + sg_cpu->util_irq = cpu_util_i

Re: [PATCH] usb: gadget: add error handling for platform_get_resource_byname

2018-06-12 Thread Sergei Shtylyov
Hello! On 6/12/2018 7:32 AM, Zhouyang Jia wrote: When platform_get_resource_byname fails, the lack of error-handling code may cause unexpected results. What results? This patch adds error-handling code after calling platform_get_resource_byname. Signed-off-by: Zhouyang Jia --- driver

Re: [PATCH] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-12 Thread Dan Carpenter
You haven't been sending the v2 and v3 patches in the right way. Take a look through the email archive and see how this is normally done. Also google it: https://www.google.com/search?q=how+to+send+a+v2+patch On Sun, Jun 10, 2018 at 12:30:01PM +0200, chris wrote: > Hi Greg, > I've added changelog

Re: [PATCH v3 0/6] add virt-dma support for imx-sdma

2018-06-12 Thread Robin Gong
Hi Lucas, Is the below DEAD LOCK issue same as your side? If yes, then I'm afraid that we have to make another patch for uart to split dma functions in uart driver out of the code area which protected by port.lock. The warning make sense since allocate sdma bd memory dynamically in virt-dma

Re: [PATCH v6 08/11] cpufreq/schedutil: take into account interrupt

2018-06-12 Thread Vincent Guittot
On 12 June 2018 at 10:54, Dietmar Eggemann wrote: > On 06/08/2018 02:09 PM, Vincent Guittot wrote: > > [...] > >> @@ -182,21 +183,30 @@ static void sugov_get_util(struct sugov_cpu *sg_cpu) >> sg_cpu->util_dl = cpu_util_dl(rq); >> sg_cpu->bw_dl= cpu_bw_dl(rq); >> sg_cpu

Re: [PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Mark Rutland
On Tue, Jun 12, 2018 at 05:07:37PM +0800, Zhizhou Zhang wrote: > We can't call function trace hook before setup percpu offset. > When entering secondary_start_kernel(), percpu offset has not > been initialized. So this lead hotplug malfunction. > Here is the flow to reproduce this bug: > > echo 0

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Stefan Agner
[also added Jens Axboe] On 12.06.2018 10:27, Boris Brezillon wrote: > On Tue, 12 Jun 2018 10:06:42 +0200 > Stefan Agner wrote: > >> On 12.06.2018 02:03, Dmitry Osipenko wrote: >> > On Monday, 11 June 2018 23:52:22 MSK Stefan Agner wrote: >> >> Add support for the NAND flash controller found on N

[PATCH v6 08/11] cpufreq/schedutil: take into account interrupt

2018-06-12 Thread Vincent Guittot
The time spent under interrupt can be significant but it is not reflected in the utilization of CPU when deciding to choose an OPP. Now that we have access to this metric, schedutil can take it into account when selecting the OPP for a CPU. rqs utilization don't see the time spend under interrupt c

Re: Possible regression caused by commit a192aa923b66a

2018-06-12 Thread Rafael J. Wysocki
On Monday, June 11, 2018 11:52:34 PM CEST Rafael J. Wysocki wrote: > > --703623056e64c488 > Content-Type: text/plain; charset="UTF-8" > > On Mon, Jun 11, 2018 at 10:09 AM, Rafael J. Wysocki wrote: > > On Mon, Jun 11, 2018 at 8:26 AM, Kai-Heng Feng > > wrote: > >> Hi Rafael, > >> > >

Re: [PATCH v6 08/11] cpufreq/schedutil: take into account interrupt

2018-06-12 Thread Quentin Perret
On Tuesday 12 Jun 2018 at 11:16:56 (+0200), Vincent Guittot wrote: > The time spent under interrupt can be significant but it is not reflected > in the utilization of CPU when deciding to choose an OPP. Now that we have > access to this metric, schedutil can take it into account when selecting > th

[PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Zhizhou Zhang
We can't call function trace hook before setup percpu offset. When entering secondary_start_kernel(), percpu offset has not been initialized. So this lead hotplug malfunction. Here is the flow to reproduce this bug: echo 0 > /sys/devices/system/cpu/cpu1/online echo function > /sys/kernel/debug/tr

Re: [PATCH 14/39] ovl: stack file ops

2018-06-12 Thread Miklos Szeredi
On Tue, Jun 12, 2018 at 4:40 AM, Al Viro wrote: > On Tue, Jun 12, 2018 at 03:29:26AM +0100, Al Viro wrote: > >> It might (or might not) work for the filesystems you'd been testing >> on, but it's a lot of trouble waiting to happen. Hell, try and use >> ecryptfs as lower layer, see how fast it'll

Re: [PATCH] arm64: make secondary_start_kernel() notrace

2018-06-12 Thread Suzuki K Poulose
On 12/06/18 10:07, Zhizhou Zhang wrote: We can't call function trace hook before setup percpu offset. When entering secondary_start_kernel(), percpu offset has not been initialized. So this lead hotplug malfunction. Here is the flow to reproduce this bug: echo 0 > /sys/devices/system/cpu/cpu1/o

Re: [PATCH v6 08/11] cpufreq/schedutil: take into account interrupt

2018-06-12 Thread Vincent Guittot
On 12 June 2018 at 11:20, Quentin Perret wrote: > On Tuesday 12 Jun 2018 at 11:16:56 (+0200), Vincent Guittot wrote: >> The time spent under interrupt can be significant but it is not reflected >> in the utilization of CPU when deciding to choose an OPP. Now that we have >> access to this metric,

Re: [PATCH v5 1/1] can: ucan: add driver for Theobroma Systems UCAN devices

2018-06-12 Thread Jakob Unterwurzacher
On 25.04.18 17:34, Marc Kleine-Budde wrote: Applied to linux-can-next. Thanks, Marc Marc, is the patch supposed to show up on https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/ or am I looking at the wrong tree? Thanks, Jakob

Linux 4.14.49

2018-06-12 Thread Greg KH
I'm announcing the release of the 4.14.49 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.16.15

2018-06-12 Thread Greg KH
diff --git a/Documentation/networking/netdev-FAQ.txt b/Documentation/networking/netdev-FAQ.txt index 2a3278d5cf35..fa951b820b25 100644 --- a/Documentation/networking/netdev-FAQ.txt +++ b/Documentation/networking/netdev-FAQ.txt @@ -179,6 +179,15 @@ A: No. See above answer. In short, if you think

Re: Linux 4.14.49

2018-06-12 Thread Greg KH
diff --git a/Documentation/networking/netdev-FAQ.txt b/Documentation/networking/netdev-FAQ.txt index cfc66ea72329..a365656e4873 100644 --- a/Documentation/networking/netdev-FAQ.txt +++ b/Documentation/networking/netdev-FAQ.txt @@ -176,6 +176,15 @@ A: No. See above answer. In short, if you think

Re: [PATCH v4 4/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-06-12 Thread Boris Brezillon
On Tue, 12 Jun 2018 11:17:09 +0200 Stefan Agner wrote: > [also added Jens Axboe] > > On 12.06.2018 10:27, Boris Brezillon wrote: > > On Tue, 12 Jun 2018 10:06:42 +0200 > > Stefan Agner wrote: > > > >> On 12.06.2018 02:03, Dmitry Osipenko wrote: > >> > On Monday, 11 June 2018 23:52:22 MSK S

Linux 4.16.15

2018-06-12 Thread Greg KH
I'm announcing the release of the 4.16.15 kernel. All users of the 4.16 kernel series must upgrade. The updated 4.16.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.16.y and can be browsed at the normal kernel.org git web browser:

Linux 4.17.1

2018-06-12 Thread Greg KH
I'm announcing the release of the 4.17.1 kernel. All users of the 4.17 kernel series must upgrade. The updated 4.17.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.17.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.17.1

2018-06-12 Thread Greg KH
diff --git a/Documentation/networking/netdev-FAQ.txt b/Documentation/networking/netdev-FAQ.txt index 2a3278d5cf35..fa951b820b25 100644 --- a/Documentation/networking/netdev-FAQ.txt +++ b/Documentation/networking/netdev-FAQ.txt @@ -179,6 +179,15 @@ A: No. See above answer. In short, if you think

Re: [PATCH 10/20] dts: juno: Update coresight bindings for hw port

2018-06-12 Thread Suzuki K Poulose
On 08/06/18 22:52, Mathieu Poirier wrote: On 8 June 2018 at 15:49, Mathieu Poirier wrote: On Tue, Jun 05, 2018 at 10:43:21PM +0100, Suzuki K Poulose wrote: Switch to updated coresight bindings for hw ports. Cc: Sudeep Holla Cc: Liviu Dudau Cc: Mathieu Poirier Signed-off-by: Suzuki K Poulos

Re: [PATCH] inotify: add error handling for kmem_cache_create

2018-06-12 Thread Kassey
in __kmem_cache_create->kmem_cache_open with SLAB_PANIC, kernel will panic if it fail On Tue, Jun 12, 2018 at 3:41 PM, cgxu...@gmx.com wrote: > >> 在 2018年6月12日,下午12:22,Zhouyang Jia 写道: >> >> When kmem_cache_create fails, the lack of error-handling code may >> cause unexpected results. >> >> Thi

Re: [PATCH v2 4/7] Bluetooth: Add new quirk for non-persistent setup settings

2018-06-12 Thread Sean Wang
On Wed, 2018-05-30 at 08:26 +0200, Marcel Holtmann wrote: > Hi Sean, > > >> [ ... ] > >>> * Unknown packet (code 14 len 30) > >>> 0.641509 > >>> 01 00 00 00 02 00 01 0e 00 01 00 00 00 10 62 6c ..bl > >>> 75 65 74 6f 6f 74 68 64

[PATCH 2/2] r8169: Reinstate ASPM Support

2018-06-12 Thread Kai-Heng Feng
On newer Intel platforms, ASPM support in r8169 is the last missing puzzle to let Package C-State achieves PC8. Without ASPM support, the deepest Package C-State can hit is PC3. PC8 can save additional ~3W in comparison with PC3 on my testing platform. The original patch is from Realtek. Signed-o

Re: [PATCH] staging:iio:accel:adis16240: sign extend function avoiding code duplication

2018-06-12 Thread Jonathan Cameron
On Tue, 12 Jun 2018 02:57:48 +0200 Karim Eshapa wrote: > Use sign_extend32 kernel function instead of code duplication. > Safe also for 16 bit. > > Signed-off-by: Karim Eshapa Please resend as a fresh patch marked at V2 with a change log below the --- so we can easily see what has changed. Th

  1   2   3   4   5   6   7   >