[PATCH v2 6/7] drm/rockchip: Respect page offset in IOMMU mmap

2017-02-07 Thread Mark Yao
From: Ørjan Eide When mapping buffers through the PRIME DMA-buf mmap path we might be given an offset which has to be respected. The DRM GEM mmap path already takes care of zeroing out the fake mmap offset, so we can just make the IOMMU mmap implementation always respect the offset. TEST=graphic

[PATCH v2 5/7] drm/rockchip: Fix the call to drm_gem_put_pages()

2017-02-07 Thread Mark Yao
From: Tomasz Figa When freeing the buffer we don't have any means of determining if the buffer was read or written, so we must assume both and pass true for both arguments of drm_gem_put_pages(). Let's fix the code which currently passes false. TEST=while true; do backlight_dbus_tool --set --per

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

2017-02-07 Thread Greg KH
On Tue, Feb 07, 2017 at 09:37:09AM +1100, Stephen Rothwell wrote: > Hi all, > > On Mon, 6 Feb 2017 18:01:20 +0100 Ulrich Hecht > wrote: > > > > On Mon, Feb 6, 2017 at 9:50 AM, Greg KH wrote: > > > > > > I think this is fixed by a patch I just took into my tree, which isn't > > > in linux-next y

[PATCH v2 3/7] drm/rockchip: gem: add mutex lock for drm mm

2017-02-07 Thread Mark Yao
drm_mm_insert_node_generic and drm_mm_remove_node may access same resource with list ops, it's not threads safe, so protect this context with mutex lock. Fix bug: [49451.856244] == [49451.856350] BUG: KASAN: wild-memory-access on add

[PATCH v2 1/7] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2017-02-07 Thread Mark Yao
From: Tomasz Figa The API is not suitable for subsystems consisting of multiple devices and requires severe hacks to use it. To mitigate this, this patch implements allocation and address space management locally by using helpers provided by DRM framework, like other DRM drivers do, e.g. Tegra.

[PATCH v2 2/7] drm/rockchip: Use common IOMMU API to attach devices

2017-02-07 Thread Mark Yao
From: Shunqian Zheng Rockchip DRM used the arm special API, arm_iommu_*(), to attach iommu for ARM32 SoCs. This patch convert to common iommu API so it would support ARM64 like RK3399. Since previous patch added support for direct IOMMU address space management, there is no need to use DMA API a

[PATCH v2 4/7] drm/rockchip: gem: fixup iommu_map_sg error path

2017-02-07 Thread Mark Yao
The return value of iommu_map_sg is size_t, it's unsigned, So check ret < 0 is wrong. And if iommu_map_sg is error, it's return value is zero, but rockchip_gem_iommu_map feel the zero return value is success, bug happen: [5.227458] [drm:rockchip_gem_iommu_map] *ERROR* failed to map buffer: 0

[PATCH v2 0/7] drm/rockchip: switch to drm_mm for support arm64 iommu

2017-02-07 Thread Mark Yao
Some iommu patches on the series[0] "iommu/rockchip: Fix bugs and enable on ARM64" already landed, So drm/rockchip related patches [1] and [2] ready to landed, this series just rebase them to lastest drm-next. And fix some bugs for drm/rockchip drm_mm [0]: http://www.spinics.net/lists/arm-kernel/

Re: [PATCH v2 05/15] HID: logitech-hidpp: forward device info in power_supply

2017-02-07 Thread Benjamin Tissoires
Hi Bastien, On Feb 03 2017 or thereabouts, Bastien Nocera wrote: > On Thu, 2017-02-02 at 15:12 +0100, Benjamin Tissoires wrote: > > +   case POWER_SUPPLY_PROP_MANUFACTURER: > > +   val->strval = "Logitech, Inc."; > > I don't like this change. I'd prefer the concate

Re: [PATCH 4/4] refcount: Report failures through CHECK_DATA_CORRUPTION

2017-02-07 Thread Peter Zijlstra
On Mon, Feb 06, 2017 at 08:54:38AM -0800, Kees Cook wrote: > > > > Like I wrote, ideally we'd end up using something like the x86 exception > > table with a custom handler. Just no idea how to pull that off without > > doing a full blown arch specific implementation, so I didn't go there > > quite

Re: [PATCH v2 2/3] dt: ASoC: zx-i2s: Document for the ZTE zx296718 I2S controller

2017-02-07 Thread Shawn Guo
On Tue, Feb 07, 2017 at 11:02:50AM +0800, Baoyou Xie wrote: > This patch documents the devicetree for the ZTE's zx296718 > I2S audio controller. > > Signed-off-by: Baoyou Xie > --- > Documentation/devicetree/bindings/sound/zte,zx-i2s.txt | 6 -- > 1 file changed, 4 insertions(+), 2 deletions

