Re: [REPOST PATCH 4/8] android: convert sync to fence api, v5

2014-06-18 Thread Daniel Vetter
On Wed, Jun 18, 2014 at 06:15:56PM -0700, Greg KH wrote: > On Wed, Jun 18, 2014 at 12:37:11PM +0200, Maarten Lankhorst wrote: > > Just to show it's easy. > > > > Android syncpoints can be mapped to a timeline. This removes the need > > to maintain a separate api for synchronization. I've left the

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Sumit Semwal
On 19 June 2014 10:24, Greg KH wrote: > On Thu, Jun 19, 2014 at 09:57:35AM +0530, Sumit Semwal wrote: >> Hi Greg, >> >> >> >> >> Who is going to sign up to maintain this code? (hint, it's not me...) >> > >> > that would be Sumit (dma-buf tree).. >> > >> > probably we should move fence/reservatio

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Greg KH
On Thu, Jun 19, 2014 at 09:57:35AM +0530, Sumit Semwal wrote: > Hi Greg, > > On 19 June 2014 06:55, Rob Clark wrote: > > On Wed, Jun 18, 2014 at 9:16 PM, Greg KH wrote: > >> On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: > >>> A fence can be attached to a buffer which is bein

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Sumit Semwal
Hi Greg, On 19 June 2014 06:55, Rob Clark wrote: > On Wed, Jun 18, 2014 at 9:16 PM, Greg KH wrote: >> On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: >>> A fence can be attached to a buffer which is being filled or consumed >>> by hw, to allow userspace to pass the buffer with

cron job: media_tree daily build: OK

2014-06-18 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Thu Jun 19 04:00:18 CEST 2014 git branch: test git hash: 2ac6f6305efef8c10994be48b20723cc70654189 gcc versi

Re: [PATCH 1/1] media: dib9000: avoid out of bound access

2014-06-18 Thread Kees Cook
On Wed, Jun 18, 2014 at 6:41 PM, Heinrich Schuchardt wrote: > On 19.06.2014 01:50, Kees Cook wrote: >> >> On Wed, Jun 18, 2014 at 3:02 PM, Heinrich Schuchardt >> wrote: >>> >>> The current test to avoid out of bound access to mb[] is insufficient. >>> For len = 19 non-existent mb[10] will be acce

Re: [PATCH 1/1] media: dib9000: avoid out of bound access

2014-06-18 Thread Heinrich Schuchardt
On 19.06.2014 01:50, Kees Cook wrote: On Wed, Jun 18, 2014 at 3:02 PM, Heinrich Schuchardt wrote: The current test to avoid out of bound access to mb[] is insufficient. For len = 19 non-existent mb[10] will be accessed. A check in the for loop is insufficient to avoid out of bound access in di

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 09:23:06PM -0400, Rob Clark wrote: > On Wed, Jun 18, 2014 at 9:13 PM, Greg KH wrote: > > On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: > >> +#define CREATE_TRACE_POINTS > >> +#include > >> + > >> +EXPORT_TRACEPOINT_SYMBOL(fence_annotate_wait_on); > >>

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Rob Clark
On Wed, Jun 18, 2014 at 9:16 PM, Greg KH wrote: > On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: >> A fence can be attached to a buffer which is being filled or consumed >> by hw, to allow userspace to pass the buffer without waiting to another >> device. For example, userspac

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Rob Clark
On Wed, Jun 18, 2014 at 9:13 PM, Greg KH wrote: > On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: >> +#define CREATE_TRACE_POINTS >> +#include >> + >> +EXPORT_TRACEPOINT_SYMBOL(fence_annotate_wait_on); >> +EXPORT_TRACEPOINT_SYMBOL(fence_emit); > > Are you really willing to live

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: > A fence can be attached to a buffer which is being filled or consumed > by hw, to allow userspace to pass the buffer without waiting to another > device. For example, userspace can call page_flip ioctl to display the > next frame

Re: [REPOST PATCH 4/8] android: convert sync to fence api, v5

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 12:37:11PM +0200, Maarten Lankhorst wrote: > Just to show it's easy. > > Android syncpoints can be mapped to a timeline. This removes the need > to maintain a separate api for synchronization. I've left the android > trace events in place, but the core fence events should a

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: > + * This program is distributed in the hope that it will be useful, but > WITHOUT > + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or > + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Lic

Re: [REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Greg KH
On Wed, Jun 18, 2014 at 12:36:54PM +0200, Maarten Lankhorst wrote: > +#define CREATE_TRACE_POINTS > +#include > + > +EXPORT_TRACEPOINT_SYMBOL(fence_annotate_wait_on); > +EXPORT_TRACEPOINT_SYMBOL(fence_emit); Are you really willing to live with these as tracepoints for forever? What is the use of

Re: [PATCH 1/1] media: dib9000: avoid out of bound access

2014-06-18 Thread Kees Cook
On Wed, Jun 18, 2014 at 3:02 PM, Heinrich Schuchardt wrote: > The current test to avoid out of bound access to mb[] is insufficient. > For len = 19 non-existent mb[10] will be accessed. > > A check in the for loop is insufficient to avoid out of bound access in > dib9000_mbx_send_attr. > > Signed-

[PATCH 1/1] [media] v4l: omap4iss: configuration using uninitialized variable

2014-06-18 Thread Heinrich Schuchardt
Variable reg is not initialized. Random values are written to OMAP4 ISS registers if !ctx->eof_enabled. Signed-off-by: Heinrich Schuchardt --- drivers/staging/media/omap4iss/iss_csi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/omap4iss/iss_csi2.c

[PATCH 1/1] media: dib9000: avoid out of bound access

2014-06-18 Thread Heinrich Schuchardt
The current test to avoid out of bound access to mb[] is insufficient. For len = 19 non-existent mb[10] will be accessed. A check in the for loop is insufficient to avoid out of bound access in dib9000_mbx_send_attr. Signed-off-by: Heinrich Schuchardt --- drivers/media/dvb-frontends/dib9000.c |

[PATCH 1/1] media: saa7134: remove if based on uninitialized variable

2014-06-18 Thread Heinrich Schuchardt
Variable b is not initialized. Only with a small chance it has random value 0xFF. Remove if statement based on this value. Signed-off-by: Heinrich Schuchardt --- drivers/media/pci/saa7134/saa7134-input.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media/pci/saa7134/saa7134-inp

Contact me for more details.

2014-06-18 Thread MARTIN DESMOND
Hi friend. I want to transfer USD5.5Million into your account Contact me for more details. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Documentation: Fix DocBook build with relative $(srctree)

2014-06-18 Thread Randy Dunlap
On 06/18/14 08:27, Michal Marek wrote: > After commits 890676c6 (kbuild: Use relative path when building in the source > tree) and 9da0763b (kbuild: Use relative path when building in a subdir > of the source tree), the $(srctree) variable can be a relative path. > This breaks Documentation/DocBook

[PATCH] Documentation: Fix DocBook build with relative $(srctree)

2014-06-18 Thread Michal Marek
After commits 890676c6 (kbuild: Use relative path when building in the source tree) and 9da0763b (kbuild: Use relative path when building in a subdir of the source tree), the $(srctree) variable can be a relative path. This breaks Documentation/DocBook/media/Makefile, because it tries to create sym

Re: [PATCH RESEND] libv4lconvert: Fix a regression when converting from Y10B

2014-06-18 Thread Antonio Ospite
On Wed, 18 Jun 2014 15:59:13 +0200 Hans de Goede wrote: > Hi, > > On 06/18/2014 03:23 PM, Antonio Ospite wrote: > > On Wed, 18 Jun 2014 13:46:10 +0200 > > Hans de Goede wrote: > > > >> Hi, > >> > >> On 06/18/2014 01:43 PM, Hans de Goede wrote: > >>> Hi, > >>> > >>> On 06/16/2014 05:00 PM, Anto

Re: [PATCH RESEND] libv4lconvert: Fix a regression when converting from Y10B

2014-06-18 Thread Hans de Goede
Hi, On 06/18/2014 03:23 PM, Antonio Ospite wrote: > On Wed, 18 Jun 2014 13:46:10 +0200 > Hans de Goede wrote: > >> Hi, >> >> On 06/18/2014 01:43 PM, Hans de Goede wrote: >>> Hi, >>> >>> On 06/16/2014 05:00 PM, Antonio Ospite wrote: Fix a regression introduced in commit efc29f1764a30808

Re: [PATCH RESEND] libv4lconvert: Fix a regression when converting from Y10B

2014-06-18 Thread Antonio Ospite
On Wed, 18 Jun 2014 13:46:10 +0200 Hans de Goede wrote: > Hi, > > On 06/18/2014 01:43 PM, Hans de Goede wrote: > > Hi, > > > > On 06/16/2014 05:00 PM, Antonio Ospite wrote: > >> Fix a regression introduced in commit > >> efc29f1764a30808ebf7b3e1d9bfa27b909bf641 (libv4lconvert: Reject too > >> s

Re: [PATCH] Add patch to allow compilation on versions < 3.5 with CONFIG_OF

2014-06-18 Thread Devin Heitmueller
> Doesn't this produce compiler warnings since the static v4l2_of_parse_* > functions are now never called? Those functions are inside the "#if 0", so the compiler never sees them. > I would patch v4l2-core/Makefile instead to just never compile v4l2-of.o. Because the final Makefile is generated

We offer all purpose loan at 3% interest rate

2014-06-18 Thread Santander Group
We offer all purpose loan at 3% interest rate. Contact Us for more details by Email:santanderfinancegr...@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordo

Re: [PATCH RESEND] libv4lconvert: Fix a regression when converting from Y10B

2014-06-18 Thread Hans de Goede
Hi, On 06/18/2014 01:43 PM, Hans de Goede wrote: > Hi, > > On 06/16/2014 05:00 PM, Antonio Ospite wrote: >> Fix a regression introduced in commit >> efc29f1764a30808ebf7b3e1d9bfa27b909bf641 (libv4lconvert: Reject too >> short source buffer before accessing it). >> >> The old code: >> >> case V4L2

Re: [PATCH RESEND] libv4lconvert: Fix a regression when converting from Y10B

2014-06-18 Thread Hans de Goede
Hi, On 06/16/2014 05:00 PM, Antonio Ospite wrote: > Fix a regression introduced in commit > efc29f1764a30808ebf7b3e1d9bfa27b909bf641 (libv4lconvert: Reject too > short source buffer before accessing it). > > The old code: > > case V4L2_PIX_FMT_Y10BPACK: > ... > if (result == 0 && src

[REPOST PATCH 8/8] reservation: add suppport for read-only access using rcu

2014-06-18 Thread Maarten Lankhorst
This adds 4 more functions to deal with rcu. reservation_object_get_fences_rcu() will obtain the list of shared and exclusive fences without obtaining the ww_mutex. reservation_object_wait_timeout_rcu() will wait on all fences of the reservation_object, without obtaining the ww_mutex. reservatio

[REPOST PATCH 1/8] fence: dma-buf cross-device synchronization (v17)

2014-06-18 Thread Maarten Lankhorst
A fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU is still rendering. T

[REPOST PATCH 3/8] dma-buf: use reservation objects

2014-06-18 Thread Maarten Lankhorst
This allows reservation objects to be used in dma-buf. it's required for implementing polling support on the fences that belong to a dma-buf. Signed-off-by: Maarten Lankhorst Acked-by: Mauro Carvalho Chehab #drivers/media/v4l2-core/ Acked-by: Thomas Hellstrom #drivers/gpu/drm/ttm Signed-off-by:

[REPOST PATCH 7/8] reservation: update api and add some helpers

2014-06-18 Thread Maarten Lankhorst
Move the list of shared fences to a struct, and return it in reservation_object_get_list(). Add reservation_object_get_excl to get the exclusive fence. Add reservation_object_reserve_shared(), which reserves space in the reservation_object for 1 more shared fence. reservation_object_add_shared_fe

[REPOST PATCH 0/8] fence synchronization patches

2014-06-18 Thread Maarten Lankhorst
The following series implements fence and converts dma-buf and android sync to use it. Patch 5 and 6 add support for polling to dma-buf, blocking until all fences are signaled. Patch 7 and 8 provide some helpers, and allow use of RCU in the reservation api. The helpers make it easier to convert ttm

[REPOST PATCH 6/8] dma-buf: add poll support, v3

2014-06-18 Thread Maarten Lankhorst
Thanks to Fengguang Wu for spotting a missing static cast. v2: - Kill unused variable need_shared. v3: - Clarify the BUG() in dma_buf_release some more. (Rob Clark) Signed-off-by: Maarten Lankhorst --- drivers/base/dma-buf.c | 108 +++ include/linux

[REPOST PATCH 4/8] android: convert sync to fence api, v5

2014-06-18 Thread Maarten Lankhorst
Just to show it's easy. Android syncpoints can be mapped to a timeline. This removes the need to maintain a separate api for synchronization. I've left the android trace events in place, but the core fence events should already be sufficient for debugging. v2: - Call fence_remove_callback in sync

[REPOST PATCH 5/8] reservation: add support for fences to enable cross-device synchronisation

2014-06-18 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst Reviewed-by: Rob Clark --- include/linux/reservation.h | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/include/linux/reservation.h b/include/linux/reservation.h index 813dae960ebd..f3f57460a205 100644 --- a/include/linux

[REPOST PATCH 2/8] seqno-fence: Hardware dma-buf implementation of fencing (v5)

2014-06-18 Thread Maarten Lankhorst
This type of fence can be used with hardware synchronization for simple hardware that can block execution until the condition (dma_buf[offset] - value) >= 0 has been met when WAIT_GEQUAL is used, or (dma_buf[offset] != 0) has been met when WAIT_NONZERO is set. A software fallback still has to be p

cron job: media_tree daily build: OK

2014-06-18 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Wed Jun 18 10:38:55 CEST 2014 git branch: test git hash: 2ac6f6305efef8c10994be48b20723cc70654189 gcc versi

Re: [alsa-devel] [PATCH 1/3] sound: Add a quirk to enforce period_bytes

2014-06-18 Thread Clemens Ladisch
Mauro Carvalho Chehab wrote: > Both xawtv and tvtime use the same code for audio: > http://git.linuxtv.org/cgit.cgi/xawtv3.git/tree/common/alsa_stream.c > > There's an algorithm there that gets the period size form both the > capture and the playback cards, trying to find a minimum period tha

Re: [alsa-devel] [PATCH 1/3] sound: Add a quirk to enforce period_bytes

2014-06-18 Thread Clemens Ladisch
Mauro Carvalho Chehab wrote: > Let's see the au0828 case: > 48 kHz, 2 bytes/sample, 2 channels, 256 maxpacksize, 1 ms URB > interval (bInterval = 1). > > In this case, there is 192 bytes per 1ms period. The device's clock and the bus clock are not synchronized, so there will be _approximatel

Re: [PATCH 2/9] ARM: lager: add i2c1, i2c2 pins

2014-06-18 Thread Simon Horman
On Wed, Jun 18, 2014 at 08:27:37AM +0100, Ben Dooks wrote: > On 16/06/14 13:33, Sergei Shtylyov wrote: > > Hello. > > > > On 06/15/2014 11:56 PM, Ben Dooks wrote: > > > >> Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board > >> to ensure these are setup correctly at initialisatio

Re: [PATCH 2/9] ARM: lager: add i2c1, i2c2 pins

2014-06-18 Thread Ben Dooks
On 16/06/14 13:33, Sergei Shtylyov wrote: > Hello. > > On 06/15/2014 11:56 PM, Ben Dooks wrote: > >> Add pinctrl definitions for i2c1 and i2c2 busses on the Lager board >> to ensure these are setup correctly at initialisation time. The i2c0 >> and i2c3 busses are connected to single function pins