[PATCH v3 9/9] IB/mlx5: Simplify completion into a wait_event

2016-10-26 Thread Binoy Jayan
Convert the completion 'mlx5_ib_umr_context:done' to a wait_event as it just waits for the return value to be filled. Signed-off-by: Binoy Jayan --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 2 +- drivers/infiniband/hw/mlx5/mr.c | 7 --- include/rdma/ib_verbs.h | 3 ++- 3 file

[PATCH v3 4/9] IB/mthca: Replace semaphore poll_sem with mutex

2016-10-26 Thread Binoy Jayan
The semaphore 'poll_sem' is a simple mutex, so it should be written as one. Semaphores are going away in the future. So replace the semaphore 'poll_sem' with a mutex. Also, remove mutex_[un]lock from mthca_cmd_use_events and mthca_cmd_use_polling respectively. Signed-off-by: Binoy Jayan --- driv

[PATCH v3 7/9] IB/mthca: Replace counting semaphore event_sem with wait_event

2016-10-26 Thread Binoy Jayan
Counting semaphores are going away in the future, so replace the semaphore mthca_cmd::event_sem with a conditional wait_event. Signed-off-by: Binoy Jayan --- drivers/infiniband/hw/mthca/mthca_cmd.c | 45 ++--- drivers/infiniband/hw/mthca/mthca_dev.h | 3 ++- 2 files

[PATCH 2/2] ARM: dts: add new compatible stream for i.MX6QP mmdc

2016-10-26 Thread Frank Li
mmdc of i.MX6QP are little difference with i.MX6Q. added new compatible stream fsl,imx6qp-mmdc Signed-off-by: Frank Li --- arch/arm/boot/dts/imx6qp.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi index 886dbf2..e0fdd0f

[GIT PULL] extcon fixes for 4.9-rc3

