Re: [PATCH v3 8/8] mfd: cros_ec: add a dev_release empty method.

2018-11-28 Thread Greg Kroah-Hartman
On Wed, Nov 28, 2018 at 05:17:22PM -0800, Guenter Roeck wrote: > Hi Greg, > > On Tue, Nov 27, 2018 at 9:52 AM Greg Kroah-Hartman > wrote: > > > > On Tue, Nov 27, 2018 at 09:29:38AM -0800, Guenter Roeck wrote: > > > Hi Enric, > > > > > > On Tue, Nov 27, 2018 at 4:19 AM Enric Balletbo i Serra > >

Re: [PATCH v2 1/4] x86/hyper-v: move synic/stimer control structures definitions to hyperv-tlfs.h

2018-11-28 Thread Roman Kagan
On Wed, Nov 28, 2018 at 02:07:42PM +0100, Thomas Gleixner wrote: > On Wed, 28 Nov 2018, Vitaly Kuznetsov wrote: > > > Nadav Amit writes: > > > > > > > > On a different note: how come all of the hyper-v structs are not marked > > > with the “packed" attribute? > > > > "packed" should not be

[PATCH 1/2] mm: Move lru_to_page to mm.h

2018-11-28 Thread Nikolay Borisov
There are multiple places in the kernel which opencode this helper, this patch moves it to the more generic mm.h header in preparation for using it. No functional changes. Signed-off-by: Nikolay Borisov --- include/linux/mm.h| 2 ++ include/linux/mm_inline.h | 3 --- 2 files changed, 2

Re: [PATCH] Input: mouse: elan_i2c_core: Added support for ELAN0621 touchpad.

