RE: [PATCH 3/4] sparc: convert mdesc_handle.refcnt from atomic_t to refcount_t

2017-04-03 Thread Reshetova, Elena
> From: Elena Reshetova > Date: Mon, 20 Feb 2017 13:06:20 +0200 > > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might

Re: [PATCH 2/2] drm: virtio: fix virtio_gpu_mode_dumb_create

2017-04-03 Thread Dave Airlie
On 3 April 2017 at 17:08, Gerd Hoffmann wrote: > Lookup format using virtio_gpu_translate_format() > instead of hardcoding it. Fixes xorg display on > bigendian guests (i.e. ppc64). > > Signed-off-by: Gerd Hoffmann For the series, Reviewed-by: Dave Airlie

Re: [PATCH v2 0/5] minitty: a minimal TTY layer alternative for embedded systems

2017-04-03 Thread Greg Kroah-Hartman
On Sat, Apr 01, 2017 at 06:21:14PM -0400, Nicolas Pitre wrote: > Many embedded systems don't need the full TTY layer support. Most of the > time, the TTY layer is only a conduit for outputting debugging messages > over a serial port. The TTY layer also implements many features that are > very

Re: [PATCH v2 7/9] drm/rockchip: Force disable all crtc when unload

2017-04-03 Thread Daniel Vetter
On Sat, Apr 1, 2017 at 1:35 PM, Jeffy Chen wrote: > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > index a5d83cb..5dbf011 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c > +++

Re: [Regression] Changes to i2c-piix4.c initialisation prevent loading of sp5100_tco watchdog driver on AMD SB800 chipset

2017-04-03 Thread Boszormenyi Zoltan
Hi, 2017-04-03 08:34 keltezéssel, Paul Menzel írta: Dear Zoltán, Am Samstag, den 01.04.2017, 12:13 +0200 schrieb Boszormenyi Zoltan: […] and have split the patch into three pieces now (USB quirks, i2c-piix4 and sp5100_tco) and they were sent to the relevant mailing lists. Could you

[tip:x86/asm] debug: Fix __bug_table[] in arch linker scripts

2017-04-03 Thread tip-bot for Peter Zijlstra
Commit-ID: b5effd3815ccbe3df1a015a6d67d8a24a27813d5 Gitweb: http://git.kernel.org/tip/b5effd3815ccbe3df1a015a6d67d8a24a27813d5 Author: Peter Zijlstra AuthorDate: Thu, 30 Mar 2017 17:49:27 +0200 Committer: Ingo Molnar CommitDate: Mon, 3 Apr 2017

Re: [PATCH 3/4] mfd: cpcap: Use ack_invert interrupts

2017-04-03 Thread Lee Jones
On Wed, 22 Mar 2017, Tony Lindgren wrote: > We should use ack_invert as the int_read_and_clear() in the Motorola > kernel tree does "ireg_val & ~mreg_val" before writing to the mask > register. > > Cc: Charles Keepax > Cc: Lee Jones >

Re: [PATCH 4/4] mfd: cpcap: Fix bad use of IRQ sense register

2017-04-03 Thread Lee Jones
On Wed, 22 Mar 2017, Tony Lindgren wrote: > The cpcap INTS registers are for getting the value of the line, > not for configuring the type. > > Cc: Charles Keepax > Cc: Lee Jones > Cc: Marcel Partap > Cc: Michael

Re: [PATCH 2/4] mfd: cpcap: Use handle_reread flag for interrupts

2017-04-03 Thread Lee Jones
On Wed, 22 Mar 2017, Tony Lindgren wrote: > On CPCAP we need to keep reading interrupts until there are no > more interrupts. Otherwise the PMIC interrupt to the SoC will at > some point stop toggling. This seems to happen because new CPCAP > device interrupts show up while we're handling. > >

Re: [PATCH] driver: rtc: tps65910: Add parameter check

2017-04-03 Thread Alexandre Belloni
Hi, On 15/03/2017 at 11:52:32 +0100, Daniel Schultz wrote: > If the tps65910 driver has no interrupt, the probe of tps65910-rtc will > fail. > > This patch adds a check in the probe of the rtc if an interrupt exist. > The check is similar to the check in the function which creates the >

[PATCH 1/1] nios2: implement flush_dcache_mmap_lock/unlock

2017-04-03 Thread Julien Beraud
Use spin_lock/unlock_irq instead of doing nothing. This fixes corruptions of the vma_interval_tree causing the kernel to be stuck in an infinite loop in vma_interval_tree_foreach. Signed-off-by: Julien Beraud --- arch/nios2/include/asm/cacheflush.h | 6

pull-request: wireless-drivers-next 2017-04-03

2017-04-03 Thread Kalle Valo
Hi Dave, here few really small fixes. I'm hoping this to be the last pull request for 4.11. Please let me if there are any problems. Kalle The following changes since commit 6be3b6cce1e225f189b68b4e84fc711d19b4277b: ath10k: fix incorrect wlan_mac_base in qca6174_regs (2017-03-20 17:11:31

[PATCH 2/3] extcon: intel-cht-wc: Disable external 5v boost converter on probe

2017-04-03 Thread Hans de Goede
Disable the 5v boost converter on probe in case it was left on by the BIOS, this fixes 2 problems: 1) This gets seen by the external battery charger as a valid Vbus supply and it then tries to feed Vsys from this creating a feedback loop which causes aprox. 300 mA extra battery drain

