[PATCH 0/3] staging: android: ion: Minor clean ups and fixes

2017-05-17 Thread Archit Taneja
The recent ION clean ups introduced some leftover code that can be removed, and a bug that comes up if the call to dma_buf_map_attachment() from an importer fails. Fix these. Archit Taneja (3): staging: android: ion: Remove unused members from ion_buffer staging: android: ion: Remove ION_FLAG_

[PATCH 1/3] staging: android: ion: Remove unused members from ion_buffer

2017-05-17 Thread Archit Taneja
A few members in ion_buffer struct are unused after features like page faulting, ion_handle and ion_client were removed. Remove these members and the leftover references to them. Signed-off-by: Archit Taneja --- drivers/staging/android/ion/ion.c | 2 -- drivers/staging/android/ion/ion.h | 14 --

[PATCH 3/3] staging: android: ion: Avoid calling free_duped_table() twice

2017-05-17 Thread Archit Taneja
Currently, the duplicated sg table is freed in the detach() and the error path of map_dma_buf() ion's dma_buf_ops. If a call to dma_buf_map_attachment() fails, the importer is expected to call dma_buf_detach() to remove the attachment. This will result in us trying to free the duped sg table twice

Re: [PATCH] perf report: Fix invalid warning on callchain param

2017-05-17 Thread Milian Wolff
On Wednesday, May 17, 2017 9:08:37 AM CEST Namhyung Kim wrote: > Currently "perf report -g srcline --stdio" shows two warnings like > below: > > Invalid callchain mode: srcline > Invalid callchain order: srcline > > This is because it always tries to parse callchain mode, order, sort-key > an

Re: [PATCH v1] samples/bpf: Add a .gitignore for binaries

2017-05-17 Thread Alexander Alemayhu
On Tue, May 16, 2017 at 04:27:36PM -0700, David Ahern wrote: > > The problem stems from the fact that bpf samples do not really fall into > the 'hostprogs' category (see "4 Host Program support" in > Documentation/kbuild/makefiles.txt). Fixing samples/bpf to not rely on > it is the better long ter

Re: [PATCH 4.4-only] openvswitch: clear sender cpu before forwarding packets

2017-05-17 Thread Greg KH
On Tue, May 16, 2017 at 03:25:10PM +0100, Anoob Soman wrote: > Similar to commit c29390c6dfee ("xps: must clear sender_cpu before > forwarding") the skb->sender_cpu needs to be cleared before forwarding > packets. > > Fixes: 2bd82484bb4c ("xps: fix xps for stacked devices") > Signed-off-by: Anoob

trace/kprobes: Enforce kprobes teardown after testing

2017-05-17 Thread Thomas Gleixner
Enabling the tracer selftest triggers occasionally the warning in text_poke(), which warns when the to be modified page is not marked reserved. The reason is that the tracer selftest installs kprobes on functions marked __init for testing. These probes are removed after the tests, but that removal

Re: [alsa-devel] [PATCH v2 2/2] dmaengine: dw: Remove AVR32 bits from the driver

2017-05-17 Thread Andy Shevchenko
On Tue, May 16, 2017 at 7:28 AM, Vinod Koul wrote: > On Mon, May 15, 2017 at 05:09:13PM +0200, Takashi Iwai wrote: >> On Mon, 15 May 2017 16:49:40 +0200, >> Vinod Koul wrote: >> > > Sorry, I forgot to mention that it's supposed to go via either tree, >> > > though together. Since first we remove

Re: [PATCH 1/2] net-next: stmmac: add adjust_link function

2017-05-17 Thread Corentin Labbe
On Tue, May 16, 2017 at 09:43:04AM -0700, Florian Fainelli wrote: > On 05/15/2017 04:41 AM, Corentin Labbe wrote: > > My dwmac-sun8i serie will add some if (has_sun8i) to > > stmmac_adjust_link() > > Since the current stmmac_adjust_link() alreaady have lots of if > > (has_gmac/gmac4), > > It is no

Re: [PATCH] gpu: drm: radeon: refactor code

2017-05-17 Thread Christian König
Am 17.05.2017 um 04:20 schrieb Gustavo A. R. Silva: Local variable _color_ is assigned to a constant value and it is never updated again. Remove this variable and refactor the code it affects. Addresses-Coverity-ID: 1226745 Signed-off-by: Gustavo A. R. Silva Mhm, on the one hand it looks like

Re: [PATCH 2/4] media: platform: dwc: Support for DW CSI-2 Host

2017-05-17 Thread Sakari Ailus
Hi Hans, On Wed, May 17, 2017 at 09:00:59AM +0200, Hans Verkuil wrote: > Hi Sakari, > > Can you comment on this? You are much more a CSI sensor expert than I am. Sure. Thanks for the ping. > > On 16/05/17 20:18, Ramiro Oliveira wrote: > > Hi Hans, > > > > Thank you very much for your feedbac

[PATCH] alpha: use generic fb.h