2018-11-28 Thread Greg KH
On Wed, Nov 28, 2018 at 04:20:01PM -0500, a...@adamwong.me wrote: > From: TheWongGuy This name, does not match: > Signed-off-by: Adam Wong That name :( Please fix. thanks, greg k-h

Re: [PATCH v4] usb/mtu3: power down device ip at setup

2018-11-28 Thread Hsin-Yi Wang
Thanks! On Thu, Nov 29, 2018 at 2:26 PM Chunfeng Yun wrote: > > hi Hsin-Yi, > > On Thu, 2018-11-29 at 11:16 +0800, Hsin-Yi, Wang wrote: > > Originally, when dr_mode is USB_DR_MODE_HOST, it didn't power down device > > ip, > > so host ip sleep will fail at ssusb_host_disable. > > > > Power down

Re: [PATCH v4 4/6] coresight: Use PMU driver configuration for sink selection

2018-11-28 Thread Greg KH
On Wed, Nov 28, 2018 at 03:01:16PM -0700, Mathieu Poirier wrote: > This patch uses the PMU driver configuration held in event::hw::drv_config > to select a sink for each event that is created (the old sysFS way of > working is kept around for backward compatibility). It is "sysfs", no InterCaps

[tip:x86/cache] x86/resctrl: Remove unnecessary check for cbm_validate()

2018-11-28 Thread tip-bot for Babu Moger
Commit-ID: cb74635faa17cfa2991ddbe027596270af525c6d Gitweb: https://git.kernel.org/tip/cb74635faa17cfa2991ddbe027596270af525c6d Author: Babu Moger AuthorDate: Wed, 28 Nov 2018 22:42:47 + Committer: Borislav Petkov CommitDate: Thu, 29 Nov 2018 08:36:12 +0100 x86/resctrl: Remove

[PATCH v4 3/4] perf report: Display average IPC and IPC coverage per symbol

2018-11-28 Thread Jin Yao
Support displaying the average IPC and IPC coverage per symbol in perf report TUI and stdio modes. For example, $ perf record -b ... $ perf report -s symbol Overhead Symbol IPC [IPC Coverage] 39.60% [.] __random 2.30 [ 54.8%] 18.02% [.]

[PATCH v4 2/4] perf annotate: Create a annotate2 flag in struct symbol

2018-11-28 Thread Jin Yao
We often use the symbol__annotate2() to annotate a specified symbol. While annotating may take some time, so in order to avoid annotating the same symbol repeatedly, the patch creates a new flag to indicate the symbol has been annotated. Signed-off-by: Jin Yao --- tools/perf/util/annotate.c | 1

[PATCH v4 0/4] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-28 Thread Jin Yao
Add supporting of displaying the average IPC and IPC coverage percentage per function. For example, $ perf record -b ... $ perf report -s symbol or perf report -s symbol --stdio Overhead Symbol IPC [IPC Coverage] 39.60% [.] __random 2.30 [

[PATCH v4 1/4] perf annotate: Compute average IPC and IPC coverage per symbol

2018-11-28 Thread Jin Yao
Add support to perf report annotate view or perf annotate --stdio2 to aggregate the IPC derived from timed LBRs per symbol. We compute the average IPC and the IPC coverage percentage. For example, $ perf annotate --stdio2 Percent IPC Cycle (Average IPC: 2.30, IPC Coverage: 54.8%)

Re: [PATCH] crypto: do not free algorithm before using

2018-11-28 Thread PanBian
On Thu, Nov 29, 2018 at 02:57:11PM +0800, Herbert Xu wrote: > On Thu, Nov 22, 2018 at 06:00:16PM +0800, Pan Bian wrote: > > In multiple functions, the algorithm fields are read after its reference > > is dropped through crypto_mod_put. In this case, the algorithm memory > > may be freed, resulting

Re: [PATCH v4 2/6] perf/core: Use ioctl to communicate driver configuration to kernel

2018-11-28 Thread Greg KH
On Wed, Nov 28, 2018 at 03:01:14PM -0700, Mathieu Poirier wrote: > This patch adds the mechanic needed for user space to send PMU specific > configuration to the kernel driver using an ioctl() command. That way > events can keep track of options that don't fit in the perf_event_attr > structure

[PATCH v4 4/4] perf report: Documentation average IPC and IPC coverage

2018-11-28 Thread Jin Yao
Add explanations for new columns "IPC" and "IPC coverage" in perf documentation. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-report.txt | 8 1 file changed, 8 insertions(+) diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt

Re: [PATCH v4 1/6] perf: Introduce ioctl to communicate driver configuration to kernel

2018-11-28 Thread Greg KH
On Wed, Nov 28, 2018 at 03:01:13PM -0700, Mathieu Poirier wrote: > Adding a new IOCTL command to communicate PMU specific configuration to > PMU kernel drivers. This can be anything a PMU might need for > configuration that doesn't fit in the perf_event_attr structure, such > as the CoreSight

RE: [PATCH v13 0/5] Add i.MX8MQ clock driver

2018-11-28 Thread Aisheng DONG
> -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] [...] > > > > Changes since v12: > > * replaced the division in clk_pll_recalc_rate in clk-frac > >with do_div as suggested by Stephen > > > > Abel Vesa (2): > > clk: imx: Add imx composite clock > > clk: imx: Add

Re: [PATCH] [repost] Drivers: hv: vmbus: Offload the handling of channels to two workqueues

2018-11-28 Thread gre...@linuxfoundation.org
On Thu, Nov 29, 2018 at 04:36:43AM +, Dexuan Cui wrote: > > vmbus_process_offer() mustn't call channel->sc_creation_callback() > directly for sub-channels, because sc_creation_callback() -> > vmbus_open() may never get the host's response to the > OPEN_CHANNEL message (the host may rescind a

Re: [PATCH] iio: adc: Replace license text w/ SPDX identifier

2018-11-28 Thread Krzysztof Kozlowski
On Wed, 28 Nov 2018 at 18:53, Matheus Tavares wrote: > > From: Lucas Santos > > This patch removes all license boilerplate texts from the .c and .h > files at drivers/iio/adc/ and, instead, adds the proper SPDX license > identifiers. > > Signed-off-by: Lucas Santos > Signed-off-by: Matheus

Re: [PATCH] RISC-V: Make BSS section as the last section in vmlinux.lds.S

2018-11-28 Thread Bin Meng
On Mon, Nov 26, 2018 at 2:12 PM Anup Patel wrote: > > The objcopy only emits loadable sections when creating flat kernel > Image. To have minimal possible size of flat kernel Image, we should > have all non-loadable sections after loadable sections. > > Currently, execption table section

Re: [PATCH v2 1/3] mmc: sdhci: add support for using external DMA devices

2018-11-28 Thread Adrian Hunter
On 29/11/18 8:22 AM, Chunyan Zhang wrote: > On Tue, 20 Nov 2018 at 21:41, Adrian Hunter wrote: >> >> On 12/11/18 9:26 AM, Chunyan Zhang wrote: >>> Some standard SD host controllers can support both external dma >>> controllers as well as ADMA/SDMA in which the SD host controller >>> acts as DMA

[PATCH] ASoC: adau1761: Ensure DSP_RUN and DSP_ENABLE are disabled

2018-11-28 Thread niklas . morberg
From: Niklas Carlsson DSP_RUN and DSP_ENABLE needs to be disabled during FW load. This is not a problem after power-cycling but for soft reboots. Signed-off-by: Niklas Carlsson --- sound/soc/codecs/adau1761.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-)

Re: [PATCH] ALSA: pcm: Fix starvation on down_write_nonblock()

2018-11-28 Thread Takashi Iwai
On Thu, 29 Nov 2018 00:48:20 +0100, Chanho Min wrote: > > > > > On Mon, 26 Nov 2018 06:36:37 +0100, > > > > Chanho Min wrote: > > > > > > > > > > Commit 67ec1072b053 ("ALSA: pcm: Fix rwsem deadlock for non-atomic > > > > > PCM > > > > > stream") fixes deadlock for non-atomic PCM stream. But, This

Re: [RFC PATCH v3 3/4] irqchip: gic-v3: Add quirk for msm8996 secured registers

2018-11-28 Thread Marc Zyngier
Bjorn, On Wed, 28 Nov 2018 23:33:27 +, Bjorn Andersson wrote: > > On Mon 12 Nov 02:33 PST 2018, Srinivas Kandagatla wrote: > > > Access to GICR_WAKER is restricted on msm8996 SoC in Hypervisor. > > Its been more than 2+ years of wait for this to be fixed, which has > > no hopes to be

Re: [PATCH V5 1/2] base/drivers/arch_topology: Replace mutex with READ_ONCE / WRITE_ONCE

2018-11-28 Thread Juri Lelli
On 28/11/18 18:54, Daniel Lezcano wrote: > On 28/11/2018 12:44, Juri Lelli wrote: > > Hi Daniel, > > > > On 27/11/18 14:24, Daniel Lezcano wrote: > >> The mutex protects a per_cpu variable access. The potential race can > >> happen only when the cpufreq governor module is loaded and at the same >

Re: [PATCH v3 1/3] thermal: tegra: remove unnecessary warnings

2018-11-28 Thread Wei Ni
On 28/11/2018 6:12 PM, Thierry Reding wrote: > On Wed, Nov 28, 2018 at 01:44:35PM +0800, Wei Ni wrote: >> Convert warnings to info as not all platforms may >> have all the thresholds and sensors enabled. >> >> Signed-off-by: Wei Ni >> --- >> drivers/thermal/tegra/soctherm.c | 6 +++--- >> 1

Re: [PATCH 0/3] Stingray usb phy driver support

2018-11-28 Thread Srinath Mannam
Hi Vijay, Could you please help to review and provide your comments to this patch series when you have time? Thank you, Regards, Srinath. On Tue, Nov 13, 2018 at 9:43 AM Srinath Mannam wrote: > > These patches add stingray usb phy driver and its > corresponding DT nodes with documentation. > >

[RESEND PATCH 3/4] mtd: spi-nor: mtk-quadspi: add SNOR_HWCAPS_READ for capcity setting

2018-11-28 Thread Ryder Lee
From: Guochun Mao SNOR_HWCAPS_READ is a basic read mode for both flash and controller, it should be supported, so add the capcity for mtk-quadspi. Signed-off-by: Guochun Mao Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[RESEND PATCH 2/4] mtd: spi-nor: mtk-quadspi: use ofpart for parsing partitions

2018-11-28 Thread Ryder Lee
From: Guochun Mao Replace mtd_device_register with mtd_device_parse_register for parsing partitions and add ofpart support. Signed-off-by: Guochun Mao Tested-by: Ryder Lee --- drivers/mtd/spi-nor/mtk-quadspi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[RESEND PATCH 4/4] mtd: spi-nor: mtk-quadspi: rename config to a common one

2018-11-28 Thread Ryder Lee
The quadspi is a generic communication interface which could be shared with other MediaTek SoCs. Hence rename it to a common one. Signed-off-by: Ryder Lee --- drivers/mtd/spi-nor/Kconfig | 16 drivers/mtd/spi-nor/Makefile | 2 +- 2 files changed, 9 insertions(+), 9

[RESEND PATCH 1/4] dt-bindings: mtd: mtk-quadspi: update bindings for MT7629 SoC

2018-11-28 Thread Ryder Lee
This updates bindings for the MT7629 SPI-NOR controller. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/mtd/mtk-quadspi.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt

Re: [PATCH v3 0/3] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-28 Thread Jin, Yao
On 11/28/2018 6:18 PM, Jiri Olsa wrote: On Wed, Nov 28, 2018 at 11:17:57AM +0100, Jiri Olsa wrote: On Wed, Nov 28, 2018 at 11:14:55PM +0800, Jin Yao wrote: Add supporting of displaying the average IPC and IPC coverage percentage per function. For example, $ perf record -b ... $ perf

Re: [PATCH] staging: wilc1000: correct inconsistent indenting

2018-11-28 Thread Joe Perches
On Wed, 2018-11-28 at 19:17 +0100, Michael Straube wrote: > Correct inconsistent indenting reported by smatch. [] > diff --git a/drivers/staging/wilc1000/wilc_spi.c > b/drivers/staging/wilc1000/wilc_spi.c [] > @@ -963,7 +963,7 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 > *int_status)

