[PATCH v4 06/13] media: platform: pxa_camera: introduce sensor_call

2016-08-15 Thread Robert Jarzmik
Introduce sensor_call(), which will be used for all sensor invocations. This is a preparation move to v4l2 device conversion, ie. soc_camera adherence removal. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 27

sched: current instead rq->current

2016-08-15 Thread Colin Vidal
Hello, At the beginning of __schedule (kernel/sched/core.c), the current task is get with rq->curr. I try to to understand why not directly using current instead? Since a runqueue is specific to a CPU, it dosen't make sense to get the the current task of another CPU's runqueue. Yes? I try the

[RFC PATCH 06/16] DM: separate out compression and decompression routines.

2016-08-15 Thread Ram Pai
Simplify the code by separating out the compression and decompression routines. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c | 127 +- 1 files changed, 71 insertions(+), 56 deletions(-) diff --git

[RFC PATCH 00/16] dm-inplace-compression block device

2016-08-15 Thread Ram Pai
This patch series provides a generic device-mapper inplace compression device. Originally written by Shaohua Li. https://www.redhat.com/archives/dm-devel/2013-December/msg00143.html I have optimized the code and used it as a compressed swap device supporting exterme levels of swap traffic using a

[RFC PATCH 02/16] DM: Ability to choose the compressor.

2016-08-15 Thread Ram Pai
Ability to create a block device with a compression algorithm of the users choice. Currently lzo and nx842 compressors are supported. If the compressor algorithm is not specified the default setting in /sys/modules/dm-inplace-compress/parameters/compress is used. Signed-off-by: Ram Pai

Re: [PATCH] MAINTAINERS: Switch to kernel.org account for Krzysztof Kozlowski

2016-08-15 Thread Joe Perches
On Mon, 2016-08-15 at 19:46 +0200, Krzysztof Kozlowski wrote: > On Mon, Aug 15, 2016 at 10:36:45AM -0700, Joe Perches wrote: > > > > On Mon, 2016-08-15 at 19:17 +0200, Krzysztof Kozlowski wrote: > > > > > > Change my email address to kernel.org account instead of Samsung one. > > > Also switch

Re: [PATCH] MAINTAINERS: Switch to kernel.org account for Krzysztof Kozlowski

2016-08-15 Thread Krzysztof Kozlowski
On Mon, Aug 15, 2016 at 10:51:07AM -0700, Joe Perches wrote: > On Mon, 2016-08-15 at 19:46 +0200, Krzysztof Kozlowski wrote: > > On Mon, Aug 15, 2016 at 10:36:45AM -0700, Joe Perches wrote: > > > > > > On Mon, 2016-08-15 at 19:17 +0200, Krzysztof Kozlowski wrote: > > > > > > > > Change my email

[PATCH 05/22] IB/cma: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "cma_wq" queues work item cma_work_handler. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory

[PATCH 04/22] IB/ucma: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "close_wq" queues work items >close_work (maps to ucma_close_id) and _req_eve->close_work (maps to ucma_close_event_id). It has been identity

[PATCH 14/22] IB/mlx5: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "cache->wq" queues work items >work (maps to cache_work_func) and >dwork(maps to delayed_cache_work_func). It has been identity converted.

[PATCH v2 0/8] devicetree cleanup for i2c muxes/arbs/gates

2016-08-15 Thread Peter Rosin
Hi! The nxp pca9541 chip does not have any devicetree bindings. When trying to write such bindings matching the implementation, I stumbled upon something which I did not like. I had to give the node holding the i2c child bus a 'reg' property that is left unused and is really odd to explain from a

[PATCH 15/22] IB/mlx5/odp: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "mlx5_ib_page_fault_wq" queues work item _pfault->work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress

Re: [PATCH] block: Fix secure erase

2016-08-15 Thread Christoph Hellwig
On Mon, Aug 15, 2016 at 12:16:30PM -0600, Jens Axboe wrote: >> This really should be a: >> >> if (req_op(rq) != req_op(pos)) >> >> I'l lleave it up to Jens if he wants that in this patch or not, otherwise >> I'll send an incremental patch. > > Let's get a v2 with that fixed up, it makes a big

[PATCH RFC] perf tools: Adding event type for HW tracers

2016-08-15 Thread Mathieu Poirier
It is now possible to use the kernel's perf filter framework to reduce the amount of trace collected by IntelPT and CoreSight tracers. To collect address filter specifics from the perf tool command line function parse_filter() is used, which in turn calls set_filter(). In the latter only events

Re: [PATCH v3 16/51] x86/32: put real return address on stack in entry code

