[Intel-gfx] [PATCH 04/37] drm/i915: rework locking for intel_dpio|sbi_read|write

2012-12-12 Thread Daniel Vetter
On Wed, Dec 12, 2012 at 12:54:47PM -0800, Jesse Barnes wrote: > On Wed, 12 Dec 2012 14:06:44 +0100 > Daniel Vetter wrote: > > > Spinning for up to 200 us with interrupts locked out is not good. So > > let's just spin (and even that seems to be excessive). > > > > And we don't call these

[Bug 58166] RV670 AGP regression between drm-fixes and drm-next - no display.

2012-12-12 Thread bugzilla-dae...@freedesktop.org
top of it -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121212/005d6fdf/attachment.html>

[Bug 58166] RV670 AGP regression between drm-fixes and drm-next - no display.

2012-12-12 Thread bugzilla-dae...@freedesktop.org
t i will attach next. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121212/a12f196b/attachment.html>

[RFC v4 5/5] drm/exynos: add gsc ipp driver

2012-12-12 Thread Eunchul Kim
GSC is stand for General SCaler and supports supports image scaler/rotator/crop/flip/csc and input/output DMA operations. input DMA reads image data from the memory. output DMA writes image data to memory. GSC supports image rotation and imag effect functions. also supports writeback and display