Re: [PATCH v2 1/3] mmc: sdhci: add support for using external DMA devices

2018-11-28 Thread Chunyan Zhang
On Tue, 20 Nov 2018 at 21:41, Adrian Hunter wrote: > > On 12/11/18 9:26 AM, Chunyan Zhang wrote: > > Some standard SD host controllers can support both external dma > > controllers as well as ADMA/SDMA in which the SD host controller > > acts as DMA master. TI's omap controller is the case as an

Re: [PATCH v2 0/3] Add support for using external dma in SDHCI

2018-11-28 Thread Chunyan Zhang
Hi Faiz, Many thanks for testing this. On Thu, 29 Nov 2018 at 00:59, Rizvi, Mohammad Faiz Abbas wrote: > > + Mark Brown > > Chunyan, > > On 11/21/2018 5:17 PM, Faiz Abbas wrote: > > Hi Chunyan, > > > > On 12/11/18 12:56 PM, Chunyan Zhang wrote: > >> Currently the generic SDHCI code in the Linux

[PATCH V3 1/3] mmc: sdhci: add support for using external DMA devices

2018-11-28 Thread Chunyan Zhang
Some standard SD host controllers can support both external dma controllers as well as ADMA/SDMA in which the SD host controller acts as DMA master. TI's omap controller is the case as an example. Currently the generic SDHCI code supports ADMA/SDMA integrated in the host controller but does not

Re: [RFC PATCH 0/5] x86: dynamic indirect call promotion

2018-11-28 Thread Andy Lutomirski
On Wed, Nov 28, 2018 at 7:24 PM Andy Lutomirski wrote: > > > On Nov 28, 2018, at 6:06 PM, Nadav Amit wrote: > > >> On Nov 28, 2018, at 5:40 PM, Andy Lutomirski wrote: > >> > >>> On Wed, Nov 28, 2018 at 4:38 PM Josh Poimboeuf > >>> wrote: > >>> On Wed, Nov 28, 2018 at 07:34:52PM +, Nadav

[PATCH AUTOSEL 4.4 05/13] bnx2x: Assign unique DMAE channel number for FW DMAE transactions.

2018-11-28 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit 77e461d14ed141253573eeeb4d34eccc51e38328 ] Driver assigns DMAE channel 0 for FW as part of START_RAMROD command. FW uses this channel for DMAE operations (e.g., TIME_SYNC implementation). Driver also uses the same channel 0 for DMAE operations for

[PATCH AUTOSEL 3.18 5/6] net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts

2018-11-28 Thread Sasha Levin
From: Vincent Chen [ Upstream commit 426a593e641ebf0d9288f0a2fcab644a86820220 ] In the original ftmac100_interrupt(), the interrupts are only disabled when the condition "netif_running(netdev)" is true. However, this condition causes kerenl hang in the following case. When the user requests to

[PATCH AUTOSEL 3.18 6/6] net: amd: add missing of_node_put()

2018-11-28 Thread Sasha Levin
From: Yangtao Li [ Upstream commit c44c749d3b6fdfca39002e7e48e03fe9f9fe37a3 ] of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. This place doesn't do that, so fix it. Signed-off-by: Yangtao Li Signed-off-by: David S.

Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

2018-11-28 Thread Andy Lutomirski
> On Nov 27, 2018, at 12:43 AM, Peter Zijlstra wrote: > >> On Mon, Nov 26, 2018 at 03:26:28PM -0600, Josh Poimboeuf wrote: >> >> Yeah, that's probably better. I assume you also mean that we would have >> all text_poke_bp() users create a handler callback? That way the >> interface is clear and

[PATCH AUTOSEL 4.9 09/18] qed: Fix PTT leak in qed_drain()

2018-11-28 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 9aaa4e8ba12972d674caeefbc5f88d83235dd697 ] Release PTT before entering error flow. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2

[PATCH AUTOSEL 4.9 13/18] net/mlx4: Fix UBSAN warning of signed integer overflow

2018-11-28 Thread Sasha Levin
From: Aya Levin [ Upstream commit a463146e67c848cbab5ce706d6528281b7cded08 ] UBSAN: Undefined behavior in drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:626:29 signed integer overflow: 1802201963 + 1802201963 cannot be represented in type 'int' The union of res_reserved and

[PATCH AUTOSEL 4.9 07/18] batman-adv: Expand merged fragment buffer for full packet

2018-11-28 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit d7d8bbb40a5b1f682ee6589e212934f4c6b8ad60 ] The complete size ("total_size") of the fragmented packet is stored in the fragment header and in the size of the fragment chain. When the fragments are ready for merge, the skbuff's tail of the first fragment is

[PATCH AUTOSEL 4.9 06/18] HID: input: Ignore battery reported by Symbol DS4308

2018-11-28 Thread Sasha Levin
From: Benson Leung [ Upstream commit 0fd791841a6d67af1155a9c3de54dea51220721e ] The Motorola/Zebra Symbol DS4308-HD is a handheld USB barcode scanner which does not have a battery, but reports one anyway that always has capacity 2. Let's apply the IGNORE quirk to prevent it from being treated

[PATCH AUTOSEL 4.9 14/18] mtd: rawnand: qcom: Namespace prefix some commands

2018-11-28 Thread Sasha Levin
From: Olof Johansson [ Upstream commit 33bf5519ae5dd356b182a94e3622f42860274a38 ] PAGE_READ is used by RISC-V arch code included through mm headers, and it makes sense to bring in a prefix on these in the driver. drivers/mtd/nand/raw/qcom_nandc.c:153: warning: "PAGE_READ" redefined #define

[PATCH AUTOSEL 4.14 28/35] flexfiles: use per-mirror specified stateid for IO

2018-11-28 Thread Sasha Levin
From: Tigran Mkrtchyan [ Upstream commit bb21ce0ad227b69ec0f83279297ee44232105d96 ] rfc8435 says: For tight coupling, ffds_stateid provides the stateid to be used by the client to access the file. However current implementation replaces per-mirror provided stateid with by open or lock

[PATCH AUTOSEL 4.14 27/35] iommu/vt-d: Use memunmap to free memremap

2018-11-28 Thread Sasha Levin
From: Pan Bian [ Upstream commit 829383e183728dec7ed9150b949cd6de64127809 ] memunmap() should be used to free the return of memremap(), not iounmap(). Fixes: dfddb969edf0 ('iommu/vt-d: Switch from ioremap_cache to memremap') Signed-off-by: Pan Bian Signed-off-by: Joerg Roedel Signed-off-by:

[PATCH AUTOSEL 4.14 24/35] qed: Fix QM getters to always return a valid pq

2018-11-28 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit eb62cca9bee842e5b23bd0ddfb1f271ca95e8759 ] The getter callers doesn't know the valid Physical Queues (PQ) values. This patch makes sure that a valid PQ will always be returned. The patch consists of 3 fixes: - When qed_init_qm_get_idx_from_flags()

[PATCH AUTOSEL 4.14 18/35] gpio: mockup: fix indicated direction

2018-11-28 Thread Sasha Levin
From: Bartosz Golaszewski [ Upstream commit bff466bac59994cfcceabe4d0be5fdc1c20cd5b8 ] Commit 3edfb7bd76bd ("gpiolib: Show correct direction from the beginning") fixed an existing issue but broke libgpiod tests by changing the default direction of dummy lines to output. We don't break

[PATCH AUTOSEL 4.14 15/35] net/mlx4_core: Zero out lkey field in SW2HW_MPT fw command

2018-11-28 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit bd85fbc2038a1bbe84990b23ff69b6fc81a32b2c ] When re-registering a user mr, the mpt information for the existing mr when running SRIOV is obtained via the QUERY_MPT fw command. The returned information includes the mpt's lkey. This retrieved mpt

[PATCH AUTOSEL 4.14 09/35] batman-adv: Expand merged fragment buffer for full packet

2018-11-28 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit d7d8bbb40a5b1f682ee6589e212934f4c6b8ad60 ] The complete size ("total_size") of the fragmented packet is stored in the fragment header and in the size of the fragment chain. When the fragments are ready for merge, the skbuff's tail of the first fragment is

