[PATCH] ASoC: AMD: Add SND_JACK_LINEOUT jack type

2018-10-14 Thread Akshu Agrawal
Some 3 pole connectors report impedance greater than threshold of 1000Ohm. Thus, da7219 reports them as LINEOUT. Adding the SND_JACK_LINEOUT type so that we don't fail to detect any 3 pole jack type. Also, changing SND_JACK_HEADPHONE | SND_JACK_MICROPHONE -> SND_JACK_HEADSET Signed-off-by: Akshu A

Re: [PATCH v7 0/9] PCI: mediatek: fixup find_port, enable_msi and add PM, module support

2018-10-14 Thread Honghui Zhang
On Mon, 2018-10-15 at 14:05 +0800, Ryder Lee wrote: > On Mon, 2018-10-15 at 13:44 +0800, honghui.zh...@mediatek.com wrote: > > From: Honghui Zhang > > > > This patchset includes misc patchs: > > > > The patch 1 fixup the mtk_pcie_find_port logic which will cause system > > could not touch the EP

Linux 4.19-rc8

2018-10-14 Thread Greg KH
Hi all, As mentioned last week, here's a -rc8 release as it seems needed. There were a lot of "little" pull requests this week, semi-normal for this late in the cycle, but a lot of them were "fix up the previous fix I just sent" which implies that people are having a few issues still. I also kno

[PATCH v14 3/3]: perf record: extend trace writing to multi AIO

2018-10-14 Thread Alexey Budankov
Multi AIO trace writing allows caching more kernel data into userspace memory postponing trace writing for the sake of overall profiling data thruput increase. It could be seen as kernel data buffer extension into userspace memory. With aio option value different from 0, default value is 1, t

[PATCH v14 2/3]: perf record: enable asynchronous trace writing

2018-10-14 Thread Alexey Budankov
Trace file offset is read once before mmaps iterating loop and written back after all performance data enqueued for aio writing. Trace file offset is incremented linearly after every successful aio write operation. record__aio_sync() blocks till completion of started AIO operation and then pr

[PATCH v14 1/3]: perf util: map data buffer for preserving collected data

2018-10-14 Thread Alexey Budankov
The map->data buffer is used to preserve map->base profiling data for writing to disk. AIO map->cblock is used to queue corresponding map->data buffer for asynchronous writing. Signed-off-by: Alexey Budankov --- Changes in v13: - grouped aio functions under single #ifdef HAVE_AIO_SUPPORT Cha

[PATCH 2/3] spi: omap2-mcspi: Set FIFO DMA trigger level to word length

2018-10-14 Thread Vignesh R
McSPI has 32 byte FIFO in Transmit-Receive mode. Current code tries to configuration FIFO watermark level for DMA trigger to be GCD of transfer length and max FIFO size which would mean trigger level may be set to 32 for transmit-receive mode if length is aligned. This does not work in case of SPI

[PATCH 3/3] spi: omap2-mcspi: Add slave mode support

2018-10-14 Thread Vignesh R
Add support to use McSPI controller as SPI slave. In slave mode, DMA TX completion does not mean entire data has been shifted out as data might still be stuck in FIFO waiting for master to clock the bus. Therefore, add an IRQ handler for slave mode to know when entire data in FIFO has been shifted

[PATCH 0/3] omap2-mcspi: Add slave mode support

2018-10-14 Thread Vignesh R
This series add slave mode support for TI's McSPI controller. Slave mode tested on Beagle Bone Black with SPI0 in master mode connected to SPI1 in slave mode. Tested with slave-time, slave-system-control and spidev as slave clients. Master mode tested on AM335x ICEv2 with a SPI flash for regressi

[PATCH 1/3] spi: omap2-mcspi: Switch to readl_poll_timeout()

2018-10-14 Thread Vignesh R
Use standard readl_poll_timeout() macro for polling on status bits. Signed-off-by: Vignesh R --- drivers/spi/spi-omap2-mcspi.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 508c61c669e7..

Re: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator

2018-10-14 Thread Bjorn Andersson
On Wed 10 Oct 11:58 PDT 2018, Loic PALLARDY wrote: > > > > -Original Message- > > From: Bjorn Andersson [mailto:bjorn.anders...@linaro.org] > > Sent: mercredi 10 octobre 2018 07:32 > > To: Loic PALLARDY > > Cc: o...@wizery.com; linux-remotep...@vger.kernel.org; linux- > > ker...@vger.ke

[PATCH] powerpc/book3s64: fix dump_linuxpagetables "present" flag

2018-10-14 Thread Christophe Leroy
Since commit bd0dbb73e013 ("powerpc/mm/books3s: Add new pte bit to mark pte temporarily invalid."), _PAGE_PRESENT doesn't mean exactly that a page is present. A page is also considered preset when _PAGE_INVALID is set. This patch changes the meaning of "present" and adds a status "valid" associate

[PATCH v14 0/3]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-10-14 Thread Alexey Budankov
Currently in record mode the tool implements trace writing serially. The algorithm loops over mapped per-cpu data buffers and stores ready data chunks into a trace file using write() system call. At some circumstances the kernel may lack free space in a buffer because the other buffer's half

