[PATCH v2 1/3] staging: dgnc: dgnc_driver.h Comment style modifications

2016-11-18 Thread Walt Feasel
Make modifications to comment style Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_driver.h | 170 - 1 file changed, 73 insertions(+), 97 deletions(-) diff --git a/drivers/staging/dgnc/d

[PATCH v2 0/3] checkpatch modifications dgnc_driver.h

2016-11-18 Thread Walt Feasel
Make Linux kernel coding style modifications for dgnc_driver.h to include: Spelling correction Comment style modifications Align columns Walt Feasel (3): staging: dgnc: dgnc_driver.h Comment style modifications staging: dgnc: dgnc_driver.h Align columns staging: dgnc: dgnc_driver.h Spelling

[PATCH v2 2/3] staging: dgnc: dgnc_driver.h Align columns

2016-11-18 Thread Walt Feasel
Make modifications to align columns Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_driver.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.h b/dr

[PATCH] net: macb: add check for dma mapping error in start_xmit()

2016-11-18 Thread Alexey Khoroshilov
at91ether_start_xmit() does not check for dma mapping errors. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/net/ethernet/cadence/macb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/cadence/macb.c b

[PATCH 1/2] scripts/bloat-o-meter: don't use readlines()

2016-11-18 Thread Alexey Dobriyan
readlines() conses whole list before doing anything which is slower for big object files. Use per line iterator. Speed up is ~2% on "allyesconfig" type of kernel. $ perf stat -r 16 taskset -c 15 ./scripts/bloat-o-meter ../vmlinux-000 ../obj/vmlinux >/dev/null ... Before:

[PATCH 2/2] scripts/bloat-o-meter: compile .NUMBER regex

2016-11-18 Thread Alexey Dobriyan
Every often used regex is better be compiled in Python. Speedup is about ~9.8% (whee!) $ perf stat -r 16 taskset -c 15 ./scripts/bloat-o-meter ../vmlinux-000 ../obj/vmlinux >/dev/null 7.091202853 seconds time elapsed ( +- 0.15% )

Re: [PATCH 1/2] MMC: davinci: use mmc_of_parse to parse common mmc configuration

2016-11-18 Thread David Lechner
On 11/15/2016 10:28 AM, Axel Haslam wrote: Card detect and write protect are currently not working on a DT boot, and the driver relies on polling to get the state of the card. The current code depends on platform data callbacks to register and get the state of the gpios. mmc core provides a gene

Re: [PATCH 2/2] MMC: davinci: request gpios using gpio descriptors

2016-11-18 Thread David Lechner
On 11/15/2016 10:28 AM, Axel Haslam wrote: Request card detect and write protect gpios using the provided API by mmc core. If a gpio is provided for card detect, we don't need to poll. So only use polling when a gpio is not provided. Once all pdata users register the gpios using gpio descriptor

Re: [PATCH v3 (re-send)] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-18 Thread Boris Ostrovsky
On 11/18/2016 05:27 PM, Hugh Dickins wrote: > On Fri, 18 Nov 2016, Boris Ostrovsky wrote: >> On 11/18/2016 04:51 PM, Hugh Dickins wrote: >>> Hmm, sorry, but this seems overcomplicated to me: ingenious, but an >>> unusual use of the ->get_policy method, which is a little worrying, >>> since it has o

[PATCH] staging: dgnc: dgnc_mgmt.c Comment style modifications

2016-11-18 Thread Walt Feasel
Make modifications for comment style Signed-off-by: Walt Feasel --- drivers/staging/dgnc/dgnc_mgmt.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_mgmt.c b/drivers/staging/dgnc/dgnc_mgmt.c index 683c098..9d9b15d 100644 --- a/drivers/staging/d

[PATCH] spi: spi-topcliff-pch: Remove some dead code

2016-11-18 Thread Christophe JAILLET
Since commit 0d35773979b9 ("spi: spi-topcliff-pch: Remove deprecated create_singlethread_workqueue"), 'retval' is no more used in this function. So some now dead code can be removed. Also axe a debug message which looks useless now. Signed-off-by: Christophe JAILLET --- drivers/spi/spi-topcliff

Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

2016-11-18 Thread David Howells
Dave Chinner wrote: > And when we start thinking in those timeframes, an > increase in timestamp resoultion of at least another 10e-3 is > likely Is it, though? To be useful, surely you have to be able to jam quite a few instructions into a 1ns block, including memory accesses. Rather than

[PATCH 2/2] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-11-18 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Instead of using 100, define a USECS_PER_SEC macro and use that instead. Link: http://lkml.kernel.org/r/20160209204237.006667...@goodmis.org Signed-off-by: Steven Rostedt --- tools/lib/traceevent/event-parse.c | 4 ++-- tools/lib/traceevent/event-parse.h |

