All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"
@ 2015-07-14 10:31 ` Daniel Vetter
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Vetter @ 2015-07-14 10:31 UTC (permalink / raw)
  To: Intel Graphics Development
  Cc: Daniel Vetter, Harald Arnesen, Chris Wilson, stable, Daniel Vetter

This reverts commit 19ee835cdb0b5a8eb11a68f25a51b8039d564488.

It breaks existing old userspace which doesn't handle UNKNOWN
swizzling correct. Yes UNKNOWN was a thing back in 2009 and probably
still is on some other platforms, but it still pretty clearly broke
the testers machine. If we want this we need to extend the ioctl with
new paramters that only new userspace looks at.

Cc: Harald Arnesen <harald@skogtun.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Harald Arnesen <harald@skogtun.org>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_tiling.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index d61e74a08f82..633bd1fcab69 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -183,18 +183,8 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
 		if (IS_GEN4(dev)) {
 			uint32_t ddc2 = I915_READ(DCC2);
 
-			if (!(ddc2 & DCC2_MODIFIED_ENHANCED_DISABLE)) {
-				/* Since the swizzling may vary within an
-				 * object, we have no idea what the swizzling
-				 * is for any page in particular. Thus we
-				 * cannot migrate tiled pages using the GPU,
-				 * nor can we tell userspace what the exact
-				 * swizzling is for any object.
-				 */
+			if (!(ddc2 & DCC2_MODIFIED_ENHANCED_DISABLE))
 				dev_priv->quirks |= QUIRK_PIN_SWIZZLED_PAGES;
-				swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN;
-				swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
-			}
 		}
 
 		if (dcc == 0xffffffff) {
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"
@ 2015-07-14 10:31 ` Daniel Vetter
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Vetter @ 2015-07-14 10:31 UTC (permalink / raw)
  To: Intel Graphics Development
  Cc: Daniel Vetter, Daniel Vetter, Harald Arnesen, stable

This reverts commit 19ee835cdb0b5a8eb11a68f25a51b8039d564488.

It breaks existing old userspace which doesn't handle UNKNOWN
swizzling correct. Yes UNKNOWN was a thing back in 2009 and probably
still is on some other platforms, but it still pretty clearly broke
the testers machine. If we want this we need to extend the ioctl with
new paramters that only new userspace looks at.