[RFC v4 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Eunchul Kim
Rotator supports rotation/crop/flip and input/output DMA operations Rotator ipp driver supports 90,180,270 degree rotaion and vertical, horizontal flip. and has some limitations(source and destination format have to be same, no scaler) Signed-off-by: Eunchul Kim Signed-off-by: Youngjun Cho

[RFC v4 3/5] drm/exynos: add fimc ipp driver

2012-12-12 Thread Eunchul Kim
FIMC is stand for Fully Interfactive Mobile Camera and supports image scaler/rotator/crop/flip/csc and input/output DMA operations. input DMA reads image data from the memory. output DMA writes image data to memory. FIMC supports image rotation and image effect functions. also supports writeback

[RFC v4 2/5] drm/exynos: add iommu support for ipp

2012-12-12 Thread Eunchul Kim
This patch adds iommu support for ipp. For this, it adds subdrv_probe/remove callback to enable or disable ipp iommu. we can get or put device address to a gem handle from user through exynos_drm_gem_get/put_dma_addr(). Signed-off-by: Eunchul Kim Signed-off-by: Jinyoung Jeon ---

[RFC v4 1/5] drm/exynos: add ipp subsystem

2012-12-12 Thread Eunchul Kim
IPP stand for Image Post Processing and supports image scaler/rotator /crop/flip/csc(color space conversion) and input/output DMA operations using ipp drivers. also supports writeback and display output operations. ipp driver include FIMC, Rotator, GSC, SC, so on. and ipp is integration device

[RFC v4 0/5] drm/exynos: add ipp subsystem and each ipp drivers

2012-12-12 Thread Eunchul Kim
Hi All. I am responsible for a display part from Samsung Electronics Telecommunication Division. and I am going to add post-processing features in exynos drm. If you have some opinions of this patch, please give some comments about my patch. Changelog v4: This RFC v4 changed ipp subsystem for

[Bug 26345] [845G] CPU/GPU incoherency

2012-12-12 Thread bugzilla-dae...@freedesktop.org
attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121212/c8a2c69c/attachment.html>

[Bug 57875] Second Life viewer bad rendering with git-ec83535

2012-12-12 Thread bugzilla-dae...@freedesktop.org
You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121212/8409be56/attachment.html>

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Eunchul Kim
Thank's for your comment. BR Eunchul Kim. On 12/12/2012 06:46 PM, Inki Dae wrote: > > One more comment. > > >> -Original Message- >> From: Eunchul Kim [mailto:chulspro.kim at samsung.com] >> Sent: Wednesday, December 12, 2012 6:26 PM >> To: Inki Dae >> Cc: dri-devel at

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Eunchul Kim
Thank's your comment BR Eunchul Kim On 12/12/2012 07:39 PM, Inki Dae wrote: > > >> -Original Message- >> From: Inki Dae [mailto:inki.dae at samsung.com] >> Sent: Wednesday, December 12, 2012 7:01 PM >> To: 'Inki Dae'; 'Eunchul Kim' >> Cc: jy0.jeon at samsung.com; sw0312.kim at

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Inki Dae
> -Original Message- > From: Inki Dae [mailto:inki.dae at samsung.com] > Sent: Wednesday, December 12, 2012 7:01 PM > To: 'Inki Dae'; 'Eunchul Kim' > Cc: jy0.jeon at samsung.com; sw0312.kim at samsung.com; jaejoon.seo at > samsung.com; > kyungmin.park at samsung.com; dri-devel at

[Bug 58042] Garbled UI in Team Fortress 2 Beta

2012-12-12 Thread bugzilla-dae...@freedesktop.org
are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121212/d8f3f9dd/attachment.html>

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Inki Dae
> -Original Message- > From: dri-devel-bounces+inki.dae=samsung.com at lists.freedesktop.org > [mailto:dri-devel-bounces+inki.dae=samsung.com at lists.freedesktop.org] On > Behalf Of Inki Dae > Sent: Wednesday, December 12, 2012 6:42 PM > To: 'Eunchul Kim' > Cc: jy0.jeon at samsung.com;

[RFC v2 6/8] gpu: drm: tegra: Remove redundant host1x

2012-12-12 Thread Terje Bergström
On 12.12.2012 18:08, Thierry Reding wrote: > I've briefly discussed this with Stephen on IRC because I thought I had > remembered him objecting to the idea of adding a dummy device just for > this purpose. It turns out, however, that what he didn't like was to add > a dummy node to the DT just to

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Inki Dae
One more comment. > -Original Message- > From: Eunchul Kim [mailto:chulspro.kim at samsung.com] > Sent: Wednesday, December 12, 2012 6:26 PM > To: Inki Dae > Cc: dri-devel at lists.freedesktop.org; jy0.jeon at samsung.com; > yj44.cho at samsung.com; jmock.shin at samsung.com;

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Inki Dae
> -Original Message- > From: Eunchul Kim [mailto:chulspro.kim at samsung.com] > Sent: Wednesday, December 12, 2012 6:26 PM > To: Inki Dae > Cc: dri-devel at lists.freedesktop.org; jy0.jeon at samsung.com; > yj44.cho at samsung.com; jmock.shin at samsung.com; jaejoon.seo at >

[RFC v3 4/5] drm/exynos: add rotator ipp driver

2012-12-12 Thread Eunchul Kim
Thank's your comment. I answer your comment. please check that. Thank's BR Eunchul Kim On 12/12/2012 05:29 PM, Inki Dae wrote: > > >> -Original Message- >> From: Eunchul Kim [mailto:chulspro.kim at samsung.com] >> Sent: Wednesday, December 12, 2012 4:35 PM >> To: dri-devel at

[PATCH 81/81] drm/i915: Add trace point for atomic flip vblank evade

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_trace.h | 18 ++ drivers/gpu/drm/i915/intel_atomic.c |2 ++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_trace.h

[PATCH 80/81] drm/i915: Add post flush DSL readout for surflive debug

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_trace.h | 19 +++ drivers/gpu/drm/i915/intel_atomic.c |4 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_trace.h

[PATCH 79/81] drm/i915: Add some timing debugs to atomic flips

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index c964b64a..43767c2 100644 ---

[PATCH 78/81] HACK: drm/i915: Make non-blocking GPU synchronization optional

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Add a module parameter that allows one to easily change between blocking and non-blocking GPU synchronization with atomic page flips. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_stub.c |5 ++

[PATCH 77/81] drm/i915: Add trace points for flip queue length

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/i915_trace.h | 15 +++ drivers/gpu/drm/i915/intel_atomic.c |9 - 3 files changed, 24 insertions(+), 1 deletions(-)

[PATCH 76/81] drm/i915: Add pin count trace point

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? A new trace point for tracking changes to gem object pin count. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_gem.c |6 ++ drivers/gpu/drm/i915/i915_trace.h | 19 +++ 2 files changed, 25 insertions(+),

[PATCH 75/81] drm/i915: Drop some stale FIXMEs from the atomic code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index 415cd72..efdaff3

[PATCH 74/81] drm/i915: Add some TODO items to the atomic code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Add a comment that outlines some of the missign/incomplete parts of the atomic code. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git

[PATCH 73/81] drm/i915: Use new_crtc when checking if CRTC is in use

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The atomic check() hook is interested in the staged new configuration, so it must use the intel_encoder::new_crtc pointer when checking if a CRTC is in use or not. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 16

[PATCH 72/81] drm: Drop old_crtc and old_encoder pointers

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? These are not needed anymore. Signed-off-by: Ville Syrj?l? --- include/drm/drm_crtc.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index c8cea87..da9abb6 100644 ---

[PATCH 71/81] drm/i915: Eliminate swap_old_new() hack in the atomic code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Use the new_crtc and new_encoder pointes inside the intel_encoder and intel_connector structures instead of swapping the crtc and encoder pointers in the drm base structures around the disable calls. Signed-off-by: Ville Syrj?l? ---

[PATCH 70/81] drm/i915: Unstatic intel_modeset_commit_output_state()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The atomic code will want to call intel_modeset_commit_output_state() too. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |2 +- drivers/gpu/drm/i915/intel_drv.h |1 + 2 files changed, 2 insertions(+), 1

[PATCH 69/81] drm/i915: Refactor flip preaparation

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Most of the code for preparing the 'struct intel_flip' instances was identical betwen the CRTC and plane codepaths. Refactor the common parts into a single function. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 122

[PATCH 68/81] drm/i915: Drop all flips waiting for the GPU when the CRTC is about to be disabled

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c

[PATCH 67/81] drm/i915: Clear pending flips in haswell_crtc_disable()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 390251d..2f518be

[PATCH 66/81] drm/i915: Make a copy of the calculated plane regs

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The register values are computed when the flip ioctl is issued, and they're used only after we've waited for the GPU to finish rendering. The computed values are store in the intel_crtc and intel_plane structs, so issuing another flip before the

[PATCH 65/81] drm/i915: Release all atomic flips when GPU hangs

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? If the GPU hangs, release all pending atomic flips from the queue. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_irq.c |1 + drivers/gpu/drm/i915/intel_atomic.c | 29 +

[PATCH 64/81] drm/i915: Implement a non-blocking GPU synchronization mechanism for atomic page flips

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? After the atomic flip has been split up into individual flip requests for each scanout engine, put each such request into a FIFO. Then for each flip request add new request to the ring(s) in order to get an interrupt once the GPU has finished

[PATCH 63/81] drm/i915: Refactor atomic flip code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Collect the part which takes care of issuing the flips to a new function. This makes the following patch nicer to look at. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 37 -- 1 files

[PATCH 62/81] drm/i915: Unstatic i915_gem_check_olr()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Atomic code might need i915_gem_check_olr(). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/i915_gem.c |2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git

[PATCH 61/81] drm/i915: Remove stale prototypes form atomic code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? These function no longer exist. --- drivers/gpu/drm/i915/intel_atomic.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index

[PATCH 60/81] drm/i915: Unpin old fbs only when appropriate

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Don't unpin the old fb after flips, unless a new fb was pinned, or we're disabling the plane/crtc. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff

[PATCH 59/81] drm/i915: Send atomic completion events even if nothing changed

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index

[PATCH 58/81] drm/i915: Fix plane src rectangle dirty check

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index

[PATCH 57/81] drm/i915: Fix hiding the cursor with atomic ioctl

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ander Conselvan de Oliveira intel_crtc->cursor_visible is only changed on the commit phase, so the check for visibility was considering the previous state. Change this to intel_crtc->cursor_handle instead. --- drivers/gpu/drm/i915/intel_atomic.c |

[PATCH 56/81] drm/i915: Fix sprite_scaling_enabled for multiple sprites

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? We have more than one sprite, so a boolean simply won't cut it. Turn sprite_scaling_enabled into a bitmask and track the state of sprite scaler for each sprite independently. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_drv.h

[PATCH 55/81] drm/i915: Don't mark cursor as pinned, when we don't have a cursor bo

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Avoids a NULL pointer dereference if the atomic modeset fails. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c

[PATCH 54/81] drm/i915: Kill the pending_flip counter manipulations

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The pending_flip counter is probably going to be remove entirely, along with i915_gem_execbuffer_wait_for_flips() so don't even try to use it. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 74

[PATCH 53/81] drm/i915: Update connector DPMS state after an atomic modeset

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Update the connector DPMS state after atomic modeset operations. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git

[PATCH 52/81] drm/i915: Update new_crtc and new_encoder fields after atomic modeset

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The i915 modeset logic requires that these be kept in sync with the other crtc and encoder pointers. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH 51/81] drm/i915: Unstatic intel_modeset_update_staged_output_state()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The atomic code needs intel_modeset_update_staged_output_state(). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |2 +- drivers/gpu/drm/i915/intel_drv.h |2 ++ 2 files changed, 3 insertions(+), 1