2017-05-17 Thread Tobias Klauser
The arch uses a verbatim copy of the asm-generic version and does not add any own implemntations to the header, so use asm-generic/fb.h instead of duplicating code. Signed-off-by: Tobias Klauser --- arch/alpha/include/asm/Kbuild | 1 + arch/alpha/include/asm/fb.h | 13 - 2 files c

[PATCH] cris: use generic fb.h

2017-05-17 Thread Tobias Klauser
The arch uses a verbatim copy of the asm-generic version and does not add any own implemntations to the header, so use asm-generic/fb.h instead of duplicating code. Signed-off-by: Tobias Klauser --- arch/cris/include/asm/Kbuild | 1 + arch/cris/include/asm/fb.h | 12 2 files chan

[PATCH v5 3/3] perf: cavium: Support transmit-link PMU counters

2017-05-17 Thread Jan Glauber
Add support for the transmit-link (TLK) PMU counters found on Caviums SOCs with an interconnect. Signed-off-by: Jan Glauber --- drivers/edac/thunderx_edac.c| 7 ++ drivers/perf/cavium_pmu.c | 223 +++- include/linux/perf/cavium_pmu.h | 1 + 3 fil

[PATCH v5 1/3] perf: export perf_event_update_userpage()

2017-05-17 Thread Jan Glauber
Export perf_event_update_userpage() to make it usable from a module. Signed-off-by: Jan Glauber --- kernel/events/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/core.c b/kernel/events/core.c index 6e75a5c..6578b9f 100644 --- a/kernel/events/core.c +++ b/kernel/events/co

[PATCH v5 0/3] Cavium ARM64 uncore PMU support

2017-05-17 Thread Jan Glauber
Here is another attempt of adding support for some PMU counters on Cavium SOCs. The major change is that I quit trying to merge the counters as it would not fit with your requirements [1]. Another big change is that now the EDAC driver for the devices carrying the PMU counters is upstream. I've a

[PATCH v5 2/3] perf: cavium: Support memory controller PMU counters

2017-05-17 Thread Jan Glauber
Add support for the PMU counters on Cavium SOC memory controllers. This patch also adds generic functions to allow supporting more devices with PMU counters. Signed-off-by: Jan Glauber --- drivers/edac/thunderx_edac.c| 12 +- drivers/perf/Kconfig| 8 + drivers/perf/Makefile

Re: [PATCH 0/3] Cleanup evergreen/si IRQ handling code

2017-05-17 Thread Christian König
Am 16.05.2017 um 23:11 schrieb Lyude: This is the first part of me going through and cleaning up the IRQ handling code for radeon, since after taking a look at it the other day while trying to debug something I realized basically all of the code was copy pasted everywhere, and quite difficult to

[PATCH] frv: use generic fb.h

2017-05-17 Thread Tobias Klauser
The arch uses a verbatim copy of the asm-generic version and does not add any own implemntations to the header, so use asm-generic/fb.h instead of duplicating code. Signed-off-by: Tobias Klauser --- arch/frv/include/asm/Kbuild | 1 + arch/frv/include/asm/fb.h | 12 2 files change

[PATCH] mn10300: use generic fb.h

2017-05-17 Thread Tobias Klauser
The arch uses a verbatim copy of the asm-generic version and does not add any own implemntations to the header, so use asm-generic/fb.h instead of duplicating code. Signed-off-by: Tobias Klauser --- arch/mn10300/include/asm/Kbuild | 1 + arch/mn10300/include/asm/fb.h | 23

Re: [pwm] question about potential division by zero

2017-05-17 Thread Matthias Brugger
On 16/05/17 23:56, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1408721 I ran into the following piece of code at /drivers/pwm/pwm-mediatek.c:77: 77static int mtk_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 78 int d

[PATCH] s390: use generic fb.h

2017-05-17 Thread Tobias Klauser
The arch uses a verbatim copy of the asm-generic version and does not add any own implemntations to the header, so use asm-generic/fb.h instead of duplicating code. Signed-off-by: Tobias Klauser --- arch/s390/include/asm/Kbuild | 1 + arch/s390/include/asm/fb.h | 12 2 files chan

[PATCH] xtensa: use generic fb.h

2017-05-17 Thread Tobias Klauser
The arch uses a verbatim copy of the asm-generic version and does not add any own implemntations to the header, so use asm-generic/fb.h instead of duplicating code. Signed-off-by: Tobias Klauser --- arch/xtensa/include/asm/Kbuild | 1 + arch/xtensa/include/asm/fb.h | 12 2 files

[PATCH 4/6] ubifs: Add assert to dent_key_init()

2017-05-17 Thread Richard Weinberger
...to make sure that we don't use it for double hashed lookups instead of dent_key_init_hash(). Signed-off-by: Richard Weinberger --- fs/ubifs/key.h | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ubifs/key.h b/fs/ubifs/key.h index 7547be512db2..b1f7c0caa3ac 100644 --- a/fs/ubifs/key.h ++

[PATCH 2/6] ubifs: Fix data node size for truncating uncompressed nodes

