Re: [PATCH kernel v6 18/20] vfio_pci: Allow mapping extra regions

2018-12-20 Thread Christoph Hellwig
On Wed, Dec 19, 2018 at 09:43:58AM -0700, Alex Williamson wrote: > [cc +kvm, +lkml] > > Sorry, just noticed these are only visible on ppc lists or for those > directly cc'd. vfio's official development list is the kvm list. I'll > let spapr specific changes get away without copying this list,

Re: [PATCH net-next] xfrm6_tunnel: Fix spi check in __xfrm6_tunnel_alloc_spi

2018-12-20 Thread Steffen Klassert
On Wed, Dec 19, 2018 at 02:45:09PM +0800, YueHaibing wrote: > gcc warn this: > > net/ipv6/xfrm6_tunnel.c:143 __xfrm6_tunnel_alloc_spi() warn: > always true condition '(spi <= 4294967295) => (0-u32max <= u32max)' > > 'spi' is u32, which always not greater than XFRM6_TUNNEL_SPI_MAX > because of

Re: [PATCH] ALSA: isa/wavefront: Fix potential Spectre v1 vulnerabilities

2018-12-20 Thread Takashi Iwai
On Thu, 20 Dec 2018 00:31:43 +0100, Gustavo A. R. Silva wrote: > > header->number is indirectly controlled by user-space, hence leading > to a potential exploitation of the Spectre variant 1 vulnerability. > > This issue was detected with the help of Smatch: > >

[PATCH] media: si2165: fix a missing check of return value

2018-12-20 Thread Kangjie Lu
si2165_readreg8() may fail. Looking into si2165_readreg8(), we will find that "val_tmp" will be an uninitialized value when regmap_read() fails. "val_tmp" is then assigned to "val". So if si2165_readreg8() fails, "val" will be a random value. Further use will lead to undefined behaviors. The fix

[PATCH] drm/i915: Fix i915_gem_wait_for_idle oops due to active_requests check

2018-12-20 Thread Bin Yang
i915_gem_wait_for_idle() waits for all requests being completed and calls i915_retire_requests() to retire them. It assumes the active_requests should be zero finally. In i915_retire_requests(), it will retire all requests on the active rings. Unfortunately, active_requests is increased in

Re: [RFC v3 1/3] PM/runtime: Add a new interface to get accounted time

2018-12-20 Thread Ulf Hansson
On Wed, 19 Dec 2018 at 17:52, Vincent Guittot wrote: > > On Wed, 19 Dec 2018 at 17:36, Ulf Hansson wrote: > > > > On Wed, 19 Dec 2018 at 14:26, Vincent Guittot > > wrote: > > > > > > On Wed, 19 Dec 2018 at 11:43, Ulf Hansson wrote: > > > > > > > > On Wed, 19 Dec 2018 at 11:34, Vincent Guittot

Re: [PATCH] quota: Lock s_umount in exclusive mode for Q_XQUOTA{ON,OFF} quotactls.

2018-12-20 Thread Jan Kara
On Fri 14-12-18 10:56:13, Jan Kara wrote: > On Thu 13-12-18 01:06:29, Javier Barrio wrote: > > Commit 1fa5efe3622db58cb8c7b9a50665e9eb9a6c7e97 (ext4: Use generic > > helpers for quotaon and quotaoff) made possible to call > > quotactl(Q_XQUOTAON/OFF) on ext4 filesystems with sysfile quota support.

RE: [PATCH v6 0/7] spi: add support for octal mode

2018-12-20 Thread Yogesh Narayan Gaur
Hi All, > -Original Message- > From: Vignesh R [mailto:vigne...@ti.com] > Sent: Thursday, December 20, 2018 12:03 PM > To: Yogesh Narayan Gaur ; linux- > m...@lists.infradead.org; boris.brezil...@bootlin.com; broo...@kernel.org; > marek.va...@gmail.com; linux-...@vger.kernel.org; >

[PATCH kernel v7 00/20] powerpc/powernv/npu, vfio: NVIDIA V100 + P9 passthrough

2018-12-20 Thread Alexey Kardashevskiy
My bad, I was not cc-ing everyone but now with v7 I am, sorry about that. This is for passing through NVIDIA V100 GPUs on POWER9 systems. 20/20 has the details of hardware setup. This implements support for NVIDIA V100 GPU with coherent memory and NPU/ATS support available in the POWER9 CPU.

[PATCH kernel v7 01/20] powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2