[PATCH 50/81] drm/i915: Use intel_best_encoder() directly

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? All connectors use intel_best_encoder() as their best_encoder() func, so just call it directly w/o the indirection. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 10 ++ 1 files changed, 2 insertions(+), 8

[PATCH 49/81] drm: Move standard crtc/plane prop handling to drm_crtc.c

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Move some of the property code to drm_crtc.c since it should be shared by everyone. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 235 +++ drivers/gpu/drm/i915/intel_atomic.c | 256

[PATCH 48/81] drm/i915: Update CRTC properties after modeset

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Update cursor related CRTC properties after a modeset. The cursor properties aren't handled by the drm core since not all CRTCs have cursors. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c | 15 +++ 1

[PATCH 47/81] drm: Update standard plane properties after update_plane/disable_plane

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Keep the new plane properties when doing operations through the legacy code paths. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

[PATCH 46/81] drm_crtc_helper: Update standard crtc properties after modeset

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Keep the new CRTC properties when doing modeset through the legacy code paths. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git

[PATCH 45/81] drm/i915: Move standard properties under mode_config

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Standard connector properties are kept in the mode_config structure. Move the CRTC and plane properties there as well. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 293 +++

[PATCH 44/81] drm/i915: Refactor property handling in atomic code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Move the property code around a bit to make it easier to move it out to the drm core later. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 423 --- drivers/gpu/drm/i915/intel_drv.h|