2017-05-17 Thread Richard Weinberger
From: David Oberhollenzer Currently, the function truncate_data_node only updates the destination data node size if compression is used. For uncompressed nodes, the old length is incorrectly retained. This patch makes sure that the length is correctly set when compression is disabled. Fixes: 77

[PATCH 1/6] ubifs: Don't try to encrypt special files

2017-05-17 Thread Richard Weinberger
fscrypt can only operate on files, directories and symlinks. Fixes: d475a507457b5cafa428871a473d0dcc828c5f68 Signed-off-by: Richard Weinberger --- fs/ubifs/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 566079d9b402..70b26221f2e7 100644 --- a/fs/u

[PATCH 6/6] ubifs: Remove dead code from ubifs_get_link()

2017-05-17 Thread Richard Weinberger
We check the length already, no need to check later again for an empty string. Signed-off-by: Richard Weinberger --- fs/ubifs/file.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c index 2cda3d67e2d0..ccb7a1279fd5 100644 --- a/fs/ubifs/file.c +++ b/fs/u

[PATCH 3/6] ubifs: Fix unlink code wrt. double hash lookups

2017-05-17 Thread Richard Weinberger
When removing an encrypted file with a long name and without having the key we have to be able to locate and remove the directory entry via a double hash. This corner case was simply forgotten. Fixes: 528e3d178f25 ("ubifs: Add full hash lookup support") Reported-by: David Oberhollenzer Signed-off

[PATCH 5/6] ubifs: Massage debug prints wrt. fscrypt

2017-05-17 Thread Richard Weinberger
If file names are encrypted we can no longer print them. That's why we have to change these prints or remove them completely. Signed-off-by: Richard Weinberger --- fs/ubifs/journal.c | 10 -- fs/ubifs/tnc.c | 9 - 2 files changed, 4 insertions(+), 15 deletions(-) diff --git

[PATCH 00/12] arm64: dts: hi3660: add device nodes

2017-05-17 Thread Guodong Xu
This patchset adds various devices nodes for hi3660 and hikey960. HiKey960 is one of 96boards. For details information about it, please refer to [1]. [1] https://github.com/96boards/documentation/tree/master/ConsumerEdition/HiKey960 Chen Feng (2): arm64: dts: hi3660: Add uarts nodes arm64:

[PATCH 01/12] dt-bindings: arm: hisilicon: add bindings for HiKey960 board

2017-05-17 Thread Guodong Xu
Add bindings for HiKey960 Board. Signed-off-by: Guodong Xu --- Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/hisilicon/hisilicon.txt b/Documentation/devicetree/bindings/arm/hisilicon/hi

[PATCH 02/12] arm64: dts: hisilicon: update compatible string for hikey960

2017-05-17 Thread Guodong Xu
Update compatible string for hikey960. HiKey960 is a develpment board built with SoC Hi3660. Signed-off-by: Guodong Xu Signed-off-by: Chen Feng --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon

[PATCH 05/12] arm64: dts: Add I2C nodes for Hi3660

2017-05-17 Thread Guodong Xu
From: Zhangfei Gao Add I2C nodes for Hi3660-hikey960. On HiKey960, I2C0, I2C7 is connected to Low Speed Expansion Connector. I2C1 is connected to ADV7535. I2C3 is connected to USB5734. Signed-off-by: Zhangfei Gao Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts

[PATCH 07/12] arm64: dts: hi3660: Add uarts nodes

2017-05-17 Thread Guodong Xu
From: Chen Feng Add nodes uart0 to uart4 and uart6 for hi3660 SoC. Enable uart3 and uart6, disable uart5, in hikey960 board dts. On HiKey960: - UART6 is used as default console, and is wired out through low speed expansion connector. - UART3 has RTS/CTS hardware handshake, and is wire

[PATCH 03/12] arm64: dts: hikey960: pinctrl: add more pinmux and pinconfig

2017-05-17 Thread Guodong Xu
From: Wang Xiaoyin This commit adds more pinmux and pinctrl information for devices on HiKey960, including i2c, spi, cam, uart, ufs, pcie, csi, pwr_key, isp, sd/sdio, i2s, and usb. Signed-off-by: Wang Xiaoyin Signed-off-by: Chen Jun Signed-off-by: Guodong Xu --- .../arm64/boot/dts/hisilicon/

[PATCH 11/12] arm64: dts: hi3660: add power key dts node

2017-05-17 Thread Guodong Xu
From: Chen Jun We use gpio_034 as power key on hikey960, and set gpio with pull-up state, when key press the voltage on the gpio will come to lower, and power key event will be reported. Signed-off-by: Chen Jun Signed-off-by: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisi

[PATCH 10/12] arm64: dts: hi3660: add spi device nodes

2017-05-17 Thread Guodong Xu
From: Wang Xiaoyin Add spi2 and spi3 device nodes for hi3660, and enable them for hikey960. On HiKey960: - SPI2 is wired out through low speed expansion connector. - SPI3 is wired out through high speed expansion connector. Signed-off-by: Wang Xiaoyin Signed-off-by: Guodong Xu --- arch/arm

