[PATCH -next] irqchip/tango: Fix potential NULL pointer dereference

2019-01-29 Thread YueHaibing
There is a potential NULL pointer dereference in case kzalloc() fails and returns NULL. Fixes: 4bba66899ac6 ("irqchip/tango: Add support for Sigma Designs SMP86xx/SMP87xx interrupt controller") Signed-off-by: YueHaibing --- drivers/irqchip/irq-tango.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH -next] ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data"

2019-01-29 Thread YueHaibing
Since commit 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") kfree, iounmap, clk_put etc no need do any more in remove path. Fixes: 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") Signed-off-by: YueHaibing --- arch/arm/plat-pxa/ssp.c | 9 - 1 file changed, 9 deletions(-) diff

Re: [PATCH v2 2/2] staging: erofs: complete POSIX ACL support

2019-01-29 Thread Gao Xiang
Hi, On 2019/1/29 2:30, Dan Carpenter wrote: > Are you serious? The standard fault injection doesn't do that??? > > Please fix it instead of creating a duplicate better implementation > which only your filesystem can use. I would have thought that obviously > any fault injection framework could

[PATCH 2/2] ASoC: sprd: Add Spreadtrum audio DMA platfrom driver

2019-01-29 Thread Baolin Wang
The Spreadtrum DMA engine uses the link-list mode to support audio playback or capture, thus this patch adds audio DMA platform support for CPU DAI to trigger DMA link-list transfer. Signed-off-by: Baolin Wang --- sound/soc/Kconfig |1 + sound/soc/Makefile|1 +

[PATCH 1/2] dt-bindings: ASoC: Add Spreadtrum DMA platform documentation

2019-01-29 Thread Baolin Wang
Add documentation for Spreadtrum DMA platform driver. Signed-off-by: Baolin Wang --- .../devicetree/bindings/sound/sprd-pcm.txt | 23 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/sprd-pcm.txt diff --git

[PATCHv3 00/27] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is aim to refactor the Mobiveil driver and add PCIe support for NXP Layerscape series SoCs integrated Mobiveil's PCIe Gen4 controller. Hou Zhiqiang (27): PCI: mobiveil: uniform the register accessors PCI: mobiveil: format the code without function change

[PATCHv3 06/27] PCI: mobiveil: replace the resource list iteration function

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang As it won't delete any node in this iteration, replaced the function resource_list_for_each_entry_safe() with the resource_list_for_each_entry(). Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1

[PATCHv3 05/27] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang It should get PCI base address from the DT node property 'ranges' to setup MEM/IO outbound windows instead of always zero. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No

[PATCHv3 02/27] PCI: mobiveil: format the code without function change

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Just format the code without functionality change. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 261 + 1 file changed, 137 insertions(+), 124 deletions(-) diff --git

[PATCH] svm: Fix AVIC DFR and LDR handling

2019-01-29 Thread Suthikulpanit, Suravee
Current SVM AVIC driver makes two incorrect assumptions: 1. APIC LDR register cannot be zero 2. APIC DFR for all vCPUs must be the same LDR=0 means the local APIC does not support logical destination mode. Therefore, the driver should mark any previously assigned logical APIC ID table entry

[PATCHv3 01/27] PCI: mobiveil: uniform the register accessors

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang It's confused that R/W some registers by csr_readl()/csr_writel(), while others by read_paged_register()/write_paged_register(). Actually the low 3KB of 4KB PCIe configure space can be accessed directly and high 1KB is paging area. So this patch uniformed the register

[PATCHv3 08/27] PCI: mobiveil: use the 1st inbound window for MEM inbound transactions

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang The inbound windows have different register set with outbound windows. This patch change the MEM inbound window to the first one. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 2 +- 1 file changed, 1

[PATCHv3 09/27] PCI: mobiveil: correct inbound/outbound window setup routines

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Outbound window routine: - Removed unused var definition and register read operations. - Added the upper 32-bit cpu address setup of the window. - Instead of blindly write, only change the fields specified. - Masked the lower bits of window size in case override the

[PATCHv3 07/27] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang As the .map_bus() use the WIN_NUM_0 for CFG transactions, it's better passing WIN_NUM_0 explicitly when initialize the CFG outbound window. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 5 ++--- 1 file

[PATCHv3 03/27] PCI: mobiveil: correct the returned error number

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang This patch corrected the returned error number by convention, and removed a unnecessary error check. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 8 +++- 1 file changed, 3 insertions(+), 5

Re: [PATCH 08/11] btrfs: plumb level through the compression interface