2018-12-20 Thread Alexey Kardashevskiy
The skiboot firmware has a hot reset handler which fences the NVIDIA V100 GPU RAM on Witherspoons and makes accesses no-op instead of throwing HMIs: https://github.com/open-power/skiboot/commit/fca2b2b839a67 Now we are going to pass V100 via VFIO which most certainly involves KVM guests which are

[PATCH kernel v7 02/20] powerpc/mm/iommu/vfio_spapr_tce: Change mm_iommu_get to reference a region

2018-12-20 Thread Alexey Kardashevskiy
Normally mm_iommu_get() should add a reference and mm_iommu_put() should remove it. However historically mm_iommu_find() does the referencing and mm_iommu_get() is doing allocation and referencing. We are going to add another helper to preregister device memory so instead of having mm_iommu_new()

[PATCH kernel v7 03/20] powerpc/vfio/iommu/kvm: Do not pin device memory

2018-12-20 Thread Alexey Kardashevskiy
This new memory does not have page structs as it is not plugged to the host so gup() will fail anyway. This adds 2 helpers: - mm_iommu_newdev() to preregister the "memory device" memory so the rest of API can still be used; - mm_iommu_is_devmem() to know if the physical address is one of thise

[PATCH kernel v7 04/20] powerpc/powernv: Move npu struct from pnv_phb to pci_controller

2018-12-20 Thread Alexey Kardashevskiy
The powernv PCI code stores NPU data in the pnv_phb struct. The latter is referenced by pci_controller::private_data. We are going to have NPU2 support in the pseries platform as well but it does not store any private_data in in the pci_controller struct; and even if it did, it would be a

[PATCH kernel v7 05/20] powerpc/powernv/npu: Move OPAL calls away from context manipulation

2018-12-20 Thread Alexey Kardashevskiy
When introduced, the NPU context init/destroy helpers called OPAL which enabled/disabled PID (a userspace memory context ID) filtering in an NPU per a GPU; this was a requirement for P9 DD1.0. However newer chip revision added a PID wildcard support so there is no more need to call OPAL every time

[PATCH kernel v7 07/20] powerpc/pseries/npu: Enable platform support

2018-12-20 Thread Alexey Kardashevskiy
We already changed NPU API for GPUs to not to call OPAL and the remaining bit is initializing NPU structures. This searches for POWER9 NVLinks attached to any device on a PHB and initializes an NPU structure if any found. Signed-off-by: Alexey Kardashevskiy --- Changes: v5: * added WARN_ON_ONCE

[PATCH kernel v7 13/20] powerpc/powernv/npu: Convert NPU IOMMU helpers to iommu_table_group_ops

2018-12-20 Thread Alexey Kardashevskiy
At the moment NPU IOMMU is manipulated directly from the IODA2 PCI PE code; PCI PE acts as a master to NPU PE. Soon we will have compound IOMMU groups with several PEs from several different PHB (such as interconnected GPUs and NPUs) so there will be no single master but a one big IOMMU group.

[PATCH kernel v7 09/20] powerpc/powernv/pseries: Rework device adding to IOMMU groups

2018-12-20 Thread Alexey Kardashevskiy
The powernv platform registers IOMMU groups and adds devices to them from the pci_controller_ops::setup_bridge() hook except one case when virtual functions (SRIOV VFs) are added from a bus notifier. The pseries platform registers IOMMU groups from the pci_controller_ops::dma_bus_setup() hook and

[PATCH kernel v7 12/20] powerpc/powernv/npu: Move single TVE handling to NPU PE

2018-12-20 Thread Alexey Kardashevskiy
Normal PCI PEs have 2 TVEs, one per a DMA window; however NPU PE has only one which points to one of two tables of the corresponding PCI PE. So whenever a new DMA window is programmed to PEs, the NPU PE needs to release old table in order to use the new one. Commit d41ce7b1bcc3e

[PATCH kernel v7 08/20] powerpc/pseries: Remove IOMMU API support for non-LPAR systems

2018-12-20 Thread Alexey Kardashevskiy
The pci_dma_bus_setup_pSeries and pci_dma_dev_setup_pSeries hooks are registered for the pseries platform which does not have FW_FEATURE_LPAR; these would be pre-powernv platforms which we never supported PCI pass through for anyway so remove it. Signed-off-by: Alexey Kardashevskiy Reviewed-by:

[PATCH kernel v7 11/20] powerpc/powernv: Reference iommu_table while it is linked to a group

2018-12-20 Thread Alexey Kardashevskiy
The iommu_table pointer stored in iommu_table_group may get stale by accident, this adds referencing and removes a redundant comment about this. Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson --- arch/powerpc/platforms/powernv/pci-ioda-tce.c | 3 ++-