[PATCH 0/2] tools lib traceevent: A couple of updates

2016-11-18 Thread Steven Rostedt
I noticed that I have these in my trace-cmd repo. I would like to sync this up to the kernel tools directory. Steven Rostedt (Red Hat) (2): tools lib traceevent: Add retrieval of preempt count and latency flags tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

[PATCH 1/2] tools lib traceevent: Add retrieval of preempt count and latency flags

2016-11-18 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add a way to retrieve the preempt count as well as the latency flags from a pevent_record. int pevent_data_pc(pevent, record); returns the preempt count of a record. int pevent_data_flags(pevent, record); returns the latency flags for a record. Signed-off-b

Re: [PATCH] PCI: Add information about describing PCI in ACPI

2016-11-18 Thread Rafael J. Wysocki
On Thu, Nov 17, 2016 at 6:59 PM, Bjorn Helgaas wrote: > Add a writeup about how PCI host bridges should be described in ACPI > using PNP0A03/PNP0A08 devices, PNP0C02 devices, and the MCFG table. > > Signed-off-by: Bjorn Helgaas Looks great overall, but I have a few comments (below). > --- > Do

[PATCH v2] staging: dgnc: dgnc_neo.c Comment style modifications

2016-11-18 Thread Walt Feasel
Make modifications for comment style Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_neo.c | 111 +++- 1 file changed, 54 insertions(+), 57 deletions(-) diff --git a/drivers/staging/dgnc/

Re: [RFC PATCH] SRCU: More efficient reader counts.

2016-11-18 Thread Paul E. McKenney
On Fri, Nov 18, 2016 at 12:33:00PM -0800, Lance Roy wrote: > On Fri, 18 Nov 2016 06:08:45 -0800 > "Paul E. McKenney" wrote: > > However, let's first take a look at the overflow issue. > > > > If a given program could have ULONG_MAX or more readers at any given > > time, there would of course be o

[PATCH 2/2] x86/intel_rdt: Update task closid immediately on CPU in rmdir and unmount

2016-11-18 Thread Fenghua Yu
From: Fenghua Yu When removing a sub directory/rdtgroup by rmdir or umount, closid in a task in the sub directory is set to default rdtgroup's closid which is 0. If the task is running on a CPU, the PQR_ASSOC MSR is only updated when the task runs through a context switch. Up to the context switc

[PATCH 1/2] x86/intel_rdt: Fix setting of closid when adding CPUs to a group

2016-11-18 Thread Fenghua Yu
From: Fenghua Yu There was a cut & paste error when adding code to update the per-cpu closid when changing the bitmask of CPUs to an rdt group. CPUs removed from the group were correctly given back to the default group. But CPUs added to the group should be given the closid of their new group, no

[Patch v2 00/35] media: ti-vpe: fixes and enhancements

2016-11-18 Thread Benoit Parrot
This patch series is to publish a number of enhancements we have been carrying for a while. A number of bug fixes and feature enhancements have been included. We also need to prepare the way for the introduction of the VIP (Video Input Port) driver (coming soon) which has internal IP module in co

[Patch v2 01/35] media: ti-vpe: vpdma: Make vpdma library into its own module

2016-11-18 Thread Benoit Parrot
The VPDMA (Video Port DMA) as found in devices such as DRA7xx is used for both the Video Processing Engine (VPE) and the Video Input Port (VIP). In preparation for this we need to turn vpdma into its own kernel module. Signed-off-by: Benoit Parrot --- drivers/media/platform/Kconfig | 6

[Patch v2 07/35] media: ti-vpe: Add support for SEQ_TB buffers

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar The video source can generate the data in the SEQ_TB buffer format. In the case of TI SoC, the IVA_HD can generate the interlaced content in the SEQ_TB buffer format. This is the format where the top and bottom field data can be contained in a single buffer. For example, f

[PATCH 2/2] staging: dgnc: dgnc_neo.h Spelling correction

2016-11-18 Thread Walt Feasel
Make spelling correction for 'control' Signed-off-by: Walt Feasel --- drivers/staging/dgnc/dgnc_neo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.h b/drivers/staging/dgnc/dgnc_neo.h index 1aa9325..77ecd9b 100644 --- a/drivers/staging/dgnc/dgn

[Patch v2 35/35] media: ti-vpe: vpe: Add proper support single and multi-plane buffer

2016-11-18 Thread Benoit Parrot
The VPE was restricting the number of plane per buffer based on the fact that if a particular format had color separation it was meant to need 2 planes. However NV12/NV16 are color separate format which are meant to be presented in a single contiguous buffer/plane. It could also be presented in a