[PATCH 08/12] arm64: dts: hikey960: add WL1837 Bluetooth device node

2017-05-17 Thread Guodong Xu
This adds the serial slave device for the WL1837 Bluetooth interface. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilico

[PATCH 12/12] arm64: dts: hikey960: add LED nodes

2017-05-17 Thread Guodong Xu
HiKey960 has four user LEDs, and two special purpose LEDs: WiFi and BT respectively. All of them are implemented as GPIO. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/

[PATCH 09/12] arm64: dts: hi3660: Add pl031 rtc node

2017-05-17 Thread Guodong Xu
From: Chen Feng Add dts node to enable pl031 rtc. Signed-off-by: Chen Feng --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 0951a29..c2bca5d 100

[PATCH 04/12] arm64: dts: hi3660: add resources for clock and reset

2017-05-17 Thread Guodong Xu
From: Zhangfei Gao Add some resource nodes for clock and reset Signed-off-by: Zhangfei Gao --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 53 +++ 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/

[PATCH 06/12] arm64: dts: hi3660: add gpio dtsi file for Hisilicon Hi3660 SOC

2017-05-17 Thread Guodong Xu
From: Wang Xiaoyin This patch adds pl061 device nodes for Hi3660 SoC. Signed-off-by: Wang Xiaoyin --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 409 ++ 1 file changed, 409 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts

[PATCH] dmaengine: make several functions static

2017-05-17 Thread Colin King
From: Colin Ian King Functions sba_prep_dma_pq_req, sba_prep_dma_pq_single_req and sba_prep_dma_xor_req can be made static as they do not need to be in global scope. Signed-off-by: Colin Ian King --- drivers/dma/bcm-sba-raid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -

Re: [PATCH v2 1/5] tpm: introduce tpm_pcr_algorithms()

2017-05-17 Thread Roberto Sassu
On 5/15/2017 3:18 PM, Roberto Sassu wrote: On 5/15/2017 12:36 PM, Jarkko Sakkinen wrote: On Fri, May 05, 2017 at 04:21:48PM +0200, Roberto Sassu wrote: This function allows TPM users to know which algorithms the TPM supports. It stores the algorithms in a static array of 'enum tpm2_algorithms

[PATCH] net: always include tcp.h in sock.c

2017-05-17 Thread Arnd Bergmann
kernelci reports a build regression in the latest 4.12 snapshots in configurations without TCP: net/core/sock.c: In function 'skb_orphan_partial': net/core/sock.c:1810:6: error: implicit declaration of function 'skb_is_tcp_pure_ack' [-Werror=implicit-function-declaration] The declaration is simp

Re: [PATCH 2/2] zram: do not count duplicated pages as compressed

2017-05-17 Thread Minchan Kim
Hi Sergey, On Tue, May 16, 2017 at 04:36:17PM +0900, Sergey Senozhatsky wrote: > On (05/16/17 16:16), Minchan Kim wrote: > > > but would this be correct? the data is not valid - we failed to store > > > the valid one. but instead we assure application that read()/swapin/etc., > > > depending on th

[PATCH] udp: make function udp_skb_dtor_locked static

2017-05-17 Thread Colin King
From: Colin Ian King Function udp_skb_dtor_locked does not need to be in global scope so make it static to fix sparse warning: net/ipv4/udp.c: warning: symbol 'udp_skb_dtor_locked' was not declared. Should it be static? Fixes: 6dfb4367cd911d ("udp: keep the sk_receive_queue held when splicing")

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-17 Thread Johan Hovold
On Tue, May 16, 2017 at 02:28:28PM -0700, Andrey Smirnov wrote: > On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: > > Make sure to deregister and release the nvmem device and underlying > > memory on registration errors. > > > > Note that the private data must be freed using put_device() once

[tip:timers/nohz] nohz: Fix collision between tick and other hrtimers, again

2017-05-17 Thread tip-bot for Frederic Weisbecker
Commit-ID: 411fe24e6b7c283c3a1911450cdba6dd3aaea56e Gitweb: http://git.kernel.org/tip/411fe24e6b7c283c3a1911450cdba6dd3aaea56e Author: Frederic Weisbecker AuthorDate: Fri, 21 Apr 2017 16:00:54 +0200 Committer: Ingo Molnar CommitDate: Wed, 17 May 2017 08:19:47 +0200 nohz: Fix collision

Re: [PATCH] sh: use pr_cont in code dump

2017-05-17 Thread Geert Uytterhoeven
Hi Aurelien, On Wed, May 17, 2017 at 12:35 AM, Aurelien Jarno wrote: > Using using printk to continue logging messages now produces multiple > line logging output unless the continuations use KERN_CONT. This causes > the code dump on SH do be unreadable: > > [ 40.036000] Code: > [ 40.036000]

Re: [PATCH v3 15/21] drm/sun4i: Ignore the generic connectors for components

