Re: [PATCH] Documentation: Update CPU hotplug and move it to core-api

2016-12-23 Thread Jani Nikula
On Thu, 22 Dec 2016, Sebastian Andrzej Siewior wrote: > The current CPU hotplug is outdated. During the update to what we > currently have I rewrote it partly and moved to sphinx format. > > Cc: Jonathan Corbet > Cc: Mauro Carvalho Chehab > Cc: Rusty Russell > Cc: Srivatsa Vaddagiri > Cc: Asho

Re: [PATCH 3/3] ARM: dts: sun5i: add support for Lichee Pi One board

2016-12-23 Thread Maxime Ripard
On Thu, Dec 22, 2016 at 08:07:11AM +0800, Icenowy Zheng wrote: > > > 22.12.2016, 06:42, "Maxime Ripard" : > > On Thu, Dec 22, 2016 at 04:02:35AM +0800, Icenowy Zheng wrote: > >>  Lichee Pi One is a low-cost Allwinner A13-based development board, with > >>  an AXP209 PMU, a USB2.0 OTG port, a USB2

[PATCH] mtd: nand: xway: fix build failure

2016-12-23 Thread Sudip Mukherjee
7;int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] It missed to include the header file. Signed-off-by: Sudip Mukherjee --- Build log of next-20161223 is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/186246753 This error will be f

[PATCH][RFC] VM: x86: Return ealier if clocksource has not changed

2016-12-23 Thread Chen Yu
Currently the notifier of pvclock_gtod_notify() get invoked frequently due to the periodic update_wall_time(). This might slow down the system a little bit as there might be redundant execution code path and unnecessary lock contention in update_pvclock_gtod(), which was found when I was doing susp

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2016-12-23 Thread Johannes Weiner
On Fri, Dec 23, 2016 at 02:32:41AM -0500, Johannes Weiner wrote: > On Thu, Dec 22, 2016 at 12:22:27PM -0800, Hugh Dickins wrote: > > On Wed, 21 Dec 2016, Linus Torvalds wrote: > > > On Wed, Dec 21, 2016 at 9:13 PM, Dave Chinner wrote: > > > > I unmounted the fs, mkfs'd it again, ran the > > > > wo

Re: [PATCH] x86/crash: Update the stale comment in reserve_crashkernel()

2016-12-23 Thread Xunlei Pang
On 12/22/2016 at 11:22 AM, Baoquan He wrote: > On 12/15/16 at 11:30am, Xunlei Pang wrote: >> CRASH_KERNEL_ADDR_MAX was missing for a long time, update it >> with more detailed explanation. >> >> Cc: Robert LeBlanc >> Cc: Baoquan He >> Signed-off-by: Xunlei Pang >> --- >> arch/x86/kernel/setup.c

Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion

2016-12-23 Thread Michael Wang
Dear Maintainers I'd like to ask for the status of this patch since we hit the issue too during our testing on md raid1. Split remainder bio_A was queued ahead, following by bio_B for lower device, at this moment raid start freezing, the loop take out bio_A firstly and deliver it, which will hung

Re: [patch] mm, thp: always direct reclaim for MADV_HUGEPAGE even when deferred

2016-12-23 Thread Michal Hocko
On Thu 22-12-16 13:05:27, David Rientjes wrote: > On Thu, 22 Dec 2016, Michal Hocko wrote: > > > > Currently, when defrag is set to "madvise", thp allocations will direct > > > reclaim. However, when defrag is set to "defer", all thp allocations do > > > not attempt reclaim regardless of MADV_HUG

[PATCH v2 0/3] dmaengine: xilinx_dma: Bug fixes

2016-12-23 Thread Kedareswara rao Appana
This patch series fixes below bugs in DMA and VDMA IP's ---> Do not start VDMA until frame buffer is processed by the h/w Fix ---> bug in Multi frame sotres handling in VDMA Fix issues w.r.to multi ---> frame descriptors submit with AXI DMA S2MM(recv) Side. Kedareswara rao Appana (3): dmaeng

[PATCH v2 1/3] dmaengine: xilinx_dma: Check for channel idle state before submitting dma descriptor

2016-12-23 Thread Kedareswara rao Appana
Add channel idle state to ensure that dma descriptor is not submitted when VDMA engine is in progress. Reviewed-by: Jose Abreu Signed-off-by: Kedareswara rao Appana --- Changes fro v2: ---> Add idle check in the reset as suggested by Jose Abreu ---> Removed xilinx_dma_is_running/xilinx_dma_is_id

[PATCH v2 2/3] dmaeninge: xilinx_dma: Fix bug in multiple frame stores scenario in vdma

2016-12-23 Thread Kedareswara rao Appana
When VDMA is configured for more than one frame in the h/w for example h/w is configured for n number of frames and user Submits n number of frames and triggered the DMA using issue_pending API. In the current driver flow we are submitting one frame at a time but we should submit all the n number o

[PATCH v2 3/3] dmaengine: xilinx_dma: Fix race condition in the driver for multiple descriptor scenario

2016-12-23 Thread Kedareswara rao Appana
When driver is handling AXI DMA SoftIP When user submits multiple descriptors back to back on the S2MM(recv) side with the current driver flow the last buffer descriptor next bd points to a invalid location resulting the invalid data or errors in the DMA engine. This patch fixes this issue by crea

[PATCH] platform/x86: fujitsu-laptop: use brightness_set_blocking for LED-setting callbacks