[Patch v2 24/35] media: ti-vpe: vpe: Fix vb2 buffer cleanup

2016-11-18 Thread Benoit Parrot
When stop_streaming is called we need to cleanup the queued vb2 buffers properly. This was not previously being done which caused kernel warning when the application using the resources was killed. Kernel warnings were also generated on successful completion of a de-interlacing case as well as upon

[Patch v2 32/35] media: ti-vpe: vpdma: Add RAW8 and RAW16 data types

2016-11-18 Thread Benoit Parrot
Add RAW8 and RAW16 data type to VPDMA. To handle RAW format we are re-using the YUV CBY422 vpdma data type so that we use the vpdma to re-order the incoming bytes, as the VIP parser assumes that the first byte presented on the bus is the MSB of a 2 bytes value. RAW8 handles from 1 to 8 bits. RAW16

[Patch v2 34/35] media: ti-vpe: csc: Add debug support for multi-instance

2016-11-18 Thread Benoit Parrot
Since there might be more then one instance it is better to show the base address when dumping registers to help with debugging. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/csc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platfo

[Patch v2 28/35] media: ti-vpe: vpe: Enable DMABUF export

2016-11-18 Thread Benoit Parrot
Allow VPE to be able to export DMA buffer. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 608d11344147..1d780ac7ff82

[Patch v2 12/35] media: ti-vpe: vpdma: Add abort channel desc and cleanup APIs

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar Whenever VPDMA processes a data descriptor of a list, it processes it and sets up the channel for the DMA transaction. List manager holds the descriptor in the list until the DMA is complete. If sync_on_channel descriptor, or another descriptor for the same channel is pres

[Patch v2 23/35] media: ti-vpe: sc: Fix incorrect optimization

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar Current scaler library implementation of sc_set_hs_coeffs and sc_set_vs_coeffs tries to return immediately if the calculated coefficient index is already being used. As the same scaler block is going to be used for all the VPE contexts, even if the calculated index is sam

[PATCH 1/2] staging: dgnc: dgnc_neo.h Comment style modifications

2016-11-18 Thread Walt Feasel
Make modifications for comment style Signed-off-by: Walt Feasel --- drivers/staging/dgnc/dgnc_neo.h | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.h b/drivers/staging/dgnc/dgnc_neo.h index 97f0386..1aa9325 100644 --- a

[Patch v2 29/35] media: ti-vpe: Make scaler library into its own module

2016-11-18 Thread Benoit Parrot
In preparation to add scaler support into VIP we need to turn sc.c into its own kernel module. Add support for multiple SC memory block as VIP contains 2 scaler instances. This is done by passing the resource name to sc_create() and modify the vpe invocation accordingly. Signed-off-by: Benoit Par

[Patch v2 33/35] media: ti-vpe: Make colorspace converter library into its own module

2016-11-18 Thread Benoit Parrot
In preparation to add colorspace conversion support to VIP, we need to turn csc.c into its own kernel module. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/Kconfig | 4 drivers/media/platform/ti-vpe/Makefile | 4 +++- drivers/media/platform/ti-vpe

[Patch v2 31/35] media: ti-vpe: vpe: Make sure frame size dont exceed scaler capacity

2016-11-18 Thread Benoit Parrot
When scaler is to be used we need to make sure that the input and output frame size do not exceed the maximum frame sizes that the scaler h/w can handle otherwise streaming stall as the scaler cannot proceed. The scaler buffer is limited to 2047 pixels (i.e. 11 bits) when attempting anything large

[Patch v2 26/35] media: ti-vpe: vpdma: Use bidirectional cached buffers

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar VPDMA buffer will be used by CPU as well as by the VPDMA. CPU will write/update the VPDMA descriptors containing data about the video buffer DMA addresses. VPDMA will write the "write descriptor" containing the data about the DMA operation. When mapping/unmapping the buff

[PATCH 0/2] staging: dgnc: dgnc_neo.h checkpatch modifications

2016-11-18 Thread Walt Feasel
Make Linux kernel coding style modifications for dgnc_neo.h to include: Spelling correction Comment style modifications Walt Feasel (2): staging: dgnc: dgnc_neo.h Comment style modifications staging: dgnc: dgnc_neo.h Spelling correction drivers/staging/dgnc/dgnc_neo.h | 26 -

[Patch v2 14/35] media: ti-vpe: vpdma: Clear IRQs for individual lists

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar VPDMA IRQs are registered for multiple lists When clearing an IRQ for a list interrupt, all the IRQs for the individual lists are to be cleared separately. Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/