2019-01-29 Thread Nikolay Borisov
On 28.01.19 г. 23:24 ч., Dennis Zhou wrote: > Zlib compression supports multiple levels, but doesn't require changing > in how a workspace itself is created and managed. Zstd introduces a > different memory requirement such that higher levels of compression > require more memory. This requires

[PATCHv3 18/27] PCI: mobiveil: continue to initialize the host upon no PCIe link

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Sometimes there is not a PCIe Endpoint in the PCIe slot, so do not exit when the PCIe link is not up. And degrade the print level of link up info. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change

[PATCHv3 15/27] dt-bindings: pci: mobiveil: change gpio_slave and apb_csr to optional

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Change the "gpio_slave" and "apb_csr" to optional, the "gpio_slave" is not used in current code, and "apb_csr" is not used by some platforms. Signed-off-by: Hou Zhiqiang Acked-by: Subrahmanya Lingappa Acked-by: Rob Herring Reviewed-by: Minghuan Lian --- V3: - No change

[PATCHv3 11/27] PCI: mobiveil: only fix up the Class Code field

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Fix up the Class Code to PCI bridge, do not change the Revision ID. And move the fixup to mobiveil_host_init function. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change

[PATCH] svm: Fix improper check when deactivate AVIC

2019-01-29 Thread Suthikulpanit, Suravee
The function svm_refresh_apicv_exec_ctrl() always returning prematurely as kvm_vcpu_apicv_active() always return false when calling from the function arch/x86/kvm/x86.c:kvm_vcpu_deactivate_apicv(). This is because the apicv_active is set to false just before calling refresh_apicv_exec_ctrl().

Re: [linux-sunxi] [PATCH v2 1/2] media: v4l: Add definitions for the HEVC slice format and controls

2019-01-29 Thread Maxime Ripard
On Tue, Jan 29, 2019 at 04:44:35PM +0900, Alexandre Courbot wrote: > On Fri, Jan 25, 2019 at 10:04 PM Paul Kocialkowski > > On Thu, 2019-01-24 at 20:23 +0800, Ayaka wrote: > > > > > > Sent from my iPad > > > > > > > On Jan 24, 2019, at 6:27 PM, Paul Kocialkowski > > > > wrote: > > > > > > > >

[PATCHv3 17/27] PCI: mobiveil: fix the checking of valid device

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Avoid to issue CFG transactions to link partner when the PCIe link is not up. And allow CFG transactions to all functions of Endpoint implemented multiple functions. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang

Re: [PATCH] mm: Prevent mapping typed pages to userspace

2019-01-29 Thread Kees Cook
On Tue, Jan 29, 2019 at 6:38 PM Matthew Wilcox wrote: > > Pages which use page_type must never be mapped to userspace as it would > destroy their page type. Add an explicit check for this instead of > assuming that kernel drivers always get this right. > > Signed-off-by: Matthew Wilcox

[PATCHv3 16/27] PCI: mobiveil: refactor Mobiveil PCIe Host Bridge IP driver

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang As the Mobiveil PCIe controller support RC DAUL mode, and to make platforms which integrated the Mobiveil PCIe IP more easy to add their drivers, this patch moved the Mobiveil driver to a new directory 'drivers/pci/controller/mobiveil' and refactored it according to the

[PATCHv3 10/27] PCI: mobiveil: fix the INTx process error

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang In the loop block, there is not code change the loop key, this patch updated the loop key by re-read the INTx status register. This patch also change to clear the handled INTx status. Note: Need MV to test this fix. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe

[PATCHv3 13/27] PCI: mobiveil: move irq chained handler setup out of DT parse

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Move irq_set_chained_handler_and_data() out of DT parse function. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCHv3 14/27] PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang The reset value is all zero, so set a workable value for Primary, Secondary and Subordinate bus numbers. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 6 ++ 1 file changed, 6 insertions(+) diff

[PATCHv3 12/27] PCI: mobiveil: move out the link up waiting from mobiveil_host_init

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Host initial sequence does not depend on PCIe link up, so move it to the place just before the enumeration. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/pcie-mobiveil.c | 15 +++ 1 file changed, 7

[PATCHv3 21/27] PCI: mobiveil: make mobiveil_host_init can be used to re-init host

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Make the mobiveil_host_init function can be used to re-init host controller's PAB and GPEX CSR register block, as NXP integrated Mobiveil IP has to reset and then re-init the PAB and GPEX CSR registers upon Hot-reset. Signed-off-by: Hou Zhiqiang --- V3: - Removed the

