From: bugzilla-daemon@freedesktop.org Subject: [Bug 60802] Corruption with DMA ring on cayman Date: Fri, 15 Mar 2013 01:32:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0973130583==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 51039E5D15 for ; Thu, 14 Mar 2013 18:32:44 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0973130583== Content-Type: multipart/alternative; boundary="1363311164.A7cBA1a2.2851"; charset="us-ascii" --1363311164.A7cBA1a2.2851 Date: Fri, 15 Mar 2013 01:32:44 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D60802 --- Comment #53 from Alexandre Demers --- (In reply to comment #50) > I believe I have the source of the bug, it appears that there is a special > case for Caymen GPUs that isn't handled in the DMA code path. In > evergreen_state.c within the method evergreen_create_sampler_view_custom > there is the chunk of code >=20 > /* 128 bit formats require tile type =3D 1 */ > if (rscreen->chip_class =3D=3D CAYMAN) { > if (util_format_get_blocksize(pipe_format) >=3D 16) > non_disp_tiling =3D 1; > } >=20 > however, within evergreen_dma_copy_tile in the same source file no such c= ode > exists. I tested whether this was the case or not by placing the lines of > code >=20 > if (util_format_get_blocksize(dst->format) >=3D 16) { > printf("Caymen non disp tiling skipping dma tile\n"); > return FALSE; > } >=20 > before the call to evergreen_dma_copy_tile in evergreen_dma_blit, and the > corruption no longer appeared. (having this checks skips the DMA path for > this case and goes through the normal path, which would be > evergreen_create_sampler_view_custom I believe) >=20 > I'm not sure which bits in the DMA packet control this setting. Your observations are right, using your trick does indeed remove the corruptions. --=20 You are receiving this mail because: You are the assignee for the bug. --1363311164.A7cBA1a2.2851 Date: Fri, 15 Mar 2013 01:32:44 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Commen= t # 53 on bug 60802<= /a> from Alexandre Demers
(In reply to comment #=
50)
> I believe I have the source of the bug, it appea=
rs that there is a special
> case for Caymen GPUs that isn't handled in the DMA code path.  In
> evergreen_state.c within the method evergreen_create_sampler_view_cust=
om
> there is the chunk of code
>=20
> 	/* 128 bit formats require tile type =3D 1 */
> 	if (rscreen->chip_class =3D=3D CAYMAN) {
> 		if (util_format_get_blocksize(pipe_format) >=3D 16)
> 			non_disp_tiling =3D 1;
> 	}
>=20
> however, within evergreen_dma_copy_tile in the same source file no suc=
h code
> exists.  I tested whether this was the case or not by placing the line=
s of
> code
>=20
> 		if (util_format_get_blocksize(dst->format) >=3D 16) {
> 			printf("Caymen non disp tiling skipping dma tile\n");
> 			return FALSE;
> 		}
>=20
> before the call to evergreen_dma_copy_tile in evergreen_dma_blit, and =
the
> corruption no longer appeared. (having this checks skips the DMA path =
for
> this case and goes through the normal path, which would be
> evergreen_create_sampler_view_custom I believe)
>=20
> I'm not sure which bits in the DMA packet control this setting.

Your observations are right, using your trick does indeed remove the
corruptions.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1363311164.A7cBA1a2.2851-- --===============0973130583== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0973130583==--