[PATCH kernel v7 10/20] powerpc/iommu_api: Move IOMMU groups setup to a single place

2018-12-20 Thread Alexey Kardashevskiy
Registering new IOMMU groups and adding devices to them are separated in code and the latter is dug in the DMA setup code which it does not really belong to. This moved IOMMU groups setup to a separate helper which registers a group and adds devices as before. This does not make a difference as

[PATCH kernel v7 14/20] powerpc/powernv/npu: Add compound IOMMU groups

2018-12-20 Thread Alexey Kardashevskiy
At the moment the powernv platform registers an IOMMU group for each PE. There is an exception though: an NVLink bridge which is attached to the corresponding GPU's IOMMU group making it a master. Now we have POWER9 systems with GPUs connected to each other directly bypassing PCI. At the moment

[PATCH kernel v7 17/20] powerpc/powernv/npu: Fault user page into the hypervisor's pagetable

2018-12-20 Thread Alexey Kardashevskiy
When a page fault happens in a GPU, the GPU signals the OS and the GPU driver calls the fault handler which populated a page table; this allows the GPU to complete an ATS request. On the bare metal get_user_pages() is enough as it adds a pte to the kernel page table but under KVM the partition

[PATCH kernel v7 16/20] powerpc/powernv/npu: Check mmio_atsd array bounds when populating

2018-12-20 Thread Alexey Kardashevskiy
A broken device tree might contain more than 8 values and introduce hard to debug memory corruption bug. This adds the boundary check. Signed-off-by: Alexey Kardashevskiy --- arch/powerpc/platforms/powernv/npu-dma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH kernel v7 18/20] vfio_pci: Allow mapping extra regions

2018-12-20 Thread Alexey Kardashevskiy
So far we only allowed mapping of MMIO BARs to the userspace. However there are GPUs with on-board coherent RAM accessible via side channels which we also want to map to the userspace. The first client for this is NVIDIA V100 GPU with NVLink2 direct links to a POWER9 NPU-enabled CPU; such GPUs

[PATCH kernel v7 15/20] powerpc/powernv/npu: Add release_ownership hook

2018-12-20 Thread Alexey Kardashevskiy
In order to make ATS work and translate addresses for arbitrary LPID and PID, we need to program an NPU with LPID and allow PID wildcard matching with a specific MSR mask. This implements a helper to assign a GPU to LPAR and program the NPU with a wildcard for PID and a helper to do clean-up. The

[PATCH kernel v7 20/20] vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver

2018-12-20 Thread Alexey Kardashevskiy
POWER9 Witherspoon machines come with 4 or 6 V100 GPUs which are not pluggable PCIe devices but still have PCIe links which are used for config space and MMIO. In addition to that the GPUs have 6 NVLinks which are connected to other GPUs and the POWER9 CPU. POWER9 chips have a special unit on a

[PATCH kernel v7 19/20] vfio_pci: Allow regions to add own capabilities

2018-12-20 Thread Alexey Kardashevskiy
VFIO regions already support region capabilities with a limited set of fields. However the subdriver might have to report to the userspace additional bits. This adds an add_capability() hook to vfio_pci_regops. Signed-off-by: Alexey Kardashevskiy Acked-by: Alex Williamson --- Changes: v3: *

Re: [PATCH] powerpc/8xx: Map a second 8M text page at startup when needed.

2018-12-20 Thread Christoph Hellwig
On Thu, Dec 20, 2018 at 05:48:25AM +, Christophe Leroy wrote: > Some debug setup like CONFIG_KASAN generate huge > kernels with text size over the 8M limit. > > This patch maps a second 8M page when _einittext is over 8M. Do we also need a check to generate a useful warning if we ever

[PATCH kernel v7 06/20] powerpc/pseries/iommu: Use memory@ nodes in max RAM address calculation

