Re: CodingStyle: Clarify and complete chapter 7

2016-08-15 Thread SF Markus Elfring
>>> A common type of bug to be aware of is "one err bugs" which look like this: >>> >>> -err: >>> + err: >>> kfree(foo->bar); >>> kfree(foo); >>> return ret; >>> >>> The bug in this code is that on some exit paths "foo" is NULL. Normally >>> the >> >>

Re: [PATCH v3 45/51] x86: remove 64-byte gap at end of irq stack

2016-08-15 Thread Josh Poimboeuf
On Sun, Aug 14, 2016 at 12:52:40AM -0700, Andy Lutomirski wrote: > On Fri, Aug 12, 2016 at 7:29 AM, Josh Poimboeuf wrote: > > There has been a 64-byte gap at the end of the irq stack for at least 12 > > years. It predates git history, and I can't find any good reason for > >

[PATCH v2] dma-buf: Wait on the reservation object when sync'ing before CPU access

2016-08-15 Thread Chris Wilson
Rendering operations to the dma-buf are tracked implicitly via the reservation_object (dmabuf->resv). This is used to allow poll() to wait upon outstanding rendering (or just query the current status of rendering). The dma-buf sync ioctl allows userspace to prepare the dma-buf for CPU access,

Re: [PATCH v3 10/13] sched/fair: Compute task/cpu utilization at wake-up more correctly

2016-08-15 Thread Morten Rasmussen
On Mon, Aug 15, 2016 at 04:23:42PM +0200, Peter Zijlstra wrote: > On Mon, Jul 25, 2016 at 02:34:27PM +0100, Morten Rasmussen wrote: > > To solve this problem, this patch introduces task_util_wake() which > > computes the decayed task utilization based on the last update of the > > previous cpu's

RE: [PATCH net v2 5/5] hv_netvsc: fix bonding devices check in netvsc_netdev_event()

2016-08-15 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, August 15, 2016 11:49 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang ; KY Srinivasan ;

Re: [PATCH] iio: magnetometer: mag3110: claim direct mode during raw reads

2016-08-15 Thread Jonathan Cameron
On 01/08/16 16:48, Alison Schofield wrote: > Driver was checking for direct mode but not locking it. Use > claim/release helper functions to guarantee the device stays > in direct mode during raw reads. > > Signed-off-by: Alison Schofield > Cc: Daniel Baluta

Re: [PATCH -next] drm/mgag200: fix error return code in mgag200fb_create()

2016-08-15 Thread Daniel Vetter
On Mon, Aug 15, 2016 at 03:03:51PM +, Wei Yongjun wrote: > Fix to return error code -ENOMEM from the vmalloc() error handling > case instead of 0, as done elsewhere in this function. > > Fixes: aec9e12953e7 ("drm/mgag200: Fix error handling paths in fbdev driver") > Signed-off-by: Wei Yongjun

Re: [PATCH v2] iio: humidity: hdc100x: add HDC1000 and HDC1008 to Kconfig

2016-08-15 Thread Jonathan Cameron
On 25/07/16 19:50, Alison Schofield wrote: > hdc100x supports Texas Instruments HDC1000 and HDC1008 relative > humidity and temperature sensors. Add these product names to > Kconfig. > > Signed-off-by: Alison Schofield > Cc: Daniel Baluta Thanks

Re: [PATCH 0/6] Apple device properties