[PATCH 1/3] extcon: intel-cht-wc: Make error messages consistent

2017-04-03 Thread Hans de Goede
Before this commit the error messages were a mix of "Failed to ..." and "Error ...ing ...". This commit makes all the error messages consistently use "Error ...ing". Signed-off-by: Hans de Goede --- drivers/extcon/extcon-intel-cht-wc.c | 8 1 file changed, 4

Re: [PATCH v3 16/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64

2017-04-03 Thread Maxime Ripard
On Mon, Apr 03, 2017 at 11:14:40AM +0200, Corentin Labbe wrote: > The dwmac-sun8i hardware is present on the pine64 > It uses an external PHY via RMII. > > Signed-off-by: Corentin Labbe Looks fine, but please use "arm64: allwinner: pine64: " as your title prefix. It

Re: [PATCH v3 20/20] ARM: sunxi: Enable dwmac-sun8i driver on multi_v7_defconfig

2017-04-03 Thread Maxime Ripard
On Mon, Apr 03, 2017 at 11:14:44AM +0200, Corentin Labbe wrote: > Enable the dwmac-sun8i driver in the multi_v7 default configuration Your prefix should be arm: multi_v7: Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com signature.asc

Re: [PATCH 15/16] drivers, net, intersil: convert hostap_cmd_queue.usecnt from atomic_t to refcount_t

2017-04-03 Thread Kalle Valo
Elena Reshetova writes: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. > >

Re: [PATCH 0/6] mm: make movable onlining suck less

2017-04-03 Thread Michal Hocko
On Fri 31-03-17 21:19:24, Heiko Carstens wrote: > On Thu, Mar 30, 2017 at 01:54:48PM +0200, Michal Hocko wrote: > > Patch 5 is the core of the change. In order to make it easier to review > > I have tried it to be as minimalistic as possible and the large code > > removal is moved to patch 6. > >

Re: [PATCH 0/6] [media] fix missing endpoint sanity checks

2017-04-03 Thread Johan Hovold
On Mon, Mar 13, 2017 at 01:53:53PM +0100, Johan Hovold wrote: > This series fixes a number of NULL-pointer dereferences (and related > issues) due to missing endpoint sanity checks that can be triggered by a > malicious USB device. > Johan Hovold (6): > [media] dib0700: fix NULL-deref at probe

Re: [PATCH v5.1 0/6] drm: bridge: dw-hdmi: Add support for Custom PHYs

2017-04-03 Thread Archit Taneja
Hi, On 03/31/2017 07:55 PM, Neil Armstrong wrote: The Amlogic GX SoCs implements a Synopsys DesignWare HDMI TX Controller in combination with a very custom PHY. Thanks to Laurent Pinchart's changes, the HW report the following : Detected HDMI TX controller v2.01a with HDCP (meson_dw_hdmi_phy)

Re: [PATCH] pinctrl: core: Fix pinctrl_register_and_init() with pinctrl_enable()

2017-04-03 Thread Geert Uytterhoeven
Hi Tony, On Thu, Mar 30, 2017 at 6:16 PM, Tony Lindgren wrote: > Recent pinctrl changes to allow dynamic allocation of pins exposed one > more issue with the pinctrl pins claimed early by the controller itself. > This caused a regression for IMX6 pinctrl hogs. > > Before

Re: Pointer type of _arp in __skb_flow_dissect()

2017-04-03 Thread Simon Horman
Hi Nicolas, thanks for pointing this out. On Fri, Mar 31, 2017 at 08:53:10PM +0200, Nicolas Iooss wrote: > Hello, > > Linux 4.11-rc4 contains the following code in function > __skb_flow_dissect(), file net/core/flow_dissector.c: > > const struct arphdr *arp; > struct arphdr *_arp;

Re: [Patch v3 10/11] [media] s5p-mfc: Add support for HEVC encoder

2017-04-03 Thread Andrzej Hajda
On 31.03.2017 11:06, Smitha T Murthy wrote: > Add HEVC encoder support and necessary registers, V4L2 CIDs, > and hevc encoder parameters > > Signed-off-by: Smitha T Murthy > --- > drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 28 +- >

Re: [PATCH v2 2/2] ARM: dts: sun7i: Add CAN node and can0_pins_a pinctrl settings

2017-04-03 Thread Maxime Ripard
On Fri, Mar 31, 2017 at 06:51:38PM +0200, Patrick Menschel wrote: > Hello Maxime, > > Am 27.03.2017 um 08:46 schrieb Maxime Ripard: > >> @@ -1582,6 +1587,14 @@ > >>#size-cells = <0>; > >>}; > >> > >> + can0: can@01c2bc00 { > >> +

Re: [PowerPC][next-20170324][kselftest] kernel Oops when running tm/tm-signal-context-chk-vsx

2017-04-03 Thread Abdul Haleem
On Tue, 2017-03-28 at 21:00 +1100, Michael Ellerman wrote: > Abdul Haleem writes: > > > Hi, > > > > While running kernel self tests on ppc64, tm/tm-signal-context-chk-vsx > > tests fails with Oops message. > > > > I was able to reproduce only twice out of 20 runs on

[PATCH v3 15/20] ARM64: dts: sun50i-a64: add dwmac-sun8i Ethernet driver

2017-04-03 Thread Corentin Labbe
The dwmac-sun8i is an Ethernet MAC that supports 10/100/1000 Mbit connections. It is very similar to the device found in the Allwinner H3, but lacks the internal 100 Mbit PHY and its associated control bits. This adds the necessary bits to the Allwinner A64 SoC .dtsi, but keeps it disabled at this

[PATCH v3 19/20] ARM: sunxi: Enable dwmac-sun8i driver on sunxi_defconfig

2017-04-03 Thread Corentin Labbe
From: LABBE Corentin Enable the dwmac-sun8i driver in the sunxi default configuration Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig

Re: [RFC] calc_memmap_size() isn't accurate and one suggestion to improve

2017-04-03 Thread Michal Hocko
On Tue 28-03-17 09:11:37, Wei Yang wrote: > Hi, masters, > > # What I found > > I found the function calc_memmap_size() may not be that accurate to get the > pages for memmap. > > The reason is: > > > memmap is allocated on a node base, > > while the calculation is on a zone base > > This

[PATCH v3 18/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on the BananaPi M64

2017-04-03 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the BananaPi M64. It uses an external PHY rtl8211e via RGMII. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH v3 14/20] ARM64: dts: sun50i-a64: Add dt node for the syscon control module

2017-04-03 Thread Corentin Labbe
This patch add the dt node for the syscon register present on the Allwinner A64. Only two register are present in this syscon and the only one useful is the one dedicated to EMAC clock. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi |

Re: [tip:x86/platform 1/1] platform_bt.c:undefined reference to `gpiod_add_lookup_table'

2017-04-03 Thread Arnd Bergmann
On Mon, Apr 3, 2017 at 10:13 AM, Andy Shevchenko wrote: > On Mon, Apr 3, 2017 at 2:23 AM, kbuild test robot > wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git >> x86/platform >> head:

Re: [RFC PATCH v2 1/4] dt-bindings: update the Allwinner GPADC device tree binding for H3

2017-04-03 Thread Icenowy Zheng
在 2017年04月03日 17:15, Maxime Ripard 写道: On Sun, Apr 02, 2017 at 09:33:01PM +0800, Icenowy Zheng wrote: Allwinner H3 features a thermal sensor like the one in A33, but has its register re-arranged, the clock divider moved to CCU (originally the clock divider is in ADC) and added a pair of bus

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-03 Thread Jan Kara
On Fri 31-03-17 10:28:15, Eric W. Biederman wrote: > Sergey Senozhatsky writes: > > > On (03/31/17 14:39), Ye Xiaolong wrote: > >> On 03/31, Sergey Senozhatsky wrote: > >> >On (03/31/17 11:35), Sergey Senozhatsky wrote: > >> >[..] > >> >> > [ 21.009531] VFS:

Re: [PATCH] input: cros_ec_keyb: Add an EC event for sysrq

2017-04-03 Thread Lee Jones
On Sat, 01 Apr 2017, Dmitry Torokhov wrote: > On Thu, Mar 30, 2017 at 03:18:07PM -0700, Rajat Jain wrote: > > Some form factors (detachables / tablets) may not have a keyboard and > > thus user may have to resort to using a defined EC UI to send sysrq(s) > > to the kernel in order to collect

Re: [PATCH] iommu/rockchip: Make use of 'struct iommu_device'

2017-04-03 Thread Heiko Stübner
Hi Joerg, Am Freitag, 31. März 2017, 16:30:24 CEST schrieb Joerg Roedel: > From: Joerg Roedel > > Register hardware IOMMUs seperatly with the iommu-core code > and add a sysfs representation of the iommu topology. > > Signed-off-by: Joerg Roedel In general

Re: [PATCH v2 2/2] extcon: max77843: support USB accessories as external USB hosts

2017-04-03 Thread Chanwoo Choi
On 2017년 04월 03일 18:41, Andi Shyti wrote: > Hi Chanwoo, > >>> @@ -403,6 +417,11 @@ static int max77843_muic_adc_handler(struct >>> max77843_muic_info *info) >>> >>> switch (cable_type) { >>> case MAX77843_MUIC_ADC_GROUND: >>> + case MAX77843_MUIC_ADC_RESERVED_ACC_1: >>> + case

Re: [git pull] base: soc: Improvements for the SoC bus and soc_device_match()

2017-04-03 Thread Simon Horman
On Fri, Mar 31, 2017 at 10:54:20AM +0200, Geert Uytterhoeven wrote: > Hi Greg, > Hi Arnd, Kevin, Olof, > Hi Magnus, Simon, > > The following changes since commit c470abd4fde40ea6a0846a2beab642a578c0b8cd: > > Linux 4.10 (2017-02-19 14:34:00 -0800) > > are available in the git

Re: [RFC PATCH 0/4] fs: introduce new writeback error tracking infrastructure and convert ext4 to use it

2017-04-03 Thread Jeff Layton
On Mon, 2017-04-03 at 14:25 +1000, NeilBrown wrote: > On Fri, Mar 31 2017, Jeff Layton wrote: > > > During LSF/MM this year, we had a discussion about the current sorry > > state of writeback error reporting, and what could be done to improve > > the situation. This patchset represents a first

Re: [PATCH v1 1/1] mfd: bxtwc: remove unnecessary i2c_addr checks in ipc calls

2017-04-03 Thread Lee Jones
On Thu, 30 Mar 2017, sathyanarayanan.kuppusw...@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > In the following code block, BXTWC_DEVICE1_ADDR value is > already fixed and hence there no need to check for > if (!i2c_addr) in every ipc

Re: [RFC PATCH 1/4] fs: new infrastructure for writeback error handling and reporting

2017-04-03 Thread Jeff Layton
On Mon, 2017-04-03 at 10:12 +0300, Nikolay Borisov wrote: > > On 31.03.2017 22:26, Jeff Layton wrote: > > Most filesystems currently use mapping_set_error and > > filemap_check_errors for setting and reporting/clearing writeback errors > > at the mapping level. filemap_check_errors is indirectly

Re: [PATCH 1/2] drm: virtio: add virtio_gpu_translate_format

2017-04-03 Thread Daniel Vetter
On Mon, Apr 03, 2017 at 09:08:44AM +0200, Gerd Hoffmann wrote: > Factors out code, no functional change. > > Signed-off-by: Gerd Hoffmann Ugh on the big endian define, I guess we'll never managed to figure this aspect of drm pixel formats out correctly - they're supposed to

[PATCH 0/3 v2] Fix regression in the sp5100_tco driver

2017-04-03 Thread Zoltan Boszormenyi
Three drivers are accessing the same I/O ports (0xcd6 / 0xcd7) on AMD SB800 based machines without synchronization or with excluding each other out: * the USB quirk for isochronous transfers on SB800 (no locking) * sp5100_tco (request_region) * i2c-piix4 (request_region) Historically, the

Re: [PATCH 3/5] zram: use zram_slot_lock instead of raw bit_spin_lock op

2017-04-03 Thread Sergey Senozhatsky
On (04/03/17 15:34), Minchan Kim wrote: [..] > > c) spin_locks probably have better fairness guarantees > > In fact, it wouldn't be an imporant because zram's slot lock contention > is not heavy. mostly agree. I think (and I may be mistaken) direct IO causes contention; but direct IO is probably

[PATCH] usb: hcd: use correct device pointer for dma ops

2017-04-03 Thread Sekhar Nori
commit a8c06e407ef9 ("usb: separate out sysdev pointer from usb_bus") converted to use hcd->self.sysdev for DMA operations instead of hcd->self.controller but forgot to do it for one instance. This gets caught when DMA debugging is enabled since dma map and unmap end up using different device

Re: [PATCH v2 2/2] extcon: max77843: support USB accessories as external USB hosts

2017-04-03 Thread Chanwoo Choi
Hi, On 2017년 04월 02일 14:35, Andi Shyti wrote: > From: Andi Shyti > > The ADC state defines the resistance that a USB device has in > order to distinguish between devices. > > The external accessories (like the Gear VR) are defined as: > >

Re: [Patch v3 11/11] Documention: v4l: Documentation for HEVC CIDs

2017-04-03 Thread Hans Verkuil
On 03/31/2017 11:06 AM, Smitha T Murthy wrote: > Added V4l2 controls for HEVC encoder > > Signed-off-by: Smitha T Murthy > --- > Documentation/media/uapi/v4l/extended-controls.rst | 355 > + > 1 file changed, 355 insertions(+) > > diff --git

Re: [PATCH 1/2] wireless: ath9k_htc: fix NULL-deref at probe

2017-04-03 Thread Johan Hovold
On Mon, Mar 13, 2017 at 01:44:20PM +0100, Johan Hovold wrote: > Make sure to check the number of endpoints to avoid dereferencing a > NULL-pointer or accessing memory beyond the endpoint array should a > malicious device lack the expected endpoints. > > Fixes: 36bcce430657 ("ath9k_htc: Handle

Re: [PowerPC][next-20170324][kselftest] kernel Oops when running tm/tm-signal-context-chk-vsx

2017-04-03 Thread Abdul Haleem
On Mon, 2017-04-03 at 14:28 +0530, Abdul Haleem wrote: > On Tue, 2017-03-28 at 21:00 +1100, Michael Ellerman wrote: > > Abdul Haleem writes: > > > > > Hi, > > > > > > While running kernel self tests on ppc64, tm/tm-signal-context-chk-vsx > > > tests fails with Oops

Re: [PATCH RFC] remove custom Michael MIC implementation

2017-04-03 Thread Tobin C. Harding
On Mon, Apr 03, 2017 at 08:19:40AM +0300, Kalle Valo wrote: > + linux-wireless > > "Tobin C. Harding" writes: > > > On Fri, Mar 31, 2017 at 09:58:51AM +0200, Wolfram Sang wrote: > >> > >> > The code is untested, I have hardware in the mail. > >> > >> Cool! > > > > The card I

Re: [RFC PATCH v2 00/41] Scalable Vector Extension (SVE) core support

2017-04-03 Thread Dave Martin
On Fri, Mar 31, 2017 at 04:28:16PM +0100, Ard Biesheuvel wrote: > On 22 March 2017 at 14:50, Dave Martin wrote: > > Hi Dave, > > > The Scalable Vector Extension (SVE) [1] is an extension to AArch64 which > > adds extra SIMD functionality and supports much larger vectors. >

Re: [PATCH] wlcore: fix spelling mistake in wl1271_warning 'iligal' -> 'illegal'

2017-04-03 Thread Colin Ian King
On 03/04/17 10:20, Joe Perches wrote: > On Mon, 2017-04-03 at 10:15 +0100, Colin King wrote: >> From: Colin Ian King >> >> trivial fix to spelling mistake in wl1271_warning error message >> >> Signed-off-by: Colin Ian King >> --- >>

Re: [tip:x86/platform 1/1] platform_bt.c:undefined reference to `gpiod_add_lookup_table'

2017-04-03 Thread Andy Shevchenko
On Mon, Apr 3, 2017 at 12:36 PM, Andy Shevchenko wrote: > On Mon, Apr 3, 2017 at 12:31 PM, Arnd Bergmann wrote: >> On Mon, Apr 3, 2017 at 10:13 AM, Andy Shevchenko >> wrote: >>> On Mon, Apr 3, 2017 at 2:23 AM, kbuild test

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-03 Thread Petr Mladek
On Mon 2017-04-03 11:31:52, Jan Kara wrote: > On Fri 31-03-17 10:28:15, Eric W. Biederman wrote: > > Sergey Senozhatsky writes: > > > > > On (03/31/17 14:39), Ye Xiaolong wrote: > > >> On 03/31, Sergey Senozhatsky wrote: > > >> >On (03/31/17 11:35), Sergey

Re: [PATCH v4 06/14] MIPS: jz4740: DTS: Add nodes for ingenic pinctrl and gpio drivers

2017-04-03 Thread Paul Cercueil
Hi, Le 2017-04-03 11:57, Sergei Shtylyov a écrit : Hello! On 4/2/2017 11:42 PM, Paul Cercueil wrote: For a description of the pinctrl devicetree node, please read Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.txt For a description of the gpio devicetree nodes, please read

Re: [PATCH] mfd: stmpe: Fix bit clearing on STMPE1600

2017-04-03 Thread Lee Jones
On Fri, 31 Mar 2017, Hugues Fruchet wrote: > GPIO bits clearing on pins assigned to STMPE1600 > had no effects due to missing "clear registers" > settings within stmpe1600_regs[]. > STMPE1600 does not have dedicated "clear registers", > but single "set/clear registers", hence stmpe1600_regs[] >

Re: [PATCH v2 0/3] soc: renesas: rcar-sysc: Add support for R-Car H3 ES2.0

2017-04-03 Thread Simon Horman
On Fri, Mar 31, 2017 at 11:01:53AM +0200, Geert Uytterhoeven wrote: > Hi Simon, Magnus, > > This patch series adds power domain support for R-Car H3 ES2.0, which > differs from ES1.x in some areas. > > The goal is twofold: > 1. Support both the ES1.x and ES2.0 SoC revisions in a single

Re: [RFC PATCH v2 00/41] Scalable Vector Extension (SVE) core support

2017-04-03 Thread Ard Biesheuvel
(- list) On 3 April 2017 at 11:51, Dave Martin wrote: > On Mon, Apr 03, 2017 at 11:01:28AM +0100, Ard Biesheuvel wrote: >> On 3 April 2017 at 10:45, Dave Martin wrote: >> > On Fri, Mar 31, 2017 at 04:28:16PM +0100, Ard Biesheuvel wrote: > > [...] > >>

[GIT PULL] s390 patches for 4.11-rc6

2017-04-03 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: Four bug fixes, two of them for stable: - Avoid initrd corruptions in the kernel decompressor - Prevent inconsistent dumps

Re: [PATCH v5 2/7] mfd: rk808: add rk805 regs addr and ID

2017-04-03 Thread Lee Jones
On Mon, 27 Mar 2017, Elaine Zhang wrote: > Signed-off-by: Elaine Zhang > --- > include/linux/mfd/rk808.h | 120 > ++ > 1 file changed, 120 insertions(+) For my own reference: Acked-for-MFD-by: Lee Jones

Re: [PATCH v5 4/7] mfd: rk808: Add RK805 support

2017-04-03 Thread Lee Jones
On Mon, 27 Mar 2017, Elaine Zhang wrote: > The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld > devices. It contains the following components: > > - Regulators > - RTC > - Clocking > > Both RK808 and RK805 chips are using a similar register map, > so we can

[PATCH 1/1] arm64: tegra: fix PPI interrupt flag

2017-04-03 Thread Aniruddha Banerjee
The interrupt flag for PPI should not be set to any value, since the register is read-only. Fix the flags for the PPI interrupts to IRQ_TYPE_NONE, so that there is no write to the read-only register. Signed-off-by: Aniruddha Banerjee ---

Re: [PATCH v3 04/20] ARM: sun8i: dt: Add DT bindings documentation for Allwinner syscon

2017-04-03 Thread Maxime Ripard
On Mon, Apr 03, 2017 at 11:14:28AM +0200, Corentin Labbe wrote: > Signed-off-by: Corentin Labbe > --- > .../devicetree/bindings/misc/allwinner,syscon.txt | 19 > +++ > 1 file changed, 19 insertions(+) > create mode 100644 >

[PATCH 3/3] extcon: intel-cht-wc: Ignore failure to detect charger-type on host mode exit

2017-04-03 Thread Hans de Goede
When we leave host-mode because the id-pin is no longer connected to ground, the 5v boost converter is normally still on, so we will see Vbus, but it is not from a charger (normally) so the charger-type detection will fail. This commit silences the cht_wc_extcon_get_charger() false-positive

Re: [PATCH 1/4] regmap: irq: Fix lost interrupts by introducing handle_reread

2017-04-03 Thread Lee Jones
On Wed, 22 Mar 2017, Tony Lindgren wrote: > At least Motorola CPCAP PMIC needs it's device interrupts re-read > until there are no more interrupts. Otherwise the PMIC interrupt to > the SoC will eventually stop toggling. This seems to be a bug in the > CPCAP PMIC where it can stop driving the

Re: [PATCH 0/9] Unify i2c_mux_add_adapter error reporting

2017-04-03 Thread Peter Rosin
On 2017-04-03 12:27, Wolfram Sang wrote: > On Mon, Apr 03, 2017 at 10:38:29AM +0200, Peter Rosin wrote: >> Hi! >> >> Many users of the i2c_mux_add_adapter interface log a message >> on failure, but the function already logs such a message. One >> or two of those users actually add more information

Re: [PATCH] KVM: VMX: require virtual NMI support

2017-04-03 Thread David Hildenbrand
On 27.03.2017 14:38, Paolo Bonzini wrote: > Virtual NMIs are only missing in Prescott and Yonah chips. Both are obsolete > for virtualization usage---Yonah is 32-bit only even---so drop vNMI emulation. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/vmx.c | 143 >

Re: [PATCH v2 0/5] minitty: a minimal TTY layer alternative for embedded systems

2017-04-03 Thread Andy Shevchenko
On Mon, Apr 3, 2017 at 12:41 AM, Nicolas Pitre wrote: > On Sun, 2 Apr 2017, Andi Kleen wrote: >> No PTYs seems like a big limitation. This means no sshd? > Again, my ultimate system target is in the sub-megabyte of RAM. I > really doubt you'll be able to fit an SSH

Re: [Patch v3 07/11] Documentation: v4l: Documentation for HEVC v4l2 definition

2017-04-03 Thread Hans Verkuil
On 03/31/2017 11:06 AM, Smitha T Murthy wrote: > Add V4L2 definition for HEVC compressed format > > Signed-off-by: Smitha T Murthy > Reviewed-by: Andrzej Hajda > --- > Documentation/media/uapi/v4l/pixfmt-013.rst | 5 + > 1 file changed, 5

Re: [Patch v3 05/11] [media] videodev2.h: Add v4l2 definition for HEVC

2017-04-03 Thread Hans Verkuil
On 03/31/2017 11:06 AM, Smitha T Murthy wrote: > Add V4L2 definition for HEVC compressed format > > Signed-off-by: Smitha T Murthy > Reviewed-by: Andrzej Hajda > --- > include/uapi/linux/videodev2.h | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: KASAN, xt_TCPMSS finally found nasty use-after-free bug? 4.10.8

2017-04-03 Thread Denys Fedoryshchenko
On 2017-04-02 20:26, Eric Dumazet wrote: On Sun, 2017-04-02 at 10:14 -0700, Eric Dumazet wrote: Could that be that netfilter does not abort earlier if TCP header is completely wrong ? Yes, I wonder if this patch would be better, unless we replicate the th->doff sanity check in all netfilter

Re: [PATCH] [media] vcodec: mediatek: Remove double parentheses

2017-04-03 Thread Hans Verkuil
On 04/01/2017 01:58 AM, Matthias Kaehlcke wrote: > El Fri, Mar 17, 2017 at 02:01:33PM -0700 Matthias Kaehlcke ha dit: > >> The extra pairs of parentheses are not needed and cause clang >> warnings like this: >> >> drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality >>

Re: [PATCH] watchdog: pcwd_usb: fix NULL-deref at probe

2017-04-03 Thread Johan Hovold
On Mon, Mar 13, 2017 at 10:16:33AM -0700, Guenter Roeck wrote: > On Mon, Mar 13, 2017 at 01:49:45PM +0100, Johan Hovold wrote: > > Make sure to check the number of endpoints to avoid dereferencing a > > NULL-pointer should a malicious device lack endpoints. > > > > Fixes: 1da177e4c3f4

Re: [PATCH] mm/zswap: fix potential deadlock in zswap_frontswap_store()

2017-04-03 Thread Michal Hocko
On Fri 31-03-17 10:00:30, Shakeel Butt wrote: > On Fri, Mar 31, 2017 at 8:30 AM, Andrey Ryabinin > wrote: > > zswap_frontswap_store() is called during memory reclaim from > > __frontswap_store() from swap_writepage() from shrink_page_list(). > > This may happen in NOFS

[PATCH v3 16/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64

2017-04-03 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the pine64 It uses an external PHY via RMII. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 16 1 file changed, 16 insertions(+) diff --git

[PATCH v3 01/20] net: stmmac: export stmmac_set_mac_addr/stmmac_get_mac_addr

2017-04-03 Thread Corentin Labbe
Thoses symbol will be needed for the dwmac-sun8i ethernet driver. For letting it to be build as module, they need to be exported. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v3 17/20] ARM: dts: sun50i-a64: enable dwmac-sun8i on pine64 plus

2017-04-03 Thread Corentin Labbe
The dwmac-sun8i hardware is present on the pine64 plus. It uses an external PHY rtl8211e via RGMII. Signed-off-by: Corentin Labbe --- .../arm64/boot/dts/allwinner/sun50i-a64-pine64-plus.dts | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff

[PATCH v3 20/20] ARM: sunxi: Enable dwmac-sun8i driver on multi_v7_defconfig

2017-04-03 Thread Corentin Labbe
Enable the dwmac-sun8i driver in the multi_v7 default configuration Signed-off-by: Corentin Labbe --- 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

Re: [PATCH v3 1/3] mfd: intel_soc_pmic: Fix a mess with compilation units

2017-04-03 Thread Andy Shevchenko
On Mon, Apr 3, 2017 at 12:20 PM, Lee Jones wrote: > On Sun, 02 Apr 2017, Andy Shevchenko wrote: > >> On Sun, Apr 2, 2017 at 11:03 PM, kbuild test robot wrote: >> > Hi Andy, >> > >> > [auto build test ERROR on ljones-mfd/for-mfd-next] >> > [also build test

Re: [tip:x86/platform 1/1] platform_bt.c:undefined reference to `gpiod_add_lookup_table'

2017-04-03 Thread Andy Shevchenko
On Mon, Apr 3, 2017 at 12:31 PM, Arnd Bergmann wrote: > On Mon, Apr 3, 2017 at 10:13 AM, Andy Shevchenko > wrote: >> On Mon, Apr 3, 2017 at 2:23 AM, kbuild test robot >> wrote: >>> tree:

Re: [RFC PATCH v2 00/41] Scalable Vector Extension (SVE) core support

2017-04-03 Thread Ard Biesheuvel
On 3 April 2017 at 10:45, Dave Martin wrote: > On Fri, Mar 31, 2017 at 04:28:16PM +0100, Ard Biesheuvel wrote: >> On 22 March 2017 at 14:50, Dave Martin wrote: >> >> Hi Dave, >> >> > The Scalable Vector Extension (SVE) [1] is an extension to AArch64

Re: [PATCH v3 2/2] iio: stm32 trigger: Add counter enable modes

2017-04-03 Thread Benjamin Gaignard
2017-04-02 13:12 GMT+02:00 Jonathan Cameron : > On 27/03/17 10:43, Benjamin Gaignard wrote: >> Device counting could be controlled by the level or the edges of >> a trigger. >> in_count0_enable_mode attibute allow to set the control mode. >> >> Signed-off-by: Benjamin Gaignard

Re: [PATCH v4 06/14] MIPS: jz4740: DTS: Add nodes for ingenic pinctrl and gpio drivers

2017-04-03 Thread Sergei Shtylyov
On 4/3/2017 1:20 PM, Paul Cercueil wrote: For a description of the pinctrl devicetree node, please read Documentation/devicetree/bindings/pinctrl/ingenic,pinctrl.txt For a description of the gpio devicetree nodes, please read Documentation/devicetree/bindings/gpio/ingenic,gpio.txt

[PATCH v3] tracing/kprobes: expose maxactive for kretprobe in kprobe_events

2017-04-03 Thread Alban Crequy
From: Alban Crequy When a kretprobe is installed on a kernel function, there is a maximum limit of how many calls in parallel it can catch (aka "maxactive"). A kernel module could call register_kretprobe() and initialize maxactive (see example in

Re: [PATCH v2 2/8] [media] stm32-dcmi: STM32 DCMI camera interface driver

2017-04-03 Thread Hans Verkuil
On 03/30/2017 05:27 PM, Hugues Fruchet wrote: > This V4L2 subdev driver enables Digital Camera Memory Interface (DCMI) > of STMicroelectronics STM32 SoC series. > > Signed-off-by: Yannick Fertre > Signed-off-by: Hugues Fruchet > --- >

Re: [kbuild-all] [PATCH v3 1/3] mfd: intel_soc_pmic: Fix a mess with compilation units

2017-04-03 Thread Fengguang Wu
On Mon, Apr 03, 2017 at 12:26:54PM +0300, Andy Shevchenko wrote: On Mon, Apr 3, 2017 at 12:20 PM, Lee Jones wrote: On Sun, 02 Apr 2017, Andy Shevchenko wrote: On Sun, Apr 2, 2017 at 11:03 PM, kbuild test robot wrote: > Hi Andy, > > [auto build test

Re: [PATCH RESEND v5 7/7] mfd: dt-bindings: Add RK805 device tree bindings document

2017-04-03 Thread Lee Jones
On Mon, 27 Mar 2017, Elaine Zhang wrote: > Add device tree bindings documentation for Rockchip's RK805 PMIC. > > Signed-off-by: Elaine Zhang > --- > Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- > 1 file changed, 21 insertions(+), 1

Re: [PATCH 9/9] [media] cx231xx: stop double error reporting

2017-04-03 Thread Peter Rosin
On 2017-04-03 12:26, Wolfram Sang wrote: > On Mon, Apr 03, 2017 at 10:38:38AM +0200, Peter Rosin wrote: >> i2c_mux_add_adapter already logs a message on failure. >> >> Signed-off-by: Peter Rosin >> --- >> drivers/media/usb/cx231xx/cx231xx-i2c.c | 15 --- >> 1 file

Re: [PATCH v3 1/7] mfd: Add Device Tree bindings document for retu/tahvo ASIC chips

2017-04-03 Thread Lee Jones
On Sat, 01 Apr 2017, Javier Martinez Canillas wrote: > There are Device Tree source files defining a device node for the > retu/tahvo I2C chip, but there isn't a DT binding document for it. > > Signed-off-by: Javier Martinez Canillas > --- > > Changes in v3: None >

Re: [RFC][PATCHv2 1/8] printk: move printk_pending out of per-cpu

2017-04-03 Thread Sergey Senozhatsky
On (03/31/17 15:33), Peter Zijlstra wrote: > On Fri, Mar 31, 2017 at 03:09:50PM +0200, Petr Mladek wrote: > > On Wed 2017-03-29 18:25:04, Sergey Senozhatsky wrote: > > > > if (waitqueue_active(_wait)) { > > > - this_cpu_or(printk_pending, PRINTK_PENDING_WAKEUP); > > > +

Re: [PATCH 16/16] drivers, net, intersil: convert request_context.refcount from atomic_t to refcount_t

2017-04-03 Thread Kalle Valo
Elena Reshetova writes: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. > >

[PATCH] acpi: drop support for force_remove

2017-04-03 Thread Michal Hocko
From: Michal Hocko /sys/firmware/acpi/hotplug/force_remove was presumably added to support auto offlining in the past. This is, however, inherently dangerous for some hotplugable resources like memory. The memory offlining fails when the memory is still in use and cannot be

Re: [PATCH v2 8/9] drm/rockchip: gem: Don't alloc/free gem buf before drm dev registered

2017-04-03 Thread Daniel Vetter
On Sat, Apr 01, 2017 at 07:35:28PM +0800, Jeffy Chen wrote: > Signed-off-by: Jeffy Chen > --- > > Changes in v2: None Wut? How is this even possible? If you haven't registered the driver yet, there's no way for userspace to call allocation functions. Anything else is

Re: [Patch v3 04/11] [media] s5p-mfc: Support MFCv10.10 buffer requirements

2017-04-03 Thread Andrzej Hajda
On 31.03.2017 11:06, Smitha T Murthy wrote: > Aligning the luma_dpb_size, chroma_dpb_size, mv_size and me_buffer_size > for MFCv10.10. > > Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda -- Regards Andrzej

Re: [PATCH 3/4] drm: Check mode object lease status in all master ioctl paths

2017-04-03 Thread Daniel Vetter
On Sun, Apr 02, 2017 at 09:37:16AM -0700, Keith Packard wrote: > Daniel Vetter writes: > > > I think it'd be good if we could consolidate all the lease checking into > > drm_mode_object_find (respectively __drm_mode_object_find). We'd need to > > wire up the fpriv to be able to

linux-next: Tree for Apr 3

2017-04-03 Thread Stephen Rothwell
Hi all, Changes since 20170331: The net-next tree gained conflicts against the net tree. The drm-misc tree gained conflict agsinst the drm tree. The vhost tree still had its build failure, so I used the version from next-20170329. Non-merge commits (relative to Linus' tree): 6501 6753 files

Re: [PATCH v3 04/11] drm/sun4i: abstract the layer type

2017-04-03 Thread Maxime Ripard
Hi, On Thu, Mar 30, 2017 at 03:46:06AM +0800, Icenowy Zheng wrote: > As we are going to add support for the Allwinner DE2 Mixer in sun4i-drm > driver, we will finally have two types of layer. > > Abstract the layer type to void * and a ops struct, which contains the > only function used by crtc

[RFC][PATCH] spin loop arch primitives for busy waiting

2017-04-03 Thread Nicholas Piggin
Hi, I would like to revisit this again and see if people are opposed to this arch primitive. We have attributed cases of suboptimal performance on real customer workloads to this, so I'd like to find a solution. Since last posting, I promised the s390 people I'd consider hypervisor yield

Re: Patch for drivers/usb/serial/ch341.c enabling parity

2017-04-03 Thread Johan Hovold
On Sun, Apr 02, 2017 at 10:12:38AM -0700, Joe Perches wrote: > On Sun, 2017-04-02 at 18:57 +0200, Leif Neland wrote: > > There is a patch > > https://github.com/karlp/ch341-linux/blob/master/0001-usb-serial-ch341-Add-parity-support.patch > > which enables parity selection for the ch341 USB-RS485

Re: [PATCH -v2 1/2] mm, swap: Use kvzalloc to allocate some swap data structure

2017-04-03 Thread Michal Hocko
On Sat 01-04-17 12:47:56, Huang, Ying wrote: > Hi, Michal, > > Michal Hocko writes: > > > On Fri 24-03-17 06:56:10, Dave Hansen wrote: > >> On 03/24/2017 12:33 AM, John Hubbard wrote: > >> > There might be some additional information you are using to come up with > >> > that

Re: [Patch v3 06/11] [media] s5p-mfc: Add support for HEVC decoder

2017-04-03 Thread Hans Verkuil
On 03/31/2017 11:06 AM, Smitha T Murthy wrote: > Add support for codec definition and corresponding buffer > requirements for HEVC decoder. > > Signed-off-by: Smitha T Murthy > Reviewed-by: Andrzej Hajda > --- >

  1   2   3   4   5   6   7   8   9   10   >