Re: [PATCH 57/89] sched/headers: Split out of

2017-02-07 Thread Geert Uytterhoeven
Hi Ingo, On Tue, Feb 7, 2017 at 9:13 AM, Ingo Molnar wrote: > * Geert Uytterhoeven wrote: >> On Mon, Feb 6, 2017 at 10:54 PM, Ingo Molnar wrote: >> > Wondering why Git allowed me to be so stupid with those leftover merge >> > markers. >> > Git usually doesn't even allow me to commit them so I

Re: [PATCH v2 2/5] async_tx: Handle DMA devices having support for fewer PQ coefficients

2017-02-07 Thread Dan Williams
On Tue, Feb 7, 2017 at 12:16 AM, Anup Patel wrote: > The DMAENGINE framework assumes that if PQ offload is supported by a > DMA device then all 256 PQ coefficients are supported. This assumption > does not hold anymore because we now have BCM-SBA-RAID offload engine > which supports PQ offload wit

Re: [PATCH v2 3/3] ASoC: zx-i2s: support zx296718 SoC for ZTE's i2s controller driver

2017-02-07 Thread Shawn Guo
On Tue, Feb 07, 2017 at 11:02:51AM +0800, Baoyou Xie wrote: > This patch adds zx296718 SoC support for ZTE's i2s controller driver. > > Signed-off-by: Baoyou Xie > --- > sound/soc/zte/zx-i2s.c | 45 +++-- > 1 file changed, 35 insertions(+), 10 deletions(-)

Re: [PATCH v2 2/8] mmc: bcm2835: Add new driver for the sdhost controller.

2017-02-07 Thread Stefan Wahren
Hi Gerd, Am 07.02.2017 um 09:02 schrieb Gerd Hoffmann: > On Mo, 2017-02-06 at 21:34 +0100, Stefan Wahren wrote: >> Hi Gerd, >> >> first of all here my wishlist for the next round of this driver: >> * compile test the series with ARM and ARM64 > It is tested on both arm and arm64 (rpi2 + rpi3). i

Re: [PATCH v4 13/15] livepatch: change to a per-task consistency model

2017-02-07 Thread Miroslav Benes
> > And finally, the section "Limitations" has this text under the first > > bullet: > > > > + The patch must not change the semantic of the patched functions. > > > > The current implementation guarantees only that either the old > > or the new function is called. The functions are p

Re: [PATCH v2] PM / Domains: Keep the pd status during system PM phases

2017-02-07 Thread Ulf Hansson
[...] >> >> >> Unfortunate, I am still not fully understanding the scenarios. As you >> indicate, the problem seems related to wakeup settings. >> >> Could you please try to answer the below questions, hopefully it helps >> me to better understand. >> >> 1) >> While starting the system suspend seq

[PATCH v2 3/5] async_tx: Fix DMA_PREP_FENCE usage in do_async_gen_syndrome()

2017-02-07 Thread Anup Patel
The DMA_PREP_FENCE is to be used when preparing Tx descriptor if output of Tx descriptor is to be used by next/dependent Tx descriptor. The DMA_PREP_FENSE will not be set correctly in do_async_gen_syndrome() when calling dma->device_prep_dma_pq() under following conditions: 1. ASYNC_TX_FENCE not s

[PATCH v2 1/5] lib/raid6: Add log-of-2 table for RAID6 HW requiring disk position

2017-02-07 Thread Anup Patel
The raid6_gfexp table represents {2}^n values for 0 <= n < 256. The Linux async_tx framework pass values from raid6_gfexp as coefficients for each source to prep_dma_pq() callback of DMA channel with PQ capability. This creates problem for RAID6 offload engines (such as Broadcom SBA) which take dis

[PATCH v2 4/5] dmaengine: Add Broadcom SBA RAID driver

2017-02-07 Thread Anup Patel
The Broadcom stream buffer accelerator (SBA) provides offloading capabilities for RAID operations. This SBA offload engine is accessible via Broadcom SoC specific ring manager. This patch adds Broadcom SBA RAID driver which provides one DMA device with RAID capabilities using one or more Broadcom

[PATCH v2 5/5] dt-bindings: Add DT bindings document for Broadcom SBA RAID driver

2017-02-07 Thread Anup Patel
This patch adds the DT bindings document for newly added Broadcom SBA RAID driver. Signed-off-by: Anup Patel Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../devicetree/bindings/dma/brcm,iproc-sba.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644