2016-12-23 Thread Michał Kępień
All LED-setting functions in fujitsu-laptop are currently assigned to the brightness_set callback, which is incorrect because they can sleep (due to their use of call_fext_func(), which in turn issues ACPI calls) and the documentation (in include/linux/leds.h) clearly states they must not. Assign

Re: [PATCH v7 2/5] i2c: Add STM32F4 I2C driver

2016-12-23 Thread Uwe Kleine-König
Hello, On Thu, Dec 22, 2016 at 02:35:01PM +0100, M'boumba Cedric Madianga wrote: > This patch adds support for the STM32F4 I2C controller. > > Signed-off-by: M'boumba Cedric Madianga > --- > drivers/i2c/busses/Kconfig | 10 + > drivers/i2c/busses/Makefile | 1 + > drivers/i2c/buss

Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches

2016-12-23 Thread Geert Uytterhoeven
On Thu, Dec 15, 2016 at 4:05 PM, Rob Herring wrote: > On Wed, Dec 14, 2016 at 10:58 AM, Bartosz Golaszewski > wrote: >> 2016-12-13 20:27 GMT+01:00 Rob Herring : >>> On Sun, Dec 11, 2016 at 11:21:44PM +0100, Bartosz Golaszewski wrote: Some boards are equipped with simple, GPIO-driven power lo

Re: [PATCH 3/4] mmc: mmc: enable ios.enhanced_strobe before mmc_set_timing

2016-12-23 Thread Ritesh Harjani
Hi Shawn, Do you think, below change should be fine? I am still checking on what we discussed on Patch2. why I am asking is because - for HS400 in SDHC-MSM, we do the DLL re-calibration as per the HW sequence. So it is done in both the cases, for HS400 mode without and with enhanced strobe mod

RE: [PATCH 1/3] dmaengine: xilinx_dma: Check for channel idle state before submitting dma descriptor

2016-12-23 Thread Appana Durga Kedareswara Rao
Hi Laurent Pinchart, Sorry for the delay in the reply. Thanks for the review... > > Hi Kedar, > > On Monday 19 Dec 2016 15:39:43 Appana Durga Kedareswara Rao wrote: > > Hi Laurent Pinchart, > > > > Thanks for the review... > > > > > > + if (!chan->idle) > > > > +

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

2016-12-23 Thread Miroslav Benes
> > > diff --git a/kernel/livepatch/patch.c b/kernel/livepatch/patch.c > > > index 5efa262..e79ebb5 100644 > > > --- a/kernel/livepatch/patch.c > > > +++ b/kernel/livepatch/patch.c > > > @@ -29,6 +29,7 @@ > > > #include > > > #include > > > #include "patch.h" > > > +#include "transition.h" > >

[PATCH] [media] atmel-isc: add the isc pipeline function

2016-12-23 Thread Songjun Wu
Image Sensor Controller has an internal image processor. It can convert raw format to the other formats, like RGB565, YUV420P. A module parameter 'sensor_preferred' is used to enable or disable the pipeline function. Some v4l2 controls are added to tuning the image when the pipeline function is ena

Re: [RFT PATCH] ARM64: dts: meson-gxbb: Add reserved memory zone and usable memory range

2016-12-23 Thread Heinrich Schuchardt
On 12/22/2016 11:02 AM, Heinrich Schuchardt wrote: > On 12/14/2016 10:52 AM, Neil Armstrong wrote: > >> Hi Heinrich, >> >> Thanks for testing and for the report, >> we are still struggling into finding what are these zones and how to label >> them correctly. >> >> We need to identify the zones on

[PATCH RFC] purgatory: fix up declarations