[PATCH 43/81] drm/i915: Clear flip helpers for sprites too

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Don't leave stale flips hanging around the sprites' flip helpers when the crtc is being disabled. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 15 +++ drivers/gpu/drm/i915/intel_display.c |4 ++--

[PATCH 42/81] drm: Add missing EXPORT_SYMBOL()s for drm_flip

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ander Conselvan de Oliveira --- drivers/gpu/drm/drm_flip.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_flip.c b/drivers/gpu/drm/drm_flip.c index 6ccc3f8..a20e6a4 100644 ---

[PATCH 41/81] drm/i915: Add primary plane disable logic to atomic mode setting code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Enable/disable the primary plane accordingly when the sprite plane coverage changes. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 41 +++ 1 files changed, 41 insertions(+), 0

[PATCH 40/81] drm/i915: Enable/disable primary plane in calc_plane()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Check the active and primary_disabled flags and set the DISPLAY_PLANE_ENABLE bit accordingly in calc_plane() hook for the primary plane. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c | 10 ++ 1 files changed,

[PATCH 39/81] drm/i915: Respect primary_disabled in crtc_enable()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Check primary_disabled state before enabling the primary plane in crtc_enable() hooks. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH 38/81] drm/i915: Unstatic intel_enable_primary() and intel_disable_primary()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? intel_enable_primary() and intel_disable_primary() are needed in the atomic mode setting code. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_drv.h|3 +++ drivers/gpu/drm/i915/intel_sprite.c |4 ++-- 2 files changed,

[PATCH 37/81] drm/i915: Add atomic page flip support

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Add support for the DRM_MODE_ATOMIC_NONBLOCK flag. The drm_flip helper provides the necessary logic to track the progress of the flips. drm_flip is driven by a few extra calls from the interrupt handling and crtc_disable code paths. Since the

[PATCH 36/81] drm/i915: Add support for atomic modesetting completion events

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Send completion events when the atomic modesetting operations has finished succesfully. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_atomic.c | 195 ++- 1 files changed, 192 insertions(+), 3