[PATCHv3 22/27] dt-bindings: pci: Add NXP Layerscape SoCs PCIe Gen4 controller

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe Gen4 controller DT bindings of NXP Layerscape SoCs. Signed-off-by: Hou Zhiqiang --- V3: - Change back to use an new doc for Layerscape PCIe Gen4 DT bindings. - Switch the order of "csr_axi_slave" and "config_axi_slave". .../bindings/pci/layerscape-pci-gen4.txt

[PATCHv3 25/27] PCI: mobiveil: ls_pcie_g4: add Workaround for A-011451

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang When LX2 PCIe controller is sending multiple split completions and ACK latency expires indicating that ACK should be send at priority. But because of large number of split completions and FC update DLLP, the controller does not give priority to ACK transmission. This results

[PATCHv3 24/27] PCI: mobiveil: ls_pcie_g4: add Workaround for A-011577

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang PCIe configuration access to non-existent function triggered SERROR interrupt exception. Workaround: Disable error reporting on AXI bus during the Vendor ID read transactions in enumeration. This ERRATA is only for LX2160A Rev1.0, and it will be fixed in Rev2.0.

[PATCHv3 27/27] arm64: defconfig: Enable CONFIG_PCI_LAYERSCAPE_GEN4

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Enable the PCIe Gen4 controller driver for Layerscape SoCs. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig

[PATCHv3 23/27] PCI: mobiveil: add PCIe Gen4 RC driver for NXP Layerscape SoCs

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang This PCIe controller is based on the Mobiveil GPEX IP, which is compatible with the PCI Express™ Base Specification, Revision 4.0. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change drivers/pci/controller/mobiveil/Kconfig | 10 +

[PATCHv3 26/27] arm64: dts: freescale: lx2160a: add pcie DT nodes

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang The LX2160A integrated 6 PCIe Gen4 controllers. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 ++ 1 file changed, 163 insertions(+) diff --git

[PATCHv3 19/27] PCI: mobiveil: disabled IB and OB windows set by bootloader

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang Disabled all inbound and outbound windows before set up the windows in kernel, in case transactions match the window set by bootloader. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change .../controller/mobiveil/pcie-mobiveil-host.c | 7 +++

[PATCHv3 20/27] PCI: mobiveil: add Byte and Half-Word width register accessors

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang As there are some Byte and Half-Work width registers in PCIe configuration space, add Byte and Half-Word width register accessors. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change .../pci/controller/mobiveil/pcie-mobiveil.h | 20

[PATCHv3 04/27] PCI: mobiveil: remove flag MSI_FLAG_MULTI_PCI_MSI

2019-01-29 Thread Z.q. Hou
From: Hou Zhiqiang The current code does not support multiple MSIs, so remove the corresponding flag from the msi_domain_info structure. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V3: - No change

Re: [PATCH 1/7] binder: create userspace-to-binder-buffer copy function