2017-05-17 Thread Chen-Yu Tsai
On Wed, May 17, 2017 at 3:40 PM, Maxime Ripard wrote: > The generic connectors such as hdmi-connector doesn't have any driver in, > so if they are added to the component list, we will be waiting forever for > a non-existing driver to probe. > > Add a list of the connectors we want to ignore when b

Re: [PATCH v3 19/21] drm/sun4i: Add compatible for the A10s pipeline

2017-05-17 Thread Chen-Yu Tsai
On Wed, May 17, 2017 at 3:40 PM, Maxime Ripard wrote: > The A10s has a slightly different display pipeline than the A13, with an > HDMI controller. > > Add a compatible for it. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

Re: [PATCH 1/3] arm: dts: rk322x: fix i2s1 pinctrl error

2017-05-17 Thread Heiko Stübner
Hi Frank, Am Mittwoch, 17. Mai 2017, 11:40:49 CEST schrieb Frank Wang: > From: Sugar Zhang > > Refer to Chapter 5.3.2 of rk3229 TRM, we can see that GPIO1A[2,4,5] > using RK_FUNC_2 not RK_FUNC_1. This patch fixes it. > > Signed-off-by: Frank Wang if the patch has another author, you should pr

Re: [PATCH] xtensa: use generic fb.h

2017-05-17 Thread Max Filippov
On Wed, May 17, 2017 at 1:35 AM, Tobias Klauser wrote: > The arch uses a verbatim copy of the asm-generic version and does not > add any own implemntations to the header, so use asm-generic/fb.h > instead of duplicating code. > > Signed-off-by: Tobias Klauser > --- > arch/xtensa/include/asm/Kbui