Re: net: dsa: b53: Keep CPU port as tagged in all VLANs - merge request

2018-10-14 Thread David Miller
From: Gerhard Wiesinger Date: Mon, 15 Oct 2018 07:08:53 +0200 > Hello David, > > The dsa b53 net driver is broken since 4.15 kernels. This patch hasn't > been merged into 4.18.latest yet (is already in net.git). Can you > please integrate it in 4.18.15. > > https://git.kernel.org/pub/scm/linux/

Re: [PATCH v7 0/9] PCI: mediatek: fixup find_port, enable_msi and add PM, module support

2018-10-14 Thread Ryder Lee
On Mon, 2018-10-15 at 13:44 +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > This patchset includes misc patchs: > > The patch 1 fixup the mtk_pcie_find_port logic which will cause system > could not touch the EP's configuration space that connected to PCIe slot 1. > > The pat

Re: [BUG -next 20181008] list corruption with "mm/slub: remove useless condition in deactivate_slab"

2018-10-14 Thread Pingfan Liu
On Tue, Oct 9, 2018 at 2:35 PM Heiko Carstens wrote: > > Hello, > > with linux-next for 20181008 I can reliably crash my system with lot's of > debugging options enabled on s390. List debugging triggers the list > corruption below, which I could bisect down to this commit: > > fde06e07750477f049f1

Re: linux-next: manual merge of the userns tree with the tip tree

2018-10-14 Thread Eric W. Biederman
Stephen Rothwell writes: > Hi all, > > On Mon, 15 Oct 2018 15:11:59 +1100 Stephen Rothwell > wrote: >> >> Today's linux-next merge of the userns tree got a conflict in: >> >> arch/x86/mm/fault.c >> >> between commit: >> >> 164477c2331b ("x86/mm: Clarify hardware vs. software "error_code"

[PATCH v7 6/9] PCI: mediatek: Fixup enable MSI logic by enable MSI after clock enabled

2018-10-14 Thread honghui.zhang
From: Honghui Zhang The commit 43e6409db64d ("PCI: mediatek: Add MSI support for MT2712 and MT7622") added MSI support but enable MSI in wrong place, clocks was not enabled when enable MSI. This patch fix this issue by calling mtk_pcie_enable_msi in mtk_pcie_startup_port_v2 since the clock was al

[PATCH v7 3/9] PCI: mediatek: Remove the redundant dev->pm_domain check

2018-10-14 Thread honghui.zhang
From: Honghui Zhang It's no needed to check whether device have pm_domain attached before calling the pm_runtime_XXX interface, remove it. Signed-off-by: Honghui Zhang --- drivers/pci/controller/pcie-mediatek.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --g

[PATCH v7 8/9] PCI: mediatek: Save the GIC IRQ in mtk_pcie_port

2018-10-14 Thread honghui.zhang
From: Honghui Zhang Need to save the PCIe's GIC IRQ for dispose_irq, this is a prepare patch for add mediatek PCIe module support to tear down the IRQ, no functional changed. Signed-off-by: Honghui Zhang --- drivers/pci/controller/pcie-mediatek.c | 9 ++--- 1 file changed, 6 insertions(+),

[PATCH v7 5/9] PCI: mediatek: Move the mtk_pcie_startup_port_v2 function's define after mtk_pcie_setup_irq

2018-10-14 Thread honghui.zhang
From: Honghui Zhang This is a prepare patch to fix enable MSI logic, move the function's define later to avoid forward declaration of mtk_pcie_enable_msi in the future. No functional changed. Signed-off-by: Honghui Zhang --- drivers/pci/controller/pcie-mediatek.c | 138

[PATCH v7 2/9] PCI: mediatek: Fix class type for MT7622 as PCI_CLASS_BRIDGE_PCI

2018-10-14 Thread honghui.zhang
From: Honghui Zhang The commit 101c92dc80c8 ("PCI: mediatek: Set up vendor ID and class type for MT7622") have set the class type for MT7622 as un-properly value of PCI_CLASS_BRIDGE_HOST. The PCIe controller of MT7622 is complexed with Root Port and PCI-to-PCI bridge, the bridge has type 1 confi

[PATCH v7 9/9] PCI: mediatek: Add loadable kernel module support

2018-10-14 Thread honghui.zhang
From: Honghui Zhang Implement remove callback function for Mediatek PCIe driver to add loadable kernel module support. Signed-off-by: Honghui Zhang Reviewed-by: Ryder Lee --- drivers/pci/controller/Kconfig | 2 +- drivers/pci/controller/pcie-mediatek.c | 51 ++

Re: [PATCH v4 3/6] parisc: add system call table generation support