[PATCH AUTOSEL 4.14 22/35] mtd: spi-nor: Fix Cadence QSPI page fault kernel panic

2018-11-28 Thread Sasha Levin
From: Thor Thayer [ Upstream commit a6a66f80c85e8e20573ca03fabf32445954a88d5 ] The current Cadence QSPI driver caused a kernel panic sporadically when writing to QSPI. The problem was caused by writing more bytes than needed because the QSPI operated on 4 bytes at a time. [ 11.202044] Unable

[PATCH AUTOSEL 4.14 21/35] HID: multitouch: Add pointstick support for Cirque Touchpad

2018-11-28 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 12d43aacf9a74d0eb66fd0ea54ebeb79ca28940f ] Cirque Touchpad/Pointstick combo is similar to Alps devices, it requires MT_CLS_WIN_8_DUAL to expose its pointstick as a mouse. Signed-off-by: Kai-Heng Feng Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.14 12/35] qed: Fix PTT leak in qed_drain()

2018-11-28 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 9aaa4e8ba12972d674caeefbc5f88d83235dd697 ] Release PTT before entering error flow. Signed-off-by: Denis Bolotin Signed-off-by: Michal Kalderon Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2

[PATCH AUTOSEL 4.14 19/35] mtd: rawnand: qcom: Namespace prefix some commands

2018-11-28 Thread Sasha Levin
From: Olof Johansson [ Upstream commit 33bf5519ae5dd356b182a94e3622f42860274a38 ] PAGE_READ is used by RISC-V arch code included through mm headers, and it makes sense to bring in a prefix on these in the driver. drivers/mtd/nand/raw/qcom_nandc.c:153: warning: "PAGE_READ" redefined #define

[PATCH AUTOSEL 4.14 26/35] net: faraday: ftmac100: remove netif_running(netdev) check before disabling interrupts

2018-11-28 Thread Sasha Levin
From: Vincent Chen [ Upstream commit 426a593e641ebf0d9288f0a2fcab644a86820220 ] In the original ftmac100_interrupt(), the interrupts are only disabled when the condition "netif_running(netdev)" is true. However, this condition causes kerenl hang in the following case. When the user requests to

[PATCH AUTOSEL 4.14 16/35] net/mlx4_core: Fix uninitialized variable compilation warning

2018-11-28 Thread Sasha Levin
From: Tariq Toukan [ Upstream commit 3ea7e7ea53c9f6ee41cb69a29c375fe9dd9a56a7 ] Initialize the uid variable to zero to avoid the compilation warning. Fixes: 7a89399ffad7 ("net/mlx4: Add mlx4_bitmap zone allocator") Signed-off-by: Tariq Toukan Signed-off-by: David S. Miller Signed-off-by:

[PATCH AUTOSEL 4.14 07/35] HID: input: Ignore battery reported by Symbol DS4308

2018-11-28 Thread Sasha Levin
From: Benson Leung [ Upstream commit 0fd791841a6d67af1155a9c3de54dea51220721e ] The Motorola/Zebra Symbol DS4308-HD is a handheld USB barcode scanner which does not have a battery, but reports one anyway that always has capacity 2. Let's apply the IGNORE quirk to prevent it from being treated

[PATCH AUTOSEL 4.14 10/35] amd/iommu: Fix Guest Virtual APIC Log Tail Address Register

2018-11-28 Thread Sasha Levin
From: Filippo Sironi [ Upstream commit ab99be4683d9db33b100497d463274ebd23bd67e ] This register should have been programmed with the physical address of the memory location containing the shadow tail pointer for the guest virtual APIC log instead of the base address. Fixes: 8bda0cfbdc1a

[PATCH AUTOSEL 4.14 20/35] exec: make de_thread() freezable

2018-11-28 Thread Sasha Levin
From: Chanho Min [ Upstream commit c22397888f1eed98cd59f0a88f2a5f6925f80e15 ] Suspend fails due to the exec family of functions blocking the freezer. The casue is that de_thread() sleeps in TASK_UNINTERRUPTIBLE waiting for all sub-threads to die, and we have the deadlock if one of them is

[PATCH AUTOSEL 4.14 17/35] net/mlx4: Fix UBSAN warning of signed integer overflow

2018-11-28 Thread Sasha Levin
From: Aya Levin [ Upstream commit a463146e67c848cbab5ce706d6528281b7cded08 ] UBSAN: Undefined behavior in drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:626:29 signed integer overflow: 1802201963 + 1802201963 cannot be represented in type 'int' The union of res_reserved and

[PATCH AUTOSEL 4.14 25/35] iomap: sub-block dio needs to zeroout beyond EOF

2018-11-28 Thread Sasha Levin
From: Dave Chinner [ Upstream commit b450672fb66b4a991a5b55ee24209ac7ae7690ce ] If we are doing sub-block dio that extends EOF, we need to zero the unused tail of the block to initialise the data in it it. If we do not zero the tail of the block, then an immediate mmap read of the EOF block

[PATCH AUTOSEL 4.14 06/35] test_firmware: fix error return getting clobbered

2018-11-28 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 8bb0a88600f0267cfcc245d34f8c4abe8c282713 ] In the case where eq->fw->size > PAGE_SIZE the error return rc is being set to EINVAL however this is being overwritten to rc = req->fw->size because the error exit path via label 'out' is not being taken. Fix

[PATCH AUTOSEL 4.14 08/35] batman-adv: Use explicit tvlv padding for ELP packets