[PATCH 35/81] drm/i915: Implement atomic modesetting

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Implement the mandatory hooks for the atomic modeset ioctl. The code first makes a backup of the current state, then proceeds to modify the state as properties are modified. After all the properties have been handled the new state is checked,

[PATCH 34/81] drm/i915: Split sprite update_plane() into calc+commit phases

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Separate the part that calculates the register values from the part that writes the registers. This will be useful in the atomic page flip code. Also move the watermark magic into a prepare function that can be performed outside the critical

[PATCH 33/81] drm/i915: Split primary plane update_plane() into calc+commit phases

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Separate the part that calculates the register values from the part that writes the registers. This will be useful in the atomic page flip code. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_drv.h |3 +

[PATCH 32/81] drm/i915: Introduce intel_plane_regs

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? intel_plane_regs can be used to shadow all the typical plane registers. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_drv.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git

[PATCH 31/81] drm/i915: Unstatic intel_crtc_mode_fixup()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Make intel_crtc_mode_fixup() available for the upcoming atomic modesetting code. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |6 +++--- drivers/gpu/drm/i915/intel_drv.h |4 2 files changed, 7

[PATCH 30/81] drm/i915: Constify mode argument to intel_modeset_adjusted_mode()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? intel_modeset_adjusted_mode() doesn't modify the passed display mode. So pass it as const. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 29/81] drm/i915: Unstatic intel_crtc_update_sarea_pos()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Make intel_crtc_update_sarea_pos() available to the atomic mode setting code. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |2 +- drivers/gpu/drm/i915/intel_drv.h |1 + 2 files changed, 2 insertions(+), 1

[PATCH 28/81] drm/i915: Unstatic intel_crtc_update_sarea()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Make intel_crtc_update_sarea() available for the atomic mode setting code. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |4 ++-- drivers/gpu/drm/i915/intel_drv.h |2 ++ 2 files changed, 4 insertions(+), 2

[PATCH 27/81] drm/i915: Pull intel_pipe_set_base() out of the crtc_mode_set() functions

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? intel_pipe_set_base() (un)pins the buffers, so it can't be called from the atomic modeset paths. Pull the intel_pipe_set_base() and watermark modifications out of i9xx_crtc_mode_set() and ironlake_crtc_mode_set() into intel_crtc_mode_set(), so

[PATCH 26/81] drm/i915: Unstatic intel_finish_fb()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? intel_finish_fb() will be used by the atomic modeset code, so make it non-static. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |2 +- drivers/gpu/drm/i915/intel_drv.h |1 + 2 files changed, 2

[PATCH 25/81] drm/i915: unstatic cursor functions for use with atomic modesetting

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/intel_display.c | 24 drivers/gpu/drm/i915/intel_drv.h | 13 + 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

[PATCH 24/81] drm/i915: split cursor setting code into prepare/commit/unref parts

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ander Conselvan de Oliveira The atomic mode setting API will need to pin the cursor bo without making changes to the current setup. Only on a later stage the cursor registers can be written and the previous bo released. This patch splits intel_crtc_cursor_set() into

[PATCH 23/81] drm/i915: store cursor_handle in struct intel_crtc

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ander Conselvan de Oliveira This way it is possible to check if the cursor changed without doing any setup. Will be useful for the atomic modesetting api. --- drivers/gpu/drm/i915/intel_display.c |1 + drivers/gpu/drm/i915/intel_drv.h |2 +- 2 files

[PATCH 22/81] drm/i915: Add intel_check_clock()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? intel_check_clock() can be used to check clock validity w/o modifying hardware state. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_drv.h |2 ++ drivers/gpu/drm/i915/intel_display.c | 34

[PATCH 21/81] drm/i915: Consitify adjusted_mode parameter

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? i9xx_adjust_sdvo_tv_clock(), i9xx_compute_clocks() and ironlake_compute_clocks() do not modify the adjusted_mode passed in, so pass it as const. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c |6 +++--- 1 files

[PATCH 20/81] drm/i915: Factor out i9xx_compute_clocks() like ironlake_compute_clocks()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Split the clock stuff out. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c | 128 -- 1 files changed, 75 insertions(+), 53 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