2018-10-14 Thread Firoz Khan
Hi Eike, On Mon, 15 Oct 2018 at 10:47, Rolf Eike Beer wrote: > > Firoz Khan wrote: > > Hi Rolf, > > > > On Fri, 12 Oct 2018 at 17:37, Rolf Eike Beer wrote: > > > Firoz Khan wrote: > > > > > +prefix="$4" > > > > +offset="$5" > > > > + > > > > +fileguard=_UAPI_ASM_PARISC_`basename "$out" | sed \ >

[PATCH v7 1/9] PCI: mediatek: Using slot's devfn for compare to fix mtk_pcie_find_port logic

2018-10-14 Thread honghui.zhang
From: Honghui Zhang The Mediatek's host controller has two slots, each with it's own control registers. The host driver need to identify which slot was connected in order to access the device's configuration space. There's problem for current host driver to find out which slot was connected to fo

[PATCH v7 7/9] PCI: mediatek: Add system PM support for MT2712 and MT7622

2018-10-14 Thread honghui.zhang
From: Honghui Zhang In order to reduce the PCIe power consuming while system suspend, the physical layer should be gated. And the PCIe link should be re-established and the related control register values should be re-initialized after system resume. Register suspend_noirq & resume_noirq callbac

[PATCH v7 0/9] PCI: mediatek: fixup find_port, enable_msi and add PM, module support

2018-10-14 Thread honghui.zhang
From: Honghui Zhang This patchset includes misc patchs: The patch 1 fixup the mtk_pcie_find_port logic which will cause system could not touch the EP's configuration space that connected to PCIe slot 1. The patch 2 fixup the class type for MT7622. The patch 6 fixup the enable msi logic, the ope

[PATCH v7 4/9] PCI: mediatek: Convert to use pci_host_probe()

2018-10-14 Thread honghui.zhang
From: Honghui Zhang Part of mtk_pcie_register_host is an open-coded version of pci_host_probe(). So instead of duplicating this code, use pci_host_probe() directly and remove mtk_pcie_register_host. Signed-off-by: Honghui Zhang --- drivers/pci/controller/pcie-mediatek.c | 37 --

Re: [tip:x86/mm] x86/mm: Break out user address space handling

2018-10-14 Thread Eric W. Biederman
tip-bot for Dave Hansen writes: > Commit-ID: aa37c51b9421d66f7931c5fdcb9ce80c450974be > Gitweb: > https://git.kernel.org/tip/aa37c51b9421d66f7931c5fdcb9ce80c450974be > Author: Dave Hansen > AuthorDate: Fri, 28 Sep 2018 09:02:23 -0700 > Committer: Peter Zijlstra > CommitDate: Tue, 9 O

[PATCH v9 2/6] dt: bindings: Document ZynqMP DDRC in Synopsys documentation

2018-10-14 Thread Manish Narani
Add information of ZynqMP DDRC which reports the single bit errors that are corrected and the double bit errors that are detected. Signed-off-by: Manish Narani Reviewed-by: Rob Herring --- .../bindings/memory-controllers/synopsys.txt | 27 ++ 1 file changed, 22 inserti

[PATCH v9 5/6] arm64: zynqmp: Add DDRC node

2018-10-14 Thread Manish Narani
Add ddrc memory controller node in dts. The size mentioned in dts is 0x3, because we need to access DDR_QOS INTR registers located at 0xFD090208 from this driver. Signed-off-by: Manish Narani --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v9 1/6] edac: synopsys: Add error handling for NULL in probe()

2018-10-14 Thread Manish Narani
The function of_device_get_match_data() can return NULL in case of error. Add error handling for the same in probe(). Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c i

[PATCH v9 0/6] EDAC: Enhancements to Synopsys EDAC driver

2018-10-14 Thread Manish Narani
This patch series enhances the current EDAC driver to support different platforms. This series adds support for ZynqMP DDRC controller in synopsys EDAC driver. This series also adds Device tree properties and relevant binding documentation. Changes in v2: - Moved checking of DDR_ECC_INTR_S

[PATCH v9 4/6] edac: synopsys: Add EDAC ECC support for ZynqMP DDRC

2018-10-14 Thread Manish Narani
Add EDAC ECC support for ZynqMP DDRC IP. The IP supports interrupts for corrected and uncorrected errors. Add interrupt handlers for the same. Signed-off-by: Manish Narani --- drivers/edac/Kconfig | 2 +- drivers/edac/synopsys_edac.c | 324 --- 2

[PATCH v9 6/6] edac: synopsys: Add Error Injection support for ZynqMP DDRC

2018-10-14 Thread Manish Narani
Add support for Error Injection for ZynqMP DDRC IP. For injecting errors, the Row, Column, Bank, Bank Group and Rank bits positions are determined via Address Map registers of Synopsys DDRC. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 420 +

[PATCH v9 3/6] edac: synopsys: Add macro defines for ZynqMP DDRC

2018-10-14 Thread Manish Narani
Add macro defines for ZynqMP DDR controller. These macros will be used for ZynqMP ECC operations. Signed-off-by: Manish Narani --- drivers/edac/synopsys_edac.c | 168 +++ 1 file changed, 168 insertions(+) diff --git a/drivers/edac/synopsys_edac.c b/driver

Re: [PATCH] x86/mm: annotate no_context with UNWIND_HINTS

2018-10-14 Thread Nathan Chancellor
On Sun, Oct 14, 2018 at 08:43:18PM -0700, Andy Lutomirski wrote: > On Sun, Oct 14, 2018 at 5:37 PM Nick Desaulniers > wrote: > > > > Fixes the objtool warning: > > arch/x86/mm/fault.o: warning: objtool: no_context()+0x220: unreachable > > instruction > > > > Link: https://github.com/ClangBuiltLinu

net: dsa: b53: Keep CPU port as tagged in all VLANs - merge request

2018-10-14 Thread Gerhard Wiesinger
Hello David, The dsa b53 net driver is broken since 4.15 kernels. This patch hasn't been merged into 4.18.latest yet (is already in net.git). Can you please integrate it in 4.18.15. https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/commit/drivers/net/dsa/b53/b53_common.c?id=ca8931

[PATCH V13 3/4] clocksource: add gx6605s SOC system timer

2018-10-14 Thread Guo Ren
The driver is for gx6605s SOC system timer and there are two same timers in gx6605s. We use one for clkevt and another one for clksrc. The timer is mmio map to access, so we need give mmio address in dts. The counter at 0x0 offset is clock event. The counter at 0x40 offset is clock source. Sign

[PATCH V13 2/4] dt-bindings: timer: C-SKY Multi-processor timer

2018-10-14 Thread Guo Ren
Dt-bingdings doc for C-SKY SMP system setting. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- Changelog: - Drop the interrupt-parent. --- --- .../devicetree/bindings/timer/csky,mptimer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/

[PATCH V13 4/4] dt-bindings: timer: gx6605s SOC timer

2018-10-14 Thread Guo Ren
Dt-bindings doc for gx6605s SOC's system timer. Signed-off-by: Guo Ren Reviewed-by: Rob Herring --- .../bindings/timer/csky,gx6605s-timer.txt | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/csky,gx6605s-timer.tx

[PATCH V13 1/4] clocksource: add C-SKY SMP timer

2018-10-14 Thread Guo Ren
The driver is for C-SKY SMP timer. It only support oneshot event and 32bit overflow for clocksource. Per cpu core has one timer and all timers share one clock-counter-input the same clocksource. This use mfcr&mtcr instructions to access the regs. Signed-off-by: Guo Ren Cc: Daniel Lezcano --- Ch

[PATCH 07/11] staging: gasket: page_table: fix comment in components_to_dev_address

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Comments in components_to_dev_address() describing examples are inconsistent, fix these to be accurate. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 04/11] staging: gasket: page_table: remove unnecessary PTE status set to free

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Remove unnecessary ptes[i].status update in gasket_perform_unmapping. The vaaue will be cleared in the following memset. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 1 - 1 file changed, 1 deletion(-) diff --git a/driv

[PATCH 11/11] staging: gasket: Update device virtual address comment

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Add that number of page table entries and extended address bit offset are configurable. Update example virtual address format to be more consistent with typical usage. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 14 +++

[PATCH 02/11] staging: gasket: page table: return valid error code on map fail

2018-10-14 Thread Todd Poynor
From: Todd Poynor Return -EINVAL on mapping failures, instead of -1, which triggers a checkpatch error. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_table.c

[PATCH 08/11] staging: gasket: page_table: simplify gasket_components_to_dev_address

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Refactor gasket_components_to_dev_address to be faster and easier to understand. The old implementation was unnecessarily complex and masked the page_index for simple addresses but not extended ones. It makes the most sense for this function to perform no such masking. Signed-of

[PATCH 01/11] staging: gasket: core: debug log updates

2018-10-14 Thread Todd Poynor
From: Todd Poynor Add debug logs for device enable/disable events, remove logs for callbacks (the called functions can generate their own logs if needed). Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_core.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --

[PATCH 09/11] staging: gasket: apex: fix sysfs_show

2018-10-14 Thread Todd Poynor
From: Nick Ewalt sysfs_show was incorrectly extracting the sysfs_attribute_type from the gasket_sysfs_attribute. This prevented dispatch from working properly. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/apex_driver.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 03/11] staging: gasket: page table: remove dead code in coherent mem alloc

2018-10-14 Thread Todd Poynor
From: Todd Poynor gasket_alloc_coherent_memory() has some unnecessary code related to out of memory checking that will never hit the condition checked, remove. Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-)

[PATCH 06/11] staging: gasket: page table: fixup error path allocating coherent mem

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Correctly clean up data structure state in gasket_alloc_coherent_memory error path, to ensure no double free on the stale pointer value. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 6 +- 1 file changed, 5 insertion

[PATCH 00/11] staging: gasket: fixes

2018-10-14 Thread Todd Poynor
From: Todd Poynor Various fixes for gasket/apex drivers. Nick Ewalt (8): staging: gasket: page_table: remove unnecessary PTE status set to free staging: gasket: page_table: rearrange gasket_page_table_entry staging: gasket: page table: fixup error path allocating coherent mem staging: ga

[PATCH 10/11] staging: gasket: sysfs: fix attribute release comment

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Comments for gasket_sysfs_get_attr() incorrectly describe reference release procedure. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_sysfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/gasket

[PATCH 05/11] staging: gasket: page_table: rearrange gasket_page_table_entry

2018-10-14 Thread Todd Poynor
From: Nick Ewalt Rearrange gasket_page_table entry to reduce padding slop. Signed-off-by: Nick Ewalt Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_page_table.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/gasket/gasket_page_ta

Re: [PATCH 1/2] sysctl: add overflow detection to proc_get_long()

2018-10-14 Thread Christian Brauner
On October 15, 2018 2:03:10 AM GMT+02:00, Al Viro wrote: >On Sun, Oct 14, 2018 at 08:53:46PM +0200, Christian Brauner wrote: > >> > Yecchh... First of all, the cast back to unsigned long long is >completely >> > pointless. What's more, >> >> Sorry, seriously asking: why? This was meant to hand

Re: linux-next: manual merge of the userns tree with the tip tree

2018-10-14 Thread Stephen Rothwell
Hi all, On Mon, 15 Oct 2018 15:11:59 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the userns tree got a conflict in: > > arch/x86/mm/fault.c > > between commit: > > 164477c2331b ("x86/mm: Clarify hardware vs. software "error_code"") > (and others from that series) > > fr

RE: issues with suspend on Dell XPS 13 2-in-1

2018-10-14 Thread Mario.Limonciello
> El vie, 12-10-2018 a las 17:46 +, mario.limoncie...@dell.com > escribió: > > > -Original Message- > > > From: Dennis Gilmore > > > Sent: Friday, October 12, 2018 8:39 AM > > > To: Pandruvada, Srinivas > > > Cc: linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org; > > > Limonciel

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

2018-10-14 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the userns tree got a conflict in: arch/x86/mm/fault.c between commit: 164477c2331b ("x86/mm: Clarify hardware vs. software "error_code"") (and others from that series) from the tip tree and commits: 768fd9c69bb5 ("signal/x86: Remove pkey parameter f

possible deadlock in percpu_down_write

2018-10-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ec21823634d Merge tag 'for-linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14ceda0940 kernel config: https://syzkaller.appspot.com/x/.config?x=88e9a8a39dc0be2d da

Re: [PATCH] x86/mm: annotate no_context with UNWIND_HINTS

2018-10-14 Thread Andy Lutomirski
On Sun, Oct 14, 2018 at 5:37 PM Nick Desaulniers wrote: > > Fixes the objtool warning: > arch/x86/mm/fault.o: warning: objtool: no_context()+0x220: unreachable > instruction > > Link: https://github.com/ClangBuiltLinux/linux/issues/204 > Signed-off-by: Nick Desaulniers > --- > arch/x86/mm/fault.

Re: [PATCH v2] HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel

2018-10-14 Thread Kai Heng Feng
Hi Jiri and Benjamin, > On Oct 5, 2018, at 12:46, Kai-Heng Feng wrote: > > Raydium touchpanel (2386:4B33) sometimes does not work in desktop session > although it works in display manager. > > During user logging, the display manager exits, close the HID device, > then the device gets runtime s

[PATCH] of: Documentation: remove unmaintained todo file

2018-10-14 Thread frowand . list
From: Frank Rowand The todo.txt file was created by a previous maintainer and has never been updated by the current OPEN FIRMWARE AND FLATTENED DEVICE TREE maintainers. Remove the out of date file. Signed-off-by: Frank Rowand --- Documentation/devicetree/todo.txt | 10 -- 1 file chang

[PATCH] of: overlay: update documentation to match current implementation

2018-10-14 Thread frowand . list
From: Frank Rowand The overlay information in Documentation/devicetree/ is out of date. Signed-off-by: Frank Rowand --- .../devicetree/dynamic-resolution-notes.txt| 24 -- Documentation/devicetree/overlay-notes.txt | 93 ++ 2 files changed, 42 insertions

Re: [PATCH 0/2] mmc: uniphier-sd: two bug-fixes

2018-10-14 Thread Masahiro Yamada
On Mon, Oct 15, 2018 at 7:33 AM Wolfram Sang wrote: > > > > In further testing in uniphier-sd.c, > > I found my stupid mistakes. > > I don't have the uniphier HW but I still had a look at these patches. > You never know if there is something interesting for SDHI in there :) > > > Can you squash th

Re: [PATCH v6 2/9] PCI: mediatek: Fixup class ID for MT7622 as PCI_CLASS_BRIDGE_PCI

2018-10-14 Thread Honghui Zhang
On Fri, 2018-10-12 at 09:12 -0500, Bjorn Helgaas wrote: > On Fri, Oct 12, 2018 at 11:22:30AM +0100, Lorenzo Pieralisi wrote: > > On Fri, Oct 12, 2018 at 04:01:29PM +0800, Honghui Zhang wrote: > >> On Thu, 2018-10-11 at 12:38 +0100, Lorenzo Pieralisi wrote: > >>> On Tue, Oct 09, 2018 at 11:08:15AM +

Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-14 Thread Guo Ren
Hi Daniel, On Sun, Oct 14, 2018 at 10:38:36PM +0200, Daniel Lezcano wrote: > On 14/10/2018 18:26, Guo Ren wrote: > Thanks Guo, > > the descriptions look ok for the timer part. Can you resend the DT > bindings + timers patches separately with the commit log updated ? Ok, immediately. > > When yo

[PATCH] doc: rcu: Fix code listing in performance and scalability requirements

2018-10-14 Thread Joel Fernandes (Google)
The code listing under this section has a quick quiz that says line 19 uses rcu_access_pointer, but the code listing itself does not. Fix this. Signed-off-by: Joel Fernandes (Google) --- .../RCU/Design/Requirements/Requirements.html| 2 +- kernel/sys.c |

sys_tee() bug: after tee() of partial page, both pipes can merge, clobbering each other's data

2018-10-14 Thread Jann Horn
Hi! I noticed the following behavior; basically, after copying part of a normal pipe buffer (anon_pipe_buf_ops) from pipe A to pipe B, both pipe A and pipe B can merge new writes into the existing page, clobbering each other's data: $ cat tee_test.c #define _GNU_SOURCE #include #inc

Re: [PATCH v8 3/5] Cleanup ISA string setting

2018-10-14 Thread Guenter Roeck
Hi Alan, On 10/14/2018 04:46 PM, Alan Kao wrote: Hi Guenter, On Sat, Oct 13, 2018 at 05:02:05PM -0700, Guenter Roeck wrote: Hi, With this patch in -next applied, I get the following error when building riscv:defconfig. I guess what you meant was this commit: commit 0a5bee05fc67ce2044b8d91a1

Re: [PATCH v6 2/9] PCI: mediatek: Fixup class ID for MT7622 as PCI_CLASS_BRIDGE_PCI

2018-10-14 Thread Honghui Zhang
On Fri, 2018-10-12 at 11:22 +0100, Lorenzo Pieralisi wrote: > On Fri, Oct 12, 2018 at 04:01:29PM +0800, Honghui Zhang wrote: > > On Thu, 2018-10-11 at 12:38 +0100, Lorenzo Pieralisi wrote: > > > On Tue, Oct 09, 2018 at 11:08:15AM +0800, Honghui Zhang wrote: > > > > On Mon, 2018-10-08 at 18:23 +0100

RE: [PATCH] thermal: qoriq: add multiple sensors support

2018-10-14 Thread Andy Tang
Thanks Daniel, Please see my reply inline. > -Original Message- > From: Daniel Lezcano > Sent: 2018年10月14日 4:43 > To: Andy Tang ; rui.zh...@intel.com > Cc: edubez...@gmail.com; linux...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] thermal: qoriq: add multiple se

[PATCH] of: overlay: user space synchronization

2018-10-14 Thread frowand . list
From: Frank Rowand When an overlay is applied or removed, the live devicetree visible in /proc/device-tree/, aka /sys/firmware/devicetree/base/, reflects the changes. There is no method for user space to determine whether the live devicetree was modified by overlay actions. Provide a sysfs file

[PATCH] phy: uniphier-pcie: Depend on HAS_IOMEM

2018-10-14 Thread Kunihiko Hayashi
The driver uses devm_ioremap_resource() which is only available when CONFIG_HAS_IOMEM is set, so the driver depends on this option. Signed-off-by: Kunihiko Hayashi --- drivers/phy/socionext/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/socionext/Kconfi

Re: [PATCH v3 2/9] dt-bindings: ti-lmu: Remove LM3697

2018-10-14 Thread Rob Herring
On Sat, Oct 13, 2018 at 1:46 PM Jacek Anaszewski wrote: > > On 10/12/2018 08:03 PM, Pavel Machek wrote: > > Hi! > > > >> Signed-off-by: Dan Murphy > > > > NAK. > > Thanks for the NAK. > > This NAK was NAK'd by other maintainer in the V2 RFC patchset > > h

Re: [PATCH] mm/thp: Correctly differentiate between mapped THP and PMD migration entry

2018-10-14 Thread Zi Yan
On 12 Oct 2018, at 4:00, Anshuman Khandual wrote: > On 10/10/2018 06:13 PM, Zi Yan wrote: >> On 10 Oct 2018, at 0:05, Anshuman Khandual wrote: >> >>> On 10/09/2018 07:28 PM, Zi Yan wrote: cc: Naoya Horiguchi (who proposed to use !_PAGE_PRESENT && !_PAGE_PSE for x86 PMD migration en

[PATCH] x86/mm: annotate no_context with UNWIND_HINTS

2018-10-14 Thread Nick Desaulniers
Fixes the objtool warning: arch/x86/mm/fault.o: warning: objtool: no_context()+0x220: unreachable instruction Link: https://github.com/ClangBuiltLinux/linux/issues/204 Signed-off-by: Nick Desaulniers --- arch/x86/mm/fault.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [LKP] [MD] d595567dc4: mdadm-selftests.02lineargrow.fail

2018-10-14 Thread Shaohua Li
On Fri, Oct 12, 2018 at 04:58:44PM +0800, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: d595567dc4f0c1d90685ec1e2e296e2cad2643ac ("MD: fix invalid stored > role for a disk") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

Re: [PATCH 1/2] sysctl: add overflow detection to proc_get_long()

2018-10-14 Thread Al Viro
On Sun, Oct 14, 2018 at 08:53:46PM +0200, Christian Brauner wrote: > > Yecchh... First of all, the cast back to unsigned long long is completely > > pointless. What's more, > > Sorry, seriously asking: why? This was meant to handle the case where > sizeof(unsigned long long) != sizeof(unsigned

Re: [PATCH 2/2] clk: add 74aup1g157gw 2-input multiplexer as clock driver

2018-10-14 Thread Kuninori Morimoto
Hi Stephen > > > > + .recalc_rate= clk74_recalc_rate, > > > > + .get_parent = clk74_get_parent, > > > > +}; > > > > > > Can this all be handled by the 'gpio-mux-clock' compatible/driver? I > > > suppose it may need an update to add the rounding policy that you want > > > via

Re: [PATCH v8 3/5] Cleanup ISA string setting

2018-10-14 Thread Alan Kao
Hi Guenter, On Sat, Oct 13, 2018 at 05:02:05PM -0700, Guenter Roeck wrote: > Hi, > > With this patch in -next applied, I get the following error > when building riscv:defconfig. I guess what you meant was this commit: commit 0a5bee05fc67ce2044b8d91a18abbf14042da531 The modification in Makefile

Re: [PATCH 1/2] sysctl: add overflow detection to proc_get_long()

2018-10-14 Thread Christian Brauner
On October 15, 2018 12:13:25 AM GMT+02:00, Alexey Dobriyan wrote: >> > Yecchh... First of all, the cast back to unsigned long long is >completely >> > pointless. What's more, >> >> Sorry, seriously asking: why? > >In C everything is casted to the same type before doing an operation, Oh, ok th

[PATCH] kstrtox: delete unnecessary casts

2018-10-14 Thread Alexey Dobriyan
Implicit casts to the same type are done by the language if necessary. Signed-off-by: Alexey Dobriyan --- lib/kstrtox.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) --- a/lib/kstrtox.c +++ b/lib/kstrtox.c @@ -175,7 +175,7 @@ int _kstrtoul(const char *s, unsigned int

Re: [PATCH 2/2] mmc: uniphier-sd: avoid using broken DMA RX channel

2018-10-14 Thread Wolfram Sang
On Fri, Oct 12, 2018 at 11:57:38PM +0900, Masahiro Yamada wrote: > host->chan_rx is NULL when UNIPHIER_SD_CAP_BROKEN_DMA_RX quirk flag > is set. In this case, it should not set up DMA. > > Signed-off-by: Masahiro Yamada Acked-by: Wolfram Sang signature.asc Description: PGP signature

Re: [PATCH 1/2] mmc: uniphier-sd: fix DMA disabling

2018-10-14 Thread Wolfram Sang
On Fri, Oct 12, 2018 at 11:57:37PM +0900, Masahiro Yamada wrote: > Once DMA is enabled, it is not possible to disable it because > uniphier_sd_dma_endisable() always sets the DMA_ENABLE_DMASDRW bit > regardless of the argument 'enable'. It should disable DMA when > 'enable' is false. > > Signed-of

Re: [PATCH 0/2] mmc: uniphier-sd: two bug-fixes

2018-10-14 Thread Wolfram Sang
> In further testing in uniphier-sd.c, > I found my stupid mistakes. I don't have the uniphier HW but I still had a look at these patches. You never know if there is something interesting for SDHI in there :) > Can you squash this series into > 3fd784f745dd > "mmc: uniphier-sd: add UniPhier SD/e

Re: [PATCH 1/2] sysctl: add overflow detection to proc_get_long()

2018-10-14 Thread Alexey Dobriyan
> > Yecchh... First of all, the cast back to unsigned long long is completely > > pointless. What's more, > > Sorry, seriously asking: why? In C everything is casted to the same type before doing an operation, in this case comparison > This was meant to handle the case where > sizeof(unsigned

Re: [PATCH V12 0/8] C-SKY(csky) Linux Kernel Driver

2018-10-14 Thread Daniel Lezcano
On 14/10/2018 18:26, Guo Ren wrote: > Hi Daniel, > > Thx for reply and review. > > On Sat, Oct 13, 2018 at 10:50:34PM +0200, Daniel Lezcano wrote: >> On 12/10/2018 14:02, Guo Ren wrote: >>> This is about 12th patchset for C-SKY linux drivers and it should pair >>> with 8th kernel patchset. >> >>

Re: [PATCH v2] x86: Use assembly instruction mnemonics instead of .byte streams in arch_hweight.h

2018-10-14 Thread Borislav Petkov
On Sun, Oct 14, 2018 at 10:23:54PM +0200, Uros Bizjak wrote: > Recently the minimum required version of binutils was changed to 2.20, > which supports popcnt instruction mnemonics. The patch removes > corresponding #defines that implement popcnt instructions using > target-dependant > .byte stream

[PATCH RFC] err.h: document that PTR_ERR should only be used if IS_ERR returns true

2018-10-14 Thread Uwe Kleine-König
I have no idea about the rationale, but that's what LDD3 recommends. Signed-off-by: Uwe Kleine-König --- Hello, during a review I claimed that PTR_ERR should only be used if IS_ERR was already checked. The rationale isn't obvious though and Thierry suggested to keep the code as is and not introd

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-10-14 Thread Uwe Kleine-König
Hello, On Fri, Oct 12, 2018 at 06:08:54PM +0200, Uwe Kleine-König wrote: > > >> +if (PTR_ERR(imx_chip->pwm_gpiod) == -EPROBE_DEFER) { > > > > > > You must not use PTR_ERR on a value that might not contain an error > > > pointer. > > > > OK, thank you for valuable info. > > So it seems li

[PATCH v2] x86: Use assembly instruction mnemonics instead of .byte streams in arch_hweight.h

2018-10-14 Thread Uros Bizjak
Recently the minimum required version of binutils was changed to 2.20, which supports popcnt instruction mnemonics. The patch removes corresponding #defines that implement popcnt instructions using target-dependant .byte streams and uses unified instruction mnemonics instead. Tested by building x8

Re: [PATCH v13 3/8] clk: Use devm_ in the register fixed factor clock

2018-10-14 Thread Niklas Cassel
On Fri, Oct 12, 2018 at 03:08:17PM -0700, Stephen Boyd wrote: > Quoting Ricardo Salveti (2018-09-14 11:53:02) > > On Thu, Jun 14, 2018 at 6:55 PM wrote: > > > > > > From: Ilia Lin > > > > > > Use devm_clk_hw_register instead of clk_hw_register > > > to simplify the usage of this API. This way dri

Re: [PATCH] x86: Use assembly instruction mnemonics instead of .byte streams in arch_hweight.h

2018-10-14 Thread Uros Bizjak
On Sun, Oct 14, 2018 at 10:02 PM Borislav Petkov wrote: > > On Sun, Oct 14, 2018 at 09:15:00PM +0200, Uros Bizjak wrote: > > The ChangeLog says "real INSTRUCTION mnemonics", e.g. POPCNTQ and POPCNTL. > > Right, INSTRUCTION. > > > The compiler will generate the register name with the correct implie

Re: [PATCH] x86: Use assembly instruction mnemonics instead of .byte streams in arch_hweight.h

2018-10-14 Thread Borislav Petkov
On Sun, Oct 14, 2018 at 09:15:00PM +0200, Uros Bizjak wrote: > The ChangeLog says "real INSTRUCTION mnemonics", e.g. POPCNTQ and POPCNTL. Right, INSTRUCTION. > The compiler will generate the register name with the correct implied > width (e.g. %rax for long, %eax for int), so the assembler will b

Re: [PATCH] x86: Use assembly instruction mnemonics instead of .byte streams in arch_hweight.h

2018-10-14 Thread Uros Bizjak
On Sun, Oct 14, 2018 at 8:47 PM Borislav Petkov wrote: > > On Sun, Oct 14, 2018 at 08:35:10PM +0200, Uros Bizjak wrote: > > Recently the minimum required version of binutils was changed to 2.20, > > which supports popcnt instruction mnemonics. The patch removes > > all .byte #defines and uses real

[PATCH] staging: rtl8188eu: cleanup comparsions to false

2018-10-14 Thread Michael Straube
Cleanup remaining comparsions to false. if(x == false) -> if(!x) Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- drivers/staging/rtl8188eu/core/rtw_mlme.c | 12 ++-- drivers/staging/rtl8188eu/core/rtw_pwrctrl.c | 7 --- drivers/stagi

Re: [PATCH 1/2] sysctl: add overflow detection to proc_get_long()

2018-10-14 Thread Christian Brauner
On Sun, Oct 14, 2018 at 06:18:55PM +0100, Al Viro wrote: > On Sun, Oct 14, 2018 at 03:25:09PM +0200, Christian Brauner wrote: > > > +static unsigned long sysctl_strtoul_lenient(const char *cp, char **endp, > > + unsigned int base, bool *overflow) > > +{ > > +

Re: issues with suspend on Dell XPS 13 2-in-1

2018-10-14 Thread Dennis Gilmore
El vie, 12-10-2018 a las 17:46 +, mario.limoncie...@dell.com escribió: > > -Original Message- > > From: Dennis Gilmore > > Sent: Friday, October 12, 2018 8:39 AM > > To: Pandruvada, Srinivas > > Cc: linux-kernel@vger.kernel.org; linux-a...@vger.kernel.org; > > Limonciello, Mario > > Su

Re: [PATCH] x86: Use assembly instruction mnemonics instead of .byte streams in arch_hweight.h

2018-10-14 Thread Borislav Petkov
On Sun, Oct 14, 2018 at 08:35:10PM +0200, Uros Bizjak wrote: > Recently the minimum required version of binutils was changed to 2.20, > which supports popcnt instruction mnemonics. The patch removes > all .byte #defines and uses real instruction mnemonics instead. What is "real insertion mnemonics

[PATCH] x86/entry/64: Further improve paranoid_entry comments

2018-10-14 Thread Andy Lutomirski
Commit 16561f27f94e ("x86/entry: Add some paranoid entry/exit CR3 handling comments") added some comments. This improves them a bit: - When I first read the new comments, it was unclear to me whether they were referring to the case where paranoid_entry interrupted other entry code or where

  1   2   3   4   5   6   >