[PATCH v10 6/8] vfio/type1: check doorbell safety

2016-06-07 Thread Eric Auger
On x86 IRQ remapping is abstracted by the IOMMU. On ARM this is abstracted by the msi controller. Since we currently have no way to detect whether the MSI controller is upstream or downstream to the IOMMU we rely on the MSI doorbell information registered by the interrupt controllers. In case at l

[PATCH v10 8/8] vfio/type1: return MSI geometry through VFIO_IOMMU_GET_INFO capability chains

2016-06-07 Thread Eric Auger
This patch allows the user-space to retrieve the MSI geometry. The implementation is based on capability chains, now also added to VFIO_IOMMU_GET_INFO. The returned info comprise: - whether the MSI IOVA are constrained to a reserved range (x86 case) and in the positive, the start/end of the aper

[PATCH v2 2/2] dt-bindings: clocksource: Add Add Oxford Semiconductor RPS Timer bindings

2016-06-07 Thread Neil Armstrong
Add DT bindings for the Oxford Semiconductor RPS dual Timer. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/timer/oxsemi,rps-timer.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/oxsem

[PATCH v2 0/2] clocksource: Add support for Oxford Semiconductor RPS Dual Timer

2016-06-07 Thread Neil Armstrong
Adds driver for the Oxford Semiconductor RPS Dual Timer as base of the OX810SE clock tick event and sched clock source. This driver was posted with the initial OX810SE platform patchset at : http://lkml.kernel.org/r/1457005210-18485-5-git-send-email-narmstr...@baylibre.com and http://lkml.kernel.o

Re: [PATCH V5 5/7] irqchip, gicv3, its: Probe ITS in the ACPI way.

2016-06-07 Thread Tomasz Nowicki
On 04.06.2016 13:55, Marc Zyngier wrote: On Tue, 31 May 2016 13:19:42 +0200 Tomasz Nowicki wrote: ITS is prepared for being initialized different than DT, therefore we can initialize it in ACPI way. We collect register base address from MADT table and pass mandatory info to firmware-agnostic I

[PATCH v10 5/8] vfio: allow reserved msi iova registration

2016-06-07 Thread Eric Auger
The user is allowed to register a reserved MSI IOVA range by using the DMA MAP API and setting the new flag: VFIO_DMA_MAP_FLAG_MSI_RESERVED_IOVA. This region is stored in the vfio_dma rb tree. At that point the iova range is not mapped to any target address yet. The host kernel will use those iova

[PATCH v10 2/8] vfio/type1: vfio_find_dma accepting a type argument

2016-06-07 Thread Eric Auger
In our RB-tree we get prepared to insert slots of different types (USER and RESERVED). It becomes useful to be able to search for dma slots of a specific type or any type. This patch introduces vfio_find_dma_from_node which starts the search from a given node and stops on the first node that match

[PATCH v10 4/8] vfio/type1: handle unmap/unpin and replay for VFIO_IOVA_RESERVED slots

2016-06-07 Thread Eric Auger
Before allowing the end-user to create VFIO_IOVA_RESERVED dma slots, let's implement the expected behavior for removal and replay. As opposed to user dma slots, reserved IOVAs are not systematically bound to PAs and PAs are not pinned. VFIO just initializes the IOVA "aperture". IOVAs are allocated

[PATCH v10 3/8] vfio/type1: implement recursive vfio_find_dma_from_node

2016-06-07 Thread Eric Auger
This patch handles the case where a node is encountered, matching @start and @size arguments but not matching the @type argument. In that case, we need to skip that node and pursue the search in the node's leaves. In case @start is inferior to the node's base, we resume the search on the left leaf.

Re: [PATCH] cgroup: disable irqs while holding css_set_lock

2016-06-07 Thread Juri Lelli
On 07/06/16 12:26, Daniel Bristot de Oliveira wrote: > Ciao Juri, > > On 06/07/2016 10:30 AM, Juri Lelli wrote: > > So, this and the partitioned one could actually overlap, since we don't > > set cpu_exclusive. Is that right? > > > > I guess affinity mask of both m processes gets set correclty, b

[PATCH v2 1/2] clocksource: Add Oxford Semiconductor RPS Dual Timer

2016-06-07 Thread Neil Armstrong
Add clocksource and clockevent driver from dual RPS timer. The HW provides a dual one-shot or periodic 24bit timers, the drivers set the first one as tick event source and the second as a continuous scheduler clock source. The timer can use 1, 16 or 256 as pre-dividers, thus the clocksource uses 16

[PATCH v10 7/8] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP

2016-06-07 Thread Eric Auger
Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu(-v3). Indeed the irq_remapping capability is abstracted on irqchip side for ARM as opposed to Intel IOMMU featuring IRQ remapping HW. So to check IRQ remapping capability, the msi domain needs to be checked instead. This commit affects platform a

Re: [PATCH V5 7/7] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.

2016-06-07 Thread Tomasz Nowicki
On 04.06.2016 14:07, Marc Zyngier wrote: On Tue, 31 May 2016 13:19:44 +0200 Tomasz Nowicki wrote: Let ACPI build ITS PCI MSI domain. ACPI is responsible for retrieving inner domain token and passing it on to its_pci_msi_init_one generic init call. We have now full PCI MSI domain stack, thus w