[PATCH 19/81] drm/i915: Split clipping and checking from update_plane hook

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Split the update_plane() codepath into two separate steps. The first step checkis and clips the plane, and the second step actually commits the changes to the hardware. This allows the atomic modesetting code to perform all checks before

[PATCH 18/81] drm/i915: Implement restore_fbdev_mode hook

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Convert intel_fb_restore_mode to be useable as the drm_fb_helper.restore_fbdev_mode hook. This will cause all planes to be disabled when swithing back to fbcon. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/i915_dma.c |2 +-

[PATCH 17/81] drm/i915: Implement proper clipping for video sprites

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Properly clip the source when the destination gets clipped by the pipe dimensions. Sadly the video sprite hardware is rather limited so it can't do proper sub-pixel postitioning. Resort to a best effort approach, where the source coordinates

[PATCH 16/81] drm/i915: Use drm_format_plane_cpp() rather than bits_per_pixel/8

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? bits_per_pixel may not be populated for all pixel formats, so let's just use drm_format_plane_cpp(). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/i915/intel_display.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-)

[PATCH 15/81] drm: Add the atomic modeset ioctl

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? This new ioctl can be used to update an arbitrary set of object properties in one operation. The ioctl simply takes a list of object IDs and property IDs and their values. For setting values of blob properties, the property value indicates the

[PATCH 14/81] drm: Add mode_blob and connector_ids_blob to drm_crtc

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? These will be ued by standard properties MODE and CONNECTOR_IDS. Signed-off-by: Ville Syrj?l? --- include/drm/drm_crtc.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_crtc.h

[PATCH 13/81] drm: Add drm_flip helper

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The drm_flip mechanism can be used to implement robust page flipping support, and also to synchronize the flips on multiple hardware scanout engines (eg. CRTCs and overlays). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/Makefile |2

[PATCH 12/81] drm: Make blobs resizeable

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? When first allocated blobs can be given a maximum size for which memory is allocated. Later the data inside the blob can be replaced, assuming that the maximum size is not exceeded. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c

[PATCH 11/81] drm: Export mode<->umode conversion functions

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Export drm_crtc_convert_to_umode() and drm_crtc_convert_umode(). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 10 ++ include/drm/drm_crtc.h |4 2 files changed, 10 insertions(+), 4 deletions(-) diff

[PATCH 10/81] drm: Refactor object property check code

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Refactor the code to check whether an object has a specific property to a new function. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git

[PATCH 09/81] drm: Export drm_crtc_prepare_encoders()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c |3 ++- include/drm/drm_crtc_helper.h |1 + 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index

[PATCH 08/81] drm: Export drm_encoder_crtc_ok

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc_helper.c |5 +++-- include/drm/drm_crtc_helper.h |3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index

[PATCH 07/81] drm: Allow drm_mode_object_find() to look up an object of any type

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? To avoid having to pass object types from userspace for atomic mode setting ioctl, allow drm_mode_object_find() to look up an object of any type. This will only work as long as the all object types share the ID space. Signed-off-by: Ville

[PATCH 06/81] drm: Allow signed values for range properties

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Treat a range property as signed when the unsigned minimum value is larger than the unsigned maximum value. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 17 ++--- 1 files changed, 14 insertions(+), 3

[PATCH 05/81] drm: Export drm_property_create_blob() and drm_property_destroy_blob()

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |8 +--- include/drm/drm_crtc.h |4 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index

[PATCH 04/81] drm: Add restore_fbdev_mode() hook to drm_fb_helper

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Add an optional driver specific restore_fbdev_mode() hook to drm_fb_helper. If the driver doesn't provide the hook, drm_fb_helper_restore_fbdev_mode() is called directly as before. In this hook the driver can disable additional planes, cursors

[PATCH 03/81] drm: Keep a copy of last plane coordinates

2012-12-12 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? If the update_plane() operation succeeds, make a copy of the requested src and crtc coordinates, so that the the plane may be reclipped if the display mode changed later. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |8

[PATCH 02/81] drm: Add drm_calc_{hscale, vscale}() utility functions

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

  1   2   3   4   >