2016-08-15 Thread Lukas Wunner
On Mon, Aug 15, 2016 at 12:54:14PM +0100, Matt Fleming wrote: > On Tue, 09 Aug, at 03:38:16PM, Lukas Wunner wrote: > > @@ -208,7 +201,10 @@ struct efi_config { > > __pure const struct efi_config *__efi_early(void); > > > > #define efi_call_early(f, ...) \ >

Re: [GIT PULL] [PATCH v4 00/26] Delete CURRENT_TIME and CURRENT_TIME_SEC macros

2016-08-15 Thread Greg KH
On Sat, Aug 13, 2016 at 03:48:12PM -0700, Deepa Dinamani wrote: > The series is aimed at getting rid of CURRENT_TIME and CURRENT_TIME_SEC > macros. > The macros are not y2038 safe. There is no plan to transition them into being > y2038 safe. > ktime_get_* api's can be used in their place. And,

Re: [PATCH 0/2] Drivers: hv: vmbus: make bus ids in sysfs persistent

2016-08-15 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Thursday, August 11, 2016 2:17 AM >> To: KY Srinivasan >> Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang Zhang >>

Re: [PATCH v2] iio: accel: bma180: use iio helper function to guarantee direct mode

2016-08-15 Thread Jonathan Cameron
On 25/07/16 20:11, Alison Schofield wrote: > Replace the code that guarantees the device stays in direct mode > with iio_device_claim_direct_mode() which does same. > > Signed-off-by: Alison Schofield > Cc: Daniel Baluta Applied. Thanks, Jonathan

Re: [PATCH 07/15] lustre: ->kss_scratch... are unused now

2016-08-15 Thread Greg Kroah-Hartman
On Sat, Jul 23, 2016 at 02:37:04AM -0400, Oleg Drokin wrote: > From: Al Viro > > Signed-off-by: Al Viro > --- > drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h | 4 > 1 file changed, 4 deletions(-) > > diff --git

Re: [PATCH v3 45/51] x86: remove 64-byte gap at end of irq stack

2016-08-15 Thread Josh Poimboeuf
On Sun, Aug 14, 2016 at 08:50:57AM -0400, Brian Gerst wrote: > On Sun, Aug 14, 2016 at 3:52 AM, Andy Lutomirski wrote: > > On Fri, Aug 12, 2016 at 7:29 AM, Josh Poimboeuf wrote: > >> There has been a 64-byte gap at the end of the irq stack for at least

Re: [PATCH] pinctrl: exynos: remove duplicate calls in irq handler

2016-08-15 Thread Krzysztof Kozlowski
On Mon, Aug 15, 2016 at 06:17:07PM +0800, perr wrote: > Because chained_irq_enter() has already called chip->irq_mask() and > chip->irq_ack(), also chained_irq_exit() will call chip->irq_unmask(), > so it's not necessary to call chip->irq_*() here. > > Signed-off-by: perr >

Re: [PATCH 01/15 RESEND] staging: dgnc: remove redundant NULL checks in

2016-08-15 Thread Greg KH
On Wed, Jul 06, 2016 at 03:11:13PM +0900, Daeseok Youn wrote: > The dgnc_block_til_ready() is only used in dgnc_tty_open(). > The unit data(struct un_t) was stored into tty->driver_data in > dgnc_tty_open(). > And also tty and un were tested about NULL so these variables doesn't > need to check

[PATCH] MAINTAINERS: atmel-isc: add entry for Atmel ISC

2016-08-15 Thread Nicolas Ferre
Add the MAINTAINERS' entry for Microchip / Atmel Image Sensor Controller. Signed-off-by: Nicolas Ferre Cc: Songjun Wu --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH 1/2] mtd: nand: timings: Fix tADL_min for ONFI 4.0 chips

2016-08-15 Thread Boris Brezillon
On Tue, 14 Jun 2016 16:21:06 +0200 Boris Brezillon wrote: > ONFI 4.0 spec defines different values for the tADL_min timing. > Since we don't want to have different timings depending on the ONFI > version, we just set tADL_min to the maximum value (the one

Re: [PATCH 8/9] MIPS: xilfpga: Add DT node for AXI emaclite

2016-08-15 Thread Jason Cooper
Hi Zubair, On Mon, Aug 15, 2016 at 02:55:34PM +0100, Zubair Lutfullah Kakakhel wrote: > The xilfpga platform has a Xilinx AXI emaclite block. > > Add the DT node to use it. > > Signed-off-by: Zubair Lutfullah Kakakhel > --- >

[PATCH v2 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-08-15 Thread Ivan Khoronzhuk
Currently the tx channels share same pool of descriptors. Thus one channel can block another if pool is emptied by one. But, the shaper should decide which channel is allowed to send packets. To avoid such impact of one channel on another, let every channel to have its own peace of pool.

Re: [PATCH stable-4.4 1/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-08-15 Thread Johannes Weiner
On Mon, Aug 15, 2016 at 05:06:44PM +0200, Michal Hocko wrote: > @@ -4173,11 +4213,17 @@ static struct mem_cgroup *mem_cgroup_alloc(void) > > memcg->stat = alloc_percpu(struct mem_cgroup_stat_cpu); > if (!memcg->stat) > - goto out_free; > + goto out_idr;

Re: [PATCH v7 1/2] mtd: nand_bbt: Move BBT block selection logic out of write_bbt()

2016-08-15 Thread Boris Brezillon
On Mon, 15 Aug 2016 09:47:40 -0500 Kyle Roeschley wrote: > On Sat, Aug 13, 2016 at 12:37:03AM +0200, Boris Brezillon wrote: > > On Fri, 12 Aug 2016 16:58:22 -0500 > > Kyle Roeschley wrote: > > > [...] > > > + while (chip < nrchips) { > > > >

Re: [PATCH stable-4.4 1/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-08-15 Thread Michal Hocko
Updated patch --- >From ac6657609db69a5a591b96a4b0fd18140408f41e Mon Sep 17 00:00:00 2001 From: Johannes Weiner Date: Wed, 20 Jul 2016 15:44:57 -0700 Subject: [PATCH] mm: memcontrol: fix cgroup creation failure after many small jobs commit

Re: [PATCH 1/2] iio: adc: ti_am335x_adc: Protect FIFO1 from concurrent access

2016-08-15 Thread Jonathan Cameron
On 08/08/16 12:05, Vignesh R wrote: > It is possible that two or more ADC channels can be simultaneously > requested for raw samples, in which case there can be race in access to > FIFO data resulting in loss of samples. > If am335x_tsc_se_set_once() is called again from tiadc_read_raw(), when >

Re: [PATCH] x86/efi-bgrt: remove the check of the version field

2016-08-15 Thread Josh Triplett
On Mon, Aug 15, 2016 at 01:56:43PM +0100, Matt Fleming wrote: > On Tue, 09 Aug, at 01:25:46PM, Icenowy Zheng wrote: > > Some broken firmwares have a wrongly filled version field in BGRT table. > > (See http://wiki.osdev.org/Broken_UEFI_implementations ) > > > > As we know, these firmwares can

Re: [PATCH 19/58] staging: lustre: llite: add md_op_data parameter to ll_get_dir_page

2016-08-15 Thread Greg Kroah-Hartman
On Thu, Jul 21, 2016 at 10:44:12PM -0400, James Simmons wrote: > From: wang di > > Pass in struct md_op_data for ll_get_dir_page function. > > Signed-off-by: wang di > Reviewed-on: http://review.whamcloud.com/7043 > Intel-bug-id:

Re: [PATCH] checkpatch: Look for symbolic permissions and suggest octal instead

2016-08-15 Thread Joe Perches
On Tue, 2016-08-02 at 16:39 -0700, Joe Perches wrote: > S_ uses should be avoided where octal is more intelligible. ping? Should CodingStyle and Documentation/filesystems change too? > Signed-off-by: Joe Perches > --- >  scripts/checkpatch.pl | 49

Re: [PATCH v4 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-08-15 Thread Jonathan Cameron
On 05/08/16 08:02, Lee Jones wrote: > On Thu, 04 Aug 2016, Alexander Stein wrote: > >> On Thursday 04 August 2016 15:28:18, Ksenija Stanojevic wrote: >>> Add core files for mxs-lradc MFD driver. >>> >>> Note: this patch won't compile in iio/testing without this patch: >>> a8f447be8056 ("mfd: Add

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

2016-08-15 Thread Guenter Roeck
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, Quentin Schulz wrote: > >>> On 26/07/2016 11:05, Alexander Stein wrote: > On

[PATCH 1/1 linux-next RESEND] ARM: multi_v7_defconfig: update XILINX_VDMA

2016-08-15 Thread Fabian Frederick
Commit fde57a7c4474 ("dmaengine: xilinx: Rename driver and config") renamed config XILINX_VDMA to config XILINX_DMA Update defconfig accordingly. Signed-off-by: Fabian Frederick --- Sending to arm-soc (suggested by Shawn Guo) arch/arm/configs/multi_v7_defconfig | 2 +- 1 file

[RFC PATCH 04/16] DM: Ensure that the read request is within the device range.

2016-08-15 Thread Ram Pai
If a read request is not within the device range return error. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers/md/dm-inplace-compress.c b/drivers/md/dm-inplace-compress.c

[RFC PATCH 08/16] DM: Tag a magicmarker at the end of each compressed segment.

2016-08-15 Thread Ram Pai
We store the size of the compressed segment, on the sector boundary. And later use that location to determine the size of the compressed segment. However if that location is corrupted for any reason we would'nt know. Hence add a magicmarker to catch for such corruptions. Signed-off-by: Ram Pai

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-08-15 Thread Jonathan Cameron
On 15/08/16 18:41, Jonathan Cameron wrote: > On 27/07/16 15:24, Caesar Wang wrote: >> SARADC controller needs to be reset before programming it, otherwise >> it will not function properly. >> >> Signed-off-by: Caesar Wang >> Cc: Jonathan Cameron >> Cc:

[PATCH] libnvdimm: Fix nvdimm_probe error on NVDIMM-N

2016-08-15 Thread Toshi Kani
'ndctl list --buses --dimms' does not list any NVDIMM-Ns since they are considered as idle. ndctl checks if any driver is attached to nmem device. nvdimm_probe() always fails in nvdimm_init_nsarea() since NVDIMM-Ns do not implement optinal ND_CMD_GET_CONFIG_DATA command. Change nvdimm_probe()

Re: [PATCH] iio: orientation: Add BNO055 9-axis Absolute Orientation Sensor driver

2016-08-15 Thread Jonathan Cameron
On 27/07/16 01:22, navin patidar wrote: > Oh, I didn't know that Vlad already have submitted a patch for BNO055. > My patch doesn't do any thing new so please drop my patch. > > regards, > --navin-patidar You have my utmost sympathies! Sadly this happens to us all from time to time. Jonathan >

[PATCH 18/22] IB/mlx4/mcg: 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 "mcg_wq" queues work items >work and >timeout_work. The workqueue "clean_wq" queues work item mcg_clean_task. Both have been identity converted.

[PATCH 20/22] IB/ipoib: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() replaces deprecated create_singlethread_workqueue(). The workqueue "ipoib_workqueue" that is used for all flush operstions for the device. WQ_MEM_RECLAIM has not been set since it is not being used on a memory reclaim path. Signed-off-by: Bhaktipriya Shridhar

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

2016-08-15 Thread Krzysztof Kozlowski
Change my email address to kernel.org account instead of Samsung one. Also switch Maxim MUIC charger drivers from supported to maintained mode. Signed-off-by: Krzysztof Kozlowski Cc: Kukjin Kim Cc: linux-samsung-...@vger.kernel.org --- Changes since v1: 1.

Re: [PATCH v7 1/2] mtd: nand_bbt: Move BBT block selection logic out of write_bbt()

2016-08-15 Thread Kyle Roeschley
On Sat, Aug 13, 2016 at 12:37:03AM +0200, Boris Brezillon wrote: > On Fri, 12 Aug 2016 16:58:22 -0500 > Kyle Roeschley wrote: > [...] > > + while (chip < nrchips) { > > I'm probably missing something, but why are you turning the for loop > into a while loop in this

BUG and WARN kernel log levels

2016-08-15 Thread Kees Cook
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 %s:%d/%s()!\n", __FILE__, __LINE__, __func__); \ Seems like it should have one? Also, I think we might want to examine WARN() a bit... it

Re: [PATCH] fjes: Delete owner assignment

2016-08-15 Thread David Miller
From: SF Markus Elfring Date: Mon, 15 Aug 2016 08:44:19 +0200 > From: Markus Elfring > Date: Mon, 15 Aug 2016 08:34:56 +0200 > > The field "owner" is set by core. Thus delete an extra initialisation. > > Generated by:

[PATCH v4 11/13] media: platform: pxa_camera: add debug register access

2016-08-15 Thread Robert Jarzmik
Add pxa_camera registers access through advanced video debugging. Signed-off-by: Robert Jarzmik --- drivers/media/platform/soc_camera/pxa_camera.c | 32 ++ 1 file changed, 32 insertions(+) diff --git

[PATCH v4 13/13] media: platform: pxa_camera: move pxa_camera out of soc_camera

2016-08-15 Thread Robert Jarzmik
As the conversion to a v4l2 standalone device is finished, move pxa_camera one directory up and finish severing any dependency to soc_camera. Signed-off-by: Robert Jarzmik --- drivers/media/platform/Kconfig |8 + drivers/media/platform/Makefile

[PATCH v4 02/13] media: mt9m111: use only the SRGB colorspace

2016-08-15 Thread Robert Jarzmik
mt9m111 being a camera sensor, its colorspace should always be SRGB, for both RGB based formats or YCbCr based ones. Signed-off-by: Robert Jarzmik --- drivers/media/i2c/soc_camera/mt9m111.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v4 12/13] media: platform: pxa_camera: change stop_streaming semantics

2016-08-15 Thread Robert Jarzmik
Instead of the legacy behavior where it was required to wait for all video buffers to be finished by the hardware, use a cancel like strategy : as soon as the stop_streaming() call is done, abort all DMA transfers, report the already buffers as failed and return. This makes stop_streaming() more

[PATCH 1/7] ext2: tell DAX the size of allocation holes

2016-08-15 Thread Ross Zwisler
When DAX calls ext2_get_block() and the file offset points to a hole we currently don't set bh_result->b_size. When we re-enable PMD faults DAX will need bh_result->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. For ext2 we

Re: [PATCH stable-4.4 1/3] mm: memcontrol: fix cgroup creation failure after many small jobs

2016-08-15 Thread Greg KH
On Mon, Aug 15, 2016 at 05:35:17PM +0200, Michal Hocko wrote: > Updated patch Thanks for this, and the updated patch series, I've now replaced the previous versions with this series. greg k-h

[PATCH] EDAC, mpc85xx: Fix PCIe error capture

2016-08-15 Thread Tillmann Heidsieck
According to the reference manual of MPC8572 and T4240, bit 31 of PEX_ERR_CAP_STAT is W1C (write 1 to clear). This patch adds the corresponding write to PEX_ERR_CAP_STAT in order to fix the PCIe error capture. Tested on a T4240 processor. Signed-off-by: Tillmann Heidsieck

Re: [PATCH] power:bq27xxx: 27000/10 read FLAGS register as single

2016-08-15 Thread Sebastian Reichel
Hi, On Mon, Jul 18, 2016 at 06:12:09PM +0200, H. Nikolaus Schaller wrote: > The bq27000 and bq27010 have a single byte FLAGS register. > Other gauges have 16 bit FLAGS registers. > > For reading the FLAGS register it is sufficient to read the single > register instead of reading RSOC at the next

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

2016-08-15 Thread Joe Perches
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 a/drivers/staging/lustre/Makefile b/drivers/staging/lustre/Makefile index 95ffe33..9d00237 100644 ---

[PATCH 0/2] staging: lustre: #include neatening

2016-08-15 Thread Joe Perches
Make it a bit easier to grep and help a future move out of staging. Joe Perches (2): staging: lustre: Add include path to Makefile staging: lustre: Remove .. paths from '#include "' uses drivers/staging/lustre/Makefile | 3 +++

[RFC PATCH 05/16] DM: allocation/free helper routines.

2016-08-15 Thread Ram Pai
Helper functions to allocate/reallocate and free memory. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/md/dm-inplace-compress.c b/drivers/md/dm-inplace-compress.c

[RFC PATCH 01/16] DM: dm-inplace-compress: an inplace compressed DM target

2016-08-15 Thread Ram Pai
From: Shaohua Li This is a simple DM target supporting inplace compression. Its best suited for SSD. The underlying disk must support 512B sector size, the target only supports 4k sector size. Disk layout: |super|...meta...|..data...| Store unit is 4k (a block). Super is 1

[RFC PATCH 07/16] DM: Optimize memory allocated to hold compressed buffer.

2016-08-15 Thread Ram Pai
On an average the compressed size is less than 50% of the original buffer. Use this knowledge to optimize the amount of space allocated to hold the compressed buffer. If the allocated size is determined to be insufficient than reallocate the required size. Signed-off-by: Ram Pai

[RFC PATCH 10/16] DM: Try to use the bio buffer for decompression instead of allocating one.

2016-08-15 Thread Ram Pai
The read path allocates a temporary buffer to hold decompressed data, which is than copied into the caller's bio buffer. Instead of allocating a temporary buffer to hold the decompressed data, decompress the data in the caller's bio buffer. This can be done only if the destination in the

[RFC PATCH 03/16] DM: Error if enough space is not available.

2016-08-15 Thread Ram Pai
if enough space is not available to create a block of the specified size error out. Signed-off-by: Ram Pai --- drivers/md/dm-inplace-compress.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/md/dm-inplace-compress.c

Re: [PATCH v3 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-08-15 Thread Jonathan Cameron
On 27/07/16 15:24, Caesar Wang wrote: > SARADC controller needs to be reset before programming it, otherwise > it will not function properly. > > Signed-off-by: Caesar Wang > Cc: Jonathan Cameron > Cc: Heiko Stuebner > Cc: Rob Herring

RE: [PATCH v2 1/4] net: ethernet: ti: davinci_cpdma: split descs num between all channels

2016-08-15 Thread Yuval Mintz
> Currently the tx channels share same pool of descriptors. Thus one channel can > block another if pool is emptied by one. But, the shaper should decide which > channel is allowed to send packets. To avoid such impact of one channel on > another, let every channel to have its own peace of pool.

Re: [PATCH 00/23] Remove deprecated create_workqueue instances

2016-08-15 Thread Bhaktipriya Shridhar
Please ignore this mail. Bhaktipriya On Mon, Aug 15, 2016 at 11:23 PM, Bhaktipriya Shridhar wrote: > This patch set removes the instances of deprecated > create_singlethread_workqueue (scheduled for removal) in drivers/infiniband > by making the appropriate conversions.

Re: [PATCHv2 3/4] pci: Determine actual VPD size on first access

2016-08-15 Thread Rustad, Mark D
Benjamin Herrenschmidt wrote: We may want some kind of "strict" vs. "relaxed" model here to differenciate the desktop user wanting to give a function to his/her windows partition and doesn't care about strict isolation vs. the cloud data center. I don't think

Re: [V4 PATCH 2/2] mips/panic: Replace smp_send_stop() with kdump friendly version in panic path

2016-08-15 Thread Corey Minyard
On 08/15/2016 12:06 PM, Corey Minyard wrote: On 08/15/2016 06:35 AM, 河合英宏 / KAWAI,HIDEHIRO wrote: Hi Corey, From: Corey Minyard [mailto:cminy...@mvista.com] Sent: Friday, August 12, 2016 10:56 PM I'll try to test this, but I have one comment inline... Thank you very much! On 08/11/2016

[PATCH 06/22] IB/addr: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
The workqueue "addr_wq" queues a single work item and hence doesn't require ordering. Also, it is being used on a memory reclaim path. Hence, it has been converted to use alloc_workqueue with WQ_MEM_RECLAIM set. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

[PATCH 09/22] IB/qib: 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 "qib" queues work item >s_work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

[PATCH 16/22] IB/mlx4: 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 items [i]->work, >work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory

Re: [PATCH] block: Fix secure erase

2016-08-15 Thread Christoph Hellwig
> --- a/block/elevator.c > +++ b/block/elevator.c > @@ -366,7 +366,10 @@ void elv_dispatch_sort(struct request_queue *q, struct > request *rq) > list_for_each_prev(entry, >queue_head) { > struct request *pos = list_entry_rq(entry); > > - if ((req_op(rq) ==

[PATCH 17/22] IB/mlx4/mad: 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 >work and the workqueue "ud_wq" queues work item [i]->work. Both the workqueues have been identity converted.

[PATCH 19/22] IB/nes: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
alloc_ordered_workqueue() replaces deprecated create_singlethread_workqueue(). The workqueue "event_wq" queues work item >event_work and the workqueue "disconn_wq" queues work item work (maps to g_cm_core->disconn_wq). WQ_MEM_RECLAIM has not been set since the workqueues are not being used on a

Re: [PATCH] block: Fix secure erase

2016-08-15 Thread Christoph Hellwig
On Mon, Aug 15, 2016 at 11:43:12AM -0500, Shaun Tancheff wrote: > Hmm ... Since REQ_SECURE implied REQ_DISCARD doesn't this > mean that we should include REQ_OP_SECURE_ERASE checking > wherever REQ_OP_DISCARD is being checked now in drivers/scsi/sd.c ? > > (It's only in 3 spots so it's a quickie

[PATCH] Documentation/x86_64: Fix a thread stack size

2016-08-15 Thread Alexander Kuleshov
current information about THREAD_SIZE value is obsoleted. This patch fixes this. Signed-off-by: Alexander Kuleshov --- Documentation/x86/kernel-stacks | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/x86/kernel-stacks

Re: [PATCH] Map in physical addresses in efi_map_region_fixed

2016-08-15 Thread Alex Thorlton
On Mon, Aug 15, 2016 at 05:07:09PM +0200, Borislav Petkov wrote: > On Mon, Aug 15, 2016 at 01:42:58PM +0100, Matt Fleming wrote: > > (Cc'ing Boris and Dave) > > > > On Fri, 05 Aug, at 06:59:35PM, Alex Thorlton wrote: > > > This is a simple change to add in the physical mappings as well as the > >

[PATCH v4 07/13] media: platform: pxa_camera: make printk consistent

2016-08-15 Thread Robert Jarzmik
Make all print consistent by always using : - dev_xxx(pcdev_to_dev(pcdev), ) This prepares the soc_camera adherence removal by making these call rely on only pcdev, and not the soc_camera icd structure. Signed-off-by: Robert Jarzmik ---

[PATCH v4 10/13] media: platform: pxa_camera: make a standalone v4l2 device

2016-08-15 Thread Robert Jarzmik
This patch removes the soc_camera API dependency from pxa_camera. In the current status : - all previously captures are working the same on pxa270 - the s_crop() call was removed, judged not working (see what happens soc_camera_s_crop() when get_crop() == NULL) - if the pixel clock is

[PATCH v4 05/13] media: platform: pxa_camera: trivial move of functions

2016-08-15 Thread Robert Jarzmik
Move the functions in the file to be regrouped into meaningful blocks : 1. pxa camera core handling functions, manipulating the herdware 2. videobuf2 functions, dealing with video buffers 3. video ioctl (vidioc) related functions 4. driver probing, removal, suspend and resume This patch

[PATCH 4/7] dax: rename 'ret' to 'entry' in grab_mapping_entry

2016-08-15 Thread Ross Zwisler
No functional change. Everywhere else that we get entries via get_unlocked_mapping_entry(), we save it in 'entry' variables. Just change this to be more descriptive. Signed-off-by: Ross Zwisler --- fs/dax.c | 20 ++-- 1 file changed, 10

Re: [PATCH v1 01/14] clk: twl6040: Correct clk_ops

2016-08-15 Thread Stephen Boyd
On 05/30, Peter Ujfalusi wrote: > Since the drover only supports prepare callbacks, the use of is_enabled is > not correct, it should be handling is_prepared. > > Signed-off-by: Peter Ujfalusi > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of

[PATCH 6/7] dax: re-enable DAX PMD support

2016-08-15 Thread Ross Zwisler
DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based locking. This patch allows DAX PMDs to participate in the DAX radix tree based locking scheme so that they can be re-enabled. There are currently three types of DAX 4k entries: 4k zero pages, 4k DAX mappings that have an

Re: [PATCH v1 03/14] clk: twl6040: Rename the driver and use consistent names in the code

2016-08-15 Thread Stephen Boyd
On 05/30, Peter Ujfalusi wrote: > The driver is to provide the functional clock to OMAP4/5 McPDM. The clock > is named as pdmclk in the documentations so change the function names, > structure names and variables to align with this. > At the same time rename the driver from "twl6040-clk" to

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

2016-08-15 Thread Ross Zwisler
DAX PMDs have been disabled since Jan Kara introduced DAX radix tree based locking. This series allows DAX PMDs to participate in the DAX radix tree based locking scheme so that they can be re-enabled. This series restores DAX PMD functionality back to what it was before it was disabled. There

[PATCH 3/7] dax: remove buffer_size_valid()

2016-08-15 Thread Ross Zwisler
Now that all our supported filesystems (ext2, ext4 and XFS) all properly set bh.b_size when we call get_block() for a hole, rely on that value and remove the buffer_size_valid() sanity check. Signed-off-by: Ross Zwisler --- fs/dax.c | 22 +- 1

[PATCH v2 2/8] dt-bindings: i2c: add support for 'i2c-arb' subnode

2016-08-15 Thread Peter Rosin
This gets rid of the need for a pointless 'reg' property for i2c arbitrators. I.e. this new and more compact style some-arbitrator { i2c-arb { #address-cells = <1>; #size-cells = <0>;

[PATCH v2 1/8] dt-bindings: i2c: add support for 'i2c-mux' subnode

2016-08-15 Thread Peter Rosin
Similar to the new optional 'i2c-bus' subnode from Jon Hunter, this adds an optional 'i2c-mux' subnode, for similar reasons. I.e. it is bad of the i2c mux core to assume that any subnode of an i2c mux device is a potential (when the 'reg' property matches) i2c-mux child bus, given that i2c mux

[PATCH 2/2] staging: lustre: Remove .. paths from '#include "' uses

2016-08-15 Thread Joe Perches
Make the include paths a bit easier to find and more compatible to a future move out of the staging tree. Signed-off-by: Joe Perches --- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h | 6 +++--- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h | 8

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

2016-08-15 Thread Alan Stern
On Mon, 15 Aug 2016, 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 usb_of_get_child_node()

[PATCH] usb: dwc3: gadget: don't rely on jiffies while holding spinlock

2016-08-15 Thread Nicolas Saenz Julienne
__dwc3_gadget_wakeup() is called while holding a spinlock, then depends on jiffies in order to timeout while polling the USB core for a link state update. In the case the wakeup failed, the timeout will never happen and will also cause the cpu to stall until rcu_preempt kicks in. This switches to

Re: [PATCH] arm64: Introduce execute-only page access permissions

2016-08-15 Thread Kees Cook
On Mon, Aug 15, 2016 at 3:47 AM, Catalin Marinas wrote: > On Fri, Aug 12, 2016 at 11:23:03AM -0700, Kees Cook wrote: >> On Thu, Aug 11, 2016 at 10:44 AM, Catalin Marinas >> wrote: >> > The ARMv8 architecture allows execute-only user permissions

[ANN] oldworld-deb: Debian Installer boot floppy for OldWorld PowerMacs

2016-08-15 Thread Ondrej Zary
Hello, I've just released oldworld-deb - a boot floppy that can boot Debian Installer from the CD on OldWorld PowerMacs, such as Power Macintosh 8200. It's based on miBoot, Linux kernel, kexec-tools, uClibc and a simple init program written in C. You can get the source and also a pre-built

[PATCH 03/22] IB/multicast: 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 "mcast_wq" queues work item >work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure.

[PATCH] gpio: wcove-gpio: add get_direction method

2016-08-15 Thread Bin Gao
This patch adds .get_direction method for the gpio_chip structure of the wcove_gpio driver. Signed-off-by: Bin Gao --- drivers/gpio/gpio-wcove.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpio/gpio-wcove.c b/drivers/gpio/gpio-wcove.c index

[PATCH 00/22] 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 (22): IB/sa : Remove deprecated create_singlethread_workqueue IB/mad: Remove deprecated

[PATCH 02/22] IB/mad: Remove deprecated create_singlethread_workqueue

2016-08-15 Thread Bhaktipriya Shridhar
The workqueue "ib_nl" queues work items _nl_timed_work and _agent_priv->local_work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory pressure. Signed-off-by: Bhaktipriya Shridhar --- drivers/infiniband/core/mad.c | 2

[PATCH 01/22] IB/sa : 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 "ib_nl" queues work item _nl_timed_work. It has been identity converted. WQ_MEM_RECLAIM has been set to ensure forward progress under memory

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

2016-08-15 Thread Jonathan Cameron
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 for the first time, the caller gets a timeout error, >>> and the kernel log shows >>> >>> read

[PATCH 11/22] IB/mthca: 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 "catas_wq" in triggering a device remove and causing a device reset when a catastrophic error occurs. It has been identity converted.

[PATCH 10/22] iw_cxgb4: 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.

[PATCH 12/22] i40iw_main: 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 "virtchnl_wq" queues work items i40iw_cqp_generic_worker and i40iw_cqp_manage_hmc_fcn_worker. It has been identity converted. WQ_MEM_RECLAIM has

Re: [PATCH] block: Fix secure erase

2016-08-15 Thread Jens Axboe
On 08/15/2016 12:13 PM, Christoph Hellwig wrote: --- a/block/elevator.c +++ b/block/elevator.c @@ -366,7 +366,10 @@ void elv_dispatch_sort(struct request_queue *q, struct request *rq) list_for_each_prev(entry, >queue_head) { struct request *pos = list_entry_rq(entry); -

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

2016-08-15 Thread Simon Glass
Hi Josh, 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 been working on for a while: >> > >> > git-series provides a

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

2016-08-15 Thread Greg KH
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 usb_of_get_child_node() leads to NULL pointer > dereference.

Re: BUG and WARN kernel log levels

2016-08-15 Thread Joe Perches
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 %s:%d/%s()!\n", __FILE__, __LINE__, __func__); > \ > > Seems like it should

Re: [PATCH v1 02/14] clk: twl6040: Register the clock as of_clk_provider

2016-08-15 Thread Stephen Boyd
On 05/30, Peter Ujfalusi wrote: > In order ot be able to use the pdmclk clock via DT it need to be registered > as of_clk_provide. > Since the twl6040 clock driver does not have it's own DT node, use the > parent's node for registering. > > Signed-off-by: Peter Ujfalusi >

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