[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Daniel Vetter
m 9a51e7118fce58c835cabb192f6b6e0a4a5f6660 Mon Sep 17 00:00:00 2001 > From: Keith Packard > Date: Mon, 22 Jul 2013 18:12:28 -0700 > Subject: [PATCH 4/5] drm/i915: Add async page flip support for IVB > > This adds the necesary register defines for async page flipping > through the co

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Keith Packard
> Generally I think checking our current sw state instead of reading hw > registers would be safer, e.g. in case we start to queue up more than > one pageflip. For async pageflips in benchmark mode "flip as fast as > you can queue" would be a sensible mode. Ok, I've moved the tiling checks to the

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Keith Packard
> Generally I think checking our current sw state instead of reading hw > registers would be safer, e.g. in case we start to queue up more than > one pageflip. For async pageflips in benchmark mode "flip as fast as > you can queue" would be a sensible mode. Ok, I've moved the tiling checks to the

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Daniel Vetter
m 9a51e7118fce58c835cabb192f6b6e0a4a5f6660 Mon Sep 17 00:00:00 2001 > From: Keith Packard > Date: Mon, 22 Jul 2013 18:12:28 -0700 > Subject: [PATCH 4/5] drm/i915: Add async page flip support for IVB > > This adds the necesary register defines for async page flipping > through the co

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Keith Packard
than begging for > review for my own ;-) > -Daniel Here's a replacement for patch #4 that just adds the alignment requirement there. Do you want any other changes in this series? From 9a51e7118fce58c835cabb192f6b6e0a4a5f6660 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 22 Jul

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Keith Packard
Daniel Vetter writes: > On Wed, Jul 24, 2013 at 06:40:16PM -0700, Keith Packard wrote: >> Daniel Vetter writes: >> >> > We could just unconditionally increase the alignement in >> > intel_pin_and_fence_fb_obj - we already have more strict requirements due >> > to a bunch of w/a in other places.

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Daniel Vetter
On Wed, Jul 24, 2013 at 06:40:16PM -0700, Keith Packard wrote: > Daniel Vetter writes: > > > We could just unconditionally increase the alignement in > > intel_pin_and_fence_fb_obj - we already have more strict requirements due > > to a bunch of w/a in other places. So shouldn't hurt at all reall

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-25 Thread Daniel Vetter
On Wed, Jul 24, 2013 at 06:40:16PM -0700, Keith Packard wrote: > Daniel Vetter writes: > > > We could just unconditionally increase the alignement in > > intel_pin_and_fence_fb_obj - we already have more strict requirements due > > to a bunch of w/a in other places. So shouldn't hurt at all reall

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-24 Thread Daniel Vetter
On Wed, Jul 24, 2013 at 01:26:32PM -0700, Keith Packard wrote: > Daniel Vetter writes: > > > Matching tiling modes is actually already a requirement on gen4+ (since > > the tiling bit and the linear/tiled offset registers can't be changed with > > a MI_DISPLAY_FLIP command). > > Async flip has a

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-24 Thread Keith Packard
Daniel Vetter writes: > We could just unconditionally increase the alignement in > intel_pin_and_fence_fb_obj - we already have more strict requirements due > to a bunch of w/a in other places. So shouldn't hurt at all really. That seems like a fine plan; 32kB isn't that onerous. Do you want the

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-24 Thread Keith Packard
Daniel Vetter writes: > We could just unconditionally increase the alignement in > intel_pin_and_fence_fb_obj - we already have more strict requirements due > to a bunch of w/a in other places. So shouldn't hurt at all really. That seems like a fine plan; 32kB isn't that onerous. Do you want the

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-24 Thread Daniel Vetter
On Wed, Jul 24, 2013 at 01:26:32PM -0700, Keith Packard wrote: > Daniel Vetter writes: > > > Matching tiling modes is actually already a requirement on gen4+ (since > > the tiling bit and the linear/tiled offset registers can't be changed with > > a MI_DISPLAY_FLIP command). > > Async flip has a

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-24 Thread Keith Packard
Daniel Vetter writes: > Matching tiling modes is actually already a requirement on gen4+ (since > the tiling bit and the linear/tiled offset registers can't be changed with > a MI_DISPLAY_FLIP command). Async flip has a harder requirement -- you must use X tiling, both before and after the flip.

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-24 Thread Keith Packard
Daniel Vetter writes: > Matching tiling modes is actually already a requirement on gen4+ (since > the tiling bit and the linear/tiled offset registers can't be changed with > a MI_DISPLAY_FLIP command). Async flip has a harder requirement -- you must use X tiling, both before and after the flip.

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-23 Thread Daniel Vetter
On Mon, Jul 22, 2013 at 06:50:01PM -0700, Keith Packard wrote: > This adds the necesary register defines for async page flipping > through the command ring, and then hooks those up for Ivybridge (gen7) > page flipping. > > Signed-off-by: Keith Packard > --- > drivers/gpu/drm/i915/i915_reg.h

Re: [PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-22 Thread Daniel Vetter
On Mon, Jul 22, 2013 at 06:50:01PM -0700, Keith Packard wrote: > This adds the necesary register defines for async page flipping > through the command ring, and then hooks those up for Ivybridge (gen7) > page flipping. > > Signed-off-by: Keith Packard > --- > drivers/gpu/drm/i915/i915_reg.h

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-22 Thread Keith Packard
This adds the necesary register defines for async page flipping through the command ring, and then hooks those up for Ivybridge (gen7) page flipping. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_reg.h | 6 ++ drivers/gpu/drm/i915/intel_display.c | 40 +

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-22 Thread Keith Packard
This adds the necesary register defines for async page flipping through the command ring, and then hooks those up for Ivybridge (gen7) page flipping. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_reg.h | 6 ++ drivers/gpu/drm/i915/intel_display.c | 40 +

[PATCH 4/5] drm/i915: Add async page flip support for IVB

2013-07-22 Thread Keith Packard
This adds the necesary register defines for async page flipping through the command ring, and then hooks those up for Ivybridge (gen7) page flipping. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_reg.h | 6 + drivers/gpu/drm/i915/intel_display.c | 46 ++