From: Eric Anholt Subject: Re: [PATCH] drm/i915: fix tiling limits for i915 class hw Date: Sun, 18 Apr 2010 17:28:24 -0700 Message-ID: <87aat02slz.fsf@pollan.anholt.net> References: <1271315296-9447-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0500406163==" Return-path: In-Reply-To: <1271315296-9447-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, stable@kernel.org List-Id: intel-gfx@lists.freedesktop.org --===============0500406163== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 15 Apr 2010 09:08:16 +0200, Daniel Vetter = wrote: > Current code is definitely crap: Largest pitch allowed spills into > the TILING_Y bit of the fence registers ... :( >=20 > I've rewritten the limits check under the assumption that 3rd gen hw > has a 3d pitch limit of 8kb (like 2nd gen). This is supported by an > otherwise totally misleading XXX comment. >=20 > This bug mostly resulted in tiling-corrupted pixmaps because the kernel > allowed too wide buffers to be tiled. Bug brought to the light by the > xf86-video-intel 2.11 release because that unconditionally enabled > tiling for pixmaps, relying on the kernel to check things. Tiling for > the framebuffer was not affected because the ddx does some additional > checks there ensure the buffer is within hw-limits. >=20 > Signed-off-by: Daniel Vetter > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D27449 > Tested-by: Alexander Lam > Cc: stable@kernel.org Could we please just test against 8192 bytes intead of these obfuscated values? Nice fix, though :) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvLo6kACgkQHUdvYGzw6vdJiACdFtcFITl+rPnNSE2m5EjAZ53j DcIAoJzn/ifKmtHNIYR7hHPZPTh/Ffek =MsRg -----END PGP SIGNATURE----- --=-=-=-- --===============0500406163== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============0500406163==--