Cc: Harald Arnesen <harald@skogtun.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Harald Arnesen <harald@skogtun.org>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_tiling.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_tiling.c b/drivers/gpu/drm/i915/i915_gem_tiling.c
index d61e74a08f82..633bd1fcab69 100644
--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
+++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
@@ -183,18 +183,8 @@ i915_gem_detect_bit_6_swizzle(struct drm_device *dev)
 		if (IS_GEN4(dev)) {
 			uint32_t ddc2 = I915_READ(DCC2);
 
-			if (!(ddc2 & DCC2_MODIFIED_ENHANCED_DISABLE)) {
-				/* Since the swizzling may vary within an
-				 * object, we have no idea what the swizzling
-				 * is for any page in particular. Thus we
-				 * cannot migrate tiled pages using the GPU,
-				 * nor can we tell userspace what the exact
-				 * swizzling is for any object.
-				 */
+			if (!(ddc2 & DCC2_MODIFIED_ENHANCED_DISABLE))
 				dev_priv->quirks |= QUIRK_PIN_SWIZZLED_PAGES;
-				swizzle_x = I915_BIT_6_SWIZZLE_UNKNOWN;
-				swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
-			}
 		}
 
 		if (dcc == 0xffffffff) {
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"
  2015-07-14 10:31 ` Daniel Vetter
  (?)
@ 2015-07-14 16:15 ` Chris Wilson
  2015-07-14 17:31   ` Harald Arnesen
  -1 siblings, 1 reply; 6+ messages in thread
From: Chris Wilson @ 2015-07-14 16:15 UTC (permalink / raw)
  To: Daniel Vetter
  Cc: Intel Graphics Development, Harald Arnesen, stable, Daniel Vetter

On Tue, Jul 14, 2015 at 12:31:21PM +0200, Daniel Vetter wrote:
> This reverts commit 19ee835cdb0b5a8eb11a68f25a51b8039d564488.
> 
> It breaks existing old userspace which doesn't handle UNKNOWN
> swizzling correct. Yes UNKNOWN was a thing back in 2009 and probably
> still is on some other platforms, but it still pretty clearly broke
> the testers machine. If we want this we need to extend the ioctl with
> new paramters that only new userspace looks at.
> 
> Cc: Harald Arnesen <harald@skogtun.org>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Reported-by: Harald Arnesen <harald@skogtun.org>
> Cc: stable@vger.kernel.org
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>

I am annoyed, but under the rules we have to revert this because
userspace (me) fscked up.

Acked-by: Chris Wilson <chris@chris-wilson.co.uk>

But v1 should work in 99.9% of cases.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"
  2015-07-14 16:15 ` Chris Wilson
@ 2015-07-14 17:31   ` Harald Arnesen
  2015-07-14 19:58     ` Chris Wilson
  0 siblings, 1 reply; 6+ messages in thread
From: Harald Arnesen @ 2015-07-14 17:31 UTC (permalink / raw)
  To: Chris Wilson, Daniel Vetter, Intel Graphics Development, stable,
	Daniel Vetter

Chris Wilson [2015-07-14 18:15]:

> I am annoyed, but under the rules we have to revert this because
> userspace (me) fscked up.
> 
> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
> 
> But v1 should work in 99.9% of cases.

This is Debian Jessie (admittedly without systemd), hardly an antique
distro. What is so old in my userspace?
-- 
Hilsen Harald

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"
  2015-07-14 17:31   ` Harald Arnesen
@ 2015-07-14 19:58     ` Chris Wilson
  2015-07-14 23:52       ` [Intel-gfx] " Dave Airlie
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Wilson @ 2015-07-14 19:58 UTC (permalink / raw)
  To: Harald Arnesen
  Cc: Daniel Vetter, Intel Graphics Development, stable, Daniel Vetter

On Tue, Jul 14, 2015 at 07:31:12PM +0200, Harald Arnesen wrote:
> Chris Wilson [2015-07-14 18:15]:
> 
> > I am annoyed, but under the rules we have to revert this because
> > userspace (me) fscked up.
> > 
> > Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
> > 
> > But v1 should work in 99.9% of cases.
> 
> This is Debian Jessie (admittedly without systemd), hardly an antique
> distro. What is so old in my userspace?

You have a new feature that was being developed in conjunction with the
kernel. Only we found a few issues with gen4 in particular, in both the
kernel and userspace.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Intel-gfx] [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations"
  2015-07-14 19:58     ` Chris Wilson
@ 2015-07-14 23:52       ` Dave Airlie
  0 siblings, 0 replies; 6+ messages in thread
From: Dave Airlie @ 2015-07-14 23:52 UTC (permalink / raw)
  To: Chris Wilson, Harald Arnesen, Daniel Vetter,
	Intel Graphics Development, stable, Daniel Vetter

On 15 July 2015 at 05:58, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> On Tue, Jul 14, 2015 at 07:31:12PM +0200, Harald Arnesen wrote:
>> Chris Wilson [2015-07-14 18:15]:
>>
>> > I am annoyed, but under the rules we have to revert this because
>> > userspace (me) fscked up.
>> >
>> > Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
>> >
>> > But v1 should work in 99.9% of cases.
>>
>> This is Debian Jessie (admittedly without systemd), hardly an antique
>> distro. What is so old in my userspace?
>
> You have a new feature that was being developed in conjunction with the
> kernel. Only we found a few issues with gen4 in particular, in both the
> kernel and userspace.

If only we had some sort of system of release management that could help us...

Dave.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-07-14 23:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 10:31 [PATCH] Revert "drm/i915: Declare the swizzling unknown for L-shaped configurations" Daniel Vetter
2015-07-14 10:31 ` Daniel Vetter
2015-07-14 16:15 ` Chris Wilson
2015-07-14 17:31   ` Harald Arnesen
2015-07-14 19:58     ` Chris Wilson
2015-07-14 23:52       ` [Intel-gfx] " Dave Airlie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.