Re: [PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Ville Syrjälä
On Fri, Apr 06, 2012 at 03:05:36PM +0900, Inki Dae wrote: > Hi Ville, > > > -Original Message- > > From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] > > Sent: Friday, April 06, 2012 3:14 AM > > To: airl...@redhat.com > > Cc: inki@samsung.com; kyungmin.p...@samsung.com; dri- >

Re: [PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Kyungmin Park
+ V4L2 develper Sylwester, please give your opinions? How to handle it at v4l2 side. Thank you, Kyungmin Park On Apr 6, 2012 12:44 AM, "Ville Syrjälä" wrote: > On Fri, Apr 06, 2012 at 03:05:36PM +0900, Inki Dae wrote: > > Hi Ville, > > > > > -Original Message- > > > From: Ville Syrjälä [

RE: Linux 3.4-rc1

2012-04-06 Thread Marek Szyprowski
Hi, On Wednesday, April 04, 2012 2:34 PM Anca Emanuel > @Subash Patel, prime is already included. > > Why the CMA is at 24 version and still not included ? > Linus, please include > CMA,git://git.linaro.org/people/mszyprowski/linux-dma-mapping.git > 3.4-rc1-cma-v24 CMA is expected to be merged

Re: [PATCH 02/11] Documentation: media: description of DMABUF importing in V4L2

2012-04-06 Thread Rémi Denis-Courmont
Le jeudi 5 avril 2012 16:59:59 Tomasz Stanislawski, vous avez écrit : > This patch adds description and usage examples for importing > DMABUF file descriptor in V4L2. > > Signed-off-by: Tomasz Stanislawski > Signed-off-by: Kyungmin Park > --- > Documentation/DocBook/media/v4l/compat.xml

Re: [PATCH 03/11] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-06 Thread Rémi Denis-Courmont
Le jeudi 5 avril 2012 17:00:00 Tomasz Stanislawski, vous avez écrit : > From: Sumit Semwal > > This patch adds support for DMABUF memory type in videobuf2. It calls > relevant APIs of dma_buf for v4l reqbuf / qbuf / dqbuf operations. > > For this version, the support is for videobuf2 as a user o

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36769 --- Comment #7 from Chris Rankin 2012-04-06 03:55:36 PDT --- (In reply to comment #6) > Possibly a duplicate of bug 46796. Or vice versa? > Can you try the patch there or a 3.4 kernel snapshot? I believe that this patch has now been added to bo

[Bug 48304] text in fbterm is garbled

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48304 Michel Dänzer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36769 --- Comment #8 from Michel Dänzer 2012-04-06 04:06:42 PDT --- If your card has more than 128M of VRAM (that's just one reason why Xorg.0.log and dmesg should be attached to every bug report...), let's mark this as a duplicate of bug 46796, which

[Bug 48305] llpp gets segfault in r600g_dri.so

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48305 --- Comment #8 from Michel Dänzer 2012-04-06 04:11:52 PDT --- Smells more like a compiler bug then. Which version of gcc is this? Does it also happen with an older one? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36769 --- Comment #9 from Chris Rankin 2012-04-06 05:10:05 PDT --- (In reply to comment #8) > If your card has more than 128M of VRAM... 256 MB, to be exact: radeon :01:00.0: putting AGP V3 device into 8x mode radeon :01:00.0: GTT: 256M 0xC0

Re: [PATCH 02/11] Documentation: media: description of DMABUF importing in V4L2

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, Thanks for the patch. On Thursday 05 April 2012 15:59:59 Tomasz Stanislawski wrote: > This patch adds description and usage examples for importing > DMABUF file descriptor in V4L2. [snip] > diff --git a/Documentation/DocBook/media/v4l/io.xml > b/Documentation/DocBook/media/v4l/io.xml

[Bug 48382] New: weird rendering distortions on R200M

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48382 Bug #: 48382 Summary: weird rendering distortions on R200M Classification: Unclassified Product: DRI Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All)

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
A large args->buffer_count from userspace may overflow the allocation size, leading to out-of-bounds access. Use kmalloc_array() to avoid that. Signed-off-by: Xi Wang --- drivers/gpu/drm/i915/i915_gem_execbuffer.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 2/2] drm/i915: fix integer overflow in i915_gem_do_execbuffer()

2012-04-06 Thread Xi Wang
A large args->num_cliprects from userspace may overflow the allocation size, leading to out-of-bounds access. | i915_gem_do_execbuffer() | i915_gem_execbuffer() Use kmalloc_array() to avoid that. Signed-off-by: Xi Wang --- drivers/gpu/drm/i915/i915_gem_execbuffer.c |4 ++-- 1 files changed

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36769 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 46796] [X800SE] Mouse cursor corruption when switching users

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46796 Alex Deucher changed: What|Removed |Added CC||ranki...@googlemail.com --- Comment #16 f

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48382 Alex Deucher changed: What|Removed |Added Product|DRI |Mesa Version|unspecified