2018-11-28 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit f4156f9656feac21f4de712fac94fae964c5d402 ] The announcement messages of batman-adv COMPAT_VERSION 15 have the possibility to announce additional information via a dynamic TVLV part. This part is optional for the ELP packets and currently not parsed by the

[PATCH AUTOSEL 4.19 59/68] net/dim: Update DIM start sample after each DIM iteration

2018-11-28 Thread Sasha Levin
From: Tal Gilboa [ Upstream commit 0211dda68a4f6531923a2f72d8e8959207f59fba ] On every iteration of net_dim, the algorithm may choose to check for the system state by comparing current data sample with previous data sample. After each of these comparison, regardless of the action taken, the

[PATCH AUTOSEL 4.19 58/68] flexfiles: use per-mirror specified stateid for IO

2018-11-28 Thread Sasha Levin
From: Tigran Mkrtchyan [ Upstream commit bb21ce0ad227b69ec0f83279297ee44232105d96 ] rfc8435 says: For tight coupling, ffds_stateid provides the stateid to be used by the client to access the file. However current implementation replaces per-mirror provided stateid with by open or lock

[PATCH AUTOSEL 4.19 60/68] net: thunderx: set xdp_prog to NULL if bpf_prog_add fails

2018-11-28 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit 6d0f60b0f8588fd4380ea5df9601e12fddd55ce2 ] Set xdp_prog pointer to NULL if bpf_prog_add fails since that routine reports the error code instead of NULL in case of failure and xdp_prog pointer value is used in the driver to verify if XDP is currently

[PATCH AUTOSEL 4.19 53/68] iomap: dio data corruption and spurious errors when pipes fill

2018-11-28 Thread Sasha Levin
From: Dave Chinner [ Upstream commit 4721a6010990971440b4ffefbdf014976b8eda2f ] When doing direct IO to a pipe for do_splice_direct(), then pipe is trivial to fill up and overflow as it can only hold 16 pages. At this point bio_iov_iter_get_pages() then returns -EFAULT, and we abort the IO

[PATCH AUTOSEL 4.19 54/68] iomap: readpages doesn't zero page tail beyond EOF

2018-11-28 Thread Sasha Levin
From: Dave Chinner [ Upstream commit 8c110d43c6bca4b24dd13272a9d4e0ba6f2ec957 ] When we read the EOF page of the file via readpages, we need to zero the region beyond EOF that we either do not read or should not contain data so that mmap does not expose stale data to user applications.

[PATCH AUTOSEL 4.19 57/68] NFSv4.2 copy do not allocate memory under the lock

2018-11-28 Thread Sasha Levin
From: Olga Kornievskaia [ Upstream commit 99f2c55591fb5c1b536263970d98c2ebc2089906 ] Bruce pointed out that we shouldn't allocate memory while holding a lock in the nfs4_callback_offload() and handle_async_copy() that deal with a racing CB_OFFLOAD and reply to COPY case. Signed-off-by: Olga

[PATCH AUTOSEL 4.19 52/68] iomap: sub-block dio needs to zeroout beyond EOF

2018-11-28 Thread Sasha Levin
From: Dave Chinner [ Upstream commit b450672fb66b4a991a5b55ee24209ac7ae7690ce ] If we are doing sub-block dio that extends EOF, we need to zero the unused tail of the block to initialise the data in it it. If we do not zero the tail of the block, then an immediate mmap read of the EOF block

[PATCH AUTOSEL 4.19 50/68] riscv: fix warning in arch/riscv/include/asm/module.h

2018-11-28 Thread Sasha Levin
From: David Abdurachmanov [ Upstream commit 0138ebb90c633f76bc71617f8f23635ce41c84fd ] Fixes warning: 'struct module' declared inside parameter list will not be visible outside of this definition or declaration Signed-off-by: David Abdurachmanov Acked-by: Olof Johansson Signed-off-by: Palmer

[PATCH AUTOSEL 4.19 51/68] iomap: FUA is wrong for DIO O_DSYNC writes into unwritten extents

2018-11-28 Thread Sasha Levin
From: Dave Chinner [ Upstream commit 0929d8580071c6a1cec1a7916a8f674c243ceee1 ] When we write into an unwritten extent via direct IO, we dirty metadata on IO completion to convert the unwritten extent to written. However, when we do the FUA optimisation checks, the inode may be clean and so we

[PATCH AUTOSEL 4.19 48/68] qed: Fix QM getters to always return a valid pq

2018-11-28 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit eb62cca9bee842e5b23bd0ddfb1f271ca95e8759 ] The getter callers doesn't know the valid Physical Queues (PQ) values. This patch makes sure that a valid PQ will always be returned. The patch consists of 3 fixes: - When qed_init_qm_get_idx_from_flags()

[PATCH AUTOSEL 4.19 43/68] HID: multitouch: Add pointstick support for Cirque Touchpad

2018-11-28 Thread Sasha Levin
From: Kai-Heng Feng [ Upstream commit 12d43aacf9a74d0eb66fd0ea54ebeb79ca28940f ] Cirque Touchpad/Pointstick combo is similar to Alps devices, it requires MT_CLS_WIN_8_DUAL to expose its pointstick as a mouse. Signed-off-by: Kai-Heng Feng Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.19 36/68] tc-testing: tdc.py: Guard against lack of returncode in executed command

2018-11-28 Thread Sasha Levin
From: "Brenda J. Butler" [ Upstream commit c6cecf4ae44e4ce9158ef8806358142c3512cd33 ] Add some defensive coding in case one of the subprocesses created by tdc returns nothing. If no object is returned from exec_cmd, then tdc will halt with an unhandled exception. Signed-off-by: Brenda J.