2018-12-20 Thread Alexey Kardashevskiy
We might have memory@ nodes with "linux,usable-memory" set to zero (for example, to replicate powernv's behaviour for GPU coherent memory) which means that the memory needs an extra initialization but since it can be used afterwards, the pseries platform will try mapping it for DMA so the DMA

Re: [PATCH v2] drm/bochs: add edid present check

2018-12-20 Thread Daniel Vetter
On Thu, Dec 20, 2018 at 07:50:01AM +0100, Gerd Hoffmann wrote: > Check first two header bytes before trying to read the edid blob, > to avoid the log being spammed in case qemu has no edid support (old > qemu or edid turned off). > > Fixes: 01f23459cf drm/bochs: add edid support. > Signed-off-by:

Re: [PATCH v2] drm/bochs: add edid present check

2018-12-20 Thread Daniel Vetter
On Thu, Dec 20, 2018 at 09:28:26AM +0100, Daniel Vetter wrote: > On Thu, Dec 20, 2018 at 07:50:01AM +0100, Gerd Hoffmann wrote: > > Check first two header bytes before trying to read the edid blob, > > to avoid the log being spammed in case qemu has no edid support (old > > qemu or edid turned

Re: [PATCH] kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled

2018-12-20 Thread Miroslav Benes
On Wed, 19 Dec 2018, Jiri Kosina wrote: > On Wed, 19 Dec 2018, Josh Poimboeuf wrote: > > > Also the commit message needs an analysis of the performance impacts. > > Agreed. Especially as it's expected (*) to be completely in the noise > particularly for the kernel, it'd be good to have that

Re: [HMM-v25 07/19] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v5

2018-12-20 Thread Dan Williams
On Wed, Aug 16, 2017 at 5:06 PM Jérôme Glisse wrote: > > HMM (heterogeneous memory management) need struct page to support migration > from system main memory to device memory. Reasons for HMM and migration to > device memory is explained with HMM core patch. > > This patch deals with device

Re: [PATCH] drm/i915: Fix i915_gem_wait_for_idle oops due to active_requests check

2018-12-20 Thread Chris Wilson
Quoting Bin Yang (2018-12-20 08:01:35) > Normally, i915_request_alloc() and i915_request_add() will be called > in sequence with drm.struct_mutex locked. But in > intel_vgpu_create_workload(), it will pre-allocate the request and > call i915_request_add() in the workload thread for performance >

Re: [PATCH v6 0/7] spi: add support for octal mode

2018-12-20 Thread Boris Brezillon
On Thu, 20 Dec 2018 08:23:07 + Yogesh Narayan Gaur wrote: > Octal mode support patch series has dependency over these patches. > Should I send these two patches again or specifies them as dependency patches > in the cover letter. No, you should either base your work on the master branch of

[PATCH 1/1] gic: its: Make sure a LPI is discarded before free.

2018-12-20 Thread Zhao Yuanyuan
Its device will be removed after all events be freed. Undisarded events can lead to unpredictable behaviar. Signed-off-by: Zhao Yuanyuan --- drivers/irqchip/irq-gic-v3-its.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c

linux-next: Tree for Dec 20

2018-12-20 Thread Stephen Rothwell
Hi all, Changes since 20181219: The rdma tree lost its build failure. The net-next tree gained conflicts against the net tree and a build failure for which I applied a merge fix patch. The tip tree gained a conflict against the kbuild tree. The char-misc tree gained a conflict against the

Re: [RFC v3 1/3] PM/runtime: Add a new interface to get accounted time

2018-12-20 Thread Vincent Guittot
On Thu, 20 Dec 2018 at 09:16, Ulf Hansson wrote: > > On Wed, 19 Dec 2018 at 17:52, Vincent Guittot > wrote: > > > > On Wed, 19 Dec 2018 at 17:36, Ulf Hansson wrote: > > > > > > On Wed, 19 Dec 2018 at 14:26, Vincent Guittot > > > wrote: > > > > > > > > On Wed, 19 Dec 2018 at 11:43, Ulf Hansson

Re: [PATCH v3 5/5] Bluetooth: btusb: Use the hw_reset method to allow resetting the BT chip

2018-12-20 Thread Rajat Jain
On Wed, Nov 21, 2018 at 3:50 PM Rajat Jain wrote: > > If the platform provides it, use the reset gpio to reset the BT > chip (requested by the HCI core if needed). This has been found helpful > on some of Intel bluetooth controllers where the firmware gets stuck and > the only way out is a hard

Re: [PATCH 05/16] remoteproc/pru: Add pru-specific debugfs support

2018-12-20 Thread Roger Quadros
On 19/12/18 19:18, Tony Lindgren wrote: > * Mark Brown [181219 17:07]: >> On Wed, Dec 19, 2018 at 04:48:52PM +0100, David Lechner wrote: >>> On 12/19/18 4:43 PM, Roger Quadros wrote: >> Did I do something wrong or we just need to enhance regmap_debugfs.c? >> >>> Do you assign the name field

Re: linux-next: please clean up the clockevents tree

2018-12-20 Thread Daniel Lezcano
On 20/12/2018 06:15, Stephen Rothwell wrote: > Hi Daniel, > > It looks like all the changes in the clockevents tree appear as other > commits in other tree(s). Could you please reset your tree to somewhere > in your upstream tree as it is beginning to produce conflicts. Done. --

Re: [PATCH] powerpc/8xx: Map a second 8M text page at startup when needed.

2018-12-20 Thread Christophe Leroy
Le 20/12/2018 à 09:24, Christoph Hellwig a écrit : On Thu, Dec 20, 2018 at 05:48:25AM +, Christophe Leroy wrote: Some debug setup like CONFIG_KASAN generate huge kernels with text size over the 8M limit. This patch maps a second 8M page when _einittext is over 8M. Do we also need a

Re: [PATCH] drm/i915: Fix i915_gem_wait_for_idle oops due to active_requests check

2018-12-20 Thread Yang, Bin
On Thu, 2018-12-20 at 08:35 +, Chris Wilson wrote: > Quoting Bin Yang (2018-12-20 08:01:35) > > Normally, i915_request_alloc() and i915_request_add() will be called > > in sequence with drm.struct_mutex locked. But in > > intel_vgpu_create_workload(), it will pre-allocate the request and > >

Re: [PATCH 18/41] scsi: isci: remote_device: Mark expected switch fall-throughs

2018-12-20 Thread Artur Paszkiewicz
On 11/28/18 5:30 AM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that, in this particular case, a dash is added as a token in > order to separate the "fall through" annotations from the rest

Re: [PATCH 20/41] scsi: isci: request: mark expected switch fall-through

2018-12-20 Thread Artur Paszkiewicz
On 11/28/18 5:30 AM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that, in this particular case, a dash is added as a token in > order to separate the "Fall through" annotation from the rest

Re: [PATCH 19/41] scsi: isci: remote_node_context: mark expected switch fall-throughs

2018-12-20 Thread Artur Paszkiewicz
On 11/28/18 5:30 AM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that, in this particular case, a dash is added as a token in > order to separate the "Fall through" annotations from the rest

Re: [PATCH 17/41] scsi: isci: phy: Mark expected switch fall-through

2018-12-20 Thread Artur Paszkiewicz
On 11/28/18 5:29 AM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 703127 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva Acked-by: Artur Paszkiewicz

[PATCH] scsi: smartpqi: call pqi_free_interrupts() in pqi_shutdown()

2018-12-20 Thread Yanjiang Jin
We must free all irqs during shutdown, else kexec's 2nd kernel would hang in pqi_wait_for_completion_io() as below: Call trace: pqi_wait_for_completion_io pqi_submit_raid_request_synchronous.constprop.78+0x23c/0x310 [smartpqi] pqi_configure_events+0xec/0x1f8 [smartpqi]

[PATCH] How to reproduce this issue

2018-12-20 Thread Yanjiang Jin
This happens only in the following combinations: 1. smartpqi is built as module, not built-in; 2. We have a disk connected to smartpqi card; 3. Both kexec's 1st and 2nd kernels use this disk as Rootfs' mount point. This issue can be found on my ARM64 board: QDF2400: kexec -l

[PATCH V5 0/4] Add i.MX system controller RTC driver

2018-12-20 Thread Anson Huang
NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and secure RTC etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to do RTC operation. Since the RTC set time

[PATCH V5 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support

2018-12-20 Thread Anson Huang
Add i.MX8QXP system controller RTC support. Signed-off-by: Anson Huang --- No change since V4. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index

[PATCH V5 2/4] rtc: add i.MX system controller RTC support

2018-12-20 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and secure rtc etc.. This patch adds i.MX system controller RTC driver support, Linux kernel has to communicate with system controller via MU (message unit) IPC

[PATCH V5 3/4] defconfig: arm64: add i.MX system controller RTC support

2018-12-20 Thread Anson Huang
This patch enables CONFIG_RTC_DRV_IMX_SC as module by default. Signed-off-by: Anson Huang --- No change since V4. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d3aa3f7..abd80c5 100644 ---

[PATCH V5 1/4] dt-bindings: fsl: scu: add rtc binding

2018-12-20 Thread Anson Huang
NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and secure RTC etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to do RTC operation, this patch adds binding

Re: [PATCHv2 01/12] acpi: Create subtable parsing infrastructure

2018-12-20 Thread Rafael J. Wysocki
On Thu, Dec 20, 2018 at 2:15 AM Schmauss, Erik wrote: > > > > > -Original Message- > > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > > ow...@vger.kernel.org] On Behalf Of Dan Williams > > Sent: Wednesday, December 19, 2018 4:00 PM > > To: Schmauss, Erik > > Cc: Rafael J.

Re: [PATCH 0/9] ASoC/ARM: Merge the davinci and omap audio directories

2018-12-20 Thread Sekhar Nori
On 17/12/18 5:51 PM, Peter Ujfalusi wrote: > Mark, Tony, Sekhar: This series - as I mentioned - is based on next-20181210. > Not sure what tag, branch, commit I should base this, but I can resend v2 if > needed. For the series: Acked-by: Sekhar Nori Looks like Mark has already applied it, but

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2018-12-20 Thread Pavel Machek
Hi! > > Anyway, if your 36 channels can be set independently, I believe you > > just want them to export as 36 LEDs. > > I am not sure that is what the "customers" would want to have to set 36 > different nodes or even declare those 36 nodes. > That is 36 independent user space to kernel space

Re: [PATCH] drm: add capability DRM_CAP_ASYNC_UPDATE

2018-12-20 Thread Tomasz Figa
Hi Helen, On Fri, Dec 14, 2018 at 10:35 AM Helen Koike wrote: > > Hi Tomasz, > > On 12/13/18 2:02 AM, Tomasz Figa wrote: > > On Thu, Dec 6, 2018 at 1:12 AM Helen Koike > > wrote: > >> > >> Hi Ville > >> > >> On 11/27/18 11:34 AM, Ville Syrjälä wrote: > >>> On Fri, Nov 23, 2018 at 07:53:26PM

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-20 Thread Jan Kara
On Thu 20-12-18 09:33:12, Dave Chinner wrote: > On Wed, Dec 19, 2018 at 12:35:40PM +0100, Jan Kara wrote: > > On Wed 19-12-18 21:28:25, Dave Chinner wrote: > > > On Tue, Dec 18, 2018 at 08:03:29PM -0700, Jason Gunthorpe wrote: > > > > On Wed, Dec 19, 2018 at 10:42:54AM +1100, Dave Chinner wrote: >

[PATCH V5 0/4] Add i.MX System Controller thermal driver support

2018-12-20 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system controller via MU (message

[PATCH V5 1/4] dt-bindings: fsl: scu: add thermal binding

2018-12-20 Thread Anson Huang
NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature from thermal sensors,

[PATCH V5 2/4] thermal: imx_sc: add i.MX system controller thermal support

2018-12-20 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system controller via MU (message

[PATCH V5 3/4] defconfig: arm64: add i.MX system controller thermal support

2018-12-20 Thread Anson Huang
This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No change since V4. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index abd80c5..9f12324 100644 ---

[PATCH V5 4/4] ARM64: dts: imx: add i.MX8QXP thermal support

2018-12-20 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- No change since V4. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi

Re: [PATCH] rts5208: add a missing check for the status of command sending

2018-12-20 Thread Dan Carpenter
On Thu, Dec 20, 2018 at 01:57:01AM -0600, Kangjie Lu wrote: > ms_send_cmd() may fail. The fix checks the return value of it, and if it > fails, returns the error "STATUS_FAIL" upstream. > > Signed-off-by: Kangjie Lu > --- > drivers/staging/rts5208/ms.c | 4 +++- > 1 file changed, 3

Re: 4.20-rc6: WARNING: CPU: 30 PID: 197360 at net/core/flow_dissector.c:764 __skb_flow_dissect

2018-12-20 Thread Ido Schimmel
+Willem On Thu, Dec 20, 2018 at 08:45:40AM +0100, Christian Borntraeger wrote: > Folks, > > I got this warning today. I cant tell when and why this happened, so I do not > know yet how to reproduce. > Maybe someone has a quick idea. > > [85109.572032] WARNING: CPU: 30 PID: 197360 at

Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages

2018-12-20 Thread Michal Hocko
On Thu 20-12-18 00:39:18, Oscar Salvador wrote: > On Wed, Dec 19, 2018 at 02:25:28PM +, Wei Yang wrote: > > >- iter = round_up(iter + 1, 1< > >+ skip_pages = (1 << compound_order(head)) - (page - > > >head); > > >+ iter = round_up(iter + 1,

Re: [PATCH 3/4] iommu/of: Don't call iommu_ops->add_device directly

2018-12-20 Thread Joerg Roedel
Hi Marek, On Wed, Dec 19, 2018 at 03:53:51PM +0100, Marek Szyprowski wrote: > Yes, it fixes this issue. Thanks a lot, patch is sent out and in iommu tree. Regards, Joerg

[PATCH 3.18 01/31] lib/interval_tree_test.c: make test options module parameters

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a54dae0338b7f01eb0f9c7571fb9b74f791d1c6b ] Allows for more flexible debugging. Link: http://lkml.kernel.org/r/20170518174936.20265-3-d...@stgolabs.net Signed-off-by: Davidlohr

[ide] ec7d9c9ce8: WARNING:at_fs/proc/generic.c:#remove_proc_entry

2018-12-20 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: ec7d9c9ce897174243af4fcd201dbfc34df0f3a3 ("ide: replace ->proc_fops with ->proc_show") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: rcutorture with following parameters: runtime:

[PATCH 3.18 11/31] powerpc: Look for "stdout-path" when setting up legacy consoles

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit bf3d6afbb234156749b640b6c50f714967a85964 upstream. Commit 78e5dfea84dc ("powerpc: dts: replace 'linux,stdout-path' with 'stdout-path'") broke the default console

[PATCH 3.18 19/31] drivers/tty: add missing of_node_put()

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit dac097c4546e4c5b16dd303a1e97c1d319c8ab3e ] 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 is

[PATCH 3.18 02/31] lib/interval_tree_test.c: allow full tree search

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c46ecce431ebe6b1a9551d1f530eb432dae5c39b ] ... such that a user can specify visiting all the nodes in the tree (intersects with the world). This is a nice opposite from the very

[PATCH 3.18 23/31] ARM: 8814/1: mm: improve/fix ARM v7_dma_inv_range() unaligned address handling

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a1208f6a822ac29933e772ef1f637c5d67838da9 ] This patch addresses possible memory corruption when v7_dma_inv_range(start_address, end_address) address parameters are not aligned to

[PATCH 3.18 26/31] ALSA: isa/wavefront: prevent some out of bound writes

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 84d7a4470dbac0dd9389050100b54a1625d04264 ] "header->number" can be up to USHRT_MAX and it comes from the ioctl so it needs to be capped. Signed-off-by: Dan Carpenter

[PATCH 3.18 24/31] cifs: In Kconfig CONFIG_CIFS_POSIX needs depends on legacy (insecure cifs)

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6e785302dad32228819d8066e5376acd15d0e6ba ] Missing a dependency. Shouldn't show cifs posix extensions in Kconfig if CONFIG_CIFS_ALLOW_INSECURE_DIALECTS (ie SMB1 protocol) is