Re: [PATCH 03/11] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:00 Tomasz Stanislawski wrote: > From: Sumit Semwal > > This patch adds support for DMABUF memory type in videobuf2. It calls > relevant APIs of dma_buf for v4l reqbuf / qbuf / dqbuf operations. > > For this version, the support is for videobuf2 as a us

Re: [PATCH 09/11] v4l: vb2: add prepare/finish callbacks to allocators

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:06 Tomasz Stanislawski wrote: > From: Marek Szyprowski > > This patch adds support for prepare/finish callbacks in VB2 allocators. > These callback are used for buffer flushing. > > Signed-off-by: Marek Szyprowski > --- > drivers/media/video/videobuf

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: > A large args->buffer_count from userspace may overflow the allocation > size, leading to out-of-bounds access. > > Use kmalloc_array() to avoid that. I can safely say that exec list larger than 4GiB is going to be an illegal operation and woul

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: > On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: >> A large args->buffer_count from userspace may overflow the allocation >> size, leading to out-of-bounds access. >> >> Use kmalloc_array() to avoid that. > > I can safely say that exec list la

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 09:46:46 -0400, Xi Wang wrote: > On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: > > > On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: > >> A large args->buffer_count from userspace may overflow the allocation > >> size, leading to out-of-bounds access. > >> > >> Use kmall

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 9:54 AM, Chris Wilson wrote: > On Fri, 6 Apr 2012 09:46:46 -0400, Xi Wang wrote: >> On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: >> >>> On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: A large args->buffer_count from userspace may overflow the allocation size,

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #2 from Ned Anderson 2012-04-06 07:38:02 PDT --- Created attachment 59587 --> https://bugs.freedesktop.org/attachment.cgi?id=59587 xorg log Xorg Log -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email -

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #3 from Ned Anderson 2012-04-06 07:38:37 PDT --- Created attachment 59588 --> https://bugs.freedesktop.org/attachment.cgi?id=59588 Dmesg -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are re

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #4 from Ned Anderson 2012-04-06 07:39:16 PDT --- Created attachment 59589 --> https://bugs.freedesktop.org/attachment.cgi?id=59589 glxinfo output -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- Y

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 10:01:36 -0400, Xi Wang wrote: > On Apr 6, 2012, at 9:54 AM, Chris Wilson wrote: > > > On Fri, 6 Apr 2012 09:46:46 -0400, Xi Wang wrote: > >> On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: > >> > >>> On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: > A large args->bu

Re: [PATCH 08/11] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:05 Tomasz Stanislawski wrote: > From: Andrzej Pietrasiewicz > > This patch introduces usage of dma_map_sg to map memory behind > a userspace pointer to a device as dma-contiguous mapping. > > Signed-off-by: Andrzej Pietrasiewicz > Signed-off-by: Marek

Re: [PATCH 11/11] v4l: vb2: Add dma-contig allocator as dma_buf user

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:08 Tomasz Stanislawski wrote: > From: Sumit Semwal > > This patch makes changes for adding dma-contig as a dma_buf user. It > provides function implementations for the {attach, detach, map, > unmap}_dmabuf() mem_ops of DMABUF memory type. > > Signed-of

