[Bug 43964] Rendering is distorded in Penumbra Overture game

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43964 Laurent carlier changed: What|Removed |Added Summary|A script fail to build in |Rendering is distorded in

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Sakari Ailus
Hi Arnd, On Fri, Dec 09, 2011 at 02:13:03PM +, Arnd Bergmann wrote: > On Thursday 08 December 2011, Daniel Vetter wrote: > > > c) only allowing streaming mappings, even if those are non-coherent > > > (requiring strict serialization between CPU (in-kernel) and dma users of > > > the buffer) >

Re: Rebased drm_plane patches

2011-12-20 Thread David Airlie
- Original Message - > From: "ville syrjala" > To: dri-devel@lists.freedesktop.org > Sent: Monday, 19 December, 2011 10:06:37 PM > Subject: Rebased drm_plane patches > > I rebased this set on top of drm-next. > > I updated some of the error values based on what Jesse suggested. > > I

[PATCH] drm/radeon/kms: don't use 0 bpc for adjusting hdmi clock

2011-12-20 Thread Dave Airlie
From: Dave Airlie If the bpc is set from the connector is 0, we then use it later to adjust in a special case the HDMI pixel clock, however if the bpc is 0, we end up passing a 0 pixel clock into the code. I'm not sure if this is the correct answer or if we should avoid the HDMI clock adjustment

[Bug 43954] Some textures are not correctly rendered on HD 6950

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43954 --- Comment #1 from Michel Dänzer 2011-12-20 03:52:48 PST --- Could be bug 38173. Does it work better with the environment variable MESA_EXTENSION_OVERRIDE=-GL_EXT_texture_compression_s3tc ? -- Configure bugmail: https://bugs.freedesktop.org/u

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Anca Emanuel
On Tue, Dec 20, 2011 at 4:05 AM, Robert Morell wrote: > > One of the goals of this project is to unify the fragmented space of the > ARM SoC memory managers so that each vendor doesn't implement their own, > and they can all be closer to mainline. That is a very good objective. > I fear that res

Re: [PATCH] drm/radeon/kms: don't use 0 bpc for adjusting hdmi clock

2011-12-20 Thread Alex Deucher
On Tue, Dec 20, 2011 at 6:47 AM, Dave Airlie wrote: > From: Dave Airlie > > If the bpc is set from the connector is 0, we then use it later to adjust > in a special case the HDMI pixel clock, however if the bpc is 0, we end up > passing a 0 pixel clock into the code. > > I'm not sure if this is t

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Arnd Bergmann
On Tuesday 20 December 2011, Sakari Ailus wrote: > (I'm jumping into the discussion in the middle, and might miss something > that has already been talked about. I still hope what I'm about to say is > relevant. :-)) It certainly is relevant. > In subsystems such as V4L2 where drivers deal with s

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Arnd Bergmann
On Monday 19 December 2011, Semwal, Sumit wrote: > I didn't see a consensus on whether dma_buf should enforce some form > of serialization within the API - so atleast for v1 of dma-buf, I > propose to 'not' impose a restriction, and we can tackle it (add new > ops or enforce as design?) whenever we

Re: high_memory address in /proc/dri/*/vma

2011-12-20 Thread Daniel Vetter
On Tue, Dec 20, 2011 at 12:09:39AM +, Ben Hutchings wrote: > [Re-sent to the right address, I hope.] > > Kees, in commit 01e2f533a234dc62d16c0d3d4fb9d71cf1ce50c3 ("drm: do not > leak kernel addresses via /proc/dri/*/vma") you changed the logging of > high_memory: > > - seq_printf(m, "vm