[PATCH AUTOSEL 4.19 44/68] mtd: spi-nor: Fix Cadence QSPI page fault kernel panic

2018-11-28 Thread Sasha Levin
From: Thor Thayer [ Upstream commit a6a66f80c85e8e20573ca03fabf32445954a88d5 ] The current Cadence QSPI driver caused a kernel panic sporadically when writing to QSPI. The problem was caused by writing more bytes than needed because the QSPI operated on 4 bytes at a time. [ 11.202044] Unable

[PATCH AUTOSEL 4.19 38/68] cpufreq: ti-cpufreq: Only register platform_device when supported

2018-11-28 Thread Sasha Levin
From: Dave Gerlach [ Upstream commit d98ccfc3948ab63152494bb6b9c17e15295c0310 ] Currently the ti-cpufreq driver blindly registers a 'ti-cpufreq' to force the driver to probe on any platforms where the driver is built in. However, this should only happen on platforms that actually can make use

[PATCH AUTOSEL 4.19 42/68] HID: steam: remove input device when a hid client is running.

2018-11-28 Thread Sasha Levin
From: Rodrigo Rivas Costa [ Upstream commit 385a4886778f6d6e61eff1d4d295af332d7130e1 ] Previously, when a HID client such as the Steam Client was running, this driver disabled its input device to avoid doubling the input events. While it worked mostly fine, some games got confused by the idle

[PATCH AUTOSEL 4.19 46/68] NFSv4: Fix a NFSv4 state manager deadlock

2018-11-28 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit aeabb3c96186a0f944fc2b1f25c84d5eb3a93fa9 ] Fix a deadlock whereby the NFSv4 state manager can get stuck in the delegation return code, waiting for a layout return to complete in another thread. If the server reboots before that other thread completes,

[PATCH AUTOSEL 4.19 45/68] net: ena: fix crash during failed resume from hibernation

2018-11-28 Thread Sasha Levin
From: Arthur Kiyanovski [ Upstream commit e76ad21d070f79e566ac46ce0b0584c3c93e1b43 ] During resume from hibernation if ena_restore_device fails, ena_com_dev_reset() is called, and uses the readless read mechanism, which was already destroyed by the call to

[PATCH AUTOSEL 4.19 35/68] tc-testing: tdc.py: ignore errors when decoding stdout/stderr

2018-11-28 Thread Sasha Levin
From: Lucas Bates [ Upstream commit 5aaf6428526bcad98d6f51f2f679c919bb75d7e9 ] Prevent exceptions from being raised while decoding output from an executed command. There is no impact on tdc's execution and the verify command phase would fail the pattern match. Signed-off-by: Lucas Bates

[PATCH AUTOSEL 4.19 37/68] mtd: rawnand: qcom: Namespace prefix some commands

2018-11-28 Thread Sasha Levin
From: Olof Johansson [ Upstream commit 33bf5519ae5dd356b182a94e3622f42860274a38 ] PAGE_READ is used by RISC-V arch code included through mm headers, and it makes sense to bring in a prefix on these in the driver. drivers/mtd/nand/raw/qcom_nandc.c:153: warning: "PAGE_READ" redefined #define

[PATCH AUTOSEL 4.19 47/68] qed: Fix bitmap_weight() check

2018-11-28 Thread Sasha Levin
From: Denis Bolotin [ Upstream commit 276d43f0ae963312c0cd0e2b9a85fd11ac65dfcc ] Fix the condition which verifies that only one flag is set. The API bitmap_weight() should receive size in bits instead of bytes. Fixes: b5a9ee7cf3be ("qed: Revise QM cofiguration") Signed-off-by: Denis Bolotin

[PATCH AUTOSEL 4.19 41/68] Revert "HID: uhid: use strlcpy() instead of strncpy()"

2018-11-28 Thread Sasha Levin
From: David Herrmann [ Upstream commit 4d26d1d1e8065bb3326a7c06d5d4698e581443a9 ] This reverts commit 336fd4f5f25157e9e8bd50e898a1bbcd99eaea46. Please note that `strlcpy()` does *NOT* do what you think it does. strlcpy() *ALWAYS* reads the full input string, regardless of the 'length'

[PATCH AUTOSEL 4.19 40/68] ALSA: hda/ca0132 - Add new ZxR quirk

2018-11-28 Thread Sasha Levin
From: Connor McAdams [ Upstream commit cce997292a5264c5342c968bbd226d7c365f03d6 ] This patch adds a new PCI subsys ID for the ZxR, as found and tested by other users. Without a way to know if any Z's use it as well, it keeps the quirk of QUIRK_SBZ and goes through the HDA subsys test function.

[PATCH AUTOSEL 4.19 28/68] drm/amd/display: Support amdgpu "max bpc" connector property (v2)

2018-11-28 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 07e3a1cfb0568b6d8d7862077029af96af6690ea ] [Why] Many panels support more than 8bpc but some modes are unavailable while running at greater than 8bpc due to DP/HDMI bandwidth constraints. Support for more than 8bpc was added recently in the driver

[PATCH AUTOSEL 4.19 39/68] exec: make de_thread() freezable

2018-11-28 Thread Sasha Levin
From: Chanho Min [ Upstream commit c22397888f1eed98cd59f0a88f2a5f6925f80e15 ] Suspend fails due to the exec family of functions blocking the freezer. The casue is that de_thread() sleeps in TASK_UNINTERRUPTIBLE waiting for all sub-threads to die, and we have the deadlock if one of them is

[PATCH AUTOSEL 4.19 34/68] gpio: mockup: fix indicated direction