2016-10-26 Thread Chanwoo Choi
Dear Greg, This is extcon-fixes pull request for v4.9-v3. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit 07d9a380680d1c0eb51ef87ff2eab5c994949e69: Linux 4.9-rc2 (2016-10-23 17:1

[PATCH v3 5/9] IB/isert: Replace semaphore sem with completion

2016-10-26 Thread Binoy Jayan
The semaphore 'sem' in isert_device is used as completion, so convert it to struct completion. Semaphores are going away in the future. Signed-off-by: Binoy Jayan --- drivers/infiniband/ulp/isert/ib_isert.c | 6 +++--- drivers/infiniband/ulp/isert/ib_isert.h | 3 ++- 2 files changed, 5 insertion

[PATCH v2 00/11] mpt3sas driver Enhancements and

2016-10-26 Thread Suganath Prabu S
Here is the change list: Posting 11 patches for mpt3sas driver enhancements and few fixes. * Added Device ID's for SAS35 devices and updated MPI Header. * Support "EEDP Escape flag" for SAS35 devices. * fixed improper printk statement. * Regardless of whether RDPQ disabled card is enumerate

[PATCH v2 02/11] mpt3sas: Fix for incorrect numbers for MSIX vectors enabled when non RDPQ card is enumerated first.

2016-10-26 Thread Suganath Prabu S
No. of MSIX vectors supported = min (Total no. of CPU cores, MSIX vectors supported by card) when RDPQ is disabled "max_msix_vectors" module parameter which was declared as global was set to '8' and hence if there are more than one card in system among which if RDPQ disabled card is enumerated fir

[PATCH v2 03/11] mpt3sas: Implement device_remove_in_progress check in IOCTL path

2016-10-26 Thread Suganath Prabu S
When device missing event arrives, device_remove_in_progress bit will be set and hence driver has to stop sending IOCTL commands.Now the check has been added in IOCTL path to test device_remove_in_progress bit is set, if so then IOCTL will be failed printing failure message. Signed-off-by: Chaitra

[PATCH v2 08/11] mpt3sas: set EEDP-escape-flags for SAS35 devices.

2016-10-26 Thread Suganath Prabu S
An UNMAP command on a PI formatted device will leave the Logical Block Application Tag and Logical Block Reference Tag as all F's (for those LBAs that are unmapped). To avoid IO errors if those LBAs are subsequently read before they are written with valid tag fields, the MPI SCSI IO requests need t

[PATCH v2 05/11] mpt3sas: Bump driver version as "14.100.00.00"

2016-10-26 Thread Suganath Prabu S
Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index e923c91..6f03

[PATCH v2 07/11] mpt3sas: Increased/Additional MSIX support for SAS35 devices.

2016-10-26 Thread Suganath Prabu S
For SAS35 devices MSIX vectors are inceased to 128 from 96. To support this Reply post host index register count is increased to 16. Also variable msix96_vector is replaced with combined_reply_queue and variable combined_reply_index_count is added to set different values for SAS3 and SAS35 devices.

[PATCH v3 0/9] infiniband: Remove semaphores

2016-10-26 Thread Binoy Jayan
Hi, These are a set of patches [v3] which removes semaphores from infiniband. These are part of a bigger effort to eliminate all semaphores from the linux kernel. v2 -> v3: IB/mlx5: Move '&umr_context' into helper fn IB/mthca: Restructure mthca_cmd.c to manage free_head IB/hns: Restructure hns_r

[PATCH v2 11/11] mpt3sas: Bump driver version as "14.101.00.00"

2016-10-26 Thread Suganath Prabu S
Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 5d9ae15..8de0

[PATCH v2 06/11] mpt3sas: Added Device ID's for SAS35 devices and updated MPI header.

2016-10-26 Thread Suganath Prabu S
Added Device ID's for SAS35 devices (Ventura, Crusader, Harpoon & Tomcat) and updated mpi header file for the same. Also added "is_gen35_ioc" to MPT3SAS_ADAPTER structure for identifying SAS35 adapters. Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S Rev

[PATCH v2 09/11] mpt3sas: Use the new MPI 2.6 32-bit Atomic Request Descriptors for SAS35 devices.

2016-10-26 Thread Suganath Prabu S
Support Atomic Request Descriptors for Ventura/SAS35 devices. Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S Reviewed-by: Hannes Reinecke Reviewed-by: Tomas Henzl --- drivers/scsi/mpt3sas/mpt3sas_base.c | 141 +++ dri

[PATCH v2 10/11] mpt3sas: Fix for Endianness issue.

2016-10-26 Thread Suganath Prabu S
Use le16_to_cpu only for accessing two byte data provided by controller. Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S Reviewed-by: Hannes Reinecke Reviewed-by: Tomas Henzl --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 12 +++- 1 file changed,

[PATCH v2 04/11] mpt3sas: Removing unused macro "MPT_DEVICE_TLR_ON"

2016-10-26 Thread Suganath Prabu S
Removing macro "MPT_DEVICE_TLR_ON" defined in header file as its unused Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S Reviewed-by: Hannes Reinecke Reviewed-by: Tomas Henzl --- drivers/scsi/mpt3sas/mpt3sas_base.h | 1 - 1 file changed, 1 deletion(-)

[PATCH v2 01/11] mpt3sas: Fix for improper info displayed in var log, while blocking or unblocking the device.

2016-10-26 Thread Suganath Prabu S
Return value and Device_handle Arguments passed in correct order to match with its format string. Signed-off-by: Chaitra P B Signed-off-by: Sathya Prakash Signed-off-by: Suganath Prabu S Reviewed-by: Hannes Reinecke Reviewed-by: Tomas Henzl --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 8 -

Re: taint/module: Clean up global and module taint flags handling

2016-10-26 Thread Jiri Kosina
On Wed, 26 Oct 2016, Rusty Russell wrote: > >> Hm, quick question, which tree would this patch go to? Though the > >> cleanup is for modules, there is an indirect cross-tree dependency > >> (taint_flag.module needs to be true for TAINT_LIVEPATCH for Josh's > >> patch to still work as intended). Th

Re: [PATCH v1] I2C Designware Core Supports SMBUS BLOCK

2016-10-26 Thread Mika Westerberg
On Wed, Oct 26, 2016 at 02:26:05PM +0700, Tin Huynh wrote: >But can you explain more about 'but even that starts to require small >helper function'? So you could add a small function i2c_dw_xfer_need_stop() that returns true if you need to set the stop bit.

Re: [PATCH v14 0/9] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-10-26 Thread Fu Wei
Hi Mark On 20 October 2016 at 23:17, Mark Rutland wrote: > On Thu, Oct 20, 2016 at 03:57:52PM +0100, Lorenzo Pieralisi wrote: >> On Thu, Oct 20, 2016 at 03:31:01PM +0100, Mark Rutland wrote: >> > Hi, >> > >> > On Thu, Sep 29, 2016 at 02:17:08AM +0800, fu@linaro.org wrote: >> > > From: Fu Wei

Re: [PATCH v14 2/9] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-10-26 Thread Fu Wei
Hi Mark, On 20 October 2016 at 23:09, Mark Rutland wrote: > On Thu, Sep 29, 2016 at 02:17:10AM +0800, fu@linaro.org wrote: >> diff --git a/include/clocksource/arm_arch_timer.h >> b/include/clocksource/arm_arch_timer.h >> index 6f06481..16dcd10 100644 >> --- a/include/clocksource/arm_arch_tim

Re: [PATCH v14 3/9] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-10-26 Thread Fu Wei
Hi Mark, On 20 October 2016 at 23:32, Mark Rutland wrote: > On Thu, Sep 29, 2016 at 02:17:11AM +0800, fu@linaro.org wrote: >> static void arch_timer_banner(unsigned type) >> { >> - pr_info("Architected %s%s%s timer(s) running at %lu.%02luMHz >> (%s%s%s).\n", >> - type

Re: [linux-sunxi] [PATCH RESEND 1/2] dt: bindings: add allwinner,otg-routed property for phy-sun4i-usb

2016-10-26 Thread Hans de Goede
Hi, On 25-10-16 06:11, Icenowy Zheng wrote: On some newer Allwinner SoCs (H3 or A64), the PHY0 can be either routed to the MUSB controller (which is an OTG controller) or the OHCI/EHCI pair (which is a Host-only controller, but more stable and easy to implement). This property marks whether on

Re: [PATCH v14 1/9] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-10-26 Thread Fu Wei
Hi Mark On 20 October 2016 at 22:45, Mark Rutland wrote: > Hi, > > On Thu, Sep 29, 2016 at 02:17:09AM +0800, fu@linaro.org wrote: >> diff --git a/include/clocksource/arm_arch_timer.h >> b/include/clocksource/arm_arch_timer.h >> index caedb74..6f06481 100644 >> --- a/include/clocksource/arm_a

Re: [GIT PULL] extcon fixes for 4.9-rc3

2016-10-26 Thread Greg KH
On Wed, Oct 26, 2016 at 05:04:02PM +0900, Chanwoo Choi wrote: > Dear Greg, > > This is extcon-fixes pull request for v4.9-v3. I add detailed description of > this pull request on below. Please pull extcon with following updates. > > Best Regards, > Chanwoo Choi > > The following changes since co

Re: [PATCH v2] drm/fb-helper: Don't call dirty callback for untouched clips

2016-10-26 Thread Daniel Vetter
On Tue, Oct 25, 2016 at 10:17:47AM +0200, Takashi Iwai wrote: > On Tue, 25 Oct 2016 10:09:30 +0200, > Daniel Vetter wrote: > > > > On Tue, Oct 25, 2016 at 08:46:28AM +0200, Takashi Iwai wrote: > > > On Fri, 21 Oct 2016 14:52:07 +0200, > > > Ville Syrjälä wrote: > > > > > > > > On Thu, Oct 20, 201

Re: [PATCH 0/3] iopmem : A block device for PCIe memory

2016-10-26 Thread Haggai Eran
On 10/19/2016 6:51 AM, Dan Williams wrote: > On Tue, Oct 18, 2016 at 2:42 PM, Stephen Bates wrote: >> 1. Address Translation. Suggestions have been made that in certain >> architectures and topologies the dma_addr_t passed to the DMA master >> in a peer-2-peer transfer will not correctly route to

Re: [PATCH] lightnvm: ensure that nvm_dev_ops can be used without CONFIG_NVM

2016-10-26 Thread Greg KH
On Fri, Oct 14, 2016 at 10:37:24PM +0200, Paul Bolle wrote: > On Fri, 2016-10-14 at 22:35 +0200, Paul Bolle wrote: > > From: Jens Axboe > > > > From: Jens Axboe > > Bother. Resend? Heh, no need, I've cleaned it up and applied it now, thanks. greg k-h

Re: [PATCH 0/2] perf: measure page fault duration in perf trace

2016-10-26 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 01:51:58AM +0200, Alexis Berlemont wrote: > Hi, > > Here are 2 small patches which try to fulfill a point in the perf todo > list: There's a todo list? > * Forward port the page fault tracepoints and use it in 'trace'. > http://git.kernel.org/?p=linux/kernel/git/acme/linu

Re: complete_all and "forever" completions

2016-10-26 Thread Peter Zijlstra
On Tue, Oct 25, 2016 at 03:30:54PM -0700, Dmitry Torokhov wrote: > Hi, > > Reading Documentation/scheduler/completion.txt, complete_all() is Oh, there is documentation? /me goes read. > supposed to be usable with "forever" completions, i.e. when we have an > action that happens once and stays "d

Re: [PATCH] drivers: mfd: ti_am335x_tscadc: increase ADC ref clock to 24MHz

2016-10-26 Thread Lee Jones
On Tue, 25 Oct 2016, John Syne wrote: > > On Oct 24, 2016, at 11:38 PM, Lee Jones wrote: > > On Mon, 24 Oct 2016, John Syne wrote: > >>> On Oct 24, 2016, at 11:01 PM, John Syne wrote: > On Oct 24, 2016, at 10:52 PM, Mugunthan V N wrote: > > On Tuesday 25 October 2016 02:28 AM, Jo

[PATCH] kbuild: protect compiled-in dtb from dead data elimination

2016-10-26 Thread Marcin Nowakowski
DTBs are compiled into byte arrays that are placed inside .dtb.init.rodata section. As they are never referenced directly from the code, they get removed during dead data elimination and we end up with __dtb_start == __dtb_end. Signed-off-by: Marcin Nowakowski Fixes: b67067f1176d ("kbuild: allow

Re: [PATCH v3 8/9] IB/mlx5: Add helper mlx5_ib_post_send_wait

2016-10-26 Thread Arnd Bergmann
On Wednesday, October 26, 2016 1:31:13 PM CEST Binoy Jayan wrote: > +static inline int mlx5_ib_post_send_wait(struct mlx5_ib_dev *dev, > +struct mlx5_umr_wr *umrwr) > +{ > + struct umr_common *umrc = &dev->umrc; > + struct ib_send_wr *bad; > +

[PATCH 1/5] mm: Use the correct page size when removing the page

2016-10-26 Thread Aneesh Kumar K.V
We are removing a pmd hugepage here. Use the correct page size. Signed-off-by: Aneesh Kumar K.V --- mm/huge_memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index cdcd25cb30fe..12c6685d4e97 100644 --- a/mm/huge_memory.c +++ b/mm

Re: [PATCH] ARM: sti: stih410-clocks: Add PROC_STFE as a critical clock

2016-10-26 Thread Lee Jones
> > > If the clock is enabled when Linux boots, the Linux clock framework > > > *needs* > > > to assume the hardware may have been used in previous boot stages, and it > > > should > > > not attempt to disable the clock. > > > > None of the boot loaders we use do this. > > But the Linux kernel

[PATCH 3/5] mm/hugetlb: add tlb_remove_hugetlb_entry for handling hugetlb pages

2016-10-26 Thread Aneesh Kumar K.V
This add tlb_remove_hugetlb_entry similar to tlb_remove_pmd_tlb_entry. Signed-off-by: Aneesh Kumar K.V --- arch/arm/include/asm/tlb.h | 2 ++ arch/ia64/include/asm/tlb.h | 3 +++ arch/s390/include/asm/tlb.h | 2 ++ arch/sh/include/asm/tlb.h | 3 +++ arch/um/include/asm/tlb.h | 3 +++ includ

[PATCH 4/5] mm: Add tlb_remove_check_page_size_change to track page size change

2016-10-26 Thread Aneesh Kumar K.V
With commit e77b0852b551 ("mm/mmu_gather: track page size with mmu gather and force flush if page size change") we added the ability to force a tlb flush when the page size change in a mmu_gather loop. We did that by checking for a page size change every time we added a page to mmu_gather for lazy

[PATCH 5/5] mm: Remove the page size change check in tlb_remove_page

2016-10-26 Thread Aneesh Kumar K.V
Now that we check for page size change early in the loop, we can partially revert e9d55e157034a9efd99405c99c1565d64619d82b ("mm: change the interface for __tlb_remove_page"). This simplies the code much, by removing the need to track the last address with which we adjusted the range. We also go ba

[PATCH 2/5] mm: Update mmu_gather range correctly

2016-10-26 Thread Aneesh Kumar K.V
We use __tlb_adjust_range to update range convered by mmu_gather struct. We later use the 'start' and 'end' to do a mmu_notifier_invalidate_range in tlb_flush_mmu_tlbonly(). Update the 'end' correctly in __tlb_adjust_range so that we call mmu_notifier_invalidate_range with the correct range values.

Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing

2016-10-26 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 01:51:59AM +0200, Alexis Berlemont wrote: -ENOCHANGELOG > Signed-off-by: Alexis Berlemont > --- > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c > index 9f72ca3..e31e8ef 100644 > --- a/arch/x86/mm/fault.c > +++ b/arch/x86/mm/fault.c > @@ -1488,6 +1488,7 @@ trace_

[PATCH 0/5] mmu gather changes

2016-10-26 Thread Aneesh Kumar K.V
Hi, With commit e77b0852b551 ("mm/mmu_gather: track page size with mmu gather and force flush if page size change") we added the ability to force a tlb flush when the page size change in a mmu_gather loop. We did that by checking for a page size change every time we added a page to mmu_gather for

Re: [PATCHv6 08/11] i2c: match vendorless strings on the internal string length

2016-10-26 Thread Lee Jones
On Tue, 25 Oct 2016, Kieran Bingham wrote: > If a user provides a shortened string to match a device to the sysfs i2c > interface it will match on the first string that contains that string > prefix. > > for example: > echo a 0x68 > /sys/bus/i2c/devices/i2c-2/new_device > > will match as3711,

Re: [PATCH v2 5/5] posix-timers: make it configurable

2016-10-26 Thread Richard Cochran
On Tue, Oct 25, 2016 at 10:28:51PM -0400, Nicolas Pitre wrote: > +config POSIX_TIMERS > + bool "Posix Clocks & timers" if EXPERT > + default y > + help > + This includes native support for POSIX timers to the kernel. > + Most embedded systems may have no use for them and the

[PATCH v3 0/2] [media] videobuf2-dc: Add support for cacheable MMAP

2016-10-26 Thread Thierry Escande
Hi, This series adds support for cacheable MMAP in DMA coherent allocator. The first patch moves the vb2_dc_get_base_sgt() function above mmap callbacks for calls introduced by the second patch. This avoids a forward declaration. Changes in v2: - Put function move in a separate patch - Added com

[PATCH v3 1/2] [media] videobuf2-dc: Move vb2_dc_get_base_sgt() above mmap callbacks

2016-10-26 Thread Thierry Escande
This patch moves vb2_dc_get_base_sgt() function above mmap buffers callbacks, particularly vb2_dc_alloc() and vb2_dc_mmap() from where it will be called for cacheable MMAP support introduced in the next patch. Signed-off-by: Thierry Escande --- drivers/media/v4l2-core/videobuf2-dma-contig.c | 44

Re: [PATCH] kbuild: protect compiled-in dtb from dead data elimination

2016-10-26 Thread Nicholas Piggin
On Wed, 26 Oct 2016 10:47:43 +0200 Marcin Nowakowski wrote: > DTBs are compiled into byte arrays that are placed inside > .dtb.init.rodata section. As they are never referenced directly from the > code, they get removed during dead data elimination and we end up with > __dtb_start == __dtb_end.

[PATCH v3 2/2] [media] videobuf2-dc: Support cacheable MMAP

2016-10-26 Thread Thierry Escande
From: Heng-Ruey Hsu DMA allocations for MMAP type are uncached by default. But for some cases, CPU has to access the buffers. ie: memcpy for format converter. Supporting cacheable MMAP improves huge performance. This patch enables cacheable memory for DMA coherent allocator in mmap buffer alloca

Re: [PATCHv6 07/11] i2c: match dt-style device names from sysfs interface

2016-10-26 Thread Lee Jones
On Tue, 25 Oct 2016, Kieran Bingham wrote: > A user can choose to instantiate a device on an i2c bus using the sysfs > interface by providing a string and address to match and communicate > with the device on the bus. Presently this string is only matched > against the old i2c device id style stri

[RFC PATCH v2 4/9] drm: mali-dp: Add RGB writeback formats for DP550/DP650

2016-10-26 Thread Brian Starkey
Add a layer bit for the SE memory-write, and add it to the pixel format matrix for DP550/DP650. Signed-off-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_hw.c | 28 ++-- drivers/gpu/drm/arm/malidp_hw.h |1 + 2 files changed, 15 insertions(+), 14 deletions(-) diff

[RFC PATCH v2 0/9] Introduce writeback connectors

2016-10-26 Thread Brian Starkey
Hi, This is an updated RFC series introducing a new connector type: DRM_MODE_CONNECTOR_WRITEBACK See v1 here: [1] Writeback connectors are used to expose the memory writeback engines found in some display controllers, which can write a CRTC's composition result to a memory buffer. This is useful

[RFC PATCH v2 2/9] drm: mali-dp: Clear CVAL when leaving config mode

2016-10-26 Thread Brian Starkey
It's possible for CVAL to get set whilst we are in config mode. If this happens, afer we leave config mode the HW will latch whatever configuration is in the registers at the next vsync. Most likely this will be a partial configuration, as we'll be racing against the ongoing atomic_commit. To avoi

Re: [PATCH] ARM: sti: stih410-clocks: Add PROC_STFE as a critical clock

2016-10-26 Thread Peter Griffin
Hi Lee, On Wed, 26 Oct 2016, Lee Jones wrote: > > > > If the clock is enabled when Linux boots, the Linux clock framework > > > > *needs* > > > > to assume the hardware may have been used in previous boot stages, and > > > > it should > > > > not attempt to disable the clock. > > > > > > None

[RFC PATCH v2 1/9] drm: Add writeback connector type

2016-10-26 Thread Brian Starkey
Writeback connectors represent writeback engines which can write the CRTC output to a memory framebuffer. Add a writeback connector type and related support functions. Drivers should initialize a writeback connector with drm_writeback_connector_init() which takes care of setting up all the writeba

[PATCH] NFC: nfcmrvl: Include unaligned.h instead of access_ok.h

2016-10-26 Thread Tobias Klauser
Including linux/unaligned/access_ok.h causes the allmodconfig build on ia64 (and maybe others) to fail with the following warnings: include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16' include/linux/unaligned/access_ok.h:12:19: error: redefinition of 'get_unalign

Re: [PATCH 00/10] mm: adjust get_user_pages* functions to explicitly pass FOLL_* flags

2016-10-26 Thread Lorenzo Stoakes
On Tue, Oct 18, 2016 at 05:30:50PM +0200, Michal Hocko wrote: >I am wondering whether we can go further. E.g. it is not really clear to >me whether we need an explicit FOLL_REMOTE when we can in fact check >mm != current->mm and imply that. Maybe there are some contexts which >wouldn't work, I have

[PATCH] block: flush: fix IO hang in case of flood fua req

2016-10-26 Thread Ming Lei
This patch fixes one issue reported by Kent, which can be triggered in bcachefs over sata disk. Actually it is a generic issue in block flush vs. blk-tag. Cc: Christoph Hellwig Reported-by: Kent Overstreet Signed-off-by: Ming Lei --- block/blk-flush.c | 28 1 file

[PATCH] drm: mark drm_of_component_match_add dummy inline

2016-10-26 Thread Arnd Bergmann
The newly added drm_of_component_match_add helper is defined as 'static' in a header when CONFIG_OF is disabled, causing a warning each time the header is included: In file included from /git/arm-soc/drivers/gpu/drm/bridge/dw-hdmi.c:23:0: include/drm/drm_of.h:33:13: error: 'drm_of_component_match_

[RFC PATCH v2 3/9] drm: mali-dp: Rename malidp_input_format

2016-10-26 Thread Brian Starkey
We're going to use the same format list for output formats, so rename everything related to input formats to avoid confusion. Signed-off-by: Brian Starkey Reviewed-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_hw.c | 24 drivers/gpu/drm/arm/malidp_hw.h |8

[RFC PATCH v2 9/9] drm: mali-dp: Add writeback out-fence support

2016-10-26 Thread Brian Starkey
If userspace has asked for an out-fence for the writeback, we add a fence to malidp_mw_job, to be signaled when the writeback job has completed. Signed-off-by: Brian Starkey --- drivers/gpu/drm/arm/malidp_hw.c |5 - drivers/gpu/drm/arm/malidp_mw.c | 18 +- drivers/gpu/d

[PATCH v3] drm/mediatek: fixed the calc method of data rate per lane

2016-10-26 Thread Jitao Shi
Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e. Tlpx, Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP mode, this signal will cause h-time larger than normal and reduce FPS. Need to multiply a coefficient to offset the extra signal's effect. coefficient = ((htot

Re: [PATCH/RFT v2 02/17] ARM: davinci: da8xx: Add CFGCHIP syscon platform declaration.

2016-10-26 Thread Sekhar Nori
On Tuesday 25 October 2016 09:23 PM, David Lechner wrote: > Hi Sekhar, > > On 10/25/2016 05:17 AM, Sekhar Nori wrote: >> On Tuesday 25 October 2016 03:07 PM, Axel Haslam wrote: >>> Hi Sekar, >>> >>> On Tue, Oct 25, 2016 at 10:10 AM, Sekhar Nori wrote: On Monday 24 October 2016 10:16 PM, ahas

[RFC PATCH v2 5/9] drm: mali-dp: Add support for writeback on DP550/DP650

2016-10-26 Thread Brian Starkey
From: Liviu Dudau Mali-DP display processors are able to write the composition result to a memory buffer via the SE. Add entry points in the HAL for enabling/disabling this feature, and implement support for it on DP650 and DP550. DP500 acts differently and so is omitted from this change. Signe

[RFC PATCH v2 7/9] drm: atomic: factor out common out-fence operations

2016-10-26 Thread Brian Starkey
Some parts of setting up the CRTC out-fence can be re-used for writeback out-fences. Factor this out into a separate function. Signed-off-by: Brian Starkey --- drivers/gpu/drm/drm_atomic.c | 64 +++--- 1 file changed, 42 insertions(+), 22 deletions(-) diff

Re: hit a KASan bug related to Perf during stress test

2016-10-26 Thread Peter Zijlstra
On Tue, Oct 25, 2016 at 04:41:26PM +0200, Oleg Nesterov wrote: > > > > So what serialization would close that race? __task_pid_nr_ns() only > > seems to use RCU nothing more. > > I do not see how can we close this race, we obviously do not want to use > any locking. > > That is why I tried to sug

[RFC PATCH v2 8/9] drm: writeback: Add out-fences for writeback connectors

2016-10-26 Thread Brian Starkey
Add the OUT_FENCE_PTR property to writeback connectors, to enable userspace to get a fence which will signal once the writeback is complete. A timeline is added to drm_connector for use by the writeback out-fences. It is up to drivers to check for a fence in the connector_state and signal the it a

Re: [PATCH v14 5/9] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-10-26 Thread Fu Wei
Hi Mark, On 21 October 2016 at 19:21, Mark Rutland wrote: > On Fri, Oct 21, 2016 at 12:14:01PM +0100, Mark Rutland wrote: >> On Thu, Oct 20, 2016 at 05:58:17PM +0100, Mark Rutland wrote: >> > On Thu, Sep 29, 2016 at 02:17:13AM +0800, fu@linaro.org wrote: >> > > + arch_timer_ppi[PHYS_NONSECURE

[RFC PATCH v2 6/9] drm: mali-dp: Add writeback connector

2016-10-26 Thread Brian Starkey
Mali-DP has a memory writeback engine which can be used to write the composition result to a memory buffer. Expose this functionality as a DRM writeback connector on supported hardware. Signed-off-by: Brian Starkey --- drivers/gpu/drm/arm/Makefile |1 + drivers/gpu/drm/arm/malidp_crtc.c

Re: [PATCH (net.git) 0/3] stmmac: fix PTP support

2016-10-26 Thread Richard Cochran
On Wed, Oct 26, 2016 at 08:56:01AM +0200, Giuseppe Cavallaro wrote: > This subset of patches aim to fix the PTP support > for the stmmac and especially for 4.x chip series. > While setting PTP on an ST box with 4.00a Ethernet > core, the kernel panics due to a broken settings > of the descriptors.

Re: [BUG] checkpatch hangs at value annotation

2016-10-26 Thread Jan Höppner
On 28.09.2016 14:17, Jan Höppner wrote: > Hi Andy, > > when I check the following patch example with checkpatch it will hang forever. > > diff --git a/test.c b/test.c > index 88c2eb0cb608..583625fdb715 100644 > --- a/test.c > +++ b/test.c > @@ -1 +1,3 @@ > uint## BITS ##_t foobar; > + > +printk(

Re: [PATCH v2] drm/mediatek: fixed the calc method of data rate per lane

2016-10-26 Thread Jitao Shi
On Wed, 2016-10-26 at 14:41 +0800, CK Hu wrote: > Hi, Jitao: > > On Tue, 2016-10-25 at 13:40 +0800, Jitao Shi wrote: > > Tune dsi frame rate by pixel clock, dsi add some extra signal (i.e. Tlpx, > > Ths-prepare, Ths-zero, Ths-trail,Ths-exit) when enter and exit LP mode, this > > signal will cause

Re: [PATCH] mm: fixup get_user_pages* comments

2016-10-26 Thread Michal Hocko
On Wed 26-10-16 00:34:35, Lorenzo Stoakes wrote: > In the previous round of get_user_pages* changes comments attached to > __get_user_pages_unlocked() and get_user_pages_unlocked() were rendered > incorrect, this patch corrects them. > > In addition the get_user_pages_unlocked() comment seems to h

Re: [PATCH] mm: remove unnecessary __get_user_pages_unlocked() calls

2016-10-26 Thread Michal Hocko
On Wed 26-10-16 08:59:52, Lorenzo Stoakes wrote: > On Wed, Oct 26, 2016 at 12:36:09AM +0100, Lorenzo Stoakes wrote: > > In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with > > get_user_pages_unlocked() since we can now pass gup_flags. > > > > In async_pf_execute() we need t

Re: [PATCH] mm: remove unnecessary __get_user_pages_unlocked() calls

2016-10-26 Thread Michal Hocko
On Wed 26-10-16 00:36:09, Lorenzo Stoakes wrote: > In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with > get_user_pages_unlocked() since we can now pass gup_flags. > > In async_pf_execute() we need to pass different tsk, mm arguments so > get_user_pages_remote() is the san

Re: [PATCH] drm: rcar-du: Fix R-Car Gen3 crash when VSP is disabled

2016-10-26 Thread Magnus Damm
Hi Geert, On Wed, Oct 26, 2016 at 4:31 PM, Geert Uytterhoeven wrote: > On Wed, Oct 26, 2016 at 5:31 AM, Magnus Damm wrote: >> From: Magnus Damm >> >> For the DU to operate on R-Car Gen3 hardware a combination of DU >> and VSP devices are required. Since the DU driver also supports >> earlier ge

Re: [PATCH] NFC: nfcmrvl: Include unaligned.h instead of access_ok.h

2016-10-26 Thread Tobias Klauser
On 2016-10-26 at 11:00:12 +0200, Tobias Klauser wrote: > Including linux/unaligned/access_ok.h causes the allmodconfig build on > ia64 (and maybe others) to fail with the following warnings: > > include/linux/unaligned/access_ok.h:7:19: error: redefinition of > 'get_unaligned_le16' > include/lin

Re: [PATCH v6 1/2] mfd: add support for Allwinner SoCs ADC

2016-10-26 Thread Lee Jones
On Thu, 15 Sep 2016, Quentin Schulz wrote: > The Allwinner SoCs all have an ADC that can also act as a touchscreen > controller and a thermal sensor. For now, only the ADC and the thermal > sensor drivers are probed by the MFD, the touchscreen controller support > will be added later. > > Signed-

Re: complete_all and "forever" completions

2016-10-26 Thread Nicholas Mc Guire
On Wed, Oct 26, 2016 at 10:45:35AM +0200, Peter Zijlstra wrote: > On Tue, Oct 25, 2016 at 03:30:54PM -0700, Dmitry Torokhov wrote: > > Hi, > > > > Reading Documentation/scheduler/completion.txt, complete_all() is > > Oh, there is documentation? /me goes read. > > > supposed to be usable with "fo

Re: [PATCH] mm: remove unnecessary __get_user_pages_unlocked() calls

2016-10-26 Thread Michal Hocko
On Wed 26-10-16 00:46:31, Lorenzo Stoakes wrote: > The holdout for unexporting __get_user_pages_unlocked() is its invocation in > mm/process_vm_access.c: process_vm_rw_single_vec(), as this definitely _does_ > seem to invoke VM_FAULT_RETRY behaviour which get_user_pages_remote() will not > trigger

Re: [PATCH 0/2] objtool: a couple of minor fixes

2016-10-26 Thread Arnd Bergmann
On Wednesday, October 26, 2016 9:58:29 AM CEST Arnd Bergmann wrote: > On Thursday, October 13, 2016 4:22:51 PM CEST Josh Poimboeuf wrote: > > Fix a couple of issues: > > > > - fix a false positive warning related to switch statement jump tables > > - get rid of useless "unreachable instruction" wa

[PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/-/sched

2016-10-26 Thread Tommaso Cucinotta
This patch allows for reading the current (leftover) runtime and absolute deadline in /proc/*/sched, for debugging purposes. This revised patch: 1) has a fixed format, Signed-off-by, etc., as suggested by Juri 2) now includes related docs in Documentation/ 3) now I'm sending these e-mails with the

Re: [PATCH v2][RESEND] seq_file: don't set read position for invalid iterator

2016-10-26 Thread Miklos Szeredi
On Wed, Oct 12, 2016 at 2:07 PM, Tomasz Majchrzak wrote: > If kernfs file is empty on a first read, successive read operations > using the same file descriptor will return no data, even when data is > available. Default kernfs 'seq_next' implementation advances iterator > position even when next o

[PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/*/sched

2016-10-26 Thread Tommaso Cucinotta
This patch allows for reading the current (leftover) runtime and absolute deadline of a SCHED_DEADLINE task through /proc/*/sched (entries dl.runtime and dl.deadline), while debugging/testing. Signed-off-by: Tommaso Cucinotta Reviewed-by: Juri Lelli Reviewed-by: Luca Abeni Acked-by: Daniel Bist

Re: [RFC PATCH v2] perf: honouring the cpuid for number of fixed counters in hypervisors

2016-10-26 Thread Peter Zijlstra
On Fri, Oct 21, 2016 at 01:18:59AM -0700, Imre Palik wrote: > +++ b/arch/x86/events/intel/core.c > @@ -3607,10 +3607,14 @@ __init int intel_pmu_init(void) > > /* >* Quirk: v2 perfmon does not report fixed-purpose events, so > + * assume at least 3 events, when not running in a

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Jan Kara
On Mon 24-10-16 14:47:39, Johannes Weiner wrote: > > --- > > From 192c2589a5845d197f758045868844623e06b4db Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Mon, 17 Oct 2016 09:00:04 -0400 > Subject: [PATCH] mm: workingset: restore single-page file refault tracking > > Currently, we acco

Re: [PATCH 2/3] phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround

2016-10-26 Thread Alexandre Bailon
On 10/25/2016 09:16 PM, David Lechner wrote: > On 10/25/2016 08:52 AM, Alexandre Bailon wrote: >> If we configure the da8xx OTG phy in OTG mode, neither device or host >> mode will work. That is because the PHY is not able to detect and notify >> the driver that value of ID pin changed. >> To work

[PATCH v2] mm: remove unnecessary __get_user_pages_unlocked() calls

2016-10-26 Thread Lorenzo Stoakes
In hva_to_pfn_slow() we are able to replace __get_user_pages_unlocked() with get_user_pages_unlocked() since we can now pass gup_flags. In async_pf_execute() we need to pass different tsk, mm arguments so get_user_pages_remote() is the sane replacement here (having added manual acquisition and rel

Re: [PATCH v6 1/5] ARM: davinci: da8xx: add usb phy clocks

2016-10-26 Thread Sekhar Nori
On Wednesday 26 October 2016 08:36 AM, David Lechner wrote: > diff --git a/arch/arm/mach-davinci/usb-da8xx.c > b/arch/arm/mach-davinci/usb-da8xx.c > index f141f51..71a6d85 100644 > --- a/arch/arm/mach-davinci/usb-da8xx.c > +++ b/arch/arm/mach-davinci/usb-da8xx.c > @@ -1,20 +1,248 @@ > /* > * D

Re: [PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-10-26 Thread Phani A, Rama Krishna
Hi Sricharan, Will incorporate the suggested changes in the next patch set. On 25-Oct-16 6:39 PM, Sricharan wrote: Hi Ramakrishna, Add changes to support different scale functions to convert adc code to physical units. Signed-off-by: Rama Krishna Phani A --- drivers/iio/adc/qcom-spmi-vadc.c

[PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-26 Thread Paolo Valente
Hi, this new patch series turns back to the initial approach, i.e., it adds BFQ as an extra scheduler, instead of replacing CFQ with BFQ. This patch series also contains all the improvements and bug fixes recommended by Tejun [5], plus new features of BFQ-v8r5. Details about old and new features in

[PATCH 08/14] block, bfq: preserve a low latency also with NCQ-capable drives

2016-10-26 Thread Paolo Valente
I/O schedulers typically allow NCQ-capable drives to prefetch I/O requests, as NCQ boosts the throughput exactly by prefetching and internally reordering requests. Unfortunately, as discussed in detail and shown experimentally in [1], this may cause fairness and latency guarantees to be violated.

Re: [PATCH 3/4] usb: musb: da8xx: Add DT support for the DA8xx driver

2016-10-26 Thread Alexandre Bailon
On 10/25/2016 07:38 PM, Sergei Shtylyov wrote: > Hello. > > On 10/25/2016 05:39 PM, Alexandre Bailon wrote: > >> From: Petr Kulhavy >> >> This adds DT support for TI DA8xx/OMAP-L1x/AM17xx/AM18xx MUSB driver >> >> Signed-off-by: Petr Kulhavy >> Signed-off-by: Alexandre Bailon >> --- >> drivers

[PATCH 06/14] block, bfq: improve responsiveness

2016-10-26 Thread Paolo Valente
This patch introduces a simple heuristic to load applications quickly, and to perform the I/O requested by interactive applications just as quickly. To this purpose, both a newly-created queue and a queue associated with an interactive application (we explain in a moment how BFQ decides whether the

[PATCH 09/14] block, bfq: reduce latency during request-pool saturation

2016-10-26 Thread Paolo Valente
This patch introduces an heuristic that reduces latency when the I/O-request pool is saturated. This goal is achieved by disabling device idling, for non-weight-raised queues, when there are weight- raised queues with pending or in-flight requests. In fact, as explained in more detail in the commen

Re: [PATCH v1] I2C Designware Core Supports SMBUS BLOCK

2016-10-26 Thread Mika Westerberg
On Wed, Oct 26, 2016 at 04:20:57PM +0700, Tin Huynh wrote: >We need to set stop bit if three conditions are true : The latest >bytes , the latest msg_write_ids and after receiving the buffer length. >If we use i2c_dw_xfer_need_stop , arguments of function are complex. OK, so you would

[PATCH 04/14] block, bfq: modify the peak-rate estimator

2016-10-26 Thread Paolo Valente
Unless the maximum budget B_max that BFQ can assign to a queue is set explicitly by the user, BFQ automatically updates B_max. In particular, BFQ dynamically sets B_max to the number of sectors that can be read, at the current estimated peak rate, during the maximum time, T_max, allowed before a bu

[PATCH 03/14] block, bfq: improve throughput boosting

2016-10-26 Thread Paolo Valente
The feedback-loop algorithm used by BFQ to compute queue (process) budgets is basically a set of three update rules, one for each of the main reasons why a queue may be expired. If many processes suddenly switch from sporadic I/O to greedy and sequential I/O, then these rules are quite slow to assi

[PATCH 07/14] block, bfq: reduce I/O latency for soft real-time applications

2016-10-26 Thread Paolo Valente
To guarantee a low latency also to the I/O requests issued by soft real-time applications, this patch introduces a further heuristic, which weight-raises (in the sense explained in the previous patch) also the queues associated to applications deemed as soft real-time. To be deemed as soft real-ti

[PATCH 05/14] block, bfq: add more fairness with writes and slow processes

2016-10-26 Thread Paolo Valente
This patch deals with two sources of unfairness, which can also cause high latencies and throughput loss. The first source is related to write requests. Write requests tend to starve read requests, basically because, on one side, writes are slower than reads, whereas, on the other side, storage dev

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