[Patch v2 25/35] media: ti-vpe: vpdma: Fix race condition for firmware loading

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar vpdma_create API is supposed to allocated the struct vpdma_data and return it to the driver. Also, it would call the callback function when the VPDMA firmware is loaded. Typically, VPE driver have following function call: dev->vpdma = vpdma_create(pdev, firmware_load_

[Patch v2 30/35] media: ti-vpe: scaler: Add debug support for multi-instance

2016-11-18 Thread Benoit Parrot
Since there might be more then one instance it is better to show the base address when dumping registers to help with debugging. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/sc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platfor

[Patch v2 16/35] media: ti-vpe: vpe: Setup srcdst parameters in start_streaming

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar For deinterlacing operation, each operation needs 2 fields in the history. This is achieved by holding three buffers in ctx->src_vbs[0,1,2] (f,f-1,f-2) This is achieved by using the ctx->sequence which gets reset via the s_fmt ioctl. These buffers are dequeued in stream

[Patch v2 18/35] media: ti-vpe: vpe: Add RGB565 and RGB5551 support

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar VPE hardware can generate output in RGB565 or in RGB5551 format. Add these formats in the supported format list for CAPTURE stream. Also, for RGB5551 format, the alpha component is not processed, so the alpha value is taken from the default color. Set the default color to

[Patch v2 27/35] media: ti-vpe: vpe: Fix line stride for output motion vector

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar For deinterlacing operation, VPE hardware uses motion vectors. MV calculated in the previous iteration are used for next interation. Therefore driver allocates two motion vectors in ping-pong fashion. For every transaction, one MV is DMAed in and one is DMAed out. All the

[Patch v2 22/35] media: ti-vpe: vpdma: RGB data type yield inverted data

2016-11-18 Thread Benoit Parrot
The VPDMA RGB data type definition have been updated to match with Errata i839. But some of the ARGB definition appeared to be wrong in the document also. As they would yield RGBA instead. They have been corrected based on experimentation. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil ---

[Patch v2 17/35] media: ti-vpe: vpe: Post next descriptor only for list complete IRQ

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar vpe_irq checks for the possible interrupt sources and prints the errors for the DEI_ERROR and DS_UV interrupts. But it also post the next descriptor list irrespective of whichever interrupt has occurred. Because of this, driver may release the buffers even before DMA is c

Re: [mm PATCH v3 21/23] mm: Add support for releasing multiple instances of a page

2016-11-18 Thread Andrew Morton
On Thu, 10 Nov 2016 06:36:06 -0500 Alexander Duyck wrote: > This patch adds a function that allows us to batch free a page that has > multiple references outstanding. Specifically this function can be used to > drop a page being used in the page frag alloc cache. With this drivers can > make u

[Patch v2 19/35] media: ti-vpe: vpdma: allocate and maintain hwlist

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar VPDMA block used in ti-vip and ti-vpe modules have support for up to 8 hardware descriptor lists. A descriptor list can be submitted to any of the 8 lists (as long as it's not busy). When multiple clients want to transfer data in parallel, its easier to allocate one list

[Patch v2 13/35] media: ti-vpe: vpdma: Make list post atomic operation

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar Writing to the "VPDMA list attribute" register is considered as a list post. This informs the VPDMA firmware to load the list from the address which should be taken from the "VPDMA list address" register. As these two register writes are dependent, it is important that th

[Patch v2 21/35] media: ti-vpe: vpdma: Corrected YUV422 data type label.

2016-11-18 Thread Benoit Parrot
The YUV data type definition below are taken from both the TRM and i839 Errata information. Use the correct data type considering byte reordering of components. Added the 2 missing YUV422 variant. Also since the single use of "C" in the 422 case to mean "Cr" (i.e. V component). It was decided to e

[Patch v2 20/35] media: ti-vpe: vpe: Added MODULE_DEVICE_TABLE hint

2016-11-18 Thread Benoit Parrot
ti_vpe module currently does not get loaded automatically. Added MODULE_DEVICE_TABLE hint to the driver to assist. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil Reviewed-by: Javier Martinez Canillas --- drivers/media/platform/ti-vpe/vpe.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Patch v2 11/35] media: ti-vpe: vpdma: Add support for setting max width height

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar Add a helper function to be able to set the maximum VPDMA transfer size to limit potential buffer overrun. Added enums for max_width and max_height fields of the outbound data descriptor. Changed vpdma_add_out_dtd to accept two more arguments for max width and height. M

Re: [PATCH v3 (re-send)] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-18 Thread Hugh Dickins
On Fri, 18 Nov 2016, Boris Ostrovsky wrote: > On 11/18/2016 05:27 PM, Hugh Dickins wrote: > > On Fri, 18 Nov 2016, Boris Ostrovsky wrote: > >> On 11/18/2016 04:51 PM, Hugh Dickins wrote: > >>> Hmm, sorry, but this seems overcomplicated to me: ingenious, but an > >>> unusual use of the ->get_policy

[Patch v2 06/35] media: ti-vpe: vpe: Do not perform job transaction atomically

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar Current VPE driver does not start the job until all the buffers for a transaction are queued. When running in multiple context, this might increase the processing latency. Alternate solution would be to try to continue the same context as long as buffers for the transacti

[Patch v2 10/35] media: ti-vpe: Free vpdma buffers in vpe_release

2016-11-18 Thread Benoit Parrot
From: Harinarayan Bhatta Free vpdma buffers in vpe_release. Otherwise it was generating random backtrace. Signed-off-by: Harinarayan Bhatta Signed-off-by: Somnath Mukherjee Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vp

[Patch v2 08/35] media: ti-vpe: Increasing max buffer height and width

2016-11-18 Thread Benoit Parrot
From: Harinarayan Bhatta Increasing max buffer height and width to allow for padded buffers. Signed-off-by: Harinarayan Bhatta Signed-off-by: Nikhil Devshatwar Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpe.c | 4 ++-- 1 file changed, 2 insertions(

[Patch v2 15/35] media: ti-vpe: vpe: configure line mode separately

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar Current driver configures the line mode of the DEI clients from the open function directly. Even if the newly created context is not yet scheduled, it updates some of the VPDMA registers. This causes a problem in multi instance use case where just opening the m2m device se

[Patch v2 02/35] media: ti-vpe: vpdma: Add multi-instance and multi-client support

2016-11-18 Thread Benoit Parrot
The VPDMA (Video Port DMA) as found in devices such as DRA7xx is used for both the Video Processing Engine (VPE) and the Video Input Port (VIP). Some devices may have multiple VIP instances each with its own VPDMA engine. Within VIP two slices can use a single VPDMA engine simultaneously. So suppor

[Patch v2 04/35] media: ti-vpe: vpdma: Fix bus error when vpdma is writing a descriptor

2016-11-18 Thread Benoit Parrot
On DRA7 since l3_noc event are being reported it was found that when the write descriptor was being written it was consistently causing bus error events. The write address was improperly programmed. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma_pri

[Patch v2 09/35] media: ti-vpe: vpe: Return NULL for invalid buffer type

2016-11-18 Thread Benoit Parrot
From: Nikhil Devshatwar get_q_data can be called with different values for type e.g. vpe_try_crop calls it with the buffer type which gets passed from user space Framework doesn't check wheather its correct type or not If user space passes wrong type, kernel should not crash. Return NULL when th

[Patch v2 03/35] media: ti-vpe: vpdma: Add helper to set a background color

2016-11-18 Thread Benoit Parrot
Add a helper to set the background color during vpdma transfer. This is needed when VPDMA is generating 32 bits RGB format to have the Alpha channel set to an appropriate value. Signed-off-by: Benoit Parrot Acked-by: Hans Verkuil --- drivers/media/platform/ti-vpe/vpdma.c | 10 ++ driver

[Patch v2 05/35] media: ti-vpe: Use line average de-interlacing for first 2 frames

2016-11-18 Thread Benoit Parrot
From: Archit Taneja The motion detection block requires 3 fields to create the motion vector data. This means that using the default method the first progressive frame is only generated after 3rd field is consumed. Hence by default for N input field we would generate N - 2 progressive frames. In

[PATCH v2 2/2] staging: dgnc: dgnc_sysfs.c Delete blank line

2016-11-18 Thread Walt Feasel
Make modification to remove extra blank line Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_sysfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c i

[PATCH v2 0/2] staging: dgnc: dgnc_sysfs.c checkpatch modifications

2016-11-18 Thread Walt Feasel
Make Linux kernel coding style modifications for dgnc_sysfs.c to include: Comment style modifications Remove blank line Walt Feasel (2): staging: dgnc: dgnc_sysfs.c Comment style modifications staging: dgnc: dgnc_sysfs.c Delete blank line drivers/staging/dgnc/dgnc_sysfs.c | 4 ++-- 1 file

[PATCH v2 1/2] staging: dgnc: dgnc_sysfs.c Comment style modifications

2016-11-18 Thread Walt Feasel
Make modifications to comment style Signed-off-by: Walt Feasel --- v2 makes changes to correct for email format patch submission drivers/staging/dgnc/dgnc_sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc

Re: [PATCH 2/2] tools lib traceevent: Use USECS_PER_SEC instead of hardcoded number

2016-11-18 Thread Arnaldo Carvalho de Melo
Em Fri, Nov 18, 2016 at 05:54:01PM -0500, Steven Rostedt escreveu: > From: "Steven Rostedt (Red Hat)" > > Instead of using 100, define a USECS_PER_SEC macro and use that instead. We already have it in tools/include/linux/time64.h :-) - Arnaldo > Link: http://lkml.kernel.org/r/201602092042

Re: linux-next: manual merge of the sound tree with the jc_docs tree

2016-11-18 Thread Jonathan Corbet
On Mon, 14 Nov 2016 09:01:13 +0100 Takashi Iwai wrote: > > In this case, I would have liked the chance to comment. This > > documentation belongs in the driver-api document, not the top-level one. > > So, in an ideal world, I'd like to see this stuff moved there, preferably > > with the patches

Re: [PATCH 2/4] spi: spi-fsl-dspi: Fix incorrect DMA setup

2016-11-18 Thread Stefan Agner
On 2016-11-18 00:04, maitysancha...@gmail.com wrote: > On 16-11-17 17:03:19, Stefan Agner wrote: >> On 2016-11-17 04:16, Sanchayan Maity wrote: >> > Currently dmaengine_prep_slave_single was being called with length >> > set to the complete DMA buffer size. This resulted in unwanted bytes >> > bein

[PATCH 2/3] thermal: rockchip: improve conversion error messages

2016-11-18 Thread Brian Norris
These error messages don't give much information about what went wrong. It would be nice, for one, to see what invalid temperature was being requested when conversion fails. It's also good to return an error when we can't handle a conversion properly. While we're at it, fix the grammar too. Signe

[PATCH 1/3] thermal: handle get_temp() errors properly

2016-11-18 Thread Brian Norris
If using CONFIG_THERMAL_EMULATION, there's a corner case where we might get an error from the zone's get_temp() callback, but we'll ignore that and keep using its value. Let's just error out properly instead. Signed-off-by: Brian Norris --- drivers/thermal/thermal_core.c | 3 +++ 1 file changed,

[PATCH 3/3] thermal: rockchip: don't pass table structs by value

2016-11-18 Thread Brian Norris
This driver passes struct chip_tsadc_table by value throughout; this is inefficient, and AFAICT, there is no reason for it. Let's pass pointers instead. Signed-off-by: Brian Norris --- drivers/thermal/rockchip_thermal.c | 80 +++--- 1 file changed, 40 insertions(+

Re: [PATCH] pinctrl: mediatek: use builtin_platform_driver

2016-11-18 Thread Hongzhou Yang
On Fri, 2016-11-18 at 22:12 +0800, Geliang Tang wrote: > Use builtin_platform_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang > --- > drivers/pinctrl/mediatek/pinctrl-mt6397.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/pinctrl/med

[PATCH v2 1/2] perf sdt: add scanning of sdt probles arguments

2016-11-18 Thread Alexis Berlemont
During a "perf buildid-cache --add" command, the section ".note.stapsdt" of the "added" binary is scanned in order to list the available SDT markers available in a binary. The parts containing the probes arguments were left unscanned. The whole section is now parsed; the probe arguments are extrac

[PATCH v2 0/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-18 Thread Alexis Berlemont
Hi Hemant, Many thanks for your answer. Here is another proposal in which the x86 register renaming table has been moved into the x86-specific part. Thanks, Alexis. Alexis Berlemont (2): perf sdt: add scanning of sdt probles arguments perf probe: add sdt probes arguments into the uprobe cm

[PATCH v2 2/2] perf probe: add sdt probes arguments into the uprobe cmd string

2016-11-18 Thread Alexis Berlemont
An sdt probe can be associated with arguments but they were not passed to the user probe tracing interface (uprobe_events); this patch adapts the sdt argument descriptors according to the uprobe input format. As the uprobe parser does not support scaled address mode, perf will skip arguments which

Re: linux-next: manual merge of the sound tree with the jc_docs tree

2016-11-18 Thread Jarkko Sakkinen
On Fri, Nov 18, 2016 at 04:33:12PM -0700, Jonathan Corbet wrote: > On Mon, 14 Nov 2016 09:01:13 +0100 > Takashi Iwai wrote: > > > > In this case, I would have liked the chance to comment. This > > > documentation belongs in the driver-api document, not the top-level one. > > > So, in an ideal wo

[PATCH 0/3] Sphinxify two debugging-API docbook templates

2016-11-18 Thread Jonathan Corbet
As part of the ongoing mission to get rid of the DocBook templates, convert the debugobjects and tracepoint API templates to RST and add them to the core-api manual. Jonathan Corbet (3): doc: Convert the debugobjects DocBook template to sphinx doc: debugobjects: actually pull in the kerneldoc

[PATCH 3/3] doc: Sphinxify the tracepoint docbook

2016-11-18 Thread Jonathan Corbet
Convert the tracepoint docbook template to RST and add it to the core-api manual. No changes to the actual text beyond the mechanical formatting conversion. Cc: Jason Baron Cc: William Cohen Signed-off-by: Jonathan Corbet --- Documentation/DocBook/Makefile| 3 +- Documentation/DocBo

[PATCH 1/3] doc: Convert the debugobjects DocBook template to sphinx

2016-11-18 Thread Jonathan Corbet
A couple of the most minor heading tweaks, otherwise no changes to the text itself beyond the mechanical conversion. Note that the inclusion of the kerneldoc comments from the source has never worked, since exported symbols were asked for and none of those functions are exported to modules. It do

[PATCH 2/3] doc: debugobjects: actually pull in the kerneldoc comments

2016-11-18 Thread Jonathan Corbet
Add the appropriate markup to get the kerneldoc comments out of lib/debugobjects.c that have never seen the light of day until now. A logical next step, left for the reader at the moment, is to move the function descriptions *out* of debug-objects.rst and into the kerneldoc comments themselves. S

[PATCH 10/10] perf, tools, stat: Output generic dividedby metric

2016-11-18 Thread Andi Kleen
From: Andi Kleen Add generic infrastructure to perf stat to output ratios for "DividedBy" entries in the event lists. Many events are more useful as ratios than in raw form, typically some count in relation to total ticks. Transfer the dividedby information from the alias to the evsel. We mark

[PATCH 09/10] perf, tools: Support DividedBy header in JSON event list

2016-11-18 Thread Andi Kleen
From: Andi Kleen Add support for parsing the DividedBy header in the JSON event lists and storing them in the alias structure. Used in the next patch. Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c| 18 ++ tools/perf/pmu-events/jevents.h| 2 +- tools/pe

Support Intel uncore event lists in perf

2016-11-18 Thread Andi Kleen
This adds uncore support on top of the recently merged JSON event list infrastructure for core events. Uncore is everything outside the core, including memory controllers, PCI, interconnect etc. Uncore is more complicated to handle than core events because it uses many duplicated PMUs, which leads

[PATCH 07/10] perf, tools: Collapse identically named events in perf stat

2016-11-18 Thread Andi Kleen
From: Andi Kleen The uncore PMU has a lot of duplicated PMUs for different subsystems. When expanding an uncore alias we usually end up with a large number of identically named aliases, which makes perf stat output difficult to read. Automatically sum them up in perf stat, unless --no-merge is s

[PATCH 05/10] perf, tools: Support event aliases for non cpu// pmus

2016-11-18 Thread Andi Kleen
From: Andi Kleen The code for handling pmu aliases without specifying the PMU hardcoded only supported the cpu PMU. This patch extends it to work for all PMUs. We always duplicate the event for all PMUs that have an matching alias. This allows to automatically expand an alias for all instances o

[PATCH 04/10] perf, tools: Support per pmu json aliases

2016-11-18 Thread Andi Kleen
From: Andi Kleen Add support for registering json aliases per PMU. Any alias with an unit matching the prefix is registered to the PMU. Uncore has multiple instances of most units, so all these aliases get registered for each individual PMU (this is important later to run the event on every insta

[PATCH 06/10] perf, tools: Add debug support for outputing alias string

2016-11-18 Thread Andi Kleen
From: Andi Kleen For debugging and testing it is useful to see the converted alias string. Add support to perf stat/record and perf list to print the alias conversion. The text string is saved in the alias structure. For perf stat/record it is folded into the normal -v. For perf list -v was taken

[PATCH 08/10] perf, tools: Expand PMU events by prefix match

2016-11-18 Thread Andi Kleen
From: Andi Kleen When the user specifies a pmu directly, expand it automatically with a prefix match, similar as we do for the normal aliases now. This allows to specify attributes for duplicated boxes quickly. For example uncore_cbox_{0,6}/.../ can be now specified as cbox/.../ and it gets auto

[PATCH 01/10] perf, tools: Factor out scale conversion code

2016-11-18 Thread Andi Kleen
From: Andi Kleen Move the scale factor parsing code to an own function to reuse it in an upcoming patch. v2: Return error in case strdup returns NULL. Signed-off-by: Andi Kleen squash! perf, tools: Factor out scale conversion code --- tools/perf/util/pmu.c | 70 ++-

Re: Long delays creating a netns after deleting one (possibly RCU related)

2016-11-18 Thread Jarno Rajahalme
> On Nov 14, 2016, at 3:09 PM, Eric Dumazet wrote: > > On Mon, 2016-11-14 at 14:46 -0800, Eric Dumazet wrote: >> On Mon, 2016-11-14 at 16:12 -0600, Eric W. Biederman wrote: >> >>> synchronize_rcu_expidited is not enough if you have multiple network >>> devices in play. >>> >>> Looking at the c

[PATCH 03/10] perf, tools: Add support for parsing uncore json files

2016-11-18 Thread Andi Kleen
From: Andi Kleen Handle the Unit field, which is needed to find the right PMU for an event. We call it "pmu" and convert it to the perf pmu name with an uncore prefix. Handle the ExtSel field, which just extends the event mask with an additional bit. Handle the Filter field which adds parameter

[PATCH 02/10] perf, tools: Parse eventcode as number in jevents

2016-11-18 Thread Andi Kleen
From: Andi Kleen The next patch needs to modify event code. Previously eventcode was just passed through as a string. Now parse it as a number. Signed-off-by: Andi Kleen --- tools/perf/pmu-events/jevents.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools/

Re: linux-next: manual merge of the sound tree with the jc_docs tree

2016-11-18 Thread Jonathan Corbet
On Fri, 18 Nov 2016 16:22:18 -0800 Jarkko Sakkinen wrote: > Given that there is now a directory for TPM rst documentation do you > still want all changes to your tree or is it sufficient to just cc > linux-doc? For stuff in security/tpm? It makes my life easier if documentation patches come thr

Re: Long delays creating a netns after deleting one (possibly RCU related)

2016-11-18 Thread Eric Dumazet
On Fri, 2016-11-18 at 16:38 -0800, Jarno Rajahalme wrote: > This fixes the problem for me, so for whatever it’s worth: > > Tested-by: Jarno Rajahalme > Thanks for testing ! https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=e88a2766143a27bfe6704b4493b214de4094cf29

Re: [HMM v13 00/18] HMM (Heterogeneous Memory Management) v13

2016-11-18 Thread John Hubbard
On Fri, 18 Nov 2016, Jérôme Glisse wrote: > Cliff note: HMM offers 2 things (each standing on its own). First > it allows to use device memory transparently inside any process > without any modifications to process program code. Second it allows > to mirror process address space on a device. > >

[PATCH v2] of: Fix issue where code would fall through to error case.

2016-11-18 Thread Moritz Fischer
No longer fall through into the error case that prints out an error if no error (err = 0) occurred. Fixes d9181b20a83(of: Add back an error message, restructured) Signed-off-by: Moritz Fischer Reviewed-by: Frank Rowand --- Hi Rob, this is Frank's suggestion. I don't have a strong preference one

Re: [RFC PATCH] SRCU: More efficient reader counts.

2016-11-18 Thread Lance Roy
On Fri, 18 Nov 2016 15:13:45 -0800 "Paul E. McKenney" wrote: > On Fri, Nov 18, 2016 at 12:33:00PM -0800, Lance Roy wrote: > > The trouble is that disabling preemption is not enough to ensure that there > > is at most one srcu_read_lock() call per CPU that missed the srcu_flip(). > > > > Define

[PATCH] mfd: cpcap: Add minimal support

2016-11-18 Thread Tony Lindgren
Many Motorola phones like droid 4 are using a custom PMIC called CPCAP or 6556002. We can support it's core features quite easily with regmap_spi and regmap_irq. The children of cpcap, such as regulators, ADC and USB, can be just regular device drivers and defined in the dts file. They get probed

Re: [PATCH] ARM: qcom_defconfig: Enable RPM/RPM-SMD clocks

2016-11-18 Thread Olof Johansson
On Thu, Nov 17, 2016 at 05:20:26PM +0200, Georgi Djakov wrote: > Enable support for clocks, controlled by the RPM processor on > Qualcomm platforms. > > Signed-off-by: Georgi Djakov Hi, Please send patches like these to the platform maintainer (i.e. Andy Gross), and leave a...@kernel.org off of

Re: [PATCH] arm64: dts: qcom: msm8996: Fixup smp2p node

2016-11-18 Thread Sarangdhar Joshi
On 11/18/2016 12:06 PM, Bjorn Andersson wrote: The SMEM state property name changes between the integration branch and mainline, update to use the correct one. Fixes: 2f45d9fcd531 ("arm64: dts: msm8996: Add SMP2P and APCS nodes") Signed-off-by: Bjorn Andersson Thanks for the change and sorry

Re: [PATCH] infiniband: remove WARN that is not kernel bug

2016-11-18 Thread Valdis . Kletnieks
On Fri, 18 Nov 2016 12:24:37 +0100, Dmitry Vyukov said: > WARNINGs mean kernel bugs. > The one in ucma_write() points to user programming error > or a malicious attempt. This is not a kernel bug, remove it. > - if (WARN_ON_ONCE(!ib_safe_file_access(filp))) > + if (!ib_safe_file_access(filp

<    3   4   5   6   7   8   9   >