2018-11-28 Thread Sasha Levin
From: Bartosz Golaszewski [ Upstream commit bff466bac59994cfcceabe4d0be5fdc1c20cd5b8 ] Commit 3edfb7bd76bd ("gpiolib: Show correct direction from the beginning") fixed an existing issue but broke libgpiod tests by changing the default direction of dummy lines to output. We don't break

[PATCH AUTOSEL 4.19 32/68] drivers/net/ethernet/qlogic/qed/qed_rdma.h: fix typo

2018-11-28 Thread Sasha Levin
From: Andrew Morton [ Upstream commit a97b9565338350d70d8d971c4ee6f0d4fa967418 ] Add missing semicolon. Fixes: 291d57f67d244973 ("qed: Fix rdma_info structure allocation") Cc: Michal Kalderon Cc: Denis Bolotin Cc: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: David S. Miller

[PATCH AUTOSEL 4.19 33/68] gpio: pxa: fix legacy non pinctrl aware builds again

2018-11-28 Thread Sasha Levin
From: Robert Jarzmik [ Upstream commit 70cdb6ad6dc342d9643a00c9092e88f0075f2b9a ] As pointed out by Gregor, spitz keyboard matrix is broken, with or without CONFIG_PINCTRL set, quoting : "The gpio matrix keypard on the Zaurus C3x00 (see spitz.c) does not work properly. Noticeable are that

[PATCH AUTOSEL 4.19 25/68] nvme-fc: resolve io failures during connect

2018-11-28 Thread Sasha Levin
From: James Smart [ Upstream commit 4cff280a5fccf6513ed9e895bb3a4e7ad8b0cedc ] If an io error occurs on an io issued while connecting, recovery of the io falls flat as the state checking ends up nooping the error handler. Create an err_work work item that is scheduled upon an io error while

[PATCH AUTOSEL 4.19 29/68] net/mlx4_core: Zero out lkey field in SW2HW_MPT fw command

2018-11-28 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit bd85fbc2038a1bbe84990b23ff69b6fc81a32b2c ] When re-registering a user mr, the mpt information for the existing mr when running SRIOV is obtained via the QUERY_MPT fw command. The returned information includes the mpt's lkey. This retrieved mpt

[PATCH AUTOSEL 4.19 16/68] amd/iommu: Fix Guest Virtual APIC Log Tail Address Register

2018-11-28 Thread Sasha Levin
From: Filippo Sironi [ Upstream commit ab99be4683d9db33b100497d463274ebd23bd67e ] This register should have been programmed with the physical address of the memory location containing the shadow tail pointer for the guest virtual APIC log instead of the base address. Fixes: 8bda0cfbdc1a

[PATCH AUTOSEL 4.19 23/68] Revert "usb: gadget: ffs: Fix BUG when userland exits with submitted AIO transfers"

2018-11-28 Thread Sasha Levin
From: Shen Jing [ Upstream commit a9c859033f6ec772f8e3228c343bb1321584ae0e ] This reverts commit b4194da3f9087dd38d91b40f9bec42d59ce589a8 since it causes list corruption followed by kernel panic: Workqueue: adb ffs_aio_cancel_worker RIP: 0010:__list_add_valid+0x4d/0x70 Call Trace:

[PATCH AUTOSEL 4.19 24/68] s390/ism: clear dmbe_mask bit before SMC IRQ handling

2018-11-28 Thread Sasha Levin
From: Ursula Braun [ Upstream commit 007b656851ed7f94ba0fa358ac3e5d7705da6846 ] SMC-D stress workload showed connection stalls. Since the firmware decides to skip raising an interrupt if the SBA DMBE mask bit is still set, this SBA DMBE mask bit should be cleared before the IRQ handling in the

[PATCH AUTOSEL 4.19 22/68] usb: dwc2: pci: Fix an error code in probe

2018-11-28 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 3c135e8900199e3b9375c1eff808cceba2ee37de ] We added some error handling to this function but forgot to set the error code on this path. Fixes: ecd29dabb2ba ("usb: dwc2: pci: Handle error cleanup in probe") Acked-by: Minas Harutyunyan Signed-off-by: Dan

[PATCH AUTOSEL 4.19 12/68] test_firmware: fix error return getting clobbered

2018-11-28 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 8bb0a88600f0267cfcc245d34f8c4abe8c282713 ] In the case where eq->fw->size > PAGE_SIZE the error return rc is being set to EINVAL however this is being overwritten to rc = req->fw->size because the error exit path via label 'out' is not being taken. Fix

[PATCH AUTOSEL 4.19 13/68] HID: input: Ignore battery reported by Symbol DS4308

2018-11-28 Thread Sasha Levin
From: Benson Leung [ Upstream commit 0fd791841a6d67af1155a9c3de54dea51220721e ] The Motorola/Zebra Symbol DS4308-HD is a handheld USB barcode scanner which does not have a battery, but reports one anyway that always has capacity 2. Let's apply the IGNORE quirk to prevent it from being treated

Re: [PATCH] clk: nomadik: Change to use DEFINE_SHOW_ATTRIBUTE macro

2018-11-28 Thread Frank Lee
On Thu, Nov 29, 2018 at 6:12 AM Stephen Boyd wrote: > > Quoting Stephen Boyd (2018-11-28 14:08:32) > > Quoting Yangtao Li (2018-11-23 07:06:00) > > > Use macro to simplify the code. > > > > > > Signed-off-by: Yangtao Li > > > --- > > > > Applied to clk-next > > > > Except this doesn't compile. I

  1   2   3   4   5   6   7   8   9   >