[PATCH v2 0/5] Broadcom SBA RAID support

2017-02-07 Thread Anup Patel
The Broadcom SBA RAID is a stream-based device which provides RAID5/6 offload. It requires a SoC specific ring manager (such as Broadcom FlexRM ring manager) to provide ring-based programming interface. Due to this, the Broadcom SBA RAID driver (mailbox client) implements DMA device having one DMA

[PATCH v2 2/5] async_tx: Handle DMA devices having support for fewer PQ coefficients

2017-02-07 Thread Anup Patel
The DMAENGINE framework assumes that if PQ offload is supported by a DMA device then all 256 PQ coefficients are supported. This assumption does not hold anymore because we now have BCM-SBA-RAID offload engine which supports PQ offload with limited number of PQ coefficients. This patch extends asy

Re: [PATCH 1/3] auxdisplay: ht16k33: do not try to free fbdev

2017-02-07 Thread Robin van der Gracht
Hello Dmitry, Thank you for submitting your changes. I was out of office last week and I'll try to test and review your changes on my hardware this week. Best regards, Robin van der Gracht

Re: [PATCH linux-next] fixup! usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-02-07 Thread Greg KH
On Mon, Feb 06, 2017 at 10:02:50PM +0200, cristian.bir...@microchip.com wrote: > From: Cristian Birsan > > Signed-off-by: Cristian Birsan I can't take a patch with no changelog comments at all, sorry. And what is with the "fixup!" in the subject line? I don't see any other kernel patches havi

[PATCH] arm64: dts: Enable ir-spi in the tm2 and tm2e boards

2017-02-07 Thread Andi Shyti
Add the device tree node for the ir-spi driver which enable the ir led for remote controlling. This patch sets first the GPR3[3] gpio line as a regulator-fixed for enabling an external regulator which powers the IR LED. Removes also the default assignment of the GPG3[5] and GPG3[7] related to the

Re: [PATCH 57/89] sched/headers: Split out of

2017-02-07 Thread Ingo Molnar
* Geert Uytterhoeven wrote: > Hi Ingo, > > On Mon, Feb 6, 2017 at 10:54 PM, Ingo Molnar wrote: > > Wondering why Git allowed me to be so stupid with those leftover merge > > markers. > > Git usually doesn't even allow me to commit them so I have these tuned out > > as a > > possibility. This

Re: [PATCH v2] Staging: omap4iss: Fix coding style issues

2017-02-07 Thread Greg KH
On Mon, Feb 06, 2017 at 07:58:35PM +0200, Avraham Shukron wrote: > Fixes line-over-80-characters issues as well as multiline comments style. When you say things like "as well as", that's a hint that this needs to be broken up into different patches. Please do so here. thanks, greg k-h

[PATCH 1/2] spi: s3c64xx: fix potential segmentation fault

2017-02-07 Thread Andi Shyti
The return value of dmaengine_prep_slave_sg is not checked, but eventually it can fail and in that case return 'NULL' causing a segmentation fault. Check dmaengine_prep_slave_sg return value and exit in case of failure. For doing this all the 'void' functions involved has been turned to 'int'. Th

[PATCH 2/2] spi: s3c64xx: fix potential division by zero

2017-02-07 Thread Andi Shyti
Even though it's quite unlikely to happen in this particular case, clk_get_rate can return '0' if sdd->src_clk is not set properly. In that case we would have a clear division by '0'. Check the return value of clk_get_rate and fail in case it returns '0'. This patch fixes '1397922 Division or mod

Re: [PATCH 1/2 v4] mm: vmscan: do not pass reclaimed slab to vmpressure

2017-02-07 Thread Michal Hocko
On Mon 06-02-17 20:40:10, vinayak menon wrote: > On Mon, Feb 6, 2017 at 6:22 PM, Michal Hocko wrote: > > On Mon 06-02-17 17:54:09, Vinayak Menon wrote: > >> During global reclaim, the nr_reclaimed passed to vmpressure includes the > >> pages reclaimed from slab. But the corresponding scanned slab

Re: [PATCH v2 1/3] clk: zte: add i2s clocks for zx296718

2017-02-07 Thread Shawn Guo
On Tue, Feb 07, 2017 at 11:02:49AM +0800, Baoyou Xie wrote: > The i2s related clock support is missing from the existing zx296718 > clock driver. This patch adds it, so that the upstream ZX I2S driver > can work out. > > Signed-off-by: Baoyou Xie > --- > drivers/clk/zte/clk-zx296718.c | 4 >

[PATCH] spi: s3c64xx: fix inconsistency between binding and driver