2016-08-15 Thread Josh Poimboeuf
On Mon, Aug 15, 2016 at 11:04:42AM -0700, H. Peter Anvin wrote: > On 08/15/16 08:09, Josh Poimboeuf wrote: > > On Sun, Aug 14, 2016 at 12:31:47AM -0700, Andy Lutomirski wrote: > >> On Fri, Aug 12, 2016 at 7:28 AM, Josh Poimboeuf > >> wrote: > >>> This standardizes the stacks

Re: [PATCH v6 0/3] PCI: Precision Time Measurement support

2016-08-15 Thread Bjorn Helgaas
On Wed, Jul 20, 2016 at 07:49:21AM +0800, Yong, Jonathan wrote: > On 07/20/2016 05:19, Bjorn Helgaas wrote: > > On Mon, Jun 13, 2016 at 02:05:26PM -0500, Bjorn Helgaas wrote: > >> This is a slightly different proposal for the PTM support Jonathan > >> proposed here: > >> > >> > >>

Re: [PATCH v6 1/3] PCI: Add Precision Time Measurement (PTM) support

2016-08-15 Thread Bjorn Helgaas
Hi Jonathan, On Wed, Aug 10, 2016 at 10:58:22AM +0800, Yong, Jonathan wrote: > On 06/14/2016 03:05, Bjorn Helgaas wrote: > > From: Jonathan Yong > > > > Add Precision Time Measurement (PTM) support (see PCIe r3.1, sec 6.22). > > > > Enable PTM on PTM Root devices and

[PATCH v4 00/13] pxa_camera transition to v4l2 standalone device

2016-08-15 Thread Robert Jarzmik
Hi Hans, Now only your comments have been taken between v3 and v4, the buffer sequence number reset, and the rebase on top of v4.8-rc1, which makes the diffstat with the former submission : drivers/media/i2c/mt9m111.c | 14 ++ drivers/media/platform/pxa_camera.c |

[PATCH v4 03/13] media: mt9m111: move mt9m111 out of soc_camera

2016-08-15 Thread Robert Jarzmik
As the mt9m111 is now working as a standalone v4l2 subdevice sensor, move it out of soc_camera directory and severe its dependency on soc_camera. Signed-off-by: Robert Jarzmik --- drivers/media/i2c/Kconfig |7 + drivers/media/i2c/Makefile |

[PATCH v4 01/13] media: mt9m111: make a standalone v4l2 subdevice

2016-08-15 Thread Robert Jarzmik
Remove the soc_camera adherence. Mostly the change removes the power manipulation provided by soc_camera, and instead : - powers on the sensor when the s_power control is activated - powers on the sensor in initial probe - enables and disables the MCLK provided to it in power on/off

[PATCH v4 04/13] media: platform: pxa_camera: convert to vb2

2016-08-15 Thread Robert Jarzmik
Convert pxa_camera from videobuf to videobuf2. As the soc_camera was already compatible with videobuf2, the port is quite straightforward. The special case of this code in which the vb2 to prepare is "too big" in terms of size for the new capture format, the pxa_camera will fail. Signed-off-by:

Re: commit 444d13ff10f introduced boot failure on s390x

2016-08-15 Thread Jessica Yu
+++ Jessica Yu [10/08/16 18:58 -0400]: +++ Eryu Guan [10/08/16 23:21 +0800]: Hi, I hit boot failure on s390x host starting from 4.8-rc1 kernel, 4.7 kernel works fine. And I bisected to this commit 444d13ff10fb commit 444d13ff10fb13bc3e64859c3cf9ce43dcfeb075 Author: Jessica Yu

[PATCH 7/7] dax: remove "depends on BROKEN" from FS_DAX_PMD

2016-08-15 Thread Ross Zwisler
Now that DAX PMD faults are once again working and are now participating in DAX's radix tree locking scheme, allow their config option to be enabled. Signed-off-by: Ross Zwisler --- fs/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/Kconfig

Re: [PATCH v3] block: make sure big bio is splitted into at most 256 bvecs

2016-08-15 Thread Kent Overstreet
On Mon, Aug 15, 2016 at 11:23:28AM -0700, Christoph Hellwig wrote: > On Mon, Aug 15, 2016 at 11:11:22PM +0800, Ming Lei wrote: > > After arbitrary bio size is supported, the incoming bio may > > be very big. We have to split the bio into small bios so that > > each holds at most BIO_MAX_PAGES

[PATCH 5/7] dax: lock based on slot instead of [mapping, index]

2016-08-15 Thread Ross Zwisler
DAX radix tree locking currently locks entries based on the unique combination of the 'mapping' pointer and the pgoff_t 'index' for the entry. This works for PTEs, but as we move to PMDs we will need to have all the offsets within the range covered by the PMD to map to the same bit lock. To

[PATCH 2/7] ext4: tell DAX the size of allocation holes