[PATCH 3.18 31/31] wil6210: missing length check in wmi_set_ie

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Lior David commit b5a8ffcae4103a9d823ea3aa3a761f65779fbe2a upstream. Add a length check in wmi_set_ie to detect unsigned integer overflow. Signed-off-by: Lior David Signed-off-by: Maya Erez

[PATCH 3.18 21/31] Input: omap-keypad - fix keyboard debounce configuration

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6c3516fed7b61a3527459ccfa67fab130d910610 ] I noticed that the Android v3.0.8 kernel on droid4 is using different keypad values from the mainline kernel and does not have issues with

[PATCH 3.18 03/31] lib/rbtree_test.c: make input module parameters

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 223f8911eace60c787f8767c25148b80ece9732a ] Allows for more flexible debugging. Link: http://lkml.kernel.org/r/20170719014603.19029-5-d...@stgolabs.net Signed-off-by: Davidlohr

[PATCH 3.18 27/31] ALSA: pcm: remove SNDRV_PCM_IOCTL1_INFO internal command

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Sakamoto commit e11f0f90a626f93899687b1cc909ee37dd6c5809 upstream. Drivers can implement 'struct snd_pcm_ops.ioctl' to handle some requests from ALSA PCM core. These requests are

[PATCH 3.18 28/31] posix-timers: Sanitize overrun handling

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner commit 78c9c4dfbf8c04883941445a195276bb4bb92c76 upstream. The posix timer overrun handling is broken because the forwarding functions can return a huge number of overruns