Re: [RFC v3 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Konrad Rzeszutek Wilk
On Mon, Dec 19, 2011 at 02:03:30PM +0530, Sumit Semwal wrote: > This is the first step in defining a dma buffer sharing mechanism. > > A new buffer object dma_buf is added, with operations and API to allow easy > sharing of this buffer object across devices. > > The framework allows: > - differen

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Rob Clark
On Tue, Dec 20, 2011 at 9:41 AM, Arnd Bergmann wrote: > On Monday 19 December 2011, Semwal, Sumit wrote: >> I didn't see a consensus on whether dma_buf should enforce some form >> of serialization within the API - so atleast for v1 of dma-buf, I >> propose to 'not' impose a restriction, and we can

Re: [RFC v3 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Rob Clark
On Tue, Dec 20, 2011 at 10:36 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Dec 19, 2011 at 02:03:30PM +0530, Sumit Semwal wrote: >> This is the first step in defining a dma buffer sharing mechanism. >> >> A new buffer object dma_buf is added, with operations and API to allow easy >> sharing of this

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Daniel Vetter
On Tue, Dec 20, 2011 at 10:41:45AM -0600, Rob Clark wrote: > On Tue, Dec 20, 2011 at 9:41 AM, Arnd Bergmann wrote: > > On Monday 19 December 2011, Semwal, Sumit wrote: > >> I didn't see a consensus on whether dma_buf should enforce some form > >> of serialization within the API - so atleast for v1

Re: [PATCH] fixes to drm-next - TTM DMA code (v1)

2011-12-20 Thread Konrad Rzeszutek Wilk
On Mon, Dec 19, 2011 at 08:51:15PM +0100, Thomas Hellstrom wrote: > On 12/13/2011 05:40 PM, Konrad Rzeszutek Wilk wrote: > >On Tue, Dec 13, 2011 at 05:23:30PM +0100, Thomas Hellstrom wrote: > >>On 12/13/2011 05:07 PM, Jerome Glisse wrote: > >>>On Mon, Dec 12, 2011 at 03:09:26PM -0500, Konrad Rzeszu

[PATCH libdrm 1/3] libdrm: Plug memory leaks

2011-12-20 Thread ville . syrjala
From: Ville Syrjälä drmModeFreeResources() always leaked some memory. drmModeGetPlaneResources() and drmModeGetPlane() leaked in one error path. Signed-off-by: Ville Syrjälä --- xf86drmMode.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/xf86drmMode.c b/xf86drmM

[PATCH libdrm 2/3] libdrm: Add drmModeFreePlaneResources()

2011-12-20 Thread ville . syrjala
From: Ville Syrjälä This function was missing. Signed-off-by: Ville Syrjälä --- xf86drmMode.c |9 + xf86drmMode.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/xf86drmMode.c b/xf86drmMode.c index e67ed4a..473e734 100644 --- a/xf86drmMode.c +++ b/xf86drmM

[PATCH libdrm 3/3] libdrm: Fix AddFB2 memcpy() size

2011-12-20 Thread ville . syrjala
From: Ville Syrjälä Using sizeof() on a function parameter with an array type does not work. sizeof() treats such parameters as pointers. Signed-off-by: Ville Syrjälä --- xf86drmMode.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xf86drmMode.c b/xf86drmMode.c i

[r600g] ATI Radeon HD6950, dual monitor and power profile

2011-12-20 Thread Harald Judt
Hi, When using more than one monitor, the card uses higher clocks than in single-monitor mode and low-power profile. As a subjectively negative side-effect, the fan on the card starts making more noise. Other cards I used before had no problem with staying quiet even when more monitors were a

[Bug 43964] Rendering is distorded in Penumbra Overture game

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43964 --- Comment #3 from Ian Romanick 2011-12-20 10:40:59 PST --- (In reply to comment #0) > CG: 'PostEffect_Motion_fp.cg' using profile: 'arbfp1' > CG ERROR : "The compile returned an error." > --- > core/programs/

Re: high_memory address in /proc/dri/*/vma

2011-12-20 Thread Ben Hutchings
On Tue, Dec 20, 2011 at 05:32:13PM +0100, Daniel Vetter wrote: > On Tue, Dec 20, 2011 at 12:09:39AM +, Ben Hutchings wrote: > > [Re-sent to the right address, I hope.] > > > > Kees, in commit 01e2f533a234dc62d16c0d3d4fb9d71cf1ce50c3 ("drm: do not > > leak kernel addresses via /proc/dri/*/vma")

Re: [RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-20 Thread Daniel Vetter
On Mon, Dec 19, 2011 at 02:03:28PM +0530, Sumit Semwal wrote: > Hello Everyone, > > This is RFC v3 for DMA buffer sharing mechanism - changes from v2 are in the > changelog below. > > Various subsystems - V4L2, GPU-accessors, DRI to name a few - have felt the > need to have a common mechanism to

Re: [RFC PATCH 1/8] drm: Add drm_format_num_planes() utility function

2011-12-20 Thread Rob Clark
On Mon, Dec 19, 2011 at 4:33 PM, wrote: > From: Ville Syrjälä > > This function returns the number of planes used by a specific pixel > format. btw, I end up with a very similar util fxn in omapdrm driver.. would be nice to have this in core to avoid duplicating in every driver supporting multi

Re: [PATCH] drm/edid: Try harder to fix up broken headers

2011-12-20 Thread Adam Jackson
On 12/7/11 6:26 PM, Adam Jackson wrote: There's no reason to force the first byte to be correct if we're already scoring how correct the header is. Don't use this. The 00 check is needed to make sure we only attempt the header fixup on the zeroth block (not extensions). - ajax

Re: [Linaro-mm-sig] [RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-20 Thread Dave Airlie
>> >> This is RFC v3 for DMA buffer sharing mechanism - changes from v2 are in the >> changelog below. >> >> Various subsystems - V4L2, GPU-accessors, DRI to name a few - have felt the >> need to have a common mechanism to share memory buffers across different >> devices - ARM, video hardware, GPU.

Re: [r600g] ATI Radeon HD6950, dual monitor and power profile

2011-12-20 Thread Adam Jackson
On 12/20/11 1:38 PM, Harald Judt wrote: Hi, When using more than one monitor, the card uses higher clocks than in single-monitor mode and low-power profile. As a subjectively negative side-effect, the fan on the card starts making more noise. Other cards I used before had no problem with staying

Re: [RFC PATCH 1/8] drm: Add drm_format_num_planes() utility function

2011-12-20 Thread Dave Airlie
On Tue, Dec 20, 2011 at 7:55 PM, Rob Clark wrote: > On Mon, Dec 19, 2011 at 4:33 PM,   wrote: >> From: Ville Syrjälä >> >> This function returns the number of planes used by a specific pixel >> format. > > btw, I end up with a very similar util fxn in omapdrm driver.. would > be nice to have this

Re: [r600g] ATI Radeon HD6950, dual monitor and power profile

2011-12-20 Thread Harald Judt
Am 20.12.2011 21:20, schrieb Adam Jackson: On 12/20/11 1:38 PM, Harald Judt wrote: Hi, When using more than one monitor, the card uses higher clocks than in single-monitor mode and low-power profile. As a subjectively negative side-effect, the fan on the card starts making more noise. Other car

Re: [r600g] ATI Radeon HD6950, dual monitor and power profile

2011-12-20 Thread Alex Deucher
On Tue, Dec 20, 2011 at 4:19 PM, Harald Judt wrote: > Am 20.12.2011 21:20, schrieb Adam Jackson: >> >> On 12/20/11 1:38 PM, Harald Judt wrote: >>> >>> Hi, >>> >>> When using more than one monitor, the card uses higher clocks than in >>> single-monitor mode and low-power profile. As a subjectively

Re: [Linaro-mm-sig] [RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-20 Thread Rob Clark
On Tue, Dec 20, 2011 at 2:20 PM, Dave Airlie wrote: >>> >>> This is RFC v3 for DMA buffer sharing mechanism - changes from v2 are in the >>> changelog below. >>> >>> Various subsystems - V4L2, GPU-accessors, DRI to name a few - have felt the >>> need to have a common mechanism to share memory buff

[PATCH] drm/omap: GEM, deal with cache

2011-12-20 Thread Rob Clark
From: Rob Clark Uncached/writecombine buffers need to be clean before creating uc/wc userspace mappings, lest dirty cache lines fall down and corrupt the contents of the buffer. Signed-off-by: Rob Clark --- drivers/staging/omapdrm/omap_gem.c | 30 ++ 1 files chang

[PATCH 0/3] drm/omap: updates for addfb2 and plane support

2011-12-20 Thread Rob Clark
From: Rob Clark The first patch updates omapdrm for API changes introduced when addfb2 support (for multi-planar fb's) was added (in drm-next). The next patch adds drm plane (overlay) support, with CRTCs using private plane objects to avoid code duplication between the CRTC and plane. (This dep

[PATCH 1/3] drm/omap: drm API update: addfb2

2011-12-20 Thread Rob Clark
From: Rob Clark Update to reflect changes in: "drm: add an fb creation ioctl that takes a pixel format v5" Signed-off-by: Rob Clark --- drivers/staging/omapdrm/omap_drv.h | 30 +- drivers/staging/omapdrm/omap_fb.c| 103 ++ drivers/staging/omapdr

[PATCH 2/3] drm/omap: add drm_plane support

2011-12-20 Thread Rob Clark
From: Rob Clark Because framebuffer layer and overlay scanout video pipes are basically thing in OMAP display subsystem (the only difference being that the first video pipe does not support scaling or YUV formats), much of the CRTC code is pulled into the plane implementation, and a private plane

[PATCH 3/3] drm/omap: multiplanar and YUV support

2011-12-20 Thread Rob Clark
From: Rob Clark Add support in framebuffer objects for other color formats and multi- planar YUV (NV12). Since this requires changing the API between the plane and fb for getting scanout information (paddr, etc), take advantage of the opportunity and put in place a way to allow fb's to be unpinn

Re: [PATCH 1/3] drm/omap: drm API update: addfb2

2011-12-20 Thread Ville Syrjälä
On Tue, Dec 20, 2011 at 04:58:51PM -0600, Rob Clark wrote: > +static const struct format formats[] = { > + /* 16bpp [A]RGB: */ > + { OMAP_DSS_COLOR_RGB16, DRM_FORMAT_RGB565, {{2, 1}}, false }, > /* RGB16-565 */ > + { OMAP_DSS_COLOR_RGB12U, DRM_FORMAT_RGBX, {{2, 1}}, fa

[Bug 43954] Some textures are not correctly rendered on HD 6950

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43954 Alexandre Demers changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 38173] DXT3 and DXT5 broken on Cayman gpu

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38173 Alexandre Demers changed: What|Removed |Added CC||alexandre.f.dem...@gmail.co

3.2-rc6+: Reported regressions from 3.0 and 3.1

2011-12-20 Thread Rafael J. Wysocki
[I'm sorry if you receive this message twice, I seem to have problems with sending it.] This message contains a list of some regressions from 3.0 and 3.1 for which there are no fixes in the mainline known to the tracking team. If any of them have been fixed already, please let us know. If you kno

3.2-rc6+: Reported regressions from 3.0 and 3.1

2011-12-20 Thread Rafael J. Wysocki
This message contains a list of some regressions from 3.0 and 3.1 for which there are no fixes in the mainline known to the tracking team. If any of them have been fixed already, please let us know. If you know of any other unresolved regressions from 3.0 and 3.1, please let us know either and we'

Re: [PATCH 1/3] drm/omap: drm API update: addfb2

2011-12-20 Thread Rob Clark
On Tue, Dec 20, 2011 at 5:30 PM, Ville Syrjälä wrote: > On Tue, Dec 20, 2011 at 04:58:51PM -0600, Rob Clark wrote: >> +static const struct format formats[] = { >> +     /* 16bpp [A]RGB: */ >> +     { OMAP_DSS_COLOR_RGB16,       DRM_FORMAT_RGB565,   {{2, 1}}, false }, >> /* RGB16-565 */ >> +     {

Re: [r600g] ATI Radeon HD6950, dual monitor and power profile

2011-12-20 Thread Harald Judt
Am 20.12.2011 22:50, schrieb Alex Deucher: [...] [drm:radeon_pm_print_states], 4 Power State(s) [drm:radeon_pm_print_states], State 0: Default [drm:radeon_pm_print_states], Default [drm:radeon_pm_print_states], 16 PCIE Lanes [drm:radeon_pm_print_states], 3 Clock Mode(s) [drm:radeon_pm_pri

Re: [PATCH 1/3] drm/omap: drm API update: addfb2

2011-12-20 Thread Ville Syrjälä
On Tue, Dec 20, 2011 at 05:58:41PM -0600, Rob Clark wrote: > On Tue, Dec 20, 2011 at 5:30 PM, Ville Syrjälä > wrote: > > On Tue, Dec 20, 2011 at 04:58:51PM -0600, Rob Clark wrote: > >> +static const struct format formats[] = { > >> +     /* 16bpp [A]RGB: */ > >> +     { OMAP_DSS_COLOR_RGB16,      

[Bug 43993] New: 3d game in vmware workstation cause X hang up (ati Gallium r600)

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=43993 Bug #: 43993 Summary: 3d game in vmware workstation cause X hang up (ati Gallium r600) Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64)

[PATCH 0/8] Fix virtual and physical address types

2011-12-20 Thread Ben Hutchings
This series fixes compiler warnings on some architectures about implicit conversions and narrowing conversions between pointer and integer types. Please apply these to the appropriate trees. Ben. Ben Hutchings (8): IB/cxgb4: Fix formatting of physical address farsync: Fix confusion about DMA

[PATCH 3/8] drm: Do not include page offset in argument to virt_to_page()

2011-12-20 Thread Ben Hutchings
By definition, the page offset will not affect the result. Compile-tested only. Signed-off-by: Ben Hutchings --- drivers/gpu/drm/drm_vm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 8c03eaf..98c3922 100644 -

[PATCH 4/8] drm: Pass pointers to virt_to_page()

2011-12-20 Thread Ben Hutchings
Most architectures define virt_to_page() as a macro that casts its argument such that an argument of type unsigned long will be accepted without complaint. However, the proper type is void *, and passing unsigned long results in a warning on MIPS. Signed-off-by: Ben Hutchings --- drivers/gpu/dr

[GIT PULL] drm/exynos: update exynos drm driver.

2011-12-20 Thread Inki Dae
Hi, Dave. Please pull from git://git.infradead.org/users/kmpark/linux-samsung exynos-drm-next this branch is based on git repository below: git://people.freedesktop.org/~airlied/linux.git branch name: drm-next commit-id: d0d110e096298d2715aa26b3698e604e0d4a2fb9 th

Re: 3.2-rc6+: Reported regressions from 3.0 and 3.1

2011-12-20 Thread Markus Trippelsdorf
On 2011.12.21 at 00:54 +0100, Rafael J. Wysocki wrote: > Subject: WARNING: at fs/sysfs/sysfs.h:195 (during boot) > Submitter : Markus Trippelsdorf > > Date : 2011-11-13 19:24 > Message-ID : 2013192417.ga1659-tlcgzgx+ij+kxvt8iv0...@public.gmane.org > References : http://marc.info/?l

[Bug 38173] DXT3 and DXT5 broken on Cayman gpu

2011-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38173 --- Comment #3 from Andre Maasikas 2011-12-20 23:49:55 PST --- Created attachment 54625 --> https://bugs.freedesktop.org/attachment.cgi?id=54625 proposed Here's a thing to try ( we should set non_disp_tiling in CB for > 128bpp formats) Makes

[PATCH 01/12] drm: Add a missing ')'

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The code happened to compile because the flag wasn't actually used yet. Signed-off-by: Ville Syrj?l? --- include/drm/drm_mode.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h index 95d7aad..966fe7d 1

[PATCH 04/12] drm: plane: mutex_unlock() was missing

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Unlock the mode_config mutex if drm_plane_init() fails. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 2556589..7cb02f6 100644

[PATCH 05/12] drm: Fix __user sparse warnings

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Several pointers and casts were missing __user annotations. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_c

[PATCH 06/12] drm: plane: Clear plane.crtc and plane.fb after disable_plane()

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? These are the only indication to user space that the plane was disabled. Signed-off-by: Ville Syrj?l? Acked-by: Jesse Barnes --- drivers/gpu/drm/drm_crtc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/dr

[PATCH 07/12] drm: plane: Check source coordinates

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Make sure the source coordinates stay within the buffer. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index

Rebased drm_plane patches

2011-12-20 Thread ville.syrj...@linux.intel.com
I rebased this set on top of drm-next. I updated some of the error values based on what Jesse suggested. I also added a few patches to fix various issues that came up since I last posted the patches. Since the patch to drop the planar formats with YVU plane order wasn't applied to drm-next, I

[PATCH 02/12] drm: Install drm_fourcc.h

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Userspace needs this header. Signed-off-by: Ville Syrj?l? --- include/drm/Kbuild |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/drm/Kbuild b/include/drm/Kbuild index 3a60ac8..a5c0e10 100644 --- a/include/drm/Kbuild +++ b/include/drm/Kbuild

[PATCH 03/12] drm: fourcc: Use __u32 instead of u32

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? drm_fourcc.h can be included from user space so use the appropriate types. Signed-off-by: Ville Syrj?l? --- include/drm/drm_fourcc.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h index bb75249

[PATCH 08/12] drm: plane: Check crtc coordinates against integer overflows in setplane ioctl

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Help drivers a little by guaranteeing that crtc_x+crtc_w and crtc_y+crtc_h don't overflow. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/g

[PATCH 09/12] drm: plane: Make 'formats' parameter to drm_plane_init() const

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |2 +- include/drm/drm_crtc.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index b98e491..80cfe1c 100644 --- a/drivers/gpu

[PATCH 10/12] drm: plane: Check that the fb pixel format is supported by the plane

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 80cfe1c..66a165d 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/driver

[PATCH 11/12] drm: Check that the requested pixel format is valid

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 75 1 files changed, 75 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 66a165d..07d78e2 100644 --- a/driver

[PATCH 12/12] drm: Replace pitch with pitches[] in drm_framebuffer

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Otherwise each driver would need to keep the information inside their own framebuffer object structure. Also add offsets[]. BOs on the other hand are driver specific, so those can be kept in driver specific structures. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_cr

Plane helpers and a new plane options ioctl

2011-12-20 Thread ville.syrj...@linux.intel.com
Here are the utility functions again. Rebased and updated slightly. I adapted drm_framebuffer_check() to handle multiple handles, and I changed some of the error values it returns. The plane options ioctl is a bit of an open question. I started by adding separate ioctls for some subsets of the fu

[RFC PATCH 1/8] drm: Add drm_format_num_planes() utility function

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? This function returns the number of planes used by a specific pixel format. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 33 + include/drm/drm_crtc_helper.h |3 +++ 2 files changed, 36 insertions(+), 0 deleti

[RFC PATCH 2/8] drm: Add drm_format_plane_cpp() utility function

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? This function returns the bytes per pixel value based on the pixel format and plane index. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 45 + include/drm/drm_crtc_helper.h |1 + 2 files changed, 46 insert

[RFC PATCH 3/8] drm: Add drm_format_{horz, vert}_chroma_subsampling() utility functions

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? These functions return the chroma subsampling factors for the specified pixel format. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 60 + include/drm/drm_crtc_helper.h |2 + 2 files changed, 62 insertions(

[RFC PATCH 4/8] drm: Add drm_framebuffer_check() utility function

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? This function performs a battery of sanity checks on the requested framebuffer layout. Drivers can call it from their fb_create hook. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 85 + include/drm/drm_crtc_helper

[RFC PATCH 6/8] drm: Add drm_calc_{hscale, vscale}() utility functions

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 102 + include/drm/drm_crtc_helper.h |4 ++ 2 files changed, 106 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm

[RFC PATCH 7/8] drm: plane: Add plane options ioctl

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Add a new ioctl DRM_IOCTL_MODE_PLANE_OPTS which is used to configure various settings for the plane. I left out gamma correction thinking that it could be added using a separate ioctl, since there's already a gamma ioctl for CRTCs. Signed-off-by: Ville Syrj?l? --- drivers/

[RFC PATCH 5/8] drm: Add struct drm_region and assorted utility functions

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? struct drm_region represents a two dimensional region. The utility functions are there to help driver writers. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 156 + include/drm/drm_crtc_helper.h | 24 ++ 2

[RFC PATCH 8/8] drm: Add drm_chroma_phase_offsets() utility function

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? This function is is there to help driver writers. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 47 + include/drm/drm_crtc_helper.h |3 ++ 2 files changed, 50 insertions(+), 0 deletions(-) diff --git a/dr

high_memory address in /proc/dri/*/vma

2011-12-20 Thread Ben Hutchings
[Re-sent to the right address, I hope.] Kees, in commit 01e2f533a234dc62d16c0d3d4fb9d71cf1ce50c3 ("drm: do not leak kernel addresses via /proc/dri/*/vma") you changed the logging of high_memory: - seq_printf(m, "vma use count: %d, high_memory = %p, 0x%08llx\n", + seq_printf(m, "vma us

high_memory address in /proc/dri/*/vma

2011-12-20 Thread Ben Hutchings
g physical addresses, because they are not pointers. Ben. -- Ben Hutchings Humans are not rational beings; they are rationalising beings. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 828 bytes Desc: This is a digitally signed message part URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111220/9027c103/attachment.pgp>

[Bug 43771] [i915g] src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:821:lp_build_sample_mipmap: Assertion `img_filter == 1' failed.

2011-12-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43771 Stephane Marchesin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

high_memory address in /proc/dri/*/vma

2011-12-20 Thread Ben Hutchings
what you mean now. This is, as you say, only a > problem "in theory". Is it worth fixing currently? I don't know. > If so, we probably need to add the "K" option to %x in some fashion. Something like that, yes. Ben. -- Ben Hutchings Humans are not rational being

[Bug 43964] Rendering is distorded in Penumbra Overture game

2011-12-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43964 Laurent carlier changed: What|Removed |Added Summary|A script fail to build in |Rendering is distorded in

[Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Sakari Ailus
Hi Arnd, On Fri, Dec 09, 2011 at 02:13:03PM +, Arnd Bergmann wrote: > On Thursday 08 December 2011, Daniel Vetter wrote: > > > c) only allowing streaming mappings, even if those are non-coherent > > > (requiring strict serialization between CPU (in-kernel) and dma users of > > > the buffer) >

Rebased drm_plane patches

2011-12-20 Thread David Airlie
- Original Message - > From: "ville syrjala" > To: dri-devel at lists.freedesktop.org > Sent: Monday, 19 December, 2011 10:06:37 PM > Subject: Rebased drm_plane patches > > I rebased this set on top of drm-next. > > I updated some of the error values based on what Jesse suggested. > >

[PATCH] drm/radeon/kms: don't use 0 bpc for adjusting hdmi clock

2011-12-20 Thread Dave Airlie
From: Dave Airlie If the bpc is set from the connector is 0, we then use it later to adjust in a special case the HDMI pixel clock, however if the bpc is 0, we end up passing a 0 pixel clock into the code. I'm not sure if this is the correct answer or if we should avoid the HDMI clock adjustment

[Bug 43954] Some textures are not correctly rendered on HD 6950

2011-12-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43954 --- Comment #1 from Michel D?nzer 2011-12-20 03:52:48 PST --- Could be bug 38173. Does it work better with the environment variable MESA_EXTENSION_OVERRIDE=-GL_EXT_texture_compression_s3tc ? -- Configure bugmail: https://bugs.freedesktop.org/u

[Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Anca Emanuel
On Tue, Dec 20, 2011 at 4:05 AM, Robert Morell wrote: > > One of the goals of this project is to unify the fragmented space of the > ARM SoC memory managers so that each vendor doesn't implement their own, > and they can all be closer to mainline. That is a very good objective. > I fear that res

[PATCH] drm/radeon/kms: don't use 0 bpc for adjusting hdmi clock

2011-12-20 Thread Alex Deucher
On Tue, Dec 20, 2011 at 6:47 AM, Dave Airlie wrote: > From: Dave Airlie > > If the bpc is set from the connector is 0, we then use it later to adjust > in a special case the HDMI pixel clock, however if the bpc is 0, we end up > passing a 0 pixel clock into the code. > > I'm not sure if this is t

[Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Arnd Bergmann
On Tuesday 20 December 2011, Sakari Ailus wrote: > (I'm jumping into the discussion in the middle, and might miss something > that has already been talked about. I still hope what I'm about to say is > relevant. :-)) It certainly is relevant. > In subsystems such as V4L2 where drivers deal with s

[Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Arnd Bergmann
On Monday 19 December 2011, Semwal, Sumit wrote: > I didn't see a consensus on whether dma_buf should enforce some form > of serialization within the API - so atleast for v1 of dma-buf, I > propose to 'not' impose a restriction, and we can tackle it (add new > ops or enforce as design?) whenever we

high_memory address in /proc/dri/*/vma

2011-12-20 Thread Daniel Vetter
On Tue, Dec 20, 2011 at 12:09:39AM +, Ben Hutchings wrote: > [Re-sent to the right address, I hope.] > > Kees, in commit 01e2f533a234dc62d16c0d3d4fb9d71cf1ce50c3 ("drm: do not > leak kernel addresses via /proc/dri/*/vma") you changed the logging of > high_memory: > > - seq_printf(m, "vm

[RFC v3 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Konrad Rzeszutek Wilk
On Mon, Dec 19, 2011 at 02:03:30PM +0530, Sumit Semwal wrote: > This is the first step in defining a dma buffer sharing mechanism. > > A new buffer object dma_buf is added, with operations and API to allow easy > sharing of this buffer object across devices. > > The framework allows: > - differen

[Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Rob Clark
On Tue, Dec 20, 2011 at 9:41 AM, Arnd Bergmann wrote: > On Monday 19 December 2011, Semwal, Sumit wrote: >> I didn't see a consensus on whether dma_buf should enforce some form >> of serialization within the API - so atleast for v1 of dma-buf, I >> propose to 'not' impose a restriction, and we can

[RFC v3 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Rob Clark
On Tue, Dec 20, 2011 at 10:36 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Dec 19, 2011 at 02:03:30PM +0530, Sumit Semwal wrote: >> This is the first step in defining a dma buffer sharing mechanism. >> >> A new buffer object dma_buf is added, with operations and API to allow easy >> sharing of this

[Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-20 Thread Daniel Vetter
On Tue, Dec 20, 2011 at 10:41:45AM -0600, Rob Clark wrote: > On Tue, Dec 20, 2011 at 9:41 AM, Arnd Bergmann wrote: > > On Monday 19 December 2011, Semwal, Sumit wrote: > >> I didn't see a consensus on whether dma_buf should enforce some form > >> of serialization within the API - so atleast for v1

[PATCH] fixes to drm-next - TTM DMA code (v1)

2011-12-20 Thread Konrad Rzeszutek Wilk
On Mon, Dec 19, 2011 at 08:51:15PM +0100, Thomas Hellstrom wrote: > On 12/13/2011 05:40 PM, Konrad Rzeszutek Wilk wrote: > >On Tue, Dec 13, 2011 at 05:23:30PM +0100, Thomas Hellstrom wrote: > >>On 12/13/2011 05:07 PM, Jerome Glisse wrote: > >>>On Mon, Dec 12, 2011 at 03:09:26PM -0500, Konrad Rzeszu

[PATCH libdrm 1/3] libdrm: Plug memory leaks

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? drmModeFreeResources() always leaked some memory. drmModeGetPlaneResources() and drmModeGetPlane() leaked in one error path. Signed-off-by: Ville Syrj?l? --- xf86drmMode.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/xf86drmMode.c b/xf86drmM

[PATCH libdrm 2/3] libdrm: Add drmModeFreePlaneResources()

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? This function was missing. Signed-off-by: Ville Syrj?l? --- xf86drmMode.c |9 + xf86drmMode.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/xf86drmMode.c b/xf86drmMode.c index e67ed4a..473e734 100644 --- a/xf86drmMode.c +++ b/xf86drmM

[PATCH libdrm 3/3] libdrm: Fix AddFB2 memcpy() size

2011-12-20 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Using sizeof() on a function parameter with an array type does not work. sizeof() treats such parameters as pointers. Signed-off-by: Ville Syrj?l? --- xf86drmMode.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xf86drmMode.c b/xf86drmMode.c i

[r600g] ATI Radeon HD6950, dual monitor and power profile

2011-12-20 Thread Harald Judt
Hi, When using more than one monitor, the card uses higher clocks than in single-monitor mode and low-power profile. As a subjectively negative side-effect, the fan on the card starts making more noise. Other cards I used before had no problem with staying quiet even when more monitors were at

[Bug 43964] Rendering is distorded in Penumbra Overture game

2011-12-20 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=43964 --- Comment #3 from Ian Romanick 2011-12-20 10:40:59 PST --- (In reply to comment #0) > CG: 'PostEffect_Motion_fp.cg' using profile: 'arbfp1' > CG ERROR : "The compile returned an error." > --- > core/programs/

high_memory address in /proc/dri/*/vma

2011-12-20 Thread Ben Hutchings
On Tue, Dec 20, 2011 at 05:32:13PM +0100, Daniel Vetter wrote: > On Tue, Dec 20, 2011 at 12:09:39AM +, Ben Hutchings wrote: > > [Re-sent to the right address, I hope.] > > > > Kees, in commit 01e2f533a234dc62d16c0d3d4fb9d71cf1ce50c3 ("drm: do not > > leak kernel addresses via /proc/dri/*/vma")

[RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-20 Thread Daniel Vetter
On Mon, Dec 19, 2011 at 02:03:28PM +0530, Sumit Semwal wrote: > Hello Everyone, > > This is RFC v3 for DMA buffer sharing mechanism - changes from v2 are in the > changelog below. > > Various subsystems - V4L2, GPU-accessors, DRI to name a few - have felt the > need to have a common mechanism to

[RFC PATCH 1/8] drm: Add drm_format_num_planes() utility function

2011-12-20 Thread Rob Clark
On Mon, Dec 19, 2011 at 4:33 PM, wrote: > From: Ville Syrj?l? > > This function returns the number of planes used by a specific pixel > format. btw, I end up with a very similar util fxn in omapdrm driver.. would be nice to have this in core to avoid duplicating in every driver supporting multi

[PATCH] drm/edid: Try harder to fix up broken headers

2011-12-20 Thread Adam Jackson
On 12/7/11 6:26 PM, Adam Jackson wrote: > There's no reason to force the first byte to be correct if we're already > scoring how correct the header is. Don't use this. The 00 check is needed to make sure we only attempt the header fixup on the zeroth block (not extensions). - ajax

  1   2   >