[PATCH] pps: do not crash when failed to register

2016-06-07 Thread Jiri Slaby
With this command sequence: modprobe plip modprobe pps_parport rmmod pps_parport the partport_pps modules causes this crash: === BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] parport_detach+0x1d/0x60 [pps_parport] Oops: [#1] SMP ... Call Trace: [] parpo

Re: [alsa-devel] [PATCH v2 5/9] ASoC: mediatek: add structure define and clock control for 2701

2016-06-07 Thread Mark Brown
On Fri, Jun 03, 2016 at 12:56:20PM +0800, Garlic Tseng wrote: > +void mt2701_init_clock(struct mtk_base_afe *afe) > +{ > + struct mt2701_afe_private *afe_priv = afe->platform_priv; > + int i = 0; > + > + for (i = 0; i < MT2701_CLOCK_NUM; i++) { > + afe_priv->clocks[i] = dev

Re: [PATCH v4 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug

2016-06-07 Thread kbuild test robot
Hi, [auto build test ERROR on tip/sched/core] [also build test ERROR on v4.7-rc2 next-20160607] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wanpeng-Li/KVM-fix-steal-clock-warp-during-guest

Re: linux-next: error fetching the c6x tree

2016-06-07 Thread Mark Salter
On Mon, 2016-06-06 at 16:09 -0400, Mark Salter wrote: > On Mon, 2016-06-06 at 00:18 +1000, Stephen Rothwell wrote: > > > > Hi Mark, > > > > Fetching the c6x tree has produced this error for the past few days: > > > > fatal: Could not read from remote repository. > > > > Please make sure you hav

[PATCH v5 01/18] remoteproc: make rsc table support optional

2016-06-07 Thread Peter Griffin
Some firmware and rproc drivers such as slim core don't have a resource table. To avoid having to fudge an empty table in the rproc driver this patch introduces a new has_rsctable flag. rproc drivers which don't require a rsc table can set this flag to false, and it avoids doing the initial async f

[PATCH v5 04/18] dmaengine: st_fdma: Add STMicroelectronics FDMA DT binding documentation

2016-06-07 Thread Peter Griffin
This patch adds the DT binding documentation for the FDMA constroller found on STi based chipsets from STMicroelectronics. Signed-off-by: Ludovic Barre Signed-off-by: Peter Griffin Acked-by: Rob Herring --- Documentation/devicetree/bindings/dma/st_fdma.txt | 87 +++ 1 file

[PATCH v5 17/18] ARM: STi: DT: STiH407: Add uniperif reader dt nodes

2016-06-07 Thread Peter Griffin
This patch adds the DT node for the uniperif reader IP block found on STiH407 family silicon. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-family.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/

[PATCH v5 15/18] ARM: STi: DT: STiH407: Add sti-sasg-codec dt node

2016-06-07 Thread Peter Griffin
This patch adds the dt node for the internal audio codec IP. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-family.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-famil

[PATCH v5 09/18] ARM: multi_v7_defconfig: Enable STi FDMA driver

2016-06-07 Thread Peter Griffin
This DMA controller is found on all STi chipsets. Signed-off-by: Peter Griffin Acked-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index f30489e..1c34e17 100644

[PATCH v5 12/18] ARM: DT: STiH407: Add i2s_out pinctrl configuration

2016-06-07 Thread Peter Griffin
This patch adds the pinctrl config for the i2s_out pins used by the uniperif player IP. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-pinctrl.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/stih407-

[PATCH v5 18/18] ARM: DT: STi: stihxxx-b2120: Add DT nodes for STi audio card

2016-06-07 Thread Peter Griffin
This patch enables the uniperif players 2 & 3 for b2120 boards and also adds the "simple-audio-card" device node to interconnect the SoC sound device and the codec. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stihxxx-b2120.dtsi | 45 +++

[PATCH v5 07/18] ARM: STi: DT: STiH407: Add FDMA driver dt nodes.

2016-06-07 Thread Peter Griffin
These nodes are required to get the fdma driver working on STiH407 based silicon. Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-family.dtsi | 52 +++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot

Re: [PATCH] ARM: at91: debug: use DEBUG_UART_VIRT

2016-06-07 Thread Alexandre Belloni
On 07/06/2016 at 17:48:21 +0200, Nicolas Ferre wrote : > Le 07/06/2016 17:24, Alexandre Belloni a écrit : > > AT91 still uses an offset (0x0100 ) from the physical address to map > > the debug UART. This is unfortunate as for some platforms (sama5d3 and > > earlier), it ends up in the PCI zone

[PATCH v5 10/18] ASoC: sti: Update DT example to match the driver code

2016-06-07 Thread Peter Griffin
uniperiph-id, version and mode are ST specific bindings and need the 'st,' prefix. Update the examples, as otherwise copying them yields a runtime error parsing the DT node. Signed-off-by: Peter Griffin Acked-by: Rob Herring Cc: arnaud.pouliq...@st.com Cc: broo...@kernel.org --- .../devicetree/

[PATCH v5 16/18] ARM: STi: DT: STiH407: Add uniperif player dt nodes

2016-06-07 Thread Peter Griffin
This patch adds the DT nodes for the uniperif player IP blocks found on STiH407 family silicon. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-family.dtsi | 76 +++ 1 file changed, 76 insertions(+) diff --git a/arch/ar

[PATCH v5 13/18] ARM: DT: STiH407: Add i2s_in pinctrl configuration

2016-06-07 Thread Peter Griffin
This patch adds the pinctrl config for the i2s_in pins used by the uniperif reader IP. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-pinctrl.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/stih407-

[PATCH v5 11/18] ARM: multi_v7_defconfig: Enable STi and simple-card drivers.

2016-06-07 Thread Peter Griffin
This patch enables the STi ALSA drivers found on STi platforms as well as the simple-card driver which is a dependency to have working sound. Signed-off-by: Peter Griffin Cc: arnaud.pouliq...@st.com Cc: broo...@kernel.org --- arch/arm/configs/multi_v7_defconfig | 3 +++ 1 file changed, 3 inserti

Re: [PATCH 10/10] mm: balance LRU lists based on relative thrashing

2016-06-07 Thread Johannes Weiner
Hi Tim, On Mon, Jun 06, 2016 at 04:50:23PM -0700, Tim Chen wrote: > On Mon, 2016-06-06 at 15:48 -0400, Johannes Weiner wrote: > > To tell inactive from active refaults, a page flag is introduced that > > marks pages that have been on the active list in their lifetime. This > > flag is remembered i

[PATCH v5 08/18] MAINTAINERS: Add FDMA driver files to STi section.

2016-06-07 Thread Peter Griffin
This patch adds the FDMA driver files to the STi section of the maintainers file. Signed-off-by: Peter Griffin Acked-by: Lee Jones --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8f16983..e1eb5a8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH v5 14/18] ARM: DT: STiH407: Add spdif_out pinctrl config

2016-06-07 Thread Peter Griffin
This patch adds the pinctrl config for the spidf out pins used by the sasg codec IP. Signed-off-by: Arnaud Pouliquen Signed-off-by: Peter Griffin --- arch/arm/boot/dts/stih407-pinctrl.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/stih407-pinctrl.dtsi b/arch

[PATCH v5 00/18] Add support for FDMA DMA controller and slim core rproc found on STi chipsets

2016-06-07 Thread Peter Griffin
Hi Vinod, Bjorn, Maxime, Patrice, This patchset adds support for the Flexible Direct Memory Access (FDMA) core found on STi chipsets from STMicroelectronics. The FDMA is a slim core CPU with a dedicated firmware. It is a general purpose DMA controller supporting 16 independent channels and data ca

[PATCH v5 03/18] MAINTAINERS: Add st slim core rproc driver to STi section.

2016-06-07 Thread Peter Griffin
This patch adds the slim core rproc driver to the STi section of the MAINTAINERS file. Signed-off-by: Peter Griffin --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ed42cb6..8f16983 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1712,6 +1712,7

[PATCH v5 05/18] dmaengine: st_fdma: Add STMicroelectronics FDMA driver header file

2016-06-07 Thread Peter Griffin
This header file will also be used by the dma xbar driver in the future. Signed-off-by: Ludovic Barre Signed-off-by: Peter Griffin --- drivers/dma/st_fdma.h | 244 ++ 1 file changed, 244 insertions(+) create mode 100644 drivers/dma/st_fdma.h dif

[PATCH v5 02/18] remoteproc: st_slim_rproc: add a slimcore rproc driver

2016-06-07 Thread Peter Griffin
slim core is used as a basis for many IPs in the STi chipsets such as fdma and demux. To avoid duplicating the elf loading code in each device driver a slim rproc driver has been created. This driver is designed to be used by other device drivers such as fdma, or demux whose IP is based around a s

[PATCH v5 06/18] dmaengine: st_fdma: Add STMicroelectronics FDMA engine driver support

2016-06-07 Thread Peter Griffin
This patch adds support for the Flexible Direct Memory Access (FDMA) core driver. The FDMA is a slim core CPU with a dedicated firmware. It is a general purpose DMA controller capable of supporting 16 independent DMA channels. Data moves maybe from memory to memory or between memory and paced laten

[PATCH] Fix reported kmemleak

2016-06-07 Thread Shaun Tancheff
This fixes a memory leak reported by a few people in 4.7-rc1 kmemleak report after 9082e87bfbf8 ("block: remove struct bio_batch") This patch just formalizes the one in this discussion here: https://lkml.kernel.org/r/20160606112620.ga29...@e104818-lin.cambridge.arm.com The same issue appears her

Re: [alsa-devel] [PATCH v2 6/9] ASoC: mediatek: add mt2701 platform driver implementation.

2016-06-07 Thread Mark Brown
On Fri, Jun 03, 2016 at 12:56:21PM +0800, Garlic Tseng wrote: > + if (val < 0 || val > MT2701_I2S_NUM) { > + dev_err(afe->dev, "%s, num not available, num %d, val %d\n", > + __func__, num, val); > + return -1; Real error codes please. > +static con

Re: [PATCH 1/3] Documentation: dtb: xgene: Add hwmon dts binding documentation

2016-06-07 Thread Hoan Tran
Hi Rob, On Wed, May 25, 2016 at 10:09 AM, Rob Herring wrote: > > On Mon, May 23, 2016 at 06:01:14PM -0700, Hoan Tran wrote: > > Hi Rob, > > > > Thanks for your review ! > > > > On Mon, May 23, 2016 at 1:30 PM, Rob Herring wrote: > > > > > > On Mon, May 16, 2016 at 09:17:25AM -0700, Hoan Tran wro

[PATCH] Missing bio_put following submit_bio_wait

2016-06-07 Thread Shaun Tancheff
submit_bio_wait() gives the caller an opportunity to examine struct bio and so expects the caller to issue the put_bio() This fixes a memory leak reported by a few people in 4.7-rc2 kmemleak report after 9082e87bfbf8 ("block: remove struct bio_batch") Signed-off-by: Shaun Tancheff Tested-by: Cat

Re: [PATCH V5 1/7] ARM64, ACPI, PCI: I/O Remapping Table (IORT) initial support.

2016-06-07 Thread Marc Zyngier
On 07/06/16 15:34, Tomasz Nowicki wrote: > On 04.06.2016 13:15, Marc Zyngier wrote: >> On Tue, 31 May 2016 13:19:38 +0200 >> Tomasz Nowicki wrote: >> >>> IORT shows representation of IO topology for ARM based systems. >>> It describes how various components are connected together on >>> parent-chi

Re: [PATCH 07/34] clk: berlin: Migrate to clk_hw based registration and OF APIs

2016-06-07 Thread Alexandre Belloni
On 07/06/2016 at 01:40:47 -0700, Stephen Boyd wrote : > Quoting Alexandre Belloni (2016-06-05 10:41:57) > > Hi, > > > > The main drawback of those patches is that they break the alignment > > (checkpatch.pl --strict complains). > > Didn't checkpatch --strict already warn on these files though? I'

Re: [PATCH V5 4/6] vfio: platform: add support for ACPI probe

2016-06-07 Thread Auger Eric
Hi Sinan, Le 23/05/2016 à 15:18, Eric Auger a écrit : > On 05/16/2016 04:13 AM, Sinan Kaya wrote: >> The code is using the compatible DT string to associate a reset driver >> with the actual device itself. The compatible string does not exist on >> ACPI based systems. HID is the unique identifier f

Re: [RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for huge page UFFDIO_COPY

2016-06-07 Thread Mike Kravetz
On 06/06/2016 11:27 PM, Hillf Danton wrote: >> @@ -182,6 +354,13 @@ retry: >> goto out_unlock; >> >> /* >> + * If this is a HUGETLB vma, pass off to appropriate routine >> + */ >> +if (dst_vma->vm_flags & VM_HUGETLB) > > Use is_vm_hugetlb_page()? > And in cases in sub

Re: [PATCH 02/34] clk: at91: Migrate to clk_hw based registration and OF APIs

2016-06-07 Thread Alexandre Belloni
On 01/06/2016 at 16:15:01 -0700, Stephen Boyd wrote : > Now that we have clk_hw based provider APIs to register clks, we > can get rid of struct clk pointers in this driver, allowing us to > move closer to a clear split of consumer and provider clk APIs. > > Cc: Alexandre Belloni > Cc: Boris Brez

Re: [PATCH v10 4/8] vfio/type1: handle unmap/unpin and replay for VFIO_IOVA_RESERVED slots

2016-06-07 Thread kbuild test robot
Hi, [auto build test ERROR on vfio/next] [also build test ERROR on v4.7-rc2 next-20160607] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Eric-Auger/KVM-PCIe-MSI-passthrough-on-ARM-ARM64-kernel

[PATCH] mailbox: Add mailbox channel request by index support

2016-06-07 Thread Hoan Tran
This change adds request mailbox channel by index. It allows the mailbox client to request a channel without create a DT node. It's based on Rob's suggestion at http://www.spinics.net/lists/linux-doc/msg37060.html Signed-off-by: Hoan Tran --- drivers/mailbox/mailbox.c | 75

Re: [PATCH 02/34] clk: at91: Migrate to clk_hw based registration and OF APIs

2016-06-07 Thread Boris Brezillon
On Tue, 7 Jun 2016 18:36:21 +0200 Alexandre Belloni wrote: > On 01/06/2016 at 16:15:01 -0700, Stephen Boyd wrote : > > Now that we have clk_hw based provider APIs to register clks, we > > can get rid of struct clk pointers in this driver, allowing us to > > move closer to a clear split of consume

Re: [PATCH] clocksource/drivers/digicolor: fix warning of non-static function

2016-06-07 Thread Baruch Siach
Hi Ben, On Tue, Jun 07, 2016 at 03:11:50PM +0100, Ben Dooks wrote: > Change the dc_timer function to be static as it is not used outside > this driver. This fixes the following warning: > > drivers/clocksource/timer-digicolor.c:66:24: warning: symbol 'dc_timer' was > not declared. Should it be s

Re: [PATCH] [efifb] Fix 16 color palette entry calculation

2016-06-07 Thread Greg KH
On Tue, Jun 07, 2016 at 03:45:43PM +0200, Max Staudt wrote: > When using efifb with a 16-bit (5:6:5) visual, fbcon's text is rendered > in the wrong colors - e.g. text gray (#aa) is rendered as green > (#50bc50) and neighboring pixels have slightly different values > (such as #50bc78). > > The

Re: [PATCH v10 4/8] vfio/type1: handle unmap/unpin and replay for VFIO_IOVA_RESERVED slots

2016-06-07 Thread Auger Eric
Hello, Le 07/06/2016 à 18:44, kbuild test robot a écrit : > Hi, > > [auto build test ERROR on vfio/next] > [also build test ERROR on v4.7-rc2 next-20160607] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url:

Re: [PATCH v2 3/2] lib/uuid.c: Silence an unchecked return value warning

2016-06-07 Thread George Spelvin
Andy Shevchenko wrote: > Something wrong with mail configuration? Oops, sorry, I forgot to delete the header. > On Sun, 2016-06-05 at 15:25 -0400, George Spelvin wrote: >> It's also faster, as hex_to_bin() *is* inlined within hex2bin() >> (if you compile with -O). > To be sure it faster we

Re: [RESEND PATCH v2] power_supply: power_supply_read_temp only if use_cnt > 0

2016-06-07 Thread Rhyland Klein
On 6/7/2016 3:23 AM, Krzysztof Kozlowski wrote: > On 06/06/2016 06:56 PM, Rhyland Klein wrote: >> Add check to power_supply_read_temp() to only use the power_supply >> get_property() callback if the use_cnt is > 0. The use_cnt will >> be incremented at the end of __power_supply_register, so this wi

Re: [PATCH] Missing bio_put following submit_bio_wait

2016-06-07 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

Re: [PATCH v4 0/3] request_firmware() into pre-allocated buffers

2016-06-07 Thread Stephen Boyd
Ah sorry, I seem to have missed updating that one place (it was in multiple places). I'll resend properly. On 7 June 2016 at 01:45, Russell King - ARM Linux wrote: > And you're still doing it, after I've already pointed out that you > posted these to linux-arm and not linux-arm-kernel. By postin

[RESEND/PATCHv4 v4 2/3] firmware: Provide infrastructure to make fw caching optional

2016-06-07 Thread Stephen Boyd
From: Vikram Mulukutla Some low memory systems with complex peripherals cannot afford to have the relatively large firmware images taking up valuable memory during suspend and resume. Change the internal implementation of firmware_class to disallow caching based on a configurable option. In the n

[RESEND/PATCHv4 v4 3/3] firmware: Support loading into a pre-allocated buffer

2016-06-07 Thread Stephen Boyd
Some systems are memory constrained but they need to load very large firmwares. The firmware subsystem allows drivers to request this firmware be loaded from the filesystem, but this requires that the entire firmware be loaded into kernel memory first before it's provided to the driver. This can le

Re: [PATCH] Missing bio_put following submit_bio_wait

2016-06-07 Thread Jens Axboe
On 06/07/2016 10:32 AM, Shaun Tancheff wrote: submit_bio_wait() gives the caller an opportunity to examine struct bio and so expects the caller to issue the put_bio() This fixes a memory leak reported by a few people in 4.7-rc2 kmemleak report after 9082e87bfbf8 ("block: remove struct bio_batch"

[RESEND/PATCHv4 v4 0/3] request_firmware() into pre-allocated buffers

2016-06-07 Thread Stephen Boyd
Some systems are memory constrained but they need to load very large firmwares. The firmware subsystem allows drivers to request this firmware be loaded from the filesystem, but this requires that the entire firmware be loaded into kernel memory first before it's provided to the driver. This can le

[RESEND/PATCHv4 v4 1/3] firmware: Consolidate kmap/read/write logic

2016-06-07 Thread Stephen Boyd
We use similar structured code to read and write the kmapped firmware pages. The only difference is read copies from the kmap region and write copies to it. Consolidate this into one function to reduce duplication. Cc: Vikram Mulukutla Signed-off-by: Stephen Boyd --- drivers/base/firmware_class

Re: [PATCH 06/16] sched: Disable WAKE_AFFINE for asymmetric configurations

2016-06-07 Thread Morten Rasmussen
On Thu, May 26, 2016 at 08:45:03AM +0200, Vincent Guittot wrote: > On 25 May 2016 at 11:12, Morten Rasmussen wrote: > > On Tue, May 24, 2016 at 05:53:27PM +0200, Vincent Guittot wrote: > >> On 24 May 2016 at 17:02, Morten Rasmussen wrote: > >> > On Tue, May 24, 2016 at 03:52:00PM +0200, Vincent G

[RFC PATCH 4/4] x86/mce-inject: Use debugfs_remove_recursive()

2016-06-07 Thread Borislav Petkov
From: Borislav Petkov ... and simplify a bit. No functionality change. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce-inject.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arc

[RFC PATCH 2/4] x86/mce: Deprecate /dev/mcelog

2016-06-07 Thread Borislav Petkov
From: Tony Luck Move all code relating to /dev/mcelog to own source file. /dev/mcelog driver can now operate from the machine check notifier with lowest prio. Boris: * Move the mce_helper and trigger functionality behind CONFIG_X86_MCELOG. Signed-off-by: Tony Luck Signed-off-by: Borislav Petko

[RFC PATCH 3/4] x86/mce: Merge mce_amd_inj into mce-inject

2016-06-07 Thread Borislav Petkov
From: Borislav Petkov We're reusing mce_amd_inj's debugfs interface so that mce-inject can benefit from it too. The old functionality is still preserved under CONFIG_X86_MCELOG. Signed-off-by: Borislav Petkov --- arch/x86/Kconfig| 2 +- arch/x86/kernel/cpu/mcheck/mce-

[RFC PATCH 1/4] RAS: Add a Corrected Errors Collector

2016-06-07 Thread Borislav Petkov
From: Borislav Petkov A simple data structure for collecting correctable errors along with accessors. More detailed description in the code itself. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce.c | 120 +-- arch/x86/ras/Kconfig | 11 + drivers/ras/Makef

[R-F-C PATCH 0/4] RFC: x86/mce: Deprecate mcelog and other funsies

2016-06-07 Thread Borislav Petkov
From: Borislav Petkov So this set cannot have a bigger "RFC" tag: It attempts to revive the correctable errors collector. In this version, the thing gets counters in debugfs: (debugfs)/ras/cec/ |-- array `-- pfn which give some stats on the CEC like how many CEs it caught and the number of pa

YOUR ATM.

2016-06-07 Thread Musa Ibrahim
Attention Owner Of Atm Card, We here by wish to notify you that this office {BCEAO BANK BURKINA FASO} has been mandated to issue out your payment of $1.5m USD through an ATM MASTER CARD. You have to stop further communication with any other person(s) or offices to avoid any hitch in receiving y

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-06-07 Thread Guenter Roeck
On Mon, Jun 06, 2016 at 04:28:08PM +0300, Heikki Krogerus wrote: [ ... ] > > I would prefer lower case letters. I don't know the SIDs there are at > them moment, other then Display Port. Do you know them? > SIDs: 0xff00 - power delivery 0xff01 - displayport 0xff02 - MHL

Re: [PATCH v8 2/3] CMDQ: Mediatek CMDQ driver

2016-06-07 Thread Matthias Brugger
On 03/06/16 15:11, Matthias Brugger wrote: [...] + +smp_mb(); /* modify jump before enable thread */ +} + +cmdq_thread_writel(thread, task->pa_base + task->command_size, + CMDQ_THR_END_ADDR); +cmdq_thread_resume(thread); +} +lis

Re: NVMe over Fabrics target implementation

2016-06-07 Thread Bart Van Assche
On 06/06/2016 02:22 PM, Christoph Hellwig wrote: The target is configured using configfs, and configurable entities are: - NVMe subsystems and namespaces - NVMe over Fabrics ports and referrals - Host ACLs for primitive access control - NVMe over Fabrics access control is still work in prog

Re: [PATCH] thinkpad_acpi: Add support for HKEY version 0x200

2016-06-07 Thread Lyude Paul
Since nothing's really happened with this patch for a while I figured I'd take over trying to get this upstream. Regarding testing: This seems to work fine on the 60 series laptops, and works fine on previous generations. The one thing I haven't been able to test is an X1 carbon with an adaptive k

[PATCH v2] staging: lustre: lustre: obdclass: Modify return statement

2016-06-07 Thread Anchal Jain
Modify the return statement. The Coccinelle semantic patch used to make this change is as follows: @@ expression e, ret; @@ -ret = +return e; -return ret; Delete the declaration of the return variable rc, as it is no longer used. Signed-off-by: Anchal Jain --- changes in v2 --

Re: [PATCH v8 2/3] CMDQ: Mediatek CMDQ driver

2016-06-07 Thread Matthias Brugger
On 30/05/16 05:19, HS Liao wrote: This patch is first version of Mediatek Command Queue(CMDQ) driver. The CMDQ is used to help read/write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achiev

Re: USB broken on Banana Pi in Linux 4.6

2016-06-07 Thread Marc Haber
On Fri, Jun 03, 2016 at 08:35:11AM -0700, Greg KH wrote: > On Fri, Jun 03, 2016 at 08:53:58AM +0200, Marc Haber wrote: > > On Mon, May 30, 2016 at 01:47:12PM -0700, Greg KH wrote: > > > On Mon, May 30, 2016 at 09:02:54PM +0200, Marc Haber wrote: > > > > Hi, > > > > > > > > on my Bananapis, in kern

Re: [PATCH v14.1 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-06-07 Thread Javier Martinez Canillas
Hello Yakir, On 03/17/2016 05:47 PM, Heiko Stübner wrote: > Split the dp core driver from exynos directory to bridge directory, > and rename the core driver to analogix_dp_*, rename the platform > code to exynos_dp. > > Beside the new analogix_dp driver would export six hooks. > "analogix_dp_bind

Re: Files leak from nfsd in 4.7.1-rc1 (and more?)

2016-06-07 Thread Jeff Layton
On Tue, 2016-06-07 at 11:37 -0400, Oleg Drokin wrote: > Hello! > >    I've been trying to better understand this problem I was having where > sometimes >    a formerly NFS-exported mountpoint becomes unmountable (after nfsd stop). > >    I finally traced it to a leaked filedescriptor that was al

Re: [PATCH v2 3/2] lib/uuid.c: Silence an unchecked return value warning

2016-06-07 Thread Joe Perches
On Tue, 2016-06-07 at 12:43 -0400, George Spelvin wrote: > Andy Shevchenko wrote: > > To be sure it faster we need the measurements. Sometimes it's not > > obvious. [] > Speaking pedantically, you're right.  But as a practical matter, it's > very unlikely, and what makes it truly insignificant is t

Re: [PATCH] ARM: dts: am335x-boneblack: add i2c1 DT entry

2016-06-07 Thread Robert Nelson
On Tue, Jun 7, 2016 at 1:14 AM, Li, Yong B wrote: > Thanks Tony. > > I checked the DTS/overlays using linux-yocto-4.1 kernel(Ostro OS). It seems > to me that the kernel/u-boot do not include the latest overlay support patch. > And I also tested the latest Debian 8.4 using BBB boards, the I2C1 do

Re: [PATCH 2/3] ntb_transport: Check the number of spads the hardware supports

2016-06-07 Thread Logan Gunthorpe
Hi Jon, Thanks for the feedback. I'll send an updated patch in a moment. On 04/06/16 09:40 AM, Jon Mason wrote: > Nit, please add spaces around '*' (per checkpatch) I'll change this, but I did run it through checkpatch and it did not warn about this. > Please explicitly point out that this is b

Re: [PATCH 1/3] Documentation: dtb: xgene: Add hwmon dts binding documentation

2016-06-07 Thread Jassi Brar
On Tue, May 24, 2016 at 6:31 AM, Hoan Tran wrote: > Hi Rob, > > Thanks for your review ! > > On Mon, May 23, 2016 at 1:30 PM, Rob Herring wrote: >> >> On Mon, May 16, 2016 at 09:17:25AM -0700, Hoan Tran wrote: >> > This patch adds the APM X-Gene hwmon device tree node documentation. >> > >> > Sig

Re: [PATCH v3 2/2] phy: rockchip-inno-usb2: add a new driver for Rockchip usb2phy

2016-06-07 Thread Guenter Roeck
On Tue, Jun 07, 2016 at 04:12:29PM +0200, Heiko Stübner wrote: > Hi Guenter, > > Am Dienstag, 7. Juni 2016, 06:19:45 schrieb Guenter Roeck: > > On Tue, Jun 7, 2016 at 2:54 AM, Heiko Stübner wrote: > > > Hi Frank, > > > > > > Am Montag, 6. Juni 2016, 17:20:04 schrieb Frank Wang: > > >> The newer

Re: [PATCH 4/7] ARM: dts: sun7i: Add NFC node to Allwinner A20 SoC

2016-06-07 Thread Aleksei Mamlin
On Mon, 6 Jun 2016 13:24:21 +0300 Aleksei Mamlin wrote: > From: Boris Brezillon > > Add NAND Flash controller node definition to the A20 SoC. > > Signed-off-by: Boris Brezillon > Signed-off-by: Aleksei Mamlin > --- > arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++ > 1 file changed, 11 i

Re: [PATCH] [efifb] Fix 16 color palette entry calculation

2016-06-07 Thread Peter Jones
On Tue, Jun 07, 2016 at 03:45:43PM +0200, Max Staudt wrote: > When using efifb with a 16-bit (5:6:5) visual, fbcon's text is rendered > in the wrong colors - e.g. text gray (#aa) is rendered as green > (#50bc50) and neighboring pixels have slightly different values > (such as #50bc78). > > The

Re: [PATCH v2 2/3] ntb_transport: Check the number of spads the hardware supports

2016-06-07 Thread Jiang, Dave
On Tue, 2016-06-07 at 11:20 -0600, Logan Gunthorpe wrote: > I'm working on hardware that currently has a limited number of > scratchpad registers and ntb_ndev fails with no clue as to why. I > feel it is better to fail early and provide a reasonable error > message > then to fail later on. > > The

Re: [PATCH 03/14] pwm: rockchip: Fix period and duty_cycle approximation

2016-06-07 Thread Brian Norris
On Sat, Jun 04, 2016 at 08:19:55AM +0200, Boris Brezillon wrote: > On Fri, 3 Jun 2016 13:03:26 -0700 > Brian Norris wrote: > > > On Fri, Jun 03, 2016 at 10:23:01AM +0200, Boris Brezillon wrote: > > > The current implementation always round down the duty and period > > > values, while it would be

Re: [PATCH 04/14] pwm: rockchip: Add support for hardware readout

2016-06-07 Thread Brian Norris
On Sat, Jun 04, 2016 at 08:24:26AM +0200, Boris Brezillon wrote: > On Fri, 3 Jun 2016 13:20:06 -0700 Brian Norris > wrote: > > On Fri, Jun 03, 2016 at 10:23:02AM +0200, Boris Brezillon wrote: > > > @@ -75,6 +77,19 @@ static void rockchip_pwm_set_enable_v1(struct pwm_chip > > > *chip, > > > wri

Re: [PATCH 2/5] EDAC, altera: ECC Manager IRQ controller support

2016-06-07 Thread Borislav Petkov
On Wed, May 25, 2016 at 11:29:40AM -0500, ttha...@opensource.altera.com wrote: > From: Thor Thayer > > To better support child devices, the ECC manager needs to be > implemented as an IRQ controller. > > Signed-off-by: Thor Thayer > --- > drivers/edac/altera_edac.c | 162 > ++

Re: USB broken on Banana Pi in Linux 4.6

2016-06-07 Thread Greg KH
On Tue, Jun 07, 2016 at 07:06:00PM +0200, Marc Haber wrote: > On Fri, Jun 03, 2016 at 08:35:11AM -0700, Greg KH wrote: > > On Fri, Jun 03, 2016 at 08:53:58AM +0200, Marc Haber wrote: > > > On Mon, May 30, 2016 at 01:47:12PM -0700, Greg KH wrote: > > > > On Mon, May 30, 2016 at 09:02:54PM +0200, Mar

Re: [PATCH v2] staging: lustre: lustre: obdclass: Modify return statement

2016-06-07 Thread Greg KH
On Tue, Jun 07, 2016 at 10:34:01PM +0530, Anchal Jain wrote: > Modify the return statement. > The Coccinelle semantic patch used to make this change is as follows: > > @@ > expression e, ret; > @@ > > -ret = > +return > e; > -return ret; > > Delete the declaration of the return variable

Re: NVMe over Fabrics target implementation

2016-06-07 Thread Christoph Hellwig
Hi Bart, > As you know with configfs it is not allowed to create directories in the > configfs hierarchy from inside the kernel. Of course you can, and every user of configfs relies on being able to create directories from the kernel using either the default_groups list, or through the use of co

Re: Files leak from nfsd in 4.7.1-rc1 (and more?)

2016-06-07 Thread Oleg Drokin
On Jun 7, 2016, at 1:10 PM, Jeff Layton wrote: > On Tue, 2016-06-07 at 11:37 -0400, Oleg Drokin wrote: >> Hello! >> >>I've been trying to better understand this problem I was having where >> sometimes >>a formerly NFS-exported mountpoint becomes unmountable (after nfsd stop). >> >>

Re: [PATCH 1/2 v8] ASoC: dwc: Add PIO PCM extension

2016-06-07 Thread Mark Brown
On Mon, May 30, 2016 at 10:53:15AM +0100, Jose Abreu wrote: A few small things but this looks basically fine. > + if (isr[i] & 0x33) > + irq_valid = true; This checks for a mask of 0x33 but... > + > + /* > + * Check if TX fifo is empty. I

Re: [PATCH v5 02/18] remoteproc: st_slim_rproc: add a slimcore rproc driver

2016-06-07 Thread kbuild test robot
Hi, [auto build test WARNING on robh/for-next] [also build test WARNING on v4.7-rc2 next-20160607] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Peter-Griffin/Add-support-for-FDMA-DMA

Re: [BUG] Page allocation failures with newest kernels

2016-06-07 Thread Marcin Wojtas
Hi Mel, 2016-06-03 14:36 GMT+02:00 Mel Gorman : > On Fri, Jun 03, 2016 at 01:57:06PM +0200, Marcin Wojtas wrote: >> >> For the record: the newest kernel I was able to reproduce the dumps >> >> was v4.6: http://pastebin.com/ekDdACn5. I've just checked v4.7-rc1, >> >> which comprise a lot (mainly

Re: [PATCH -v4 5/7] locking, arch: Update spin_unlock_wait()

2016-06-07 Thread Peter Zijlstra
On Tue, Jun 07, 2016 at 08:45:53PM +0800, Boqun Feng wrote: > On Tue, Jun 07, 2016 at 02:00:16PM +0200, Peter Zijlstra wrote: > > On Tue, Jun 07, 2016 at 07:43:15PM +0800, Boqun Feng wrote: > > > On Mon, Jun 06, 2016 at 06:08:36PM +0200, Peter Zijlstra wrote: > > > > diff --git a/kernel/locking/qsp

[PATCH 8/8] dmaengine: Remove site specific OOM error messages on kzalloc

2016-06-07 Thread Peter Griffin
If kzalloc() fails it will issue it's own error message including a dump_stack(). So remove the site specific error messages. Signed-off-by: Peter Griffin --- drivers/dma/amba-pl08x.c| 10 +- drivers/dma/bestcomm/bestcomm.c | 2 -- drivers/dma/edma.c | 16 --

[PATCH 5/8] dmaengine: ste_dma40: Only calculate residue if txstate exists.

2016-06-07 Thread Peter Griffin
There is no point calculating the residue if there is no txstate to store the value. Signed-off-by: Peter Griffin --- drivers/dma/ste_dma40.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 6fb8307..378cc47 100644 --- a/

[PATCH 0/8] Various dmaengine cleanups

2016-06-07 Thread Peter Griffin
Hi Vinod, This series is a bunch of cleanup updates to various dmaengine drivers, based on some of the review feeback to my fdma series. regards, Peter. Peter Griffin (8): dmaengine: fsl-edma: Fix clock handling error paths dmaengine: fsl-edma: print error code in error messages. dmaengin

<    2   3   4   5   6   7   8   9   10   11   >