2016-08-15 Thread Ross Zwisler
When DAX calls _ext4_get_block() and the file offset points to a hole we currently don't set bh->b_size. When we re-enable PMD faults DAX will need bh->b_size to tell it the size of the hole so it can decide whether to fault in a 4 KiB zero page or a 2 MiB zero page. _ext4_get_block() has the

Re: [PATCH] USB: core: of: Check device_node before parsing in usb_of_get_child_node()

2016-08-15 Thread Vaibhav Hiremath
On Monday 15 August 2016 11:41 AM, Greg KH wrote: On Mon, Aug 15, 2016 at 11:31:10AM -0700, Vaibhav Hiremath wrote: In case of HUB devices connected to USB ports, we may not have DT node representing it inside USB, and when devices connected to hub gets enumerated, call to

[PATCH v4 08/13] media: platform: pxa_camera: add buffer sequencing

2016-08-15 Thread Robert Jarzmik
Add sequence numbers to completed buffers. Signed-off-by: Robert Jarzmik --- Since v3: reset buffer sequence number in start_streaming() --- drivers/media/platform/soc_camera/pxa_camera.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v4 09/13] media: platform: pxa_camera: remove set_crop

2016-08-15 Thread Robert Jarzmik
This is to be seen as a regression as the set_crop function is removed. This is a temporary situation in the v4l2 porting, and will have to be added later. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 76 -- 1

[PATCH] builddeb: Skip gcc-plugins when not configured

2016-08-15 Thread Kees Cook
When attempting to build a Debian kernel package, the "scripts/gcc-plugins" directory does not exist in the output tree unless CONFIG_GCC_PLUGINS=y. To avoid errors when not defined, this wraps the failing "find" in a config test. Reported-by: Frank Paulsen Tested-by:

Re: [PATCH] MAINTAINERS: Switch to kernel.org account for Krzysztof Kozlowski

2016-08-15 Thread Joe Perches
On Mon, 2016-08-15 at 19:17 +0200, Krzysztof Kozlowski wrote: > Change my email address to kernel.org account instead of Samsung one. > Also switch Maxim MUIC charger drivers from supported to maintained > mode. You should probably add a .mailmap entry too Krzysztof Kozlowski  

Re: [PATCH] MAINTAINERS: Switch to kernel.org account for Krzysztof Kozlowski

2016-08-15 Thread Krzysztof Kozlowski
On Mon, Aug 15, 2016 at 10:36:45AM -0700, Joe Perches wrote: > On Mon, 2016-08-15 at 19:17 +0200, Krzysztof Kozlowski wrote: > > Change my email address to kernel.org account instead of Samsung one. > > Also switch Maxim MUIC charger drivers from supported to maintained > > mode. > > You should

Re: Build regressions/improvements in v4.8-rc2