[PATCH 3.18 00/31] 3.18.131-stable review

2018-12-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.131 release. There are 31 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat Dec 22 08:57:30 UTC 2018. Anything

[PATCH 4.4 18/40] mac80211_hwsim: fix module init error paths for netlink

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ] There is no unregister netlink notifier and family on error paths in init_mac80211_hwsim(). Also there is an error path where hwsim_class

[PATCH 3.18 09/31] tracing: Fix memory leak in set_trigger_filter()

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 3cec638b3d793b7cacdec5b8072364b41caeb0e1 upstream. When create_event_filter() fails in set_trigger_filter(), the filter may still be allocated and needs to be

[PATCH 3.18 08/31] MMC: OMAP: fix broken MMC on OMAP15XX/OMAP5910/OMAP310

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Aaro Koskinen commit e8cde625bfe8a714a856e1366bcbb259d7346095 upstream. Since v2.6.22 or so there has been reports [1] about OMAP MMC being broken on OMAP15XX based hardware (OMAP5910 and

[PATCH 3.18 06/31] timer/debug: Change /proc/timer_list from 0444 to 0400

2018-12-20 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 8e7df2b5b7f245c9bd11064712db5cb69044a362 ] While it uses %pK, there's still few reasons to read this file as non-root. Suggested-by: Linus Torvalds Acked-by: Thomas Gleixner Cc:

[PATCH 4.4 16/40] mac80211: dont WARN on bad WMM parameters from buggy APs

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c470bdc1aaf36669e04ba65faf1092b2d1c6cabe ] Apparently, some APs are buggy enough to send a zeroed WMM IE. Don't WARN on this since this is not caused by a bug on the client's system.

[PATCH 4.4 02/40] lib/interval_tree_test.c: allow full tree search

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit c46ecce431ebe6b1a9551d1f530eb432dae5c39b ] ... such that a user can specify visiting all the nodes in the tree (intersects with the world). This is a nice opposite from the very

[PATCH 4.4 14/40] Revert "drm/rockchip: Allow driver to be shutdown on reboot/kexec"

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Brian Norris commit 63238173b2faf3d6b85a416f1c69af6c7be2413f upstream. This reverts commit 7f3ef5dedb146e3d5063b6845781ad1bb59b92b5. It causes new warnings [1] on shutdown when running the

[PATCH 4.4 13/40] powerpc/msi: Fix NULL pointer access in teardown code

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Radu Rendec commit 78e7b15e17ac175e7eed9e21c6f92d03d3b0a6fa upstream. The arch_teardown_msi_irqs() function assumes that controller ops pointers were already checked in arch_setup_msi_irqs(),

[PATCH 4.4 17/40] mac80211: Fix condition validating WMM IE

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 911a26484c33e10de6237228ca1d7293548e9f49 ] Commit c470bdc1aaf3 ("mac80211: don't WARN on bad WMM parameters from buggy APs") handled cases where an AP reports a zeroed WMM IE.

