Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Kristian Høgsberg
On Wed, Apr 18, 2012 at 10:36 AM, Daniel Vetter wrote: > On Wed, Apr 18, 2012 at 05:26:07PM +0300, Ville Syrjälä wrote: >> On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: >> > On 04/18/2012 02:25 PM, Rob Clark wrote: >> > > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim >> > >

[Bug 48894] plymouthd crashed with SIGABRT in __assert_fail_base()

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48894 --- Comment #10 from Bryce Harrington 2012-04-18 15:34:25 PDT --- ok looks like a core drm kernel bug we don't lock properly around initialization -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are rec

[Bug 48894] plymouthd crashed with SIGABRT in __assert_fail_base()

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48894 Bryce Harrington changed: What|Removed |Added AssignedTo|chris at chris-wilson.co.uk|dri-devel at lists.freedesktop

Bug reports on the psb-gfx driver

2012-04-18 Thread Alan Cox
> That frequency seems about the same as the one I'm experiences. All though > some times it's more often, but I can't say I've done anything special at > the same time. > > 3.3.2-1-ARCH > Intel(R) Atom(TM) CPU Z520 @ 1.33GHz > > Attachment: dmesg ouput > What X display server are you using (fb

[Bug 48422] Radeon KMS fails on Radeon X850XT (R480) graphics card

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48422 Jonathan Nieder changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Kristian Høgsberg
On Wed, Apr 18, 2012 at 10:36 AM, Daniel Vetter wrote: > On Wed, Apr 18, 2012 at 05:26:07PM +0300, Ville Syrj?l? wrote: >> On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: >> > On 04/18/2012 02:25 PM, Rob Clark wrote: >> > > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim> > > sam

[Bug 48772] Signal unstable over Display Port on 2560x1440 monitor

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48772 --- Comment #9 from Roland Scheidegger 2012-04-18 14:21:14 PDT --- (In reply to comment #8) > That's the max theoretical mode supported by the chip. Whether or not you can > drive a monitor that big probably depends on the type and speed of dra

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Ville Syrjälä
On Wed, Apr 18, 2012 at 07:06:10PM +0300, Ville Syrj?l? wrote: > On Wed, Apr 18, 2012 at 05:27:57PM +0200, Daniel Vetter wrote: > > Also, I'm toying around with ideas to split up the big modeset lock such > > that operations that only touch the crtc (like pageflip, plane changes and > > cursor chan

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 05:55:15PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 05:27 PM, Daniel Vetter wrote: > >On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > >>On 04/18/2012 04:36 PM, Daniel Vetter wrote: > >>>Last time around I've discussed with people we've ended up with

[PATCH] dma-buf: mmap support

2012-04-18 Thread Alan Cox
> How do you ensure that no device can do DMA on the buffer while it's mapped > into user space in a noncoherent manner? Why do we want to enforce that ? We provide the appropriate base service but you need to know what you are doing. In reality a lot of use cases are going to need far more than a

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #10 from Alex Deucher 2012-04-18 12:22:55 PDT --- Is it only problematic on VGA or TMDS? I.e., does one only one or the other, but not both? It seems to be something specific to your monitor. I can't reproduce this on my ontario h

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Joonyoung Shim
On 04/18/2012 05:46 PM, Daniel Vetter wrote: > On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: >> DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is >> for a plane. The setplane ioctl (DRM_IOCTL_MODE_SETPLANE) needs to >> provide the event such as DRM_MODE_PAGE_FL

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Ville Syrjälä
On Wed, Apr 18, 2012 at 05:27:57PM +0200, Daniel Vetter wrote: > On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > > On 04/18/2012 04:36 PM, Daniel Vetter wrote: > > >Last time around I've discussed with people we've ended up with 2 new > > >ioctls: > > > > > >- atomic modeset, to

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #9 from Alex Deucher 2012-04-18 12:04:05 PDT --- How is this monitor connected? Analog VGA or digital TMDS? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Luc Verhaegen
On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: > DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is > for a plane. The setplane ioctl (DRM_IOCTL_MODE_SETPLANE) needs to > provide the event such as DRM_MODE_PAGE_FLIP_EVENT. The setplane ioctl > can change the fram

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 06:06 PM, Ville Syrj?l? wrote: >> > If you smash everything into one ioctl, I imagine you have plenty of fun >> > implementing all this. Which is why I prefer to split this up. > I don't think there's that much differnce. You build up the full device > state, check it, and when you'

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 05:43 PM, Luc Verhaegen wrote: > This means that there should be (at least) three separate actions: > * page flipping: buffers -> planes at next vblank, for a list of > buffer(s) and plane tuples. > * setplanes: colour format, position, scaling, ordering, rotation, color > key, crtc

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 05:27 PM, Daniel Vetter wrote: > On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: >> On 04/18/2012 04:36 PM, Daniel Vetter wrote: >>> Last time around I've discussed with people we've ended up with 2 new >>> ioctls: >>> >>> - atomic modeset, to configure the output st

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Luc Verhaegen
On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 04:36 PM, Daniel Vetter wrote: >> Last time around I've discussed with people we've ended up with 2 new >> ioctls: >> >> - atomic modeset, to configure the output state on more than one crtc at >>the same time. Th

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 04:36 PM, Daniel Vetter wrote: > >Last time around I've discussed with people we've ended up with 2 new > >ioctls: > > > >- atomic modeset, to configure the output state on more than one crtc at > > the same time. T

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Ville Syrjälä
On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 02:25 PM, Rob Clark wrote: > > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim > > wrote: > >> On 04/18/2012 05:46 PM, Daniel Vetter wrote: > >>> On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: > >>>

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 04:36 PM, Daniel Vetter wrote: > Last time around I've discussed with people we've ended up with 2 new > ioctls: > > - atomic modeset, to configure the output state on more than one crtc at >the same time. This is useful to get pll assignement, memory bandwidth >constrains and

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 04:26 PM, Ville Syrj?l? wrote: > On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: >> On 04/18/2012 02:25 PM, Rob Clark wrote: >>> On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim >>> wrote: On 04/18/2012 05:46 PM, Daniel Vetter wrote: > On Wed, Apr 18, 2012

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 05:26:07PM +0300, Ville Syrj?l? wrote: > On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: > > On 04/18/2012 02:25 PM, Rob Clark wrote: > > > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim > > samsung.com> wrote: > > >> On 04/18/2012 05:46 PM, Daniel Vetter

[PATCH] dma-buf: mmap support

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 02:06:13PM +, Arnd Bergmann wrote: > On Wednesday 18 April 2012, Daniel Vetter wrote: > > + Because existing importing subsystems might presume coherent mappings > > for > > + userspace, the exporter needs to set up a coherent mapping. If that's > > not > > + pos

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 02:25 PM, Rob Clark wrote: > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim > wrote: >> On 04/18/2012 05:46 PM, Daniel Vetter wrote: >>> On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is f

[PATCH] dma-buf: mmap support

2012-04-18 Thread Daniel Vetter
Compared to Rob Clark's RFC I've ditched the prepare/finish hooks and corresponding ioctls on the dma_buf file. The major reason for that is that many people seem to be under the impression that this is also for synchronization with outstanding asynchronous processsing. I'm pretty massively opposed

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #8 from Tvrtko Ursulin 2012-04-18 08:44:56 PDT --- (In reply to comment #7) > Try switching to another mode first then switch the new one you added. I did exactly that :) -- Configure bugmail: https://bugs.freedesktop.org/userpref

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #7 from Alex Deucher 2012-04-18 08:38:08 PDT --- Try switching to another mode first then switch the new one you added. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail

[Bug 48894] plymouthd crashed with SIGABRT in __assert_fail_base()

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48894 --- Comment #10 from Bryce Harrington 2012-04-18 15:34:25 PDT --- ok looks like a core drm kernel bug we don't lock properly around initialization -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are rec

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #6 from Tvrtko Ursulin 2012-04-18 08:34:44 PDT --- (In reply to comment #5) > If you manually add the 1920x1080 modeline with xrandr, does it work ok? > > E.g., > > xrandr --newmode "my1920x1080" 148.50 1920 2008 2052 2200 1080

[Bug 48894] plymouthd crashed with SIGABRT in __assert_fail_base()

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48894 Bryce Harrington changed: What|Removed |Added AssignedTo|ch...@chris-wilson.co.uk|dri-devel@lists.freedesktop

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #5 from Alex Deucher 2012-04-18 08:25:53 PDT --- If you manually add the 1920x1080 modeline with xrandr, does it work ok? E.g., xrandr --newmode "my1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync xrandr -

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #4 from Tvrtko Ursulin 2012-04-18 08:25:15 PDT --- So it all looks right (pixel clock wise) in radeon_compute_pll_avivo. I guess atombios_crtc_set_pll calls atombios_crtc_program_ss to program the hardware. Could things be going wron

[PATCH] drm/radeon/kms: fix the regression of DVI connector check

2012-04-18 Thread Takashi Iwai
The check of the encoder type in the commit [e00e8b5e: drm/radeon/kms: fix analog load detection on DVI-I connectors] is obviously wrong, and it's the culprit of the regression on my workstation with DVI-analog connection resulting in the blank output. Fixed the typo now. Cc: Signed-off-by: Taka

[REGRESSION] 3.4-rc* radeon: No DVI-A output after commit e00e8b5e760cb

2012-04-18 Thread Takashi Iwai
At Wed, 18 Apr 2012 14:39:54 +0200, Takashi Iwai wrote: > > Hi, > > I noticed that one machine here gives only the blank output with > 3.4-rc's. The bisection lead me to affecting commit: > > commit e00e8b5e760cbbe9067daeae5454d67c44c8d035 > Author: Alex Deucher > Date: Fri Mar 1

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #3 from Tvrtko Ursulin 2012-04-18 08:18:54 PDT --- Some debug showing the modeset itself: [ 2405.577713] [drm:drm_crtc_helper_set_config], modes are different, full mode set [ 2405.577721] [drm:drm_mode_debug_printmodeline], Modeli

[Bug 48422] Radeon KMS fails on Radeon X850XT (R480) graphics card

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48422 Jonathan Nieder changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #2 from Tvrtko Ursulin 2012-04-18 08:08:39 PDT --- I've tried setting a handful of other resolutions via the xrandr tool and in all cases monitors reported clock matches the above list. Only 1920x1080 seems broken. -- Configure bug

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #1 from Tvrtko Ursulin 2012-04-18 08:07:47 PDT --- Kernel view of the modelines: [ 1749.396456] [drm:drm_mode_debug_printmodeline], Modeline 18:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5 [ 1749.396472] [d

[Bug 48880] New: Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48880 Bug #: 48880 Summary: Set mode has different timings than requested on VGA Classification: Unclassified Product: DRI Version: unspecified Platform: Other OS/Version: All

[REGRESSION] 3.4-rc* radeon: No DVI-A output after commit e00e8b5e760cb

2012-04-18 Thread Takashi Iwai
Hi, I noticed that one machine here gives only the blank output with 3.4-rc's. The bisection lead me to affecting commit: commit e00e8b5e760cbbe9067daeae5454d67c44c8d035 Author: Alex Deucher Date: Fri Mar 16 12:22:09 2012 -0400 drm/radeon/kms: fix analog load detection on DVI

[Bug 48772] Signal unstable over Display Port on 2560x1440 monitor

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48772 --- Comment #9 from Roland Scheidegger 2012-04-18 14:21:14 PDT --- (In reply to comment #8) > That's the max theoretical mode supported by the chip. Whether or not you can > drive a monitor that big probably depends on the type and speed of dra

Re: Bug reports on the psb-gfx driver

2012-04-18 Thread Alan Cox
> That frequency seems about the same as the one I'm experiences. All though > some times it's more often, but I can't say I've done anything special at > the same time. > > 3.3.2-1-ARCH > Intel(R) Atom(TM) CPU Z520 @ 1.33GHz > > Attachment: dmesg ouput > What X display server are you using (fb

[Bug 46711] Monitor not turning on after DisplayPort re-plug in Xorg

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46711 Alex Deucher changed: What|Removed |Added Attachment #60177|0 |1 is obsolete|

[PATCH] dma-buf: mmap support

2012-04-18 Thread Arnd Bergmann
On Wednesday 18 April 2012, Daniel Vetter wrote: > + Because existing importing subsystems might presume coherent mappings for > + userspace, the exporter needs to set up a coherent mapping. If that's not > + possible, it needs to fake coherency by manually shooting down ptes when > + leavi

[PATCH] drm: fix page_flip error handling

2012-04-18 Thread Joonyoung Shim
Free event and restore event_space only when page_flip->flags has DRM_MODE_PAGE_FLIP_EVENT if page_flip() is failed. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/drm_crtc.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/driver

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Joonyoung Shim
DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is for a plane. The setplane ioctl (DRM_IOCTL_MODE_SETPLANE) needs to provide the event such as DRM_MODE_PAGE_FLIP_EVENT. The setplane ioctl can change the framebuffer of plane but user can't know completion of changing the framebuf

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #10 from Alex Deucher 2012-04-18 12:22:55 PDT --- Is it only problematic on VGA or TMDS? I.e., does one only one or the other, but not both? It seems to be something specific to your monitor. I can't reproduce this on my ontario ha

Re: [PATCH] dma-buf: mmap support

2012-04-18 Thread Alan Cox
> How do you ensure that no device can do DMA on the buffer while it's mapped > into user space in a noncoherent manner? Why do we want to enforce that ? We provide the appropriate base service but you need to know what you are doing. In reality a lot of use cases are going to need far more than a

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 05:55:15PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 05:27 PM, Daniel Vetter wrote: > >On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > >>On 04/18/2012 04:36 PM, Daniel Vetter wrote: > >>>Last time around I've discussed with people we've ended up with

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #9 from Alex Deucher 2012-04-18 12:04:05 PDT --- How is this monitor connected? Analog VGA or digital TMDS? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[PATCH] scatterlist: add sg_alloc_table_by_pages function

2012-04-18 Thread Tomasz Stanislawski
This patch adds a new constructor for an sg table. The table is constructed from an array of struct pages. All contiguous chunks of the pages are merged into a single sg nodes. A user may provide an offset and a size of a buffer if the buffer is not page-aligned. The function is dedicated for DMAB

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Ville Syrjälä
On Wed, Apr 18, 2012 at 07:06:10PM +0300, Ville Syrjälä wrote: > On Wed, Apr 18, 2012 at 05:27:57PM +0200, Daniel Vetter wrote: > > Also, I'm toying around with ideas to split up the big modeset lock such > > that operations that only touch the crtc (like pageflip, plane changes and > > cursor chan

[Bug 48599] Fix compiler warnings in tests/radeon/radeon_ttm.c

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=48599 --- Comment #1 from Michel D?nzer 2012-04-18 04:17:28 PDT --- (In reply to comment #1) > It was written by Jan Engelhardt Would it be possible to get a Signed-off-by: from him? BTW, it might have been easier to just submit the patch to the dr

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: > DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is > for a plane. The setplane ioctl (DRM_IOCTL_MODE_SETPLANE) needs to > provide the event such as DRM_MODE_PAGE_FLIP_EVENT. The setplane ioctl > can change the fram

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Luc Verhaegen
On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: > DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is > for a plane. The setplane ioctl (DRM_IOCTL_MODE_SETPLANE) needs to > provide the event such as DRM_MODE_PAGE_FLIP_EVENT. The setplane ioctl > can change the fram

[PATCH] drm/radeon/kms: fix the regression of DVI connector check

2012-04-18 Thread Alex Deucher
On Wed, Apr 18, 2012 at 9:21 AM, Takashi Iwai wrote: > The check of the encoder type in the commit [e00e8b5e: drm/radeon/kms: > fix analog load detection on DVI-I connectors] is obviously wrong, and > it's the culprit of the regression on my workstation with DVI-analog > connection resulting in th

[PATCH] drm/radeon: fix logic inversion in load detect fix

2012-04-18 Thread alexdeuc...@gmail.com
From: Alex Deucher Reported-by: Takashi Iwai Signed-off-by: Alex Deucher Cc: stable at vger.kernel.org --- drivers/gpu/drm/radeon/radeon_connectors.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/r

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 06:06 PM, Ville Syrjälä wrote: > If you smash everything into one ioctl, I imagine you have plenty of fun > implementing all this. Which is why I prefer to split this up. I don't think there's that much differnce. You build up the full device state, check it, and when you're read

[REGRESSION] 3.4-rc* radeon: No DVI-A output after commit e00e8b5e760cb

2012-04-18 Thread Alex Deucher
On Wed, Apr 18, 2012 at 8:39 AM, Takashi Iwai wrote: > Hi, > > I noticed that one machine here gives only the blank output with > 3.4-rc's. ?The bisection lead me to affecting commit: > > ? ?commit e00e8b5e760cbbe9067daeae5454d67c44c8d035 > ? ?Author: Alex Deucher > ? ?Date: ? Fri Mar 16 12:22:09

[PATCH] dma-buf: mmap support

2012-04-18 Thread Rob Clark
On Wed, Apr 18, 2012 at 9:06 AM, Arnd Bergmann wrote: > On Wednesday 18 April 2012, Daniel Vetter wrote: >> + ? Because existing importing subsystems might presume coherent mappings for >> + ? userspace, the exporter needs to set up a coherent mapping. If that's not >> + ? possible, it needs to fa

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Ville Syrjälä
On Wed, Apr 18, 2012 at 05:27:57PM +0200, Daniel Vetter wrote: > On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > > On 04/18/2012 04:36 PM, Daniel Vetter wrote: > > >Last time around I've discussed with people we've ended up with 2 new > > >ioctls: > > > > > >- atomic modeset, to

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Jesse Barnes
On Wed, 18 Apr 2012 17:55:15 +0200 Marcus Lorentzon wrote: > The async vs sync makes sense as reason for splitting them. My problem > lies somewhere in between sync modeset and async flip - async > crtc/plane/fbs modeset. > In Wayland and Android HW composer I need to asynchronously flip and do

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Jesse Barnes
On Wed, 18 Apr 2012 17:55:15 +0200 Marcus Lorentzon wrote: > The async vs sync makes sense as reason for splitting them. My problem > lies somewhere in between sync modeset and async flip - async > crtc/plane/fbs modeset. > In Wayland and Android HW composer I need to asynchronously flip and do

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 05:43 PM, Luc Verhaegen wrote: This means that there should be (at least) three separate actions: * page flipping: buffers -> planes at next vblank, for a list of buffer(s) and plane tuples. * setplanes: colour format, position, scaling, ordering, rotation, color key, crtc adheranc

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Jesse Barnes
On Wed, 18 Apr 2012 16:58:36 +0200 Marcus Lorentzon wrote: > On 04/18/2012 04:26 PM, Ville Syrjälä wrote: > Yes, from previous emails I have seen that we are quite aligned on the > single-atomic-modeset-with-properties version. > > Do you have any actual proposal for this? Like the API at leas

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Jesse Barnes
On Wed, 18 Apr 2012 16:58:36 +0200 Marcus Lorentzon wrote: > On 04/18/2012 04:26 PM, Ville Syrj?l? wrote: > Yes, from previous emails I have seen that we are quite aligned on the > single-atomic-modeset-with-properties version. > > Do you have any actual proposal for this? Like the API at leas

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 05:27 PM, Daniel Vetter wrote: On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: On 04/18/2012 04:36 PM, Daniel Vetter wrote: Last time around I've discussed with people we've ended up with 2 new ioctls: - atomic modeset, to configure the output state on more than

[PATCH] WIP: staging: drm/omap: dmabuf/prime mmap support

2012-04-18 Thread Rob Clark
From: Rob Clark There are still a few places to cleanup, and possibly things can be made a bit easier for individual drm drivers by some helpers in drm core. But this is enough for a proof of concept. With this, I can allocate cached buffers, fill them w/ software from userspace, and on kernel

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Luc Verhaegen
On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 04:36 PM, Daniel Vetter wrote: >> Last time around I've discussed with people we've ended up with 2 new >> ioctls: >> >> - atomic modeset, to configure the output state on more than one crtc at >>the same time. Th

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #8 from Tvrtko Ursulin 2012-04-18 08:44:56 PDT --- (In reply to comment #7) > Try switching to another mode first then switch the new one you added. I did exactly that :) -- Configure bugmail: https://bugs.freedesktop.org/userpref

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #7 from Alex Deucher 2012-04-18 08:38:08 PDT --- Try switching to another mode first then switch the new one you added. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail b

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #6 from Tvrtko Ursulin 2012-04-18 08:34:44 PDT --- (In reply to comment #5) > If you manually add the 1920x1080 modeline with xrandr, does it work ok? > > E.g., > > xrandr --newmode "my1920x1080" 148.50 1920 2008 2052 2200 1080

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 05:10:47PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 04:36 PM, Daniel Vetter wrote: > >Last time around I've discussed with people we've ended up with 2 new > >ioctls: > > > >- atomic modeset, to configure the output state on more than one crtc at > > the same time. T

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #5 from Alex Deucher 2012-04-18 08:25:53 PDT --- If you manually add the 1920x1080 modeline with xrandr, does it work ok? E.g., xrandr --newmode "my1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync xrandr --

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #4 from Tvrtko Ursulin 2012-04-18 08:25:15 PDT --- So it all looks right (pixel clock wise) in radeon_compute_pll_avivo. I guess atombios_crtc_set_pll calls atombios_crtc_program_ss to program the hardware. Could things be going wron

PCI resources above 4GB

2012-04-18 Thread Steven Newbury
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16/04/12 18:29, Yinghai Lu wrote: > On Sun, Apr 15, 2012 at 11:54 PM, Yinghai Lu > wrote: >> On Sun, Apr 15, 2012 at 1:06 PM, Yinghai Lu >> wrote: 3. use pci_bus_allocate_resource in drm/radeon driver ... ===> but that could fail. so cou

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #3 from Tvrtko Ursulin 2012-04-18 08:18:54 PDT --- Some debug showing the modeset itself: [ 2405.577713] [drm:drm_crtc_helper_set_config], modes are different, full mode set [ 2405.577721] [drm:drm_mode_debug_printmodeline], Modeli

[Bug 46711] Monitor not turning on after DisplayPort re-plug in Xorg

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46711 --- Comment #15 from Tvrtko Ursulin 2012-04-18 01:16:19 PDT --- In fact, with the patch monitor is no longer in power save mode after cable re-plug (whereas without the patch it would be), but in some strange state where the screen is black and

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 04:36 PM, Daniel Vetter wrote: Last time around I've discussed with people we've ended up with 2 new ioctls: - atomic modeset, to configure the output state on more than one crtc at the same time. This is useful to get pll assignement, memory bandwidth constrains and similar

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #2 from Tvrtko Ursulin 2012-04-18 08:08:39 PDT --- I've tried setting a handful of other resolutions via the xrandr tool and in all cases monitors reported clock matches the above list. Only 1920x1080 seems broken. -- Configure bug

[Bug 48880] Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 --- Comment #1 from Tvrtko Ursulin 2012-04-18 08:07:47 PDT --- Kernel view of the modelines: [ 1749.396456] [drm:drm_mode_debug_printmodeline], Modeline 18:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48 0x5 [ 1749.396472] [d

[Bug 46711] Monitor not turning on after DisplayPort re-plug in Xorg

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46711 --- Comment #14 from Tvrtko Ursulin 2012-04-18 00:59:41 PDT --- (In reply to comment #13) > Run through ssh "udevadm monitor" when pluging/unpluging screen you should see > event there. If you don't it's kernel issue, if you do it might be your

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 04:26 PM, Ville Syrjälä wrote: On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: On 04/18/2012 02:25 PM, Rob Clark wrote: On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim wrote: On 04/18/2012 05:46 PM, Daniel Vetter wrote: On Wed, Apr 18, 2012 at 01:31:59PM +09

[Bug 48880] New: Set mode has different timings than requested on VGA

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=48880 Bug #: 48880 Summary: Set mode has different timings than requested on VGA Classification: Unclassified Product: DRI Version: unspecified Platform: Other OS/Version: All

[PATCH] drm: fix page_flip error handling

2012-04-18 Thread Michel Dänzer
On Mit, 2012-04-18 at 13:47 +0900, Joonyoung Shim wrote: > Free event and restore event_space only when page_flip->flags has > DRM_MODE_PAGE_FLIP_EVENT if page_flip() is failed. > > Signed-off-by: Joonyoung Shim > Signed-off-by: Kyungmin Park > --- > drivers/gpu/drm/drm_crtc.c | 10 ++---

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 05:26:07PM +0300, Ville Syrjälä wrote: > On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: > > On 04/18/2012 02:25 PM, Rob Clark wrote: > > > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim > > > wrote: > > >> On 04/18/2012 05:46 PM, Daniel Vetter wrote: >

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Ville Syrjälä
On Wed, Apr 18, 2012 at 04:04:56PM +0200, Marcus Lorentzon wrote: > On 04/18/2012 02:25 PM, Rob Clark wrote: > > On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim > > wrote: > >> On 04/18/2012 05:46 PM, Daniel Vetter wrote: > >>> On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: > >>>

Re: [PATCH] dma-buf: mmap support

2012-04-18 Thread Daniel Vetter
On Wed, Apr 18, 2012 at 02:06:13PM +, Arnd Bergmann wrote: > On Wednesday 18 April 2012, Daniel Vetter wrote: > > + Because existing importing subsystems might presume coherent mappings > > for > > + userspace, the exporter needs to set up a coherent mapping. If that's > > not > > + pos

[RFC PATCH] drm: Add plane event

2012-04-18 Thread Rob Clark
On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim wrote: > > On 04/18/2012 05:46 PM, Daniel Vetter wrote: >> >> On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: >>> >>> DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is >>> for a plane. The setplane ioctl (DRM_IOCT

Re: [PATCH] dma-buf: mmap support

2012-04-18 Thread Rob Clark
On Wed, Apr 18, 2012 at 9:06 AM, Arnd Bergmann wrote: > On Wednesday 18 April 2012, Daniel Vetter wrote: >> +   Because existing importing subsystems might presume coherent mappings for >> +   userspace, the exporter needs to set up a coherent mapping. If that's not >> +   possible, it needs to fa

[Bug 17902] [830M] need support for DVO-LVDS via na2501

2012-04-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=17902 --- Comment #68 from Daniel Vetter 2012-04-18 00:22:02 PDT --- Yeah, the second i2cdetect dump looks much more reasonable, and it looks like you've indeed found the right bus for your i2c device. So the next step is to use that one with dev_priv

[Bug 46711] Monitor not turning on after DisplayPort re-plug in Xorg

2012-04-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46711 Alex Deucher changed: What|Removed |Added Attachment #60177|0 |1 is obsolete|

Re: [PATCH] dma-buf: mmap support

2012-04-18 Thread Arnd Bergmann
On Wednesday 18 April 2012, Daniel Vetter wrote: > + Because existing importing subsystems might presume coherent mappings for > + userspace, the exporter needs to set up a coherent mapping. If that's not > + possible, it needs to fake coherency by manually shooting down ptes when > + leavi

Re: [RFC PATCH] drm: Add plane event

2012-04-18 Thread Marcus Lorentzon
On 04/18/2012 02:25 PM, Rob Clark wrote: On Wed, Apr 18, 2012 at 5:11 AM, Joonyoung Shim wrote: On 04/18/2012 05:46 PM, Daniel Vetter wrote: On Wed, Apr 18, 2012 at 01:31:59PM +0900, Joonyoung Shim wrote: DRM_MODE_PLANE_EVENT is similar to DRM_MODE_PAGE_FLIP_EVENT but it is for a plane. The s

[PATCH] WIP: staging: drm/omap: dmabuf/prime mmap support

2012-04-18 Thread Rob Clark
From: Rob Clark There are still a few places to cleanup, and possibly things can be made a bit easier for individual drm drivers by some helpers in drm core. But this is enough for a proof of concept. With this, I can allocate cached buffers, fill them w/ software from userspace, and on kernel

[PATCH] dma-buf: mmap support

2012-04-18 Thread Daniel Vetter
Compared to Rob Clark's RFC I've ditched the prepare/finish hooks and corresponding ioctls on the dma_buf file. The major reason for that is that many people seem to be under the impression that this is also for synchronization with outstanding asynchronous processsing. I'm pretty massively opposed

Re: [PATCH] drm/radeon/kms: fix the regression of DVI connector check

2012-04-18 Thread Alex Deucher
On Wed, Apr 18, 2012 at 9:21 AM, Takashi Iwai wrote: > The check of the encoder type in the commit [e00e8b5e: drm/radeon/kms: > fix analog load detection on DVI-I connectors] is obviously wrong, and > it's the culprit of the regression on my workstation with DVI-analog > connection resulting in th

[PATCH] drm/radeon: fix logic inversion in load detect fix

2012-04-18 Thread alexdeucher
From: Alex Deucher Reported-by: Takashi Iwai Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_connectors.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/rade

  1   2   >