2016-08-15 Thread Geert Uytterhoeven
On Mon, Aug 15, 2016 at 7:53 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.8-rc2[1] to v4.8-rc1[3], the summaries are: > - build errors: +6/-3 + error: zynq-fpga.c: undefined reference to `clk_round_rate': => .text+0x3234c0), .text+0x350bd4), .text+0x17f780),

[PATCH 00/23] Remove deprecated create_workqueue instances

2016-08-15 Thread Bhaktipriya Shridhar
This patch set removes the instances of deprecated create_singlethread_workqueue (scheduled for removal) in drivers/infiniband by making the appropriate conversions. Bhaktipriya Shridhar (23): drm/ttm: Remove deprecated create_singlethread_workqueue IB/sa : Remove deprecated

Re: [PATCH v2 6/9] mtd: spi-nor: Support R/W for S25FS-S family flash

2016-08-15 Thread Li Yang
On Fri, Apr 22, 2016 at 1:39 AM, Yunhui Cui wrote: > From: Yunhui Cui > > With the physical sectors combination, S25FS-S family flash > requires some special operations for read/write functions. > > Signed-off-by: Yunhui Cui > --- >

[PATCH 07/22] IB/iwcm: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "iwcm_wq" queues work item (maps to cm_work_handler). It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress

[PATCH 08/22] iw_cxgb3: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "workq" queues work item _work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

Re: [PATCH v2 4/5] clk: sunxi-ng: Add A31/A31s clocks

2016-08-15 Thread Jean-Francois Moine
On Mon, 15 Aug 2016 16:13:14 +0800 Chen-Yu Tsai wrote: > +/* > + * The Audio PLL is supposed to have 4 outputs: 3 fixed factors from > + * the base (2x, 4x and 8x), and one variable divider (the one true > + * pll audio). > + * > + * We don't have any need for the variable divider

[PATCH 13/22] i40iw_cm: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "event_wq" is involved in event handling and queues i40iw_cm_event_handler. The workqueue "disconn_wq" is involved in closing connection and

[PATCH] soc: qcom: smd: Represent smd edges as devices

2016-08-15 Thread Bjorn Andersson
By representing each edge as its own device the channels are no longer tied to being parented by the same smd device and as such an edge can live as children of e.g. remoteproc instances. Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/smd.c | 197

Re: [PATCH v9 06/10] clk: mediatek: Add MT2701 clock support

2016-08-15 Thread Stephen Boyd
On 08/15, James Liao wrote: > On Fri, 2016-08-12 at 17:44 -0700, Stephen Boyd wrote: > > On 06/22, Erin Lo wrote: > > > + > > > +static void mtk_bdpsys_init(struct device_node *node) > > > +{ > > > + struct clk_onecell_data *clk_data; > > > + int r; > > > + > > > + clk_data =

[PATCH 22/22] IB/mlx4/alias_GUID: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "wq" queues work item that maps to alias_guid_work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under

[PATCH 21/22] IB/ipoib_verbs: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() with WQ_MEM_RECLAIM set, replaces deprecated create_singlethread_workqueue(). This is the identity conversion. The workqueue "wq" queues mulitple work items viz >restart_task, >cm.rx_reap_task, >cm.skb_task, >neigh_reap_task, >ah_reap_task, >mcast_task and

[PATCH] USB: core: of: Check device_node before parsing in usb_of_get_child_node()

2016-08-15 Thread Vaibhav Hiremath
In case of HUB devices connected to USB ports, we may not have DT node representing it inside USB, and when devices connected to hub gets enumerated, call to usb_of_get_child_node() leads to NULL pointer dereference. In the usecase we have, where EHCI port is connected to USB HUB device, and

Re: [PATCH v3 16/51] x86/32: put real return address on stack in entry code

2016-08-15 Thread H. Peter Anvin
On 08/15/16 11:25, Josh Poimboeuf wrote: > On Mon, Aug 15, 2016 at 11:04:42AM -0700, H. Peter Anvin wrote: >> On 08/15/16 08:09, Josh Poimboeuf wrote: >>> On Sun, Aug 14, 2016 at 12:31:47AM -0700, Andy Lutomirski wrote: On Fri, Aug 12, 2016 at 7:28 AM, Josh Poimboeuf

[PATCH v2] regulator: Add LTC3676 support

2016-08-15 Thread Tim Harvey
This patch adds support for the Linear Technology LTC3676 8-output I2C voltage regulator IC. Cc: Jaffer Kapasi Signed-off-by: Tim Harvey --- v2: - use kernel coding style for switch statements - change over-temp warning to dev_warn - explicitly

[RFC PATCH 11/16] DM: Try to avoid temporary buffer allocation to hold compressed data.

2016-08-15 Thread Ram Pai
The read path a) allocates a temporary buffer to hold the compressed data. b) reads the compressed data into the temporary buffer. c) decompresses the compressed data into the caller's bio-buffer. We know that the caller's bio-buffer will be atleast as large as the compressed data. So we could

[RFC PATCH 15/16] DM: Add sysfs parameters to track total memory saved and allocated.

2016-08-15 Thread Ram Pai
Add parameters to monitor the memory efficiency of the module. dm_icomp_total_alloc_size: total memory currently in use. dm_icomp_total_bio_save: total memory allocation saved by the optimizations. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c | 36

[RFC PATCH 13/16] DM: macros to set and get the state of the request.

2016-08-15 Thread Ram Pai
Consolidate code to set and get the state of a request. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c | 31 +-- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/md/dm-inplace-compress.c

[PATCH] MIPS: pci-mt7620: Delete unnecessary assignment for the field "owner"

2016-08-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 Aug 2016 19:29:09 +0200 The field "owner" is set by the core. Thus delete an unneeded initialisation. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Markus Elfring

[RFC PATCH 09/16] DM: Delay allocation of decompression buffer during read.

2016-08-15 Thread Ram Pai
The read path allocates a temporary buffer each to hold compressed data and decompressed data. The buffer to hold the decompressed data is not needed till the compressed data is read from the device and is uncompressed. Hence delay the allocation of decompress buffer till it is really needed.

[RFC PATCH 14/16] DM: Wasted bio copy.

2016-08-15 Thread Ram Pai
No point doing it. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/md/dm-inplace-compress.c b/drivers/md/dm-inplace-compress.c index 55a515b..31b144b 100644 ---

[RFC PATCH 16/16] DM: add documentation for dm-inplace-compress.

2016-08-15 Thread Ram Pai
Signed-off-by: Ram Pai --- .../device-mapper/dm-inplace-compress.text | 138 1 files changed, 138 insertions(+), 0 deletions(-) create mode 100644 Documentation/device-mapper/dm-inplace-compress.text diff --git

[RFC PATCH 12/16] DM: release unneeded buffer as soon as possible.

2016-08-15 Thread Ram Pai
Done to conserve as much free space as possible. Waiting to release till the bio is done will unneccesarily hog up memory. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2 2/2] iio: accel: Add support for Domintech DMARD06 accelerometer

2016-08-15 Thread Jonathan Cameron
On 27/07/16 15:57, Rob Herring wrote: > On Mon, Jul 25, 2016 at 06:21:18PM +0300, Aleksei Mamlin wrote: >> This patch add support for Domintech DMARD05, DMARD06 and DMARD07 >> accelerometers. >> >> Signed-off-by: Aleksei Mamlin >> --- >>

Re: [PATCH v2 1/2] devicetree: bindings: Add vendor prefix for Domintech Co., Ltd.

2016-08-15 Thread Jonathan Cameron
On 25/07/16 16:21, Aleksei Mamlin wrote: > Add vendor-prefix for Domintech Co., Ltd. > > Signed-off-by: Aleksei Mamlin > Acked-by: Rob Herring Applied to the togreg branch of iio.git Thanks Jonathan > --- >

Re: [PATCH v3 16/51] x86/32: put real return address on stack in entry code

2016-08-15 Thread H. Peter Anvin
On 08/15/16 08:09, Josh Poimboeuf wrote: > On Sun, Aug 14, 2016 at 12:31:47AM -0700, Andy Lutomirski wrote: >> On Fri, Aug 12, 2016 at 7:28 AM, Josh Poimboeuf wrote: >>> This standardizes the stacks of idle tasks to be consistent with other >>> tasks on 32-bit. >> >> It might

Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests

2016-08-15 Thread Mathieu Desnoyers
- On Aug 14, 2016, at 8:56 PM, Boqun Feng boqun.f...@gmail.com wrote: > On Sun, Aug 14, 2016 at 03:02:20PM +, Mathieu Desnoyers wrote: >> - On Aug 12, 2016, at 9:28 PM, Boqun Feng boqun.f...@gmail.com wrote: >> >> > On Fri, Aug 12, 2016 at 06:11:45PM +, Mathieu Desnoyers wrote:

Re: [PATCH v3] block: make sure big bio is splitted into at most 256 bvecs

2016-08-15 Thread Christoph Hellwig
On Mon, Aug 15, 2016 at 11:11:22PM +0800, Ming Lei wrote: > After arbitrary bio size is supported, the incoming bio may > be very big. We have to split the bio into small bios so that > each holds at most BIO_MAX_PAGES bvecs for safety reason, such > as bio_clone(). I still think working around a

[PATCH v2 2/3] radix-tree tests: add iteration test

2016-08-15 Thread Ross Zwisler
There are four cases I can see where we could end up with a NULL 'slot' in radix_tree_next_slot(). This unit test exercises all four of them, making sure that if in the future we have an unsafe path through radix_tree_next_slot(), we'll catch it. Here are details on the four cases: 1)

Re: [PATCH] perf/core: Fix the mask in perf_output_sample_regs

2016-08-15 Thread Madhavan Srinivasan
On Thursday 11 August 2016 05:57 PM, Peter Zijlstra wrote: Sorry, found it in my inbox while clearing out backlog.. On Sun, Jul 03, 2016 at 11:31:58PM +0530, Madhavan Srinivasan wrote: When decoding the perf_regs mask in perf_output_sample_regs(), we loop through the mask using

Re: [PATCH v6 05/11] mm, compaction: add the ultimate direct compaction priority

2016-08-15 Thread Joonsoo Kim
On Wed, Aug 10, 2016 at 11:12:20AM +0200, Vlastimil Babka wrote: > During reclaim/compaction loop, it's desirable to get a final answer from > unsuccessful compaction so we can either fail the allocation or invoke the OOM > killer. However, heuristics such as deferred compaction or pageblock skip

Re: [Query] increased latency observed in cpu hotplug path

2016-08-15 Thread Khan, Imran
On 8/5/2016 12:49 PM, Khan, Imran wrote: > On 8/1/2016 2:58 PM, Khan, Imran wrote: >> On 7/30/2016 7:54 AM, Akinobu Mita wrote: >>> 2016-07-28 22:18 GMT+09:00 Khan, Imran : Hi, Recently we have observed some increased latency in CPU hotplug event in

Re: [PATCH v6 0/5] /dev/random - a new approach

2016-08-15 Thread H. Peter Anvin
On 08/11/16 05:24, Stephan Mueller wrote: > * prevent fast noise sources from dominating slow noise sources > in case of /dev/random Can someone please explain if and why this is actually desirable, and if this assessment has been passed to someone who has actual experience with cryptography at

[PATCH] powerpc: mpc8349emitx: Delete unnecessary assignment for the field "owner"

2016-08-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 Aug 2016 22:36:05 +0200 The field "owner" is set by the core. Thus delete an unneeded initialisation. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Markus Elfring

[PATCH] Try to support analog audio codec at firefly reload

2016-08-15 Thread Randy Li
Hello: This patch could enabled the es8328 codec at firefly reload board, but it doesn't not really work. I disable the mute of channel Left mix and Right mix in alsamixer, I could hear the noise from my headphone, but it never be a music. I just send this patch here to see whether somebody

[PATCH] ARM: dts: rockchip: add analog audio support for firefly reload

2016-08-15 Thread Randy Li
The ES8323 found on firefly reload board is used to output analog audio to headphone and capture the sound from micphone on board and the one may attach to headphone. It would be also used to capture the sound from HDMI IN. Signed-off-by: Randy Li ---

[PATCH] leds: make triggers explicitly non-modular

2016-08-15 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/leds/trigger/Kconfig:menuconfig LEDS_TRIGGERS drivers/leds/trigger/Kconfig: bool "LED Trigger support" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular

Re: [lustre-devel] [PATCH 1/2] staging: lustre: Add include path to Makefile

2016-08-15 Thread James Simmons
> On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote: > > Start to rationalize include paths in source code files. > > > > Signed-off-by: Joe Perches > > --- > > drivers/staging/lustre/Makefile | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git

Re: [RFC PATCH v5 3/3] net: phy: Add gmiitorgmii converter support

2016-08-15 Thread Andrew Lunn
> Signed-off-by: Kedareswara rao Appana > --- > Thanks a lot Andrew for your inputs. > Changes for v5: > --> Fixed return values in the probe as suggested by punnaiah. > --> Added a mask for the converter speed as suggested by punnaiah. > +/* Xilinx GMII2RGMII Converter driver

[PATCH v2 1/3] radix-tree: 'slot' can be NULL in radix_tree_next_slot()

2016-08-15 Thread Ross Zwisler
There are four cases I can see where we could end up with a NULL 'slot' in radix_tree_next_slot(). Yet radix_tree_next_slot() never actually checks whether 'slot' is NULL. It just happens that for the cases where 'slot' is NULL, some other combination of factors prevents us from dereferencing

Re: [PATCH V4 1/1] iio: as6200: add AS6200 temperature sensor driver from ams AG

2016-08-15 Thread Guenter Roeck
On Mon, Aug 15, 2016 at 06:25:44PM +0100, Jonathan Cameron wrote: > On 04/08/16 09:35, Florian Lobmaier wrote: > > Hello Peter, > > > > Thanks again for your valuable feedback. We use now IIO_EV_THRESH to > > set high and low limits for temperature. Also removed all the custom > > ABI as this are

[PATCH v12 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399

2016-08-15 Thread Chris Zhong
Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 data rates. Hence, create 2

[PATCH v12 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-08-15 Thread Chris Zhong
Add support for cdn DP controller which is embedded in the rk3399 SoCs. The DP is compliant with DisplayPort Specification, Version 1.3, This IP is compatible with the rockchip type-c PHY IP. There is a uCPU in DP controller, it need a firmware to work, please put the firmware file to

[PATCH v12 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-08-15 Thread Chris Zhong
Hi all This series patch is for rockchip Type-C phy and DisplayPort controller driver. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and

Re: [ANNOUNCE] git-series: track changes to a patch series over time

2016-08-15 Thread Josh Triplett
On Mon, Aug 15, 2016 at 12:17:11PM -0600, Simon Glass wrote: > On 1 August 2016 at 12:37, Josh Triplett wrote: > > On Mon, Aug 01, 2016 at 09:14:54AM -0600, Stephen Warren wrote: > >> On 07/29/2016 12:40 AM, Josh Triplett wrote: > >> > I'd like to announce a project I've

Re: [PATCH v3 16/51] x86/32: put real return address on stack in entry code

2016-08-15 Thread Josh Poimboeuf
On Mon, Aug 15, 2016 at 12:22:33PM -0700, H. Peter Anvin wrote: > On 08/15/16 11:25, Josh Poimboeuf wrote: > > On Mon, Aug 15, 2016 at 11:04:42AM -0700, H. Peter Anvin wrote: > >> On 08/15/16 08:09, Josh Poimboeuf wrote: > >>> On Sun, Aug 14, 2016 at 12:31:47AM -0700, Andy Lutomirski wrote: >

[PATCH 0/2 v2] userns: show current values of user namespace counters

2016-08-15 Thread Andrei Vagin
Recently Eric added user namespace counters. User namespace counters is a feature that allows to limit the number of various kernel objects a user can create. These limits are set via /proc/sys/user/ sysctls on a per user namespace basis and are applicable to all users in that namespace. User

Re: [PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-15 09:57 AM, Robert Foss wrote: On 2016-08-13 10:39 AM, Jann Horn wrote: On Fri, Aug 12, 2016 at 06:04:20PM -0400, robert.f...@collabora.com wrote: diff --git a/fs/proc/internal.h b/fs/proc/internal.h index aa27810..c55e1fe 100644 --- a/fs/proc/internal.h +++

[PATCH] powerpc/512x: Delete unnecessary assignment for the field "owner"

2016-08-15 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 15 Aug 2016 22:07:54 +0200 The field "owner" is set by the core. Thus delete an unneeded initialisation. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Markus Elfring

Re: spin_lock implicit/explicit memory barrier

2016-08-15 Thread Paul E. McKenney
On Mon, Aug 15, 2016 at 10:06:39PM +0200, Manfred Spraul wrote: > Hi Paul, > > On 08/10/2016 11:00 PM, Paul E. McKenney wrote: > >On Wed, Aug 10, 2016 at 12:17:57PM -0700, Davidlohr Bueso wrote: > >>[...] > >> CPU0 CPU1 > >> complex_mode = true

Re: BUG and WARN kernel log levels

2016-08-15 Thread Kees Cook
On Mon, Aug 15, 2016 at 12:00 PM, Joe Perches wrote: > On Mon, 2016-08-15 at 11:53 -0700, Kees Cook wrote: >> Hi, >> >> So, I noticed that asm-gemeric/bug.h defines BUG() without a log level: >> >> #ifndef HAVE_ARCH_BUG >> #define BUG() do { \ >>printk("BUG: failure at

Re: musb: am3358: having performance problem with usb1

2016-08-15 Thread ayaka
On 08/13/2016 01:44 AM, Greg KH wrote: On Sat, Aug 13, 2016 at 12:38:46AM +0800, ayaka wrote: On 08/12/2016 03:40 PM, Greg KH wrote: On Fri, Aug 12, 2016 at 10:23:15AM +0800, ayaka wrote: Hello all: I recently add a support for customize am3358 board using the branch

Re: [PATCH v2] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-08-15 Thread Rask Ingemann Lambertsen
On Mon, Aug 15, 2016 at 12:57:04PM +0800, Chen-Yu Tsai wrote: > The bootloader (U-boot) sometimes uses this timer for various delays. > It uses it as a ongoing counter, and does comparisons on the current > counter value. The timer counter is never stopped. > > In some cases when the user

Re: [PATCH] tipc: fix NULL pointer dereference in shutdown()

2016-08-15 Thread David Miller
From: Jon Maloy Date: Mon, 15 Aug 2016 19:48:24 + > Sorry, I just came back from vacation today. > > Acked-by: Jon Maloy Applied.

Re: [PATCH 0/7] re-enable DAX PMD support

2016-08-15 Thread Ross Zwisler
On Mon, Aug 15, 2016 at 01:21:47PM -0700, Dan Williams wrote: > On Mon, Aug 15, 2016 at 12:09 PM, Ross Zwisler > wrote: > > DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based > > locking. This series allows DAX PMDs to participate in the DAX

Re: [PATCH 1/1] sbs-battery: add ability to get battery capacity

2016-08-15 Thread Sebastian Reichel
Hi, On Thu, Aug 11, 2016 at 09:59:12AM -0700, Joshua Clayton wrote: > Battery capacity level is a standard feature of sbs battery > That can be used to tell what the remainig battery capacity is, and > can tell if the battery has not been calibrated/initialized, which makes > the capacity and

Re: [PATCH v3 6/6] clk: mvebu: Add the peripheral clock driver for Armada 3700

2016-08-15 Thread Stephen Boyd
On 07/19, Gregory CLEMENT wrote: > + > +static const struct clk_ops clk_double_div_ops = { > + .recalc_rate = clk_double_div_recalc_rate, > +}; > + > +static const struct of_device_id armada_3700_periph_clock_of_match[] = { > + { .compatible = "marvell,armada-3700-periph-clock-nb", > +

Re: [LKP] [lkp] [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression

2016-08-15 Thread Dave Chinner
On Mon, Aug 15, 2016 at 10:14:55PM +0800, Fengguang Wu wrote: > Hi Christoph, > > On Sun, Aug 14, 2016 at 06:17:24PM +0200, Christoph Hellwig wrote: > >Snipping the long contest: > > > >I think there are three observations here: > > > >(1) removing the mark_page_accessed (which is the only

Re: [PATCH v3 5/6] dt-bindings: clock: add DT binding for the peripheral clocks on Armada 3700

2016-08-15 Thread Stephen Boyd
On 07/19, Gregory CLEMENT wrote: > This commit adds the DT binding documentation for the peripheral clocks > used in the Marvell Armada 3700 SoCs. > > Signed-off-by: Gregory CLEMENT > Acked-by: Rob Herring > --- Applied to clk-next --

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-08-15 Thread Jonathan Cameron
On 15 August 2016 18:07:30 BST, Guenter Roeck wrote: >On Mon, Aug 15, 2016 at 04:40:21PM +0100, Jonathan Cameron wrote: >> On 26/07/16 17:04, Guenter Roeck wrote: >> > On Tue, Jul 26, 2016 at 12:00:33PM +0200, Alexander Stein wrote: >> >> On Tuesday 26 July 2016 11:33:59,

Re: [PATCH] iio: adc: rockchip_saradc: Explicitly disable ADC on probe

2016-08-15 Thread Guenter Roeck
Hi Jonathan, On Mon, Aug 15, 2016 at 07:04:31PM +0100, Jonathan Cameron wrote: > On 26/07/16 04:22, Guenter Roeck wrote: > > On 07/25/2016 07:51 PM, Caesar Wang wrote: > >> Hi Guenter, > >> > >> Thanks for fixing it. > >> > >> On 2016年07月26日 03:39, Guenter Roeck wrote: > >>> If the ADC is read

Re: [LKP] [lkp] [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression

2016-08-15 Thread Huang, Ying
Christoph Hellwig writes: > Snipping the long contest: > > I think there are three observations here: > > (1) removing the mark_page_accessed (which is the only significant > change in the parent commit) hurts the > aim7/1BRD_48G-xfs-disk_rr-3000-performance/ivb44 test.

Re: [PATCH] net: hns: mdio->irq is an array, so no need to check if it is null

2016-08-15 Thread David Miller
From: Colin King Date: Mon, 15 Aug 2016 13:55:17 +0100 > From: Colin Ian King > > The null check on mdio->irq is redundant since mdio->irq is an array > of PHY_MAX_ADDR ints and hence can never be null. Remove the redundant > check. > >

Re: [PATCH 0/7] re-enable DAX PMD support

2016-08-15 Thread Dan Williams
On Mon, Aug 15, 2016 at 2:11 PM, Ross Zwisler wrote: > On Mon, Aug 15, 2016 at 01:21:47PM -0700, Dan Williams wrote: >> On Mon, Aug 15, 2016 at 12:09 PM, Ross Zwisler >> wrote: >> > DAX PMDs have been disabled since Jan Kara introduced

Re: [PATCH 1/2] staging: lustre: Add include path to Makefile

2016-08-15 Thread Joe Perches
On Mon, 2016-08-15 at 23:04 +0200, Greg Kroah-Hartman wrote: > On Mon, Aug 15, 2016 at 12:33:23PM -0700, Joe Perches wrote: > > Start to rationalize include paths in source code files. [] > > diff --git a/drivers/staging/lustre/Makefile > > b/drivers/staging/lustre/Makefile [] > > @@ -1,2 +1,5 @@

[PATCH net-next 2/6] net: dsa: mv88e6xxx: describe Multi-chip registers

2016-08-15 Thread Vivien Didelot
Add flags to describe the presence of SMI Command and Data registers used to indirectly access internal SMI devices registers when the switch SMI address is not zero. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +-

Re: [PATCH 4.7 00/41] 4.7.1-stable review

2016-08-15 Thread Kevin Hilman
Greg Kroah-Hartman writes: > On Sun, Aug 14, 2016 at 06:44:02PM -0700, kernelci.org bot wrote: >> stable-rc boot: 468 boots: 1 failed, 432 passed with 33 offline, 2 conflicts >> (v4.7-41-g57464803070d) >> >> Full Boot Summary: >>

[PATCH v2 3/3] radix-tree tests: properly initialize mutex

2016-08-15 Thread Ross Zwisler
The pthread_mutex_t in regression1.c wasn't being initialized properly. Signed-off-by: Ross Zwisler --- tools/testing/radix-tree/regression1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/radix-tree/regression1.c

[PATCH v2 0/3] 'slot' can be NULL in radix_tree_next_slot()

2016-08-15 Thread Ross Zwisler
This adds comments above radix_tree_next_slot() documenting the combination of factors that prevent us from dereferencing a NULL 'slot' pointer. It also adds a radix tree unit test so that we can easily catch any unhandled NULL pointer issues with radix_tree_next_slot(). Changes from V1: -

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