[PATCH 4.4 15/40] f2fs: fix a panic caused by NULL flush_cmd_control

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Yunlei He commit d4fdf8ba0e5808ba9ad6b44337783bd9935e0982 upstream. Mount fs with option noflush_merge, boot failed for illegal address fcc in function f2fs_issue_flush: if

[PATCH 4.4 21/40] x86/earlyprintk/efi: Fix infinite loop on some screen widths

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 79c2206d369b87b19ac29cb47601059b6bf5c291 ] An affected screen resolution is 1366 x 768, which width is not divisible by 8, the default font width. On such screens, when longer lines

[PATCH 4.4 23/40] ARC: io.h: Implement reads{x}()/writes{x}()

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 10d443431dc2bb733cf7add99b453e3fb9047a2e ] Some ARC CPU's do not support unaligned loads/stores. Currently, generic implementation of reads{b/w/l}()/writes{b/w/l}() is being used

[PATCH 4.4 31/40] Input: omap-keypad - fix keyboard debounce configuration

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 6c3516fed7b61a3527459ccfa67fab130d910610 ] I noticed that the Android v3.0.8 kernel on droid4 is using different keypad values from the mainline kernel and does not have issues with

[PATCH 4.4 30/40] clk: mmp: Off by one in mmp_clk_add()

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 2e85c57493e391b93445c1e0d530b36b95becc64 ] The > comparison should be >= or we write one element beyond the end of the unit->clk_table[] array. (The unit->clk_table[] array is

[PATCH 4.4 22/40] drm/msm: Grab a vblank reference when waiting for commit_done

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 3b712e43e3876b42b38321ecf790a1f5fe59c834 ] Similar to the atomic helpers, we should enable vblank while we're waiting for the commit to finish. DPU needs this, MDP5 seems to work

[PATCH 4.4 05/40] lib/interval_tree_test.c: allow users to limit scope of endpoint

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit a8ec14d4f6aa8e245efacc992c8ee6ea0464ce2a ] Add a 'max_endpoint' parameter such that users may easily limit the size of the intervals that are randomly generated. Link:

[PATCH 4.4 20/40] scsi: vmw_pscsi: Rearrange code to avoid multiple calls to free_irq during unload

2018-12-20 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- [ Upstream commit 02f425f811cefcc4d325d7a72272651e622dc97e ] Currently pvscsi_remove calls free_irq more than once as pvscsi_release_resources and __pvscsi_shutdown both call pvscsi_shutdown_intr.

  1   2   3   4   5   6   7   8   9   10   >