2017-02-07 Thread Andi Shyti
Commit a92e7c3d82a1 ("spi: s3c64xx: consider the case when the CS line is not connected") introduced an inconsistency between the binding where the disconnected CS line was marked as 'no-cs-readback' while the driver was erroneously checking for 'broken-cs'. Check for 'no-cs-readback' in the drive

Re: [PATCH 00/89] Major reorganization of

2017-02-07 Thread Peter Zijlstra
On Mon, Feb 06, 2017 at 11:13:59PM +0100, Ingo Molnar wrote: > * Linus Torvalds wrote: > > There were all those small things in there (Peter pointed out those cpumask > > things I wouldn't for the life of me have noticed) that were really subtle, > > and > > were really hidden by the fact that

Re: [GIT PULL] cputime: Convert core use of cputime_t to nsecs

2017-02-07 Thread Ingo Molnar
* Frederic Weisbecker wrote: > On Mon, Jan 30, 2017 at 05:46:43AM +0100, Frederic Weisbecker wrote: > > Ingo, > > > > Please pull the cputime/nsecs-for-tip branch that can be found at: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git > > cputime/nsecs-for-t

Re: [PATCH 57/89] sched/headers: Split out of

2017-02-07 Thread Geert Uytterhoeven
Hi Ingo, On Mon, Feb 6, 2017 at 10:54 PM, Ingo Molnar wrote: > Wondering why Git allowed me to be so stupid with those leftover merge > markers. > Git usually doesn't even allow me to commit them so I have these tuned out as > a > possibility. This was just a regular git rebase -i flow, to back

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-02-07 Thread Stephane Eranian
Hi, I wanted to take a few steps back and look at the overall goals for cache monitoring. >From the various threads and discussion, my understanding is as follows. I think the design must ensure that the following usage models can be monitored: - the allocations in your CAT partitions - the

Re: [PATCH 3/7] efi: Add SHIM and image security database GUID definitions

2017-02-07 Thread Ard Biesheuvel
On 7 February 2017 at 07:52, Ingo Molnar wrote: > > * Ard Biesheuvel wrote: > >> From: David Howells >> >> Add the definitions for shim and image security database, both of which >> are used widely in various Linux distros. >> >> Signed-off-by: Josh Boyer >> Signed-off-by: David Howells >> Cc:

Re: [PATCH 78/89] sched/core: Remove the tsk_cpus_allowed() wrapper

2017-02-07 Thread Peter Zijlstra
On Mon, Feb 06, 2017 at 11:03:08PM +0100, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > > +++ b/arch/powerpc/kernel/smp.c > > > +++ b/arch/sparc/kernel/sysfs.c > > > +++ b/drivers/cpufreq/sparc-us2e-cpufreq.c > > > +++ b/drivers/cpufreq/sparc-us3-cpufreq.c > > > > - cpumask_copy(&cpus_al

Re: kmemleak splat on copy_process()

2017-02-07 Thread Michal Hocko
On Tue 07-02-17 02:37:02, Luis R. Rodriguez wrote: > On Mon, Feb 06, 2017 at 10:47:41AM +0100, Michal Hocko wrote: > > On Fri 03-02-17 13:06:04, Luis R. Rodriguez wrote: > > > On next-20170125 running some kselftest not yet upstream I eventually > > > get a kmemleak splat: > > > > > > unreferenced

Re: [PATCH 1/4] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2017-02-07 Thread Mark yao
On 2017年02月07日 14:53, Tomasz Figa wrote: Hi Mark, Thanks for reviving this series and sorry for not taking care of it myself. Please see some comments inline. Hi Tomasz Thanks for review, I will add the patches you mentioned into v2 version. On Tue, Feb 7, 2017 at 3:09 PM, Mark Yao wrot

Re: [PATCH v2 2/8] mmc: bcm2835: Add new driver for the sdhost controller.

2017-02-07 Thread Gerd Hoffmann
On Mo, 2017-02-06 at 21:34 +0100, Stefan Wahren wrote: > Hi Gerd, > > first of all here my wishlist for the next round of this driver: > * compile test the series with ARM and ARM64 It is tested on both arm and arm64 (rpi2 + rpi3). > * add me in CC for all patches of the series Oops. /me shoul

Re: [PATCH v2] perf/sdt: Show proper hint

2017-02-07 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 03, 2017 at 03:56:42PM +0530, Ravi Bangoria escreveu: > > After patch: > > $ perf record -a -e sdt_glib:idle__add > > event syntax error: 'sdt_glib:idle__add' > > \___ unknown tracepoint > > > > Error: File /sys/

<    5   6   7   8   9   10