Re: [PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command

2017-05-17 Thread Mark Brown
On Mon, May 15, 2017 at 10:17:11AM +0200, Seraphime Kirkovski wrote: > On Sun, May 14, 2017 at 06:27:16PM +0900, Mark Brown wrote: > > Do we have any evidence that such users exist? > I can't guarantee for other such users, but this change did disturb our > workflow. We were using this feature

Re: [PATCH 1/2] drm: replace drm_[cm]alloc* by kvmalloc alternatives

2017-05-17 Thread Michal Hocko
On Wed 17-05-17 08:38:09, Chris Wilson wrote: > On Wed, May 17, 2017 at 08:55:08AM +0200, Michal Hocko wrote: > > From: Michal Hocko > > > > drm_[cm]alloc* has grown their own kvmalloc with vmalloc fallback > > implementations. MM has grown kvmalloc* helpers in the meantime. Let's > > use those b

Re: [PATCH v6 3/5] test: add new driver_data load tester

2017-05-17 Thread AKASHI Takahiro
On Fri, May 12, 2017 at 05:59:23PM +0200, Luis R. Rodriguez wrote: > On Fri, May 12, 2017 at 09:28:47AM +0900, AKASHI Takahiro wrote: > > On Thu, May 11, 2017 at 11:32:30AM -0700, Luis R. Rodriguez wrote: > > > On Thu, May 11, 2017 at 11:26 AM, Luis R. Rodriguez > > > wrote: > > > > > > > > It wo

Re: [PATCH] nvmem: core: Prevent memory leak when device is unregistered

2017-05-17 Thread Mika Westerberg
On Tue, May 16, 2017 at 02:33:55PM -0700, Andrey Smirnov wrote: > On Mon, May 15, 2017 at 4:13 AM, Mika Westerberg > wrote: > > The nvmem_unregister() calls device_del() for the device but forgets to > > call put_device() to actually release the device object which causes > > that memory to be lea

Re: [PATCH 1/2] drm: replace drm_[cm]alloc* by kvmalloc alternatives

2017-05-17 Thread Chris Wilson
On Wed, May 17, 2017 at 11:03:50AM +0200, Michal Hocko wrote: > On Wed 17-05-17 08:38:09, Chris Wilson wrote: > > On Wed, May 17, 2017 at 08:55:08AM +0200, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > drm_[cm]alloc* has grown their own kvmalloc with vmalloc fallback > > > implementati

Re: [PATCH v2] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-05-17 Thread Greg Kroah-Hartman
On Tue, May 16, 2017 at 09:01:27AM -0700, Tony Lindgren wrote: > * Russell King - ARM Linux [170503 11:58]: > > On Mon, Apr 10, 2017 at 09:52:47AM -0500, Dave Gerlach wrote: > > > Currently the sram-exec functionality, which allows allocation of > > > executable memory and provides an API to move

Re: [PATCH 2/2] zram: do not count duplicated pages as compressed

2017-05-17 Thread Sergey Senozhatsky
Hello Minchan, On (05/17/17 17:32), Minchan Kim wrote: [..] > > what we can return now is a `partially updated' data, with some new > > and some stale pages. this is quite unlikely to end up anywhere good. > > am I wrong? > > > > why does `rd block 4' in your case causes Oops? as a worst case sce

Re: [PATCH] powerpc: booke: fix boot crash due to null hugepd

2017-05-17 Thread Greg KH
On Tue, May 16, 2017 at 09:47:52AM -0500, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > On 32-bit book-e machines, hugepd_ok() does not take > into account null hugepd values, causing this crash at boot: > > Unable to handle kernel paging request for data at address 0x8000 > Fau

Re: [PATCH] udp: make function udp_skb_dtor_locked static

2017-05-17 Thread Paolo Abeni
On Wed, 2017-05-17 at 09:50 +0100, Colin King wrote: > From: Colin Ian King > > Function udp_skb_dtor_locked does not need to be in global scope > so make it static to fix sparse warning: > > net/ipv4/udp.c: warning: symbol 'udp_skb_dtor_locked' was not > declared. Should it be static? > > Fixe

Re: [RFC 1/6] mm, page_alloc: fix more premature OOM due to race with cpuset update

2017-05-17 Thread Michal Hocko
On Sun 30-04-17 16:33:10, Cristopher Lameter wrote: > On Wed, 26 Apr 2017, Vlastimil Babka wrote: > > > > Such an application typically already has such logic and executes a > > > binding after discovering its numa node configuration on startup. It would > > > have to be modified to redo that acti

Re: [PATCH 4.4-only] openvswitch: clear sender cpu before forwarding packets

2017-05-17 Thread Anoob Soman
On 17/05/17 09:19, Greg KH wrote: Why is this a non-upstream patch? What commit in Linus's tree fixed this? Why not just backport that? thanks, greg k-h Agreed, I think it is sensible to backport 52bd2d62ce67 "net: better skb->sender_cpu and skb->napi_id cohabitation" to 4.4, rather than

Re: [PATCH 1/3] arm: dts: rk322x: fix i2s1 pinctrl error

2017-05-17 Thread Frank Wang
Hi Heiko, On 2017/5/17 17:01, Heiko Stübner wrote: Hi Frank, Am Mittwoch, 17. Mai 2017, 11:40:49 CEST schrieb Frank Wang: From: Sugar Zhang Refer to Chapter 5.3.2 of rk3229 TRM, we can see that GPIO1A[2,4,5] using RK_FUNC_2 not RK_FUNC_1. This patch fixes it. Signed-off-by: Frank Wang if

Re: [PATCH] mmc: sdhci-xenon: kill xenon_clean_phy()

2017-05-17 Thread Jisheng Zhang
On Tue, 16 May 2017 14:22:11 +0200 Andrew Lunn wrote: > On Tue, May 16, 2017 at 02:17:20PM +0800, Jisheng Zhang wrote: > > Currently, the xenon_clean_phy() is only used for freeing phy_params. > > The phy_params is allocated by devm_kzalloc(), there's no need to free > > is explicitly. > > > > S

Re: [PATCH 1/2] ARM: davinci: PM: Free resources in error handling path in 'davinci_pm_init'

2017-05-17 Thread Sekhar Nori
On Saturday 13 May 2017 05:10 PM, Christophe JAILLET wrote: > If 'sram_alloc' fails, we need to free already allocated resources. > > Fixes: aa9aa1ec2df6 ("ARM: davinci: PM: rework init, remove platform device") > Signed-off-by: Christophe JAILLET Applied to fixes for v4.12. Thanks, Sekhar

Re: [PATCH 1/2] drm: replace drm_[cm]alloc* by kvmalloc alternatives

2017-05-17 Thread Michal Hocko
On Wed 17-05-17 10:12:41, Chris Wilson wrote: > On Wed, May 17, 2017 at 11:03:50AM +0200, Michal Hocko wrote: [...] > > +static inline bool alloc_array_check(size_t n, size_t size) > > +{ > > + if (size != 0 && n > SIZE_MAX / size) > > + return false; > > + return true; > > Just retu

Re: [PATCH v7 11/13] ARM: sun8i: v3s: add device nodes for DE2 display pipeline

2017-05-17 Thread icenowy
在 2017-05-15 17:24,Maxime Ripard 写道: On Mon, May 15, 2017 at 12:30:43AM +0800, Icenowy Zheng wrote: + de2_clocks: clock@100 { display_clocks would be better there, we don't have to dissociate de1 with de2 How about de_clocks ? (See A80 DTSI) + comp

Re: [PATCH] powerpc: booke: fix boot crash due to null hugepd

2017-05-17 Thread Laurentiu Tudor
Hi Greg, On 05/17/2017 12:15 PM, Greg KH wrote: > On Tue, May 16, 2017 at 09:47:52AM -0500, laurentiu.tu...@nxp.com wrote: >> From: Laurentiu Tudor >> >> On 32-bit book-e machines, hugepd_ok() does not take >> into account null hugepd values, causing this crash at boot: >> > > $ ./scripts/get_mai

Re: [PATCH v7 11/13] ARM: sun8i: v3s: add device nodes for DE2 display pipeline

2017-05-17 Thread icenowy
在 2017-05-17 17:27,icen...@aosc.io 写道: 在 2017-05-15 17:24,Maxime Ripard 写道: On Mon, May 15, 2017 at 12:30:43AM +0800, Icenowy Zheng wrote: + de2_clocks: clock@100 { display_clocks would be better there, we don't have to dissociate de1 with de2 How about de_clocks ? (See A8

Re: powernv:idle: Set NAPSTATELOST after recovering paca on P9 DD1

2017-05-17 Thread Michael Ellerman
On Fri, 2017-05-12 at 09:22:06 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > commit 17ed4c8f81da ("powerpc/powernv: Recover correct PACA on wakeup > from a stop on P9 DD1") promises to set the NAPSTATELOST bit in paca > after recovering the correct paca for the thread waking up

Re: powerpc/modules: If mprofile-kernel is enabled add it to vermagic

2017-05-17 Thread Michael Ellerman
On Wed, 2017-05-10 at 06:57:49 UTC, Michael Ellerman wrote: > On powerpc we can build the kernel with two different ABIs for mcount(), which > is used by ftrace. Kernels built with one ABI do not know how to load modules > built with the other ABI. The new style ABI is called "mprofile-kernel", for

Re: [PATCH -next] ASoC: rt5665: make local symbol rt5665_i2c_driver static

2017-05-17 Thread Mark Brown
On Tue, May 16, 2017 at 04:24:56PM +, Wei Yongjun wrote: > From: Wei Yongjun Please try to send your mails from the address you're using for the signoffs - if you send from another address it looks like you're forwarding on someone else's patch without adding your signoff which sets off alarm

Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers

2017-05-17 Thread Guenter Roeck
On 05/17/2017 12:34 AM, Oliver Neukum wrote: Am Mittwoch, den 17.05.2017, 00:32 -0700 schrieb Badhri Jagan Sridharan: Hi, "Two independent set of mechanisms are defined to allow a USB Type-C DRP to functionally swap power and data roles. When USB PD is supported, power and data role swapping i

Re: [PATCH v15 03/13] mux: minimal mux subsystem

2017-05-17 Thread Philipp Zabel
On Sun, 2017-05-14 at 21:51 +0200, Peter Rosin wrote: > From: Peter Rosin > > Add a new minimalistic subsystem that handles multiplexer controllers. > When multiplexers are used in various places in the kernel, and the > same multiplexer controller can be used for several independent things, > th

Re: [PATCH v15 04/13] mux: gpio: add mux controller driver for gpio based multiplexers

2017-05-17 Thread Philipp Zabel
On Sun, 2017-05-14 at 21:51 +0200, Peter Rosin wrote: > From: Peter Rosin > > The driver builds a single multiplexer controller using a number > of gpio pins. For N pins, there will be 2^N possible multiplexer > states. The GPIO pins can be connected (by the hardware) to several > multiplexers, w

Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers

2017-05-17 Thread Guenter Roeck
On 05/17/2017 01:08 AM, Greg Kroah-Hartman wrote: On Wed, May 17, 2017 at 12:32:19AM -0700, Badhri Jagan Sridharan wrote: With this CL the lower level drivers are reponsible to check and make sure responsible that the role swap can be performed. What is a "CL"? Too much Gerrit. "Change

Re: [RFC][PATCH 03/14] sched/fair: Remove se->load.weight from se->avg.load_sum

2017-05-17 Thread Vincent Guittot
Le Wednesday 17 May 2017 à 09:04:47 (+0200), Vincent Guittot a écrit : > Hi Peter, > > On 12 May 2017 at 18:44, Peter Zijlstra wrote: > > Remove the load from the load_sum for sched_entities, basically > > turning load_sum into runnable_sum. This prepares for better > > reweighting of group enti

Re: [PATCH v3 14/21] drm/sun4i: tcon: multiply the vtotal when not in interlace

2017-05-17 Thread Chen-Yu Tsai
On Wed, May 17, 2017 at 3:40 PM, Maxime Ripard wrote: > It appears that the total vertical resolution needs to be doubled when > we're not in interlaced. Make sure that is the case. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 25 + > 1 fi

Applied "ASoC: atmel-classd: sync regcache when resuming" to the asoc tree

2017-05-17 Thread Mark Brown
The patch ASoC: atmel-classd: sync regcache when resuming has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Applied "ASoC: rt5665: make local symbol rt5665_i2c_driver static" to the asoc tree

2017-05-17 Thread Mark Brown
The patch ASoC: rt5665: make local symbol rt5665_i2c_driver static has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) an

Applied "ASoC: fsi: Move inline fsi_stream_is_play() before use" to the asoc tree

2017-05-17 Thread Mark Brown
The patch ASoC: fsi: Move inline fsi_stream_is_play() before use has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

[PATCH v2 0/3] add and fix some device node for rk322x SoC

2017-05-17 Thread Frank Wang
These series of patches fix some device node errors and add watchdog device node support for rk322x SoC. Changes from v1: - Updated the 'Signed-off-by' tag with original authors' email id. - Dropped pinctrl-0 of uart2 emendation. Frank Wang (2): arm: dts: rk322x: correct uart2 pinctrl and add

Applied "ASoC: hdmi-codec: fix spelling mistake: "deteced" -> "detected"" to the asoc tree

2017-05-17 Thread Mark Brown
The patch ASoC: hdmi-codec: fix spelling mistake: "deteced" -> "detected" has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

[PATCH v2 2/3] arm: dts: rk322x: correct uart2 pinctrl and add another sets

2017-05-17 Thread Frank Wang
Correct UART2 PINCTRL flag and add another PINCTRL sets for UART2 in case of confict with SDMMC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi i

[PATCH v2 1/3] arm: dts: rk322x: fix i2s1 pinctrl error

2017-05-17 Thread Frank Wang
From: Sugar Zhang Refer to Chapter 5.3.2 of rk3229 TRM, we can see that GPIO1A[2,4,5] using RK_FUNC_2 not RK_FUNC_1. This patch fixes it. Signed-off-by: Sugar Zhang Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-17 Thread Andy Shevchenko
On Tue, May 16, 2017 at 2:15 PM, Nikita Yushchenko wrote: >> static u32 lpuart32_read(void __iomem *addr) >> { >> - return ioread32be(addr); >> + return lpuart_is_be ? ioread32be(addr) : readl(addr); >> } >> >> static void lpuart32_write(u32 val, void __iomem *addr) >> { >> - iowr

Applied "ASoC: rt5665: Fix uninitialized warning in rt5665_i2s_pin_event()" to the asoc tree

2017-05-17 Thread Mark Brown
The patch ASoC: rt5665: Fix uninitialized warning in rt5665_i2s_pin_event() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "regulator: Allow for asymmetric settling times" to the regulator tree

2017-05-17 Thread Mark Brown
The patch regulator: Allow for asymmetric settling times has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "of_graph: add of_graph_get_port_parent()" to the asoc tree

2017-05-17 Thread Mark Brown
The patch of_graph: add of_graph_get_port_parent() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Applied "of_graph: add of_graph_get_remote_endpoint()" to the asoc tree

2017-05-17 Thread Mark Brown
The patch of_graph: add of_graph_get_remote_endpoint() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Li

Applied "regulator: DT: Add properties for asymmetric settling times" to the regulator tree

2017-05-17 Thread Mark Brown
The patch regulator: DT: Add properties for asymmetric settling times has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

[PATCH v2 3/3] arm: dts: rk322x: add watchdog device node.

2017-05-17 Thread Frank Wang
Add watchdog device node for rk322x SoC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index fe6530f..f7498b3 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/a

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-17 Thread Andy Shevchenko
On Wed, May 17, 2017 at 8:43 AM, Dong Aisheng wrote: > On Wed, May 17, 2017 at 08:37:41AM +0300, Nikita Yushchenko wrote: >> >> >> 17.05.2017 06:39, Dong Aisheng wrote: >> > On Tue, May 16, 2017 at 02:15:08PM +0300, Nikita Yushchenko wrote: >> >>> static u32 lpuart32_read(void __iomem *addr) >> >

Re: [PATCH 2/2] ARM: davinci: PM: Do not free useful resources in normal path in 'davinci_pm_init'

2017-05-17 Thread Sekhar Nori
On Saturday 13 May 2017 05:10 PM, Christophe JAILLET wrote: > This looks spurious to iounmap resources in the normal path of this init > function. > The 3 ioremap'ed fields of 'pm_config' can be accessed later on in other > functions, so it is likely that we should return 'success' before unrolling

Re: [PATCH] imx-serial: RX DMA startup latency

2017-05-17 Thread Sascha Hauer
On Sun, May 14, 2017 at 02:35:15PM +0200, Peter Senna Tschudin wrote: > 18a4208 introduced a change to reduce the RX DMA latency on the first > reception > when the serial port was opened for reading. However it was claiming a hardirq > unsafe lock after a hardirq safe lock which is not allowed an

Re: [patch V2 03/17] arm64: Adjust system_state check

2017-05-17 Thread Mark Rutland
On Tue, May 16, 2017 at 08:42:34PM +0200, Thomas Gleixner wrote: > To enable smp_processor_id() and might_sleep() debug checks earlier, it's > required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING. > > Adjust the system_state check in smp_send_stop() to handle the extra states. >

[PATCH v8 00/08] iommu/ipmmu-vmsa: IPMMU multi-arch update V8

2017-05-17 Thread Magnus Damm
iommu/ipmmu-vmsa: IPMMU multi-arch update V8 [PATCH v8 01/08] iommu/ipmmu-vmsa: Remove platform data handling [PATCH v8 02/08] iommu/ipmmu-vmsa: Rework interrupt code and use bitmap for context [PATCH v8 03/08] iommu/ipmmu-vmsa: Break out utlb parsing code [PATCH v8 04/08] iommu/ipmmu-vmsa: Break

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