Re: [PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Sylwester Nawrocki
Hello, On 04/06/2012 11:22 AM, Kyungmin Park wrote: > + V4L2 develper > Sylwester, please give your opinions? How to handle it at v4l2 side. > > Thank you, > Kyungmin Park > > On Apr 6, 2012 12:44 AM, "Ville Syrjälä" > wrote: > > On Fri, Apr 06, 2012 at 03:05:36PM +0

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #5 from Ned Anderson 2012-04-06 09:09:54 PDT --- Also fyi, i noticed that the same thing occurs in a different game(BZFlag) when i turn on shadows... -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ---

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 10:44 AM, Chris Wilson wrote: > That I agreed with, I just disagree with how you chose to handle it. > Rather than continue on and attempt to vmalloc a large array we should > just fail the ioctl with EINVAL. Why an attempt to vmalloc? The overflow check in drm_malloc_ab() wil

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 14:17:41 -0400, Xi Wang wrote: > On Apr 6, 2012, at 10:44 AM, Chris Wilson wrote: > > > That I agreed with, I just disagree with how you chose to handle it. > > Rather than continue on and attempt to vmalloc a large array we should > > just fail the ioctl with EINVAL. > > Why

Re: [PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 3:40 PM, Chris Wilson wrote: > On Fri, 6 Apr 2012 14:17:41 -0400, Xi Wang wrote: >> >> Why an attempt to vmalloc? The overflow check in drm_malloc_ab() >> will simply return NULL and fail the ioctl with -ENOMEM. > > It's an invalid value for the ioctl and should be treated as

Re: i915_driver_irq_handler: irq 42: nobody cared [generic IRQ handling broken?]

2012-04-06 Thread Jiri Slaby
On 03/30/2012 02:24 PM, Chris Wilson wrote: > On Fri, 30 Mar 2012 14:11:47 +0200, Jiri Slaby wrote: >> On 03/30/2012 12:45 PM, Chris Wilson wrote: >>> On Fri, 30 Mar 2012 11:59:28 +0200, Jiri Slaby wrote: I don't know what to dump more, because iir is obviously zero too. What other sour

[PATCH] drm/savage: fix integer overflows in savage_bci_cmdbuf()

2012-04-06 Thread Xi Wang
Since cmdbuf->size and cmdbuf->nbox are from userspace, a large value would overflow the allocation size, leading to out-of-bounds access. Signed-off-by: Xi Wang --- drivers/gpu/drm/savage/savage_state.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/dr

[Bug 27314] displayport link training fails on certain panels (channel equalization fails)

2012-04-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27314 --- Comment #67 from Rafael Ávila de Espíndola 2012-04-06 17:22:46 PDT --- Created attachment 59612 --> https://bugs.freedesktop.org/attachment.cgi?id=59612 dmesg with bios booting and kernel 3.3.0 Results are similar to 3.2 :-( This is an im

Re: [PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread daeinki
나의 iPad에서 보냄 2012. 4. 6. 오후 4:43 Ville Syrjälä 작성: > On Fri, Apr 06, 2012 at 03:05:36PM +0900, Inki Dae wrote: >> Hi Ville, >> >>> -Original Message- >>> From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] >>> Sent: Friday, April 06, 2012 3:14 AM >>> To: airl...@redhat.com >>>

drm: Branch 'master' - 5 commits

2012-04-06 Thread Ville Syrjälä
On Tue, Apr 03, 2012 at 02:50:01PM -0700, Rob Clark wrote: > + /* just testing a limited # of formats to test single > + * and multi-planar path.. would be nice to add more.. > + */ > + if (!strcmp(p->format_str, "YUYV")) { > + p

[Bug 48305] llpp gets segfault in r600g_dri.so

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48305 --- Comment #7 from myxol 2012-04-05 17:49:05 PDT --- > Maybe you can try isolating which specific option implied by -O3 but not by > -O2 makes the difference. I tried. It is -ftree-vectorize -- Configure bugmail: https://bugs.freedesktop.org/

[PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Inki Dae
Hi Ville, > -Original Message- > From: Ville Syrj?l? [mailto:ville.syrjala at linux.intel.com] > Sent: Friday, April 06, 2012 3:14 AM > To: airlied at redhat.com > Cc: inki.dae at samsung.com; kyungmin.park at samsung.com; dri- > devel at lists.freedesktop.org; Seung-Woo Kim > Subject: Re:

[PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Ville Syrjälä
On Fri, Apr 06, 2012 at 03:05:36PM +0900, Inki Dae wrote: > Hi Ville, > > > -Original Message- > > From: Ville Syrj?l? [mailto:ville.syrjala at linux.intel.com] > > Sent: Friday, April 06, 2012 3:14 AM > > To: airlied at redhat.com > > Cc: inki.dae at samsung.com; kyungmin.park at samsung.

[PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Kyungmin Park
e format_check() was never > > > updated to accept them, so there's no way anyone could actually be > using > > > them. So Dave, can we still remove them from the kernel header? > > > > > > > Yes, right. these formats aren't used for any SoCs except Exynos series > yet > > but just we are first. I think they should be added because anyone may > use > > them someday at least possible. > > Since DRM_FORMAT_NV12M is _identical_ to DRM_FORMAT_NV12, I see no point > in adding it (similarly for YUV420M vs. YUV420). > > -- > Ville Syrj?l? > syrjala at sci.fi > http://www.sci.fi/~syrjala/ > ___ > dri-devel mailing list > dri-devel at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120406/efd63853/attachment.htm>

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36769 --- Comment #7 from Chris Rankin 2012-04-06 03:55:36 PDT --- (In reply to comment #6) > Possibly a duplicate of bug 46796. Or vice versa? > Can you try the patch there or a 3.4 kernel snapshot? I believe that this patch has now been added to bo

[Bug 48304] text in fbterm is garbled

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48304 Michel D?nzer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36769 --- Comment #8 from Michel D?nzer 2012-04-06 04:06:42 PDT --- If your card has more than 128M of VRAM (that's just one reason why Xorg.0.log and dmesg should be attached to every bug report...), let's mark this as a duplicate of bug 46796, which

[Bug 48305] llpp gets segfault in r600g_dri.so

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48305 --- Comment #8 from Michel D?nzer 2012-04-06 04:11:52 PDT --- Smells more like a compiler bug then. Which version of gcc is this? Does it also happen with an older one? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36769 --- Comment #9 from Chris Rankin 2012-04-06 05:10:05 PDT --- (In reply to comment #8) > If your card has more than 128M of VRAM... 256 MB, to be exact: radeon :01:00.0: putting AGP V3 device into 8x mode radeon :01:00.0: GTT: 256M 0xC0

[PATCH 02/11] Documentation: media: description of DMABUF importing in V4L2

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, Thanks for the patch. On Thursday 05 April 2012 15:59:59 Tomasz Stanislawski wrote: > This patch adds description and usage examples for importing > DMABUF file descriptor in V4L2. [snip] > diff --git a/Documentation/DocBook/media/v4l/io.xml > b/Documentation/DocBook/media/v4l/io.xml

[Bug 48382] New: weird rendering distortions on R200M

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48382 Bug #: 48382 Summary: weird rendering distortions on R200M Classification: Unclassified Product: DRI Version: unspecified Platform: x86-64 (AMD64) OS/Version: Linux (All)

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
A large args->buffer_count from userspace may overflow the allocation size, leading to out-of-bounds access. Use kmalloc_array() to avoid that. Signed-off-by: Xi Wang --- drivers/gpu/drm/i915/i915_gem_execbuffer.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 2/2] drm/i915: fix integer overflow in i915_gem_do_execbuffer()

2012-04-06 Thread Xi Wang
A large args->num_cliprects from userspace may overflow the allocation size, leading to out-of-bounds access. | i915_gem_do_execbuffer() | i915_gem_execbuffer() Use kmalloc_array() to avoid that. Signed-off-by: Xi Wang --- drivers/gpu/drm/i915/i915_gem_execbuffer.c |4 ++-- 1 files changed

[Bug 36769] Sporadic corruption of hardware cursor.

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36769 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 46796] [X800SE] Mouse cursor corruption when switching users

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46796 Alex Deucher changed: What|Removed |Added CC||rankincj at googlemail.com --- Comment #1

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48382 Alex Deucher changed: What|Removed |Added Product|DRI |Mesa Version|unspecified

[PATCH 03/11] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:00 Tomasz Stanislawski wrote: > From: Sumit Semwal > > This patch adds support for DMABUF memory type in videobuf2. It calls > relevant APIs of dma_buf for v4l reqbuf / qbuf / dqbuf operations. > > For this version, the support is for videobuf2 as a us

[PATCH 09/11] v4l: vb2: add prepare/finish callbacks to allocators

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:06 Tomasz Stanislawski wrote: > From: Marek Szyprowski > > This patch adds support for prepare/finish callbacks in VB2 allocators. > These callback are used for buffer flushing. > > Signed-off-by: Marek Szyprowski > --- > drivers/media/video/videobuf

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: > A large args->buffer_count from userspace may overflow the allocation > size, leading to out-of-bounds access. > > Use kmalloc_array() to avoid that. I can safely say that exec list larger than 4GiB is going to be an illegal operation and woul

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: > On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: >> A large args->buffer_count from userspace may overflow the allocation >> size, leading to out-of-bounds access. >> >> Use kmalloc_array() to avoid that. > > I can safely say that exec list la

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 09:46:46 -0400, Xi Wang wrote: > On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: > > > On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: > >> A large args->buffer_count from userspace may overflow the allocation > >> size, leading to out-of-bounds access. > >> > >> Use kmall

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 9:54 AM, Chris Wilson wrote: > On Fri, 6 Apr 2012 09:46:46 -0400, Xi Wang wrote: >> On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: >> >>> On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: A large args->buffer_count from userspace may overflow the allocation size,

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #2 from Ned Anderson 2012-04-06 07:38:02 PDT --- Created attachment 59587 --> https://bugs.freedesktop.org/attachment.cgi?id=59587 xorg log Xorg Log -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #3 from Ned Anderson 2012-04-06 07:38:37 PDT --- Created attachment 59588 --> https://bugs.freedesktop.org/attachment.cgi?id=59588 Dmesg -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are r

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #4 from Ned Anderson 2012-04-06 07:39:16 PDT --- Created attachment 59589 --> https://bugs.freedesktop.org/attachment.cgi?id=59589 glxinfo output -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ---

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 10:01:36 -0400, Xi Wang wrote: > On Apr 6, 2012, at 9:54 AM, Chris Wilson wrote: > > > On Fri, 6 Apr 2012 09:46:46 -0400, Xi Wang wrote: > >> On Apr 6, 2012, at 9:36 AM, Chris Wilson wrote: > >> > >>> On Fri, 6 Apr 2012 08:58:18 -0400, Xi Wang wrote: > A large args->bu

[PATCH 08/11] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:05 Tomasz Stanislawski wrote: > From: Andrzej Pietrasiewicz > > This patch introduces usage of dma_map_sg to map memory behind > a userspace pointer to a device as dma-contiguous mapping. > > Signed-off-by: Andrzej Pietrasiewicz > Signed-off-by: Marek

[PATCH 11/11] v4l: vb2: Add dma-contig allocator as dma_buf user

2012-04-06 Thread Laurent Pinchart
Hi Tomasz, On Thursday 05 April 2012 16:00:08 Tomasz Stanislawski wrote: > From: Sumit Semwal > > This patch makes changes for adding dma-contig as a dma_buf user. It > provides function implementations for the {attach, detach, map, > unmap}_dmabuf() mem_ops of DMABUF memory type. > > Signed-of

[PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Sylwester Nawrocki
Hello, On 04/06/2012 11:22 AM, Kyungmin Park wrote: > + V4L2 develper > Sylwester, please give your opinions? How to handle it at v4l2 side. > > Thank you, > Kyungmin Park > > On Apr 6, 2012 12:44 AM, "Ville Syrj?l?" > wrote: > > On Fri, Apr 06, 2012 at 03:05:36PM

[Bug 48382] weird rendering distortions on R200M

2012-04-06 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48382 --- Comment #5 from Ned Anderson 2012-04-06 09:09:54 PDT --- Also fyi, i noticed that the same thing occurs in a different game(BZFlag) when i turn on shadows... -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 10:44 AM, Chris Wilson wrote: > That I agreed with, I just disagree with how you chose to handle it. > Rather than continue on and attempt to vmalloc a large array we should > just fail the ioctl with EINVAL. Why an attempt to vmalloc? The overflow check in drm_malloc_ab() wil

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Chris Wilson
On Fri, 6 Apr 2012 14:17:41 -0400, Xi Wang wrote: > On Apr 6, 2012, at 10:44 AM, Chris Wilson wrote: > > > That I agreed with, I just disagree with how you chose to handle it. > > Rather than continue on and attempt to vmalloc a large array we should > > just fail the ioctl with EINVAL. > > Why

[PATCH 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-06 Thread Xi Wang
On Apr 6, 2012, at 3:40 PM, Chris Wilson wrote: > On Fri, 6 Apr 2012 14:17:41 -0400, Xi Wang wrote: >> >> Why an attempt to vmalloc? The overflow check in drm_malloc_ab() >> will simply return NULL and fail the ioctl with -ENOMEM. > > It's an invalid value for the ioctl and should be treated as

i915_driver_irq_handler: irq 42: nobody cared [generic IRQ handling broken?]

2012-04-06 Thread Jiri Slaby
On 03/30/2012 02:24 PM, Chris Wilson wrote: > On Fri, 30 Mar 2012 14:11:47 +0200, Jiri Slaby wrote: >> On 03/30/2012 12:45 PM, Chris Wilson wrote: >>> On Fri, 30 Mar 2012 11:59:28 +0200, Jiri Slaby wrote: I don't know what to dump more, because iir is obviously zero too. What other sour

[PATCH] drm/savage: fix integer overflows in savage_bci_cmdbuf()

2012-04-06 Thread Xi Wang
Since cmdbuf->size and cmdbuf->nbox are from userspace, a large value would overflow the allocation size, leading to out-of-bounds access. Signed-off-by: Xi Wang --- drivers/gpu/drm/savage/savage_state.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/dr

[PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats

2012-04-06 Thread Sylwester Nawrocki
On 03/30/2012 01:09 PM, Marcus Lorentzon wrote: > On 03/30/2012 12:12 PM, Ville Syrj?l? wrote: >>> +#define DRM_FORMAT_NV12MT fourcc_code('T', 'M', '1', '2') /* 2x2 >>> subsampled Cr:Cb plane 64x32 macroblocks */ >> This one is more difficult. Until now tiling was always handled in >> driver specif