2019-01-29 Thread Dan Carpenter
On Mon, Jan 28, 2019 at 04:49:28PM -0800, Todd Kjos wrote: > +/** > + * binder_alloc_copy_user_to_buffer() - copy src user to tgt user > + * @alloc: binder_alloc for this proc > + * @buffer: binder buffer to be accessed > + * @buffer_offset: offset into @buffer data > + * @from: userspace pointer

Re: [PATCH] lightnvm: pblk: fix race condition on GC

2019-01-29 Thread Javier González
> On 27 Jan 2019, at 07.54, Heiner Litz wrote: > > This patch fixes a race condition where a write is mapped to the last > sectors of a line. The write is synced to the device but the L2P is not > updated yet. When the line is garbage collected before the L2P update is > performed, the sectors

Re: [PATCH v2] irqchip/gic-v4: fix occasional VLPI drop

2019-01-29 Thread Marc Zyngier
On Tue, 29 Jan 2019 01:32:55 +, Heyi Guo wrote: > > Hi Marc, > > Any comments? None so far, I've queued this to let it soak, and will send it as a fix if nothing else breaks. Thanks, M. > > Thanks, > > Heyi > > > On 2019/1/24 21:37, Heyi Guo wrote: > > 1. In current

Re: [PATCH 09/11] btrfs: change set_level() to bound the level passed in

2019-01-29 Thread Nikolay Borisov
On 28.01.19 г. 23:24 ч., Dennis Zhou wrote: > Currently, the only user of set_level() is zlib which sets an internal > workspace parameter. As level is now plumbed into get_workspace(), this > can be handled there rather than separately. > > This repurposes set_level() to bound the level

Re: [PATCH 10/11] btrfs: zstd use the passed through level instead of default

2019-01-29 Thread Nikolay Borisov
On 28.01.19 г. 23:24 ч., Dennis Zhou wrote: > Zstd currently only supports the default level of compression. This > patch switches to using the level passed in for btrfs zstd > configuration. > > Zstd workspaces now keep track of the requested level as this can differ > from the size of the

RE: [PATCH 3/3] devfreq: add mediatek cci devfreq

2019-01-29 Thread MyungJoo Ham
>From: "Andrew-sh.Cheng" > >For big/little cpu cluster architecture, >not only CPU frequency, but CCI frequency will also affect performance. > >Little cores and cci share the same buck in Mediatek mt8183 IC, >so we add a CCI devfreq which will get notification when buck voltage >is changed, then

Re: [PATCH 07/11] btrfs: move to fn pointers for get/put workspaces

2019-01-29 Thread Nikolay Borisov
On 28.01.19 г. 23:24 ч., Dennis Zhou wrote: > The previous patch added generic helpers for get_workspace() and > put_workspace(). Now, we can migrate ownership of the workspace_manager > to be in the compression type code as the compression code itself > doesn't care beyond being able to get a

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-01-29 Thread Tomasz Figa
On Tue, Jan 29, 2019 at 1:28 AM Stanimir Varbanov wrote: > > Hi Tomasz, > > On 1/28/19 9:38 AM, Tomasz Figa wrote: > > On Fri, Jan 25, 2019 at 7:25 PM Stanimir Varbanov > > wrote: > >> > >> Hi Tomasz, > >> > >> Thanks for the comments! > >> > >> On 1/25/19 9:59 AM, Tomasz Figa wrote: > >>> .Hi

[PATCH v2] drm/qxl: use ttm_tt

2019-01-29 Thread Gerd Hoffmann
qxl device will not dma, so we don't need ttm_dma_tt. Go use ttm_tt instead, to avoid wasting resources (swiotlb bounce buffers for example). Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_ttm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] mm,memory_hotplug: Fix scan_movable_pages for gigantic hugepages

2019-01-29 Thread Oscar Salvador
On Mon, Jan 28, 2019 at 02:56:17PM -0800, Andrew Morton wrote: > > --- > a/mm/memory_hotplug.c~mmmemory_hotplug-fix-scan_movable_pages-for-gigantic-hugepages-fix > +++ a/mm/memory_hotplug.c > @@ -1305,28 +1305,27 @@ int test_pages_in_a_zone(unsigned long s > static unsigned long

Re: linux-next: build warning after merge of the spi tree

2019-01-29 Thread Stephen Rothwell
Hi Yogesh, On Tue, 29 Jan 2019 06:57:51 + Yogesh Narayan Gaur wrote: > > > WARNING: modpost: missing MODULE_LICENSE() in drivers/spi/spi-nxp-fspi.o > > see include/linux/module.h for more information > > > Can someone help in pointing out that why above warning message is coming for >

Re: [PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description

2019-01-29 Thread Sugaya, Taichi
Hi, On 2019/01/22 20:50, Russell King - ARM Linux admin wrote: On Tue, Jan 22, 2019 at 08:36:03PM +0900, Sugaya, Taichi wrote: Hi On 2018/12/04 22:32, Rob Herring wrote: On Tue, Dec 4, 2018 at 5:30 AM Sugaya, Taichi wrote: Hi On 2018/12/04 0:49, Rob Herring wrote: On Mon, Dec 3, 2018 at

Re: [PATCH] drm/msm: fix building with DEBUG_FS=n

2019-01-29 Thread Rasmus Villemoes
ping On 15/01/2019 16.46, Rasmus Villemoes wrote: > With CONFIG_DEV_COREDUMP=y and CONFIG_DEBUG_FS=n, building fails: > > drivers/gpu/drm/msm/adreno/a2xx_gpu.c:428:4: error: ‘struct msm_gpu_funcs’ > has no member named ‘show’ >.show = adreno_show, > ^~~~ >

[PATCH] spi: spi-mem: spi-nxp-fspi: add module license info

2019-01-29 Thread Yogesh Narayan Gaur
Add MODULE_LICENSE info to fix below warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/spi/spi-nxp-fspi.o Signed-off-by: Yogesh Narayan Gaur --- drivers/spi/spi-nxp-fspi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c

Re: [PATCH v3 2/3] drivers: platform: goldfish: goldfish_address_space: add a driver

2019-01-29 Thread Roman Kiryanov
> How does QEMU do this today? There isn't a virtio or some other virtual > memory device that allows memory regions to be shared? I can't believe > that there isn't one yet. If not, then this should be some kind of > "generic" QEMU memory device, not a "goldfish" specific one, right? I also

[PATCH] init/calibrate.c - provide proper prototype.

2019-01-29 Thread valdis . kletnieks
Sparse issues a warning: CHECK init/calibrate.c init/calibrate.c:271:28: warning: symbol 'calibration_delay_done' was not declared. Should it be static? The actual issue is that it's a __weak symbol that archs can override (in fact, ARM does so), but no prototype is provided. Let's provide

[PATCH v4 1/2] staging: erofs: use xattr_prefix to wrap up

2019-01-29 Thread Gao Xiang
Let's use xattr_prefix instead of open code. No logic changes. Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- [resend v2 as v4] change log v2: - remove the confusing line according to Dan Carpenter; drivers/staging/erofs/xattr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH v4 2/2] staging: erofs: complete POSIX ACL support

2019-01-29 Thread Gao Xiang
Let's add .get_acl() to read the file's acl from its xattrs to make POSIX ACL usable. Here is the on-disk detail, fullname: system.posix_acl_access struct erofs_xattr_entry: .e_name_len = 0 .e_name_index = EROFS_XATTR_INDEX_POSIX_ACL_ACCESS (2) fullname: system.posix_acl_default

[PATCH v4 1/2] spi: support inter-word delay requirement for devices

2019-01-29 Thread Jonas Bonn
Some devices are slow and cannot keep up with the SPI bus and therefore require a short delay between words of the SPI transfer. The example of this that I'm looking at is a SAMA5D2 with a minimum SPI clock of 400kHz talking to an AVR-based SPI slave. The AVR cannot put bytes on the bus fast

[PATCH v4 0/2] spi: support inter-word delays

2019-01-29 Thread Jonas Bonn
Changed in v4: * Rename word_delay to word_delay_us and slot it in _beside_ the existing word_delay parameter in spi_transfer (see commit message for more info). * Add code to __spi_validate to make sure transfer and device align with respect to the word_delay_us parameter Changed in v3: *

[PATCH v4 2/2] spi-atmel: support inter-word delay

2019-01-29 Thread Jonas Bonn
If the SPI slave requires an inter-word delay, configure the DLYBCT register accordingly. Tested on a SAMA5D2 board (derived from SAMA5D2-Xplained reference board). Signed-off-by: Jonas Bonn CC: Nicolas Ferre CC: Mark Brown CC: Alexandre Belloni CC: Ludovic Desroches CC:

RE: linux-next: build warning after merge of the spi tree

2019-01-29 Thread Yogesh Narayan Gaur
Hi Stephen, > -Original Message- > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > Sent: Tuesday, January 29, 2019 1:57 PM > To: Yogesh Narayan Gaur > Cc: Mark Brown ; Linux Next Mailing List n...@vger.kernel.org>; Linux Kernel Mailing List > ; > Frieder Schrempf ; Boris

Re: [PATCH] drm/exynos: gsc: Variable "gscblk_cfg" in function gsc_set_gscblk_fimd_wb() could be uninitialized

2019-01-29 Thread Marek Szyprowski
Hi On 2019-01-28 19:28, Yizhuo wrote: > In function gsc_set_gscblk_fimd_wb(), local variable "gscblk_cfg" > could be uninitialized of function regmap_read returns -EINVAL. > However, this value will be write to the register after "or" > operation. This is potentially unsafe. > > Signed-off-by:

Re: [PATCH V2 2/6] clocksource: tegra: add Tegra210 timer driver

2019-01-29 Thread Peter De Schrijver
On Mon, Jan 28, 2019 at 04:09:08PM +0100, Thierry Reding wrote: ... > > Up to here this is a duplicate of timer-tegra20.c. And a lot of > tegra210_timer_init() is the same as tegra20_timer_init() as well. Can't > we unify the two drivers instead? > > The power cycle restrictions of the

Re: [PATCH v4 2/2] staging: erofs: complete POSIX ACL support

2019-01-29 Thread Dan Carpenter
On Tue, Jan 29, 2019 at 04:35:20PM +0800, Gao Xiang wrote: > Let's add .get_acl() to read the file's acl from its xattrs > to make POSIX ACL usable. > > Here is the on-disk detail, > fullname: system.posix_acl_access > struct erofs_xattr_entry: > .e_name_len = 0 > .e_name_index =

[PATCH 3/5] dma: Introduce dma_max_mapping_size()

2019-01-29 Thread Joerg Roedel
From: Joerg Roedel The function returns the maximum size that can be mapped using DMA-API functions. The patch also adds the implementation for direct DMA and a new dma_map_ops pointer so that other implementations can expose their limit. Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Joerg

[PATCH 5/5] virtio-blk: Consider virtio_max_dma_size() for maximum segment size

2019-01-29 Thread Joerg Roedel
From: Joerg Roedel Segments can't be larger than the maximum DMA mapping size supported on the platform. Take that into account when setting the maximum segment size for a block device. Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Joerg Roedel --- drivers/block/virtio_blk.c | 10

[PATCH 2/5] swiotlb: Add is_swiotlb_active() function

2019-01-29 Thread Joerg Roedel
From: Joerg Roedel This function will be used from dma_direct code to determine the maximum segment size of a dma mapping. Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Joerg Roedel --- include/linux/swiotlb.h | 6 ++ kernel/dma/swiotlb.c| 9 + 2 files changed, 15

[PATCH 0/5 v4] Fix virtio-blk issue with SWIOTLB

2019-01-29 Thread Joerg Roedel
Hi, here is the fourth version of this patch-set. Previous versions can be found here: V1: https://lore.kernel.org/lkml/20190110134433.15672-1-j...@8bytes.org/ V2: https://lore.kernel.org/lkml/20190115132257.6426-1-j...@8bytes.org/ V3:

[PATCH v2 9/9] gpio: mockup: rework debugfs interface

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Modify the way the debugfs interface works in gpio-mockup. Introduce the concept of dummy pull config which will keep the mockup lines in known state. The pull values can be modified by writing to the debugfs files corresponding to lines. Lines in input mode always

[PATCH 1/5] swiotlb: Introduce swiotlb_max_mapping_size()

2019-01-29 Thread Joerg Roedel
From: Joerg Roedel The function returns the maximum size that can be remapped by the SWIOTLB implementation. This function will be later exposed to users through the DMA-API. Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Joerg Roedel --- include/linux/swiotlb.h | 5 +

Re: [RFC PATCH v2 0/4] mm, memory_hotplug: allocate memmap from hotadded memory

2019-01-29 Thread Oscar Salvador
On Fri, Jan 25, 2019 at 09:53:35AM +0100, David Hildenbrand wrote: Hi David, > I only had a quick glimpse. I would prefer if the caller of add_memory() > can specify whether it would be ok to allocate vmmap from the range. > This e.g. allows ACPI dimm code to allocate from the range, however >

[PATCH v2 8/9] gpio: mockup: change the signature of unlocked get/set helpers

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The unlocked variants only get called from places where we already have the pointer to the underlying gpio_mockup_chip structure, so take it as parameter instead of struct gpio_chip. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 19

[PATCH v2 4/9] gpio: mockup: add locking

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While no user reported any race condition problems with gpio-mockup, let's be on the safe side and use a mutex when performing any changes on the dummy chip structures. Suggested-by: Uwe Kleine-König Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c

[PATCH v2 5/9] gpio: mockup: implement get_multiple()

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We already support set_multiple(). Implement get_multiple() as well. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index

[PATCH 4/5] virtio: Introduce virtio_max_dma_size()

2019-01-29 Thread Joerg Roedel
From: Joerg Roedel This function returns the maximum segment size for a single dma transaction of a virtio device. The possible limit comes from the SWIOTLB implementation in the Linux kernel, that has an upper limit of (currently) 256kb of contiguous memory it can map. Other DMA-API

[PATCH v2 0/9] gpio: mockup: improve the user-space testing interface

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This series aims at reworking the gpio-mockup debugfs interface. The reason for that is the fact that certain known problems with this testing module exist and the user-space tests are broken anyway after commit fa38869b0161 ("gpiolib: Don't support irq sharing for

[PATCH v2 6/9] gpio: mockup: don't create the debugfs link named after the label

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski User-space tests no longer use it and we're breaking the interface anyway. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c

[PATCH v2 7/9] gpio: mockup: change the type of 'offset' to unsigned int

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This field can never be negative. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mockup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 0317917a3678..433adb3b4617 100644 ---

[PATCH v2 2/9] irq/irq_sim: use irq domain

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Delegate the offset to virq number mapping to the provided framework instead of handling it locally. Use the legacy domain as we want to preallocate the irq descriptors. Signed-off-by: Bartosz Golaszewski --- include/linux/irq_sim.h | 6 +-- kernel/irq/irq_sim.c

[PATCH v2 1/9] irq/irq_sim: don't share the irq_chip structure between simulators

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to support multiple instances of irq_sim. Make struct irq_chip part of the irq_sim structure. Signed-off-by: Bartosz Golaszewski --- include/linux/irq_sim.h | 2 ++ kernel/irq/irq_sim.c| 12 +--- 2 files changed, 7 insertions(+), 7 deletions(-)

[PATCH v2 3/9] irq/irq_sim: provide irq_sim_fire_type()

2019-01-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Provide a more specialized variant of irq_sim_fire() that allows to specify the type of the fired interrupt. The type is stored in the dummy irq context struct via the set_type callback. Signed-off-by: Bartosz Golaszewski --- include/linux/irq_sim.h | 9 -

Re: [PATCH] spi: spi-mem: spi-nxp-fspi: add module license info

2019-01-29 Thread Schrempf Frieder
On 29.01.19 09:31, Yogesh Narayan Gaur wrote: > Add MODULE_LICENSE info to fix below warning: > WARNING: modpost: missing MODULE_LICENSE() in drivers/spi/spi-nxp-fspi.o > > Signed-off-by: Yogesh Narayan Gaur > --- > drivers/spi/spi-nxp-fspi.c | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [RFC] Don't print sample_type bits in non-group events not set in the group's was Re: [PATCH] perf, script: Fix crash with printing mixed trace point and other events

2019-01-29 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 28, 2019 at 09:00:37AM -0800, Andi Kleen escreveu: > > > also now it won't make sample for slave events > > > with zero value/period read > > > > > > note the patch needs to be split into more patches, > > > sending it all together for discussion over the solution > > > > any

[PATCH] lightnvm: pblk: extend line wp balance check

2019-01-29 Thread hans
From: Hans Holmberg pblk stripes writes of minimal write size across all non-offline chunks in a line, which means that the maximum write pointer delta should not exceed the minimal write size. Extend the line write pointer balance check to cover this case. Signed-off-by: Hans Holmberg ---

Re: [PATCH v2] drm/qxl: use ttm_tt

2019-01-29 Thread Noralf Trønnes
Den 29.01.2019 09.25, skrev Gerd Hoffmann: > qxl device will not dma, so we don't need ttm_dma_tt. Go use ttm_tt > instead, to avoid wasting resources (swiotlb bounce buffers for > example). > > Signed-off-by: Gerd Hoffmann > --- Acked-by: Noralf Trønnes

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggered

2019-01-29 Thread Peter Zijlstra
On Mon, Jan 28, 2019 at 04:53:19PM +0100, Thomas Gleixner wrote: > Right after staring long enough at it, the commit simply forgot to give > __rt_mutex_start_proxy_lock() the same treatment as it gave to > rt_mutex_wait_proxy_lock(). > > Patch below cures that. Yes, that is a very nice

Re: Author of GPC-Slots2 promises to sue "John Doe" who violated GPL recission.

2019-01-29 Thread linuxgpletc
Some updates: http://8ch.net/tech/res/1018729.html#1024398 Anonymous 01/29/19 (Tue) 08:32:45 No.1024591 1024400 I rescind the license from you. I am going to sue you if I find out who you are. 1024400 #This program is free software; you can redistribute it and/or #modify it under

Re: [PATCH 01/10] soc: mediatek: add mt8183 compatible name

2019-01-29 Thread CK Hu
Hi, Bibby: On Tue, 2019-01-29 at 15:31 +0800, Bibby Hsieh wrote: > add mt8183 compatible name > > Signed-off-by: Bibby Hsieh > --- > drivers/mailbox/mtk-cmdq-mailbox.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c >

Re: [PATCH v2 0/2] occ: FSI and hwmon: Fix license headers

2019-01-29 Thread Thomas Gleixner
On Mon, 28 Jan 2019, Eddie James wrote: > From: Eddie James > > Source files for the FSI OCC and OCC hwmon drivers had a combination of bad > license information and missing IBM copyright. Correct the licenses. Thanks for cleaning that up! tglx

Re: [PATCH v4 2/2] staging: erofs: complete POSIX ACL support

2019-01-29 Thread Gao Xiang
On 2019/1/29 16:43, Dan Carpenter wrote: > On Tue, Jan 29, 2019 at 04:35:20PM +0800, Gao Xiang wrote: >> Let's add .get_acl() to read the file's acl from its xattrs >> to make POSIX ACL usable. >> >> Here is the on-disk detail, >> fullname: system.posix_acl_access >> struct erofs_xattr_entry:

Re: [PATCH 1/4] IOMMU: Make dwo drivers use stateless device links

2019-01-29 Thread Marek Szyprowski
Hi Rafael, On 2019-01-29 00:05, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The device links used by rockchip-iommu and exynos-iommu are > completely managed by these drivers within the IOMMU framework, > so there is no reason to involve the driver core in the management > of these

Re: [PATCH -next] irqchip/tango: Fix potential NULL pointer dereference

2019-01-29 Thread Marc Zyngier
On Tue, 29 Jan 2019 08:01:22 +, YueHaibing wrote: > > There is a potential NULL pointer dereference in case kzalloc() > fails and returns NULL. > > Fixes: 4bba66899ac6 ("irqchip/tango: Add support for Sigma Designs > SMP86xx/SMP87xx interrupt controller") > Signed-off-by: YueHaibing > ---

[PATCH v2 2/4] mfd: max77620: add documentation for backup battery charging

2019-01-29 Thread Mark Zhang
Adding documentation for 3 new backup battery charging dts properties: - maxim,backup-battery-charging-current - maxim,backup-battery-charging-voltage - maxim,backup-battery-output-resister Signed-off-by: Mark Zhang --- .../devicetree/bindings/mfd/max77620.txt | 20 +++ 1

[PATCH v2 3/4] mfd: max77620: Add low battery monitor support

2019-01-29 Thread Mark Zhang
This patch adds PMIC configurations for low-battery monitoring by handling max77620 register CNFGGLBL1. Signed-off-by: Laxman Dewangan Signed-off-by: Venkat Reddy Talla Signed-off-by: Mark Zhang --- drivers/mfd/max77620.c | 57 +- 1 file changed, 56

[PATCH v2 0/4] Add max77620 charging & low battery support

2019-01-29 Thread Mark Zhang
This patch set adds support for max77620 backup battery charging and low battery monitoring. Changes in v2: - Add devicetree binding documentation Mark Zhang (4): mfd: max77620: Add backup battery charger support mfd: max77620: add documentation for backup battery charging mfd: max77620:

[PATCH v2 1/4] mfd: max77620: Add backup battery charger support

2019-01-29 Thread Mark Zhang
Add PMIC configurations for backup battery charger, which is a constant voltage and constant current style charger with a series output resistance. The max77620 register CNFGBBC(addr: 0x04) defines the parameters of backup battery charger. This patch adds support for it. Signed-off-by: Laxman

[PATCH v2 4/4] mfd: max77620: add documentation for low battery monitoring

2019-01-29 Thread Mark Zhang
Adding documentation for low battery monitor properties: - maxim,low-battery-dac-enable - maxim,low-battery-dac-disable - maxim,low-battery-shutdown-enable - maxim,low-battery-shutdown-disable - maxim,low-battery-reset-enable - maxim,low-battery-reset-disable Signed-off-by: Mark Zhang ---

Re: [PATCH] media: ov5640: Fix set 15fps regression

2019-01-29 Thread Maxime Ripard
On Mon, Jan 28, 2019 at 09:33:04AM +0100, Jacopo Mondi wrote: > Hi everyone, > > On Mon, Jan 28, 2019 at 01:20:37PM +0530, Jagan Teki wrote: > > On Fri, Jan 25, 2019 at 9:10 PM Maxime Ripard > > wrote: > > > > > > On Thu, Jan 24, 2019 at 11:28:01PM +0530, Jagan Teki wrote: > > > > The

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggered

2019-01-29 Thread Heiko Carstens
On Mon, Jan 28, 2019 at 04:53:19PM +0100, Thomas Gleixner wrote: > On Mon, 28 Jan 2019, Peter Zijlstra wrote: > > On Mon, Jan 28, 2019 at 02:44:10PM +0100, Peter Zijlstra wrote: > > > On Thu, Nov 29, 2018 at 12:23:21PM +0100, Heiko Carstens wrote: > > > > > > > And indeed, if I run only this test

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-29 Thread Miquel Raynal
Hi Andrew, Andrew Lunn wrote on Mon, 28 Jan 2019 18:42:46 +0100: > On Mon, Jan 28, 2019 at 04:57:49PM +0100, Miquel Raynal wrote: > > Hi Andrew, > > > > Thanks for helping! > > > > Andrew Lunn wrote on Mon, 28 Jan 2019 15:44:17 +0100: > > > > > > I don't see where VLAN and bridge

Re: [PATCH] perf tests: evsel-tp-sched: Fix bitwise operator

2019-01-29 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 23, 2019 at 09:33:38AM +0100, Jiri Olsa escreveu: > On Tue, Jan 22, 2019 at 05:34:39PM -0600, Gustavo A. R. Silva wrote: > > Notice that the use of the bitwise OR operator '|' always leads to > > true in this particular case, which seems a bit suspicious due to > > the context in which

  1   2   3   4   5   6   7   8   9   10   >