2016-12-23 Thread Nicholas Mc Guire
purgatory.c. Adding this to kexec-bzimage64.h was done as setup_purgatory() from machine_kexec_file_64.c uses these symbols - not sure if this is the proper place to add this. While at it the initialization of sha_regions to {{0,0}} was added. Patch was compile tested with: x86_64_defconfig (imp

Re: [PATCH 4/4] usb: xhci: warn on command timeout in stopped command ring

2016-12-23 Thread Sergei Shtylyov
Hello! On 12/23/2016 9:52 AM, Lu Baolu wrote: If xhci host fails to response to a command, the command s/response/respond/. watchdog timer will be fired. The callback function will abort and clear current command and restart the command execution. If driver fails to restart command execu

Re: [PATCHv6 6/7] printk: use printk_safe buffers in printk

2016-12-23 Thread Petr Mladek
On Fri 2016-12-23 10:46:43, Sergey Senozhatsky wrote: > not every switch to printk_safe is "dictated" by logbuf_lock. > down_trylock_console_sem(), for instance, takes semaphore spin_lock > which already may be locked on the same CPU (*), so we need to be > in safe mode: > > vprintk_emit() > down

[PATCH v2 0/2] Add further ioctl() operations for namespace discovery

2016-12-23 Thread Michael Kerrisk (man-pages)
I would like to write code that discovers the nmaespace setup on a live system. The NS_GET_PARENT and NS_GET_USERNS ioctl() operations added in Linux 4.9 provide much of what I want, but there are still a couple of small pieces missing. Those pieces are added with this patch series. Here's an exa

[PATCH v2 2/2] nsfs: Add an ioctl() to return owner UID of a userns

2016-12-23 Thread Michael Kerrisk (man-pages)
I'd like to write code that discovers the user namespace hierarchy on a running system, and also shows who owns the various user namespaces. Currently, there is no way of getting the owner UID of a user namespace. Therefore, this patch adds an NS_GET_CREATOR_UID ioctl() that fetches the (munged) UI

[PATCH v2 1/2] nsfs: Add an ioctl() to return the namespace type

2016-12-23 Thread Michael Kerrisk (man-pages)
Linux 4.9 added two ioctl() operations that can be used to discover: * the parental relationships for hierarchical namespaces (user and PID) [NS_GET_PARENT] * the user namespaces that owns a specified non-user-namespace [NS_GET_USERNS] For no good reason that I can glean, NS_GET_USERNS was ma

[PATCH] staging: xgifb: This patch removes the unnecessary return statement using spatch

2016-12-23 Thread Rahul Krishnan
This patch removes unnecessary return statement using spatch tool Signed-off-by: Rahul Krishnan --- drivers/staging/xgifb/vb_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/xgifb/vb_init.c b/drivers/staging/xgifb/vb_init.c index 14af157..591a3c9 1006

[PATCH RFC] x86, boot: add missing declaration of string functions

2016-12-23 Thread Nicholas Mc Guire
s not declared. Should it be static? This patch has one checkpatch warning about the use of simple_strtoul which is obsolete. As this is an independent implementation it is not clear if the changes made in simple_strtoul -> _kstrtoull might also need to be applied here ? Patch was compile test

Re: [PATCH] iio: misc: add a generic regulator driver

2016-12-23 Thread Geert Uytterhoeven
Hi Lars, On Mon, Dec 12, 2016 at 6:15 PM, Lars-Peter Clausen wrote: > On 12/06/2016 12:12 PM, Bartosz Golaszewski wrote: >> We're already using libiio to read the measured data from the power >> monitor, that's why we'd like to use the iio framework for >> power-cycling the devices as well. My qu

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2016-12-23 Thread Christoph Hellwig
On Thu, Dec 22, 2016 at 04:03:56PM -0800, Chris Leech wrote: > Of course, looks like I've screwed up my bisect run on this so I'm still > taking a look. It triggers for me with 'hdparm -B /dev/vda' but may > also depend on kernel configuration. > > I started with the fedora rawhide config with a

Re: [patch] mm, thp: always direct reclaim for MADV_HUGEPAGE even when deferred

2016-12-23 Thread David Rientjes
On Fri, 23 Dec 2016, Michal Hocko wrote: > > The offering of defer breaks backwards compatibility with previous > > settings of defrag=madvise, where we could set madvise(MADV_HUGEPAGE) on > > .text segment remap and try to force thp backing if available but not > > directly reclaim for non VM_

Re: [PATCH] mtd: nand: xway: fix build failure

2016-12-23 Thread Marek Vasut
> drivers/mtd/nand/xway_nand.c:235:1: error: > type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' > [-Werror=implicit-int] > > It missed to include the header file. > > Signed-off-by: Sudip Mukherjee Acked-by: Marek V

Re: BPF hash algo (Re: [kernel-hardening] Re: [PATCH v7 3/6] random: use SipHash in place of MD5)

2016-12-23 Thread Daniel Borkmann
On 12/22/2016 05:59 PM, Hannes Frederic Sowa wrote: On Thu, 2016-12-22 at 08:07 -0800, Andy Lutomirski wrote: On Thu, Dec 22, 2016 at 7:51 AM, Hannes Frederic Sowa wrote: On Thu, 2016-12-22 at 16:41 +0100, Jason A. Donenfeld wrote: On Thu, Dec 22, 2016 at 4:33 PM, Hannes Frederic Sowa wrote:

[GIT PULL REQUEST] watchdog - v4.10 merge window

2016-12-23 Thread Wim Van Sebroeck
Hi Linus, Due to time constraints and personal issues Guenter and I decided that this window will be a pull from another location. So please pull from 'watchdog-for-linus-v4.10' branch of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git It contains the following pat

Re: [PATCH v2] stmmac: CSR clock configuration fix

2016-12-23 Thread Joao Pinto
Hello Phil, Às 1:09 AM de 12/23/2016, Phil Reid escreveu: > G'day Joao, > On 23/12/2016 01:06, Joao Pinto wrote: >> Às 4:57 PM de 12/22/2016, Phil Reid escreveu: >>> On 22/12/2016 23:47, Joao Pinto wrote: Hello Phil, Às 3:42 PM de 12/22/2016, Phil Reid escreveu: > G'day Jo

[v1] i2c: busses: i2c-designware-pcidrv:- Unmap region obtained by pcim_iomap_regions

2016-12-23 Thread Arvind Yadav
Release IO memory mapping, if i2c_dw_pci_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/i2c/busses/i2c-designware-pcidrv.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-des

Re: [PATCH 6/8] blk-mq-sched: add framework for MQ capable IO schedulers

2016-12-23 Thread Paolo Valente
> Il giorno 22 dic 2016, alle ore 10:59, Paolo Valente > ha scritto: > >> >> Il giorno 17 dic 2016, alle ore 01:12, Jens Axboe ha scritto: >> >> This adds a set of hooks that intercepts the blk-mq path of >> allocating/inserting/issuing/completing requests, allowing >> us to develop a schedu

[PATCH v3] stmmac: CSR clock configuration fix

2016-12-23 Thread Joao Pinto
When testing stmmac with my QoS reference design I checked a problem in the CSR clock configuration that was impossibilitating the phy discovery, since every read operation returned 0x. This patch fixes the issue. Signed-off-by: Joao Pinto --- changes v2->v3 (Phil Reid) - Altera uses the

Re: [PATCH v2 02/10] dt-bindings: hisi: Add Hisilicon HiP05/06/07 Djtag dts bindings

2016-12-23 Thread Anurup M
On Monday 19 December 2016 10:01 PM, Rob Herring wrote: On Wed, Dec 07, 2016 at 11:55:19AM -0500, Anurup M wrote: From: Tan Xiaojun Add Hisilicon HiP05/06/07 Djtag dts bindings for CPU and IO Die Signed-off-by: Tan Xiaojun Signed-off-by: Anurup M --- .../devicetree/bindings/arm/hisilico

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

2016-12-23 Thread Petr Mladek
On Fri 2016-12-23 10:24:35, Miroslav Benes wrote: > > > > diff --git a/kernel/livepatch/patch.c b/kernel/livepatch/patch.c > > > > index 5efa262..e79ebb5 100644 > > > > --- a/kernel/livepatch/patch.c > > > > +++ b/kernel/livepatch/patch.c > > > > @@ -29,6 +29,7 @@ > > > > #include > > > > #inclu

Re: [PATCH v2 03/10] dt-bindings: perf: hisi: Add Devicetree bindings for Hisilicon SoC PMU

2016-12-23 Thread Anurup M
On Monday 19 December 2016 10:07 PM, Rob Herring wrote: On Wed, Dec 07, 2016 at 11:55:59AM -0500, Anurup M wrote: 1) Device tree bindings for Hisilicon SoC PMU. 2) Add example for Hisilicon L3 cache and MN PMU. 3) Add child nodes of L3C and MN in djtag bindings example. Signed-off-by: Anurup

Re: BPF hash algo (Re: [kernel-hardening] Re: [PATCH v7 3/6] random: use SipHash in place of MD5)

2016-12-23 Thread Daniel Borkmann
On 12/22/2016 06:25 PM, Andy Lutomirski wrote: On Thu, Dec 22, 2016 at 8:59 AM, Hannes Frederic Sowa [...] I wondered if bpf program loading should have used the module loading infrastructure from the beginning... That would be way too complicated and would be nasty for the unprivileged cases

Re: [PATCH 2/2] xilinx_dma: Add reset support

2016-12-23 Thread Philipp Zabel
Am Donnerstag, den 15.12.2016, 15:56 +0200 schrieb Laurent Pinchart: > Hi Ramiro, > > (CC'ing Philipp Zabel) > > On Thursday 15 Dec 2016 11:26:54 Ramiro Oliveira wrote: > > On 12/14/2016 8:16 PM, Laurent Pinchart wrote: > > > Hi Ramiro, > > > > > > Thank you for the patch. > > > > > > On Wednes

[v1] mmc: host: dw_mmc-pci:- Unmap region obtained by pcim_iomap_regions

2016-12-23 Thread Arvind Yadav
Unmap and release PCI BARs, if dw_mci_pci_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/mmc/host/dw_mmc-pci.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c index ab82796..f10bad8 100644 -

Re: possible dmar_init_reserved_ranges() error

2016-12-23 Thread Joerg Roedel
On Thu, Dec 22, 2016 at 06:48:01PM -0600, Bjorn Helgaas wrote: > If we didn't want to use pcibios_resource_to_bus() here for some > reason, we should at least add a comment about why we think it's OK to > use a CPU physical address as an IOVA. Even if there are no such x86 systems out there, I thi

Re: [v1] i2c: busses: i2c-designware-pcidrv:- Unmap region obtained by pcim_iomap_regions

2016-12-23 Thread Mika Westerberg
On Fri, Dec 23, 2016 at 03:41:33PM +0530, Arvind Yadav wrote: > Release IO memory mapping, if i2c_dw_pci_probe is not successful. Point of pcim_iomap_regions() is that the regions are released automatically. So there is no need for explicit release.

Re: [PATCH v3 05/12] locking/ww_mutex: Remove the __ww_mutex_lock inline wrappers

2016-12-23 Thread Peter Zijlstra
On Wed, Dec 21, 2016 at 07:46:33PM +0100, Nicolai Hähnle wrote: > diff --git a/include/linux/ww_mutex.h b/include/linux/ww_mutex.h > index a5960e5..b2eaaab 100644 > --- a/include/linux/ww_mutex.h > +++ b/include/linux/ww_mutex.h > @@ -186,11 +186,6 @@ static inline void ww_acquire_fini(struct ww_ac

Re: OOM: Better, but still there on

2016-12-23 Thread Michal Hocko
TL;DR drop the last patch, check whether memory cgroup is enabled and retest with cgroup_disable=memory to see whether this is memcg related and if it is _not_ then try to test with the patch below On Thu 22-12-16 22:46:11, Nils Holland wrote: > On Thu, Dec 22, 2016 at 08:17:19PM +0100, Michal Hoc

[PATCH] PCI: exynos: refactor exynos pcie driver

2016-12-23 Thread Pankaj Dubey
From: Niyas Ahmed S T Currently Exynos PCIe driver is only supported for Exynos5440 SoC. This patch does refactoring of Exynos PCIe driver to extend support for other Exynos SoC. Following are the main changes done via this patch: 1) It adds separate structs for memory, clock resources. 2) It ad

Re: [PATCHv6 5/7] printk: report lost messages in printk safe/nmi contexts

2016-12-23 Thread Petr Mladek
On Wed 2016-12-21 23:36:03, Sergey Senozhatsky wrote: > Account lost messages in pritk-safe and printk-safe-nmi > contexts and report those numbers during printk_safe_flush(). > > The patch also moves lost message counter to struct > `printk_safe_seq_buf' instead of having dedicated static > count

Re: [PATCH] reset: Make optional functions really optional.

2016-12-23 Thread Philipp Zabel
Hi Ramiro, Am Donnerstag, den 15.12.2016, 18:05 + schrieb Ramiro Oliveira: > Up until now optional functions in the reset API were similar to the non > optional. > > This patch corrects that, while maintaining compatibility with existing > drivers. > > As suggested here: https://lkml.org/lkm

Re: BPF hash algo (Re: [kernel-hardening] Re: [PATCH v7 3/6] random: use SipHash in place of MD5)

2016-12-23 Thread Hannes Frederic Sowa
On Fri, 2016-12-23 at 11:04 +0100, Daniel Borkmann wrote: > On 12/22/2016 05:59 PM, Hannes Frederic Sowa wrote: > > On Thu, 2016-12-22 at 08:07 -0800, Andy Lutomirski wrote: > > > On Thu, Dec 22, 2016 at 7:51 AM, Hannes Frederic Sowa > > > wrote: > > > > On Thu, 2016-12-22 at 16:41 +0100, Jason A.

[PATCH 2/2] nvmem: core: Add a resource managed API to get cell by index

2016-12-23 Thread Vivek Gautam
Adding a resource managed method to obtain nvmem cell using cell index. Signed-off-by: Vivek Gautam --- drivers/nvmem/core.c | 33 + include/linux/nvmem-consumer.h | 8 2 files changed, 41 insertions(+) diff --git a/drivers/nvmem/core.c b/driv

Re: [PATCH] tools build: replace $(CC) -E with $(CPP) for pre-processing

2016-12-23 Thread Jiri Olsa
On Fri, Dec 23, 2016 at 01:46:42PM +0900, Masahiro Yamada wrote: > The top-level Makefile defines: > > CPP = $(CC) -E hum, so that'd work for running from top level, but I guess it fails for compiling from other places..? like tools/perf jirka > > So, $(CC) -E can be replaced wit

[PATCH 1/2] nvmem: core: Allow getting cell by index in phandle

2016-12-23 Thread Vivek Gautam
Fork out a method to get nvmem cell using cell index in the phandle for the cell. This helps in getting the lone cell given in the phandle, without mentioning the cell name in device tree. Signed-off-by: Vivek Gautam --- drivers/nvmem/core.c | 35 --- in

[PATCH 0/2] nvmem: core: Support to get nvmem cell using index

2016-12-23 Thread Vivek Gautam
aster branch. - Tested with next-20161223 tag and a revert to patch [1], to fix build issue on arm64, on db410c target. Able to read temperatures from thermal sensors. Vivek Gautam (2): nvmem: core: Allow getting cell by index in phandle nvmem: core: Add a resource managed API to get ce

[ANNOUNCE] ipvsadm release v1.29

2016-12-23 Thread Jesper Dangaard Brouer
We are happy to announce the release of ipvsadm v1.29. ipvsadm is a utility to administer the kernels IPVS/LVS load-balancer service It has been far too long since the last ipvsadm release. Even-though only two changes to the ipvsadm tool happened since last release, a release must be made as t

[PATCH RESEND 0/2] nvmem: core: Support to get nvmem cell using index

2016-12-23 Thread Vivek Gautam
and thread in [1] and [2]. Missed them earlier. The patches 1/2 and 2/2 remain unchanged. - Based on torvald's master branch. - Tested with next-20161223 tag and a revert to patch [1], to fix build issue on arm64 (as indicated in the thread [2]), on db410c target. Able to read tempera

Re: [PATCH v3 05/12] locking/ww_mutex: Remove the __ww_mutex_lock inline wrappers

2016-12-23 Thread Nicolai Hähnle
On 23.12.2016 11:48, Peter Zijlstra wrote: On Wed, Dec 21, 2016 at 07:46:33PM +0100, Nicolai Hähnle wrote: diff --git a/include/linux/ww_mutex.h b/include/linux/ww_mutex.h index a5960e5..b2eaaab 100644 --- a/include/linux/ww_mutex.h +++ b/include/linux/ww_mutex.h @@ -186,11 +186,6 @@ static inli

Re: [v1] i2c: busses: i2c-designware-pcidrv:- Unmap region obtained by pcim_iomap_regions

2016-12-23 Thread kbuild test robot
Hi Arvind, [auto build test WARNING on wsa/i2c/for-next] [also build test WARNING on v4.9 next-20161223] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arvind-Yadav/i2c-busses-i2c-designware

Re: [patch] mm, thp: always direct reclaim for MADV_HUGEPAGE even when deferred

2016-12-23 Thread Michal Hocko
On Fri 23-12-16 02:01:33, David Rientjes wrote: > On Fri, 23 Dec 2016, Michal Hocko wrote: > > > > The offering of defer breaks backwards compatibility with previous > > > settings of defrag=madvise, where we could set madvise(MADV_HUGEPAGE) on > > > .text segment remap and try to force thp back

Re: [PATCH] reset: Make optional functions really optional.

2016-12-23 Thread Laurent Pinchart
Hello, On Friday 23 Dec 2016 11:58:57 Philipp Zabel wrote: > Am Donnerstag, den 15.12.2016, 18:05 + schrieb Ramiro Oliveira: > > Up until now optional functions in the reset API were similar to the non > > optional. > > > > This patch corrects that, while maintaining compatibility with existi

Re: [v1] i2c: busses: i2c-designware-pcidrv:- Unmap region obtained by pcim_iomap_regions

2016-12-23 Thread Jarkko Nikula
On 12/23/2016 12:44 PM, Mika Westerberg wrote: On Fri, Dec 23, 2016 at 03:41:33PM +0530, Arvind Yadav wrote: Release IO memory mapping, if i2c_dw_pci_probe is not successful. Point of pcim_iomap_regions() is that the regions are released automatically. So there is no need for explicit release.

Re: [PATCH] iio: misc: add a generic regulator driver

2016-12-23 Thread Lars-Peter Clausen
On 12/23/2016 11:00 AM, Geert Uytterhoeven wrote: > Hi Lars, > > On Mon, Dec 12, 2016 at 6:15 PM, Lars-Peter Clausen wrote: >> On 12/06/2016 12:12 PM, Bartosz Golaszewski wrote: >>> We're already using libiio to read the measured data from the power >>> monitor, that's why we'd like to use the ii

Re: [PATCH v2 11/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2016-12-23 Thread Stephan Müller
Am Donnerstag, 22. Dezember 2016, 17:38:00 CET schrieb Cyrille Pitchen: Hi Cyrille, > This patchs allows to combine the AES and SHA hardware accelerators on > some Atmel SoCs. Doing so, AES blocks are only written to/read from the > AES hardware. Those blocks are also transferred from the AES to

[PATCH RFC V2] purgatory: fix up declarations

2016-12-23 Thread Nicholas Mc Guire
to add this. While at it the initialization of sha_regions to {{0,0}} was added. Patch was compile tested with: x86_64_defconfig (implies CONFIG_KEXEC=y) Patch is against 4.9.0 (localversion-next is next-20161223) arch/x86/include/asm/kexec-bzimage64.h | 16 arch/x86/purgatory/p

Re: [PATCH 1/2] devicetree: power: add bindings for GPIO-driven power switches

2016-12-23 Thread Lars-Peter Clausen
On 12/23/2016 10:07 AM, Geert Uytterhoeven wrote: > BTW, I'm not an IIO expert, but from my limited knowledge, it looks like "O" > support in IIO is limited to DACs? Depends on what you categorize as DACs. There are also potentiometer/rheostat drivers. They are kind of like DACs but the unit you c

Re: [RFC/PATCH] media: Add video bus switch

2016-12-23 Thread Pavel Machek
Hi! > > [...] > > > > static int isp_subdev_notifier_bound(struct v4l2_async_notifier *async, > > diff --git a/drivers/media/platform/video-bus-switch.c > > b/drivers/media/platform/video-bus-switch.c > > index 1a5d944..3a2d442 100644 > > --- a/drivers/media/platform/video-bus-switch.c > > +++ b

Re: [git pull] vfs pile 3

2016-12-23 Thread Al Viro
On Fri, Dec 23, 2016 at 12:03:21AM +, Al Viro wrote: > Assorted cleanups and fixes all over the place. Fix for aio compat in !CONFIG_AIO builds folded in, commit message on seq_file patch unmangled. Other than that, identical to the previous. The following changes since commit e93b1cc8

Re: [PATCH 0/1] xhci: Fix race related to abort operation

2016-12-23 Thread Mathias Nyman
On 23.12.2016 08:50, Lu Baolu wrote: Hi Mathias, This is a follow-up patch for below comment "rebase OGAWA Hirofumi's changes on top of that, and send to usb-linus only" in below discussion thread. https://lkml.org/lkml/2016/12/21/186 I rebased the patch and added unlock-before and lock-afte

Re: [PATCH v2 1/1] block: fix blk_queue_split() resource exhaustion

2016-12-23 Thread Lars Ellenberg
On Fri, Dec 23, 2016 at 09:49:53AM +0100, Michael Wang wrote: > Dear Maintainers > > I'd like to ask for the status of this patch since we hit the > issue too during our testing on md raid1. > > Split remainder bio_A was queued ahead, following by bio_B for > lower device, at this moment raid sta

Re: [v1] i2c: busses: i2c-designware-pcidrv:- Unmap region obtained by pcim_iomap_regions

2016-12-23 Thread Andy Shevchenko
On Fri, 2016-12-23 at 15:41 +0530, Arvind Yadav wrote: > Release IO memory mapping, if i2c_dw_pci_probe is not successful. > Second NAK, and seems (due to kbot message) you didn't even bother to compile test. What are you doing? > Signed-off-by: Arvind Yadav > --- >  drivers/i2c/busses/i2c-des

Re: [PATCH 11/14] x86/cqm: Add failure on open and read

2016-12-23 Thread David Carrillo-Cisneros
On Fri, Dec 16, 2016 at 3:13 PM, Vikas Shivappa wrote: > To provide reliable output to the user, cqm throws error when it does > not have enough RMIDs to monitor depending upon the mode user choses. > This also takes care to not overuse RMIDs. Default is LAZY mode. > > NOLAZY mode: This patch adds

Re: [PATCH] Fix usage of true and false as field names in struct taint_flag

2016-12-23 Thread Petr Mladek
On Thu 2016-12-22 13:56:38, Valdis Kletnieks wrote: > commit 7fd8329ba502ef76dd91db561c7aed696b2c7720 > Author: Petr Mladek > Date: Wed Sep 21 13:47:22 2016 +0200 > > taint/module: Clean up global and module taint flags handling > > Contains this chunk: Information about a past commits is

Re: BPF hash algo (Re: [kernel-hardening] Re: [PATCH v7 3/6] random: use SipHash in place of MD5)

2016-12-23 Thread Daniel Borkmann
On 12/23/2016 11:59 AM, Hannes Frederic Sowa wrote: On Fri, 2016-12-23 at 11:04 +0100, Daniel Borkmann wrote: On 12/22/2016 05:59 PM, Hannes Frederic Sowa wrote: On Thu, 2016-12-22 at 08:07 -0800, Andy Lutomirski wrote: [...] The hashing is not a proper sha1 neither, unfortunately. I think th

Re: George's crazy full state idea (Re: HalfSipHash Acceptable Usage)

2016-12-23 Thread Hannes Frederic Sowa
On Thu, 2016-12-22 at 19:07 -0500, George Spelvin wrote: > Hannes Frederic Sowa wrote: > > A lockdep test should still be done. ;) > > Adding might_lock() annotations will improve coverage a lot. Might be hard to find the correct lock we take later down the code path, but if that is possible, cer

Re: [PATCH] reset: Make optional functions really optional.

2016-12-23 Thread Philipp Zabel
Hi Laurent, Am Freitag, den 23.12.2016, 13:23 +0200 schrieb Laurent Pinchart: > Hello, > > On Friday 23 Dec 2016 11:58:57 Philipp Zabel wrote: > > Am Donnerstag, den 15.12.2016, 18:05 + schrieb Ramiro Oliveira: > > > Up until now optional functions in the reset API were similar to the non > >

Re: [PATCH 2/6] KVM: lapic: do not set KVM_REQ_EVENT unnecessarily on EOI

2016-12-23 Thread Paolo Bonzini
On 19/12/2016 10:47, Paolo Bonzini wrote: > On EOI, there is no need to set KVM_REQ_EVENT unconditionally. The PPR > update is already setting it if resetting the ISR bit causes PPR to > decrease. Even a level-triggered IOAPIC interrupt will set KVM_REQ_EVENT > on a reinjection (ioapic_service

Re: [PATCH] ACPI: small formatting fixes

2016-12-23 Thread Rafael J. Wysocki
On Fri, Dec 23, 2016 at 4:19 AM, Nick Desaulniers wrote: > On Tue, Dec 13, 2016 at 08:00:01PM +0100, Pavel Machek wrote: >> Actually.. the ACPI cleanup is fine. You did well :-). >> Pavel > > Cool, so (forgive the naive question

Re: [PATCH v3 05/12] locking/ww_mutex: Remove the __ww_mutex_lock inline wrappers

2016-12-23 Thread Peter Zijlstra
On Fri, Dec 23, 2016 at 12:16:03PM +0100, Nicolai Hähnle wrote: > >For some reason this patch appears to make lib/locking-selftest.c really > >unhappy. > > > >I get endless streams of: > > > >../lib/locking-selftest.c: In function ‘ww_test_fail_acquire’: > >../lib/locking-selftest.c:1141:6: error:

Re: [PATCH 1/1] usb: xhci: hold lock over xhci_abort_cmd_ring()

2016-12-23 Thread Mathias Nyman
On 23.12.2016 08:46, Lu Baolu wrote: In command timer function, xhci_handle_command_timeout(), xhci->lock is unlocked before call into xhci_abort_cmd_ring(). This might cause race between the timer function and the event handler. The xhci_abort_cmd_ring() function sets the CMD_RING_ABORT bit in

Re: OOM: Better, but still there on

2016-12-23 Thread Nils Holland
On Fri, Dec 23, 2016 at 11:51:57AM +0100, Michal Hocko wrote: > TL;DR > drop the last patch, check whether memory cgroup is enabled and retest > with cgroup_disable=memory to see whether this is memcg related and if > it is _not_ then try to test with the patch below Right, it seems we might be lo

Re: [PATCH 01/14] x86/cqm: Intel Resource Monitoring Documentation

2016-12-23 Thread Peter Zijlstra
On Fri, Dec 16, 2016 at 03:12:55PM -0800, Vikas Shivappa wrote: > +Continuous monitoring > +- > +A new file cont_monitoring is added to perf_cgroup which helps to enable > +cqm continuous monitoring. Enabling this field would start monitoring of > +the cgroup without perf being

Question regarding power button of Dell XPS13

2016-12-23 Thread Paul Menzel
Dear Linus, dear Len, I heard that you both have a Dell XPS13. I got the “revision” 9360, and installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-rc8. When pressing the power button the GNOME dialog, asking what to do (restart, power off, …) doesn’t appear. Neither `xev`

[PATCH] serial: 8250_dw: #ifdef out dw8250_acpi_match if ACPI isn't set

2016-12-23 Thread Jisheng Zhang
dw8250_acpi_match is used only when ACPI is enabled. Fix the following gcc warning when W=1 is set: drivers/tty/serial/8250/8250_dw.c:640:36: warning: 'dw8250_acpi_match' defined but not used [-Wunused-const-variable=] Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_dw.c | 2 ++ 1

[PATCH] dmaengine: ipu: Revert ipu_irq_handler changes.

2016-12-23 Thread ivan . stoyanov
From: Ivan Stoyanov In commit 3d8cc00073d6750ffe883685e49b2e4a0f596370 are consolidate functions ipu_irq_err and ipu_irq_fn considered for duplicated. Since this patch ipu driver does not work properly and cause kernel freeze during booting. [1.018314] Remapped [mem 0x53fc00b4-0x53fc01bf]

Re: [PATCH v7 2/5] i2c: Add STM32F4 I2C driver

2016-12-23 Thread M'boumba Cedric Madianga
Hi Uwe, Thanks for your comments. Please see below my answers and one question regarding duty cycle: 2016-12-23 10:00 GMT+01:00 Uwe Kleine-König : > Hello, > > On Thu, Dec 22, 2016 at 02:35:01PM +0100, M'boumba Cedric Madianga wrote: >> This patch adds support for the STM32F4 I2C controller. >> >

[PATCH 1/1] ARM64: dts: meson-gxbb-odroidc2: linux,usable-memory

2016-12-23 Thread Heinrich Schuchardt
After reading the fdt u-boot overwrites the reg property of the memory node with <0x0 0x0 0x0 0x7800>. To override this setting we have to use the property linux,usable-memory. If the first 16MB of the 2GB physical memory are used by the Linux kernel oops occur on the Odroid C2. For the Odro

Re: [PATCH 2/2] usb: host: xhci: Handle the right timeout command

2016-12-23 Thread Mathias Nyman
On 22.12.2016 03:46, Lu Baolu wrote: Hi, On 12/21/2016 11:18 PM, OGAWA Hirofumi wrote: Mathias Nyman writes: We set CMD_RING_STATE_ABORTED state under locking. I'm not checking what is for taking lock for register though, I guess it should be enough just lock around of read=>write of ->cmd_r

Re: [PATCH] iio: misc: add a generic regulator driver

2016-12-23 Thread Geert Uytterhoeven
Hi Lars, On Fri, Dec 23, 2016 at 12:35 PM, Lars-Peter Clausen wrote: > On 12/23/2016 11:00 AM, Geert Uytterhoeven wrote: >> On Mon, Dec 12, 2016 at 6:15 PM, Lars-Peter Clausen wrote: >>> On 12/06/2016 12:12 PM, Bartosz Golaszewski wrote: We're already using libiio to read the measured data

Re: OOM: Better, but still there on

2016-12-23 Thread Michal Hocko
On Fri 23-12-16 13:18:51, Nils Holland wrote: > On Fri, Dec 23, 2016 at 11:51:57AM +0100, Michal Hocko wrote: > > TL;DR > > drop the last patch, check whether memory cgroup is enabled and retest > > with cgroup_disable=memory to see whether this is memcg related and if > > it is _not_ then try to t

Re: [PATCH v3 09/15] livepatch: remove unnecessary object loaded check

2016-12-23 Thread Miroslav Benes
On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > klp_patch_object()'s callers already ensure that the object is loaded, > so its call to klp_is_object_loaded() is unnecessary. > > This will also make it possible to move the patching code into a > separate file. > > Signed-off-by: Josh Poimboeuf Ack

Re: arm64: mm: bug around swiotlb_dma_ops

2016-12-23 Thread Nikita Yushchenko
>> Thus recommended dma_set_mask_and_coherent() call, instead of checking >> if platform supports 64-bit DMA addressing, unconditionally enables >> 64-bit DMA addressing. In case of device actually can't do DMA to 64-bit >> addresses (e.g. because of limitations in PCIe controller), this breaks >>

Re: [PATCH 00/66] use permission-specific DEVICE_ATTR variants

2016-12-23 Thread Julia Lawall
> Hi Julia, > > I noticed that drivers/hwmon/gl518sm.c was not converted. Running your script > on it does not do anything. Any idea what might cause that ? I believe that it is due to the following: #define show(type, suffix, value) \ static ssize_t show_##s

Re: [PATCH v3 10/15] livepatch: move patching functions into patch.c

2016-12-23 Thread Miroslav Benes
On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > Move functions related to the actual patching of functions and objects > into a new patch.c file. > > Signed-off-by: Josh Poimboeuf Acked-by: Miroslav Benes Miroslav

Re: arm64: mm: bug around swiotlb_dma_ops

2016-12-23 Thread Nikita Yushchenko
> If trying to avoid big changes and only fixing particular problem with > particular device not working on arm64, I think best way is to > alter__swiotlb_dma_supported() in arch/arm64/mm/dma-mapping.c to detect > and decline (with -EIO) mask that is unsupported by device connection. > This will co

Re: [PATCH 0/2] z3fold fixes

2016-12-23 Thread Dan Streetman
On Thu, Dec 22, 2016 at 6:04 PM, Vitaly Wool wrote: > On Thu, Dec 22, 2016 at 10:55 PM, Dan Streetman wrote: >> On Sun, Dec 18, 2016 at 3:15 AM, Vitaly Wool wrote: >>> On Tue, Nov 29, 2016 at 11:39 PM, Andrew Morton >>> wrote: On Tue, 29 Nov 2016 17:33:19 -0500 Dan Streetman wrote: >

Re: [PATCH v3 11/15] livepatch: use kstrtobool() in enabled_store()

2016-12-23 Thread Miroslav Benes
On Fri, 16 Dec 2016, Josh Poimboeuf wrote: > On Fri, Dec 16, 2016 at 05:55:55PM +0100, Petr Mladek wrote: > > On Thu 2016-12-08 12:08:36, Josh Poimboeuf wrote: > > > The sysfs enabled value is a boolean, so kstrtobool() is a better fit > > > for parsing the input string since it does the range che

Re: [PATCH v3 08/15] livepatch: separate enabled and patched states

2016-12-23 Thread Miroslav Benes
On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > Once we have a consistency model, patches and their objects will be > enabled and disabled at different times. For example, when a patch is > disabled, its loaded objects' funcs can remain registered with ftrace > indefinitely until the unpatching opera

Re: [PATCH v7 3/5] ARM: dts: stm32: Add I2C1 support for STM32F429 SoC

2016-12-23 Thread M'boumba Cedric Madianga
Hi, 2016-12-22 20:11 GMT+01:00 Uwe Kleine-König : > Hello, > > On Thu, Dec 22, 2016 at 02:35:02PM +0100, M'boumba Cedric Madianga wrote: >> @@ -337,6 +350,16 @@ >> slew-rate = <2>; >> }; >> }; >> + >> +

  1   2   3   >