From: bugzilla-daemon@freedesktop.org Subject: [Bug 60802] Corruption with DMA ring on cayman Date: Thu, 14 Mar 2013 23:33:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1154201009==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 94FDAE605C for ; Thu, 14 Mar 2013 16:33:25 -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 --===============1154201009== Content-Type: multipart/alternative; boundary="1363304005.fB632.13825"; charset="us-ascii" --1363304005.fB632.13825 Date: Thu, 14 Mar 2013 23:33:25 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=60802 --- Comment #50 from Anthony Waters --- 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 /* 128 bit formats require tile type = 1 */ if (rscreen->chip_class == CAYMAN) { if (util_format_get_blocksize(pipe_format) >= 16) non_disp_tiling = 1; } however, within evergreen_dma_copy_tile in the same source file no such code exists. I tested whether this was the case or not by placing the lines of code if (util_format_get_blocksize(dst->format) >= 16) { printf("Caymen non disp tiling skipping dma tile\n"); return FALSE; } 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) I'm not sure which bits in the DMA packet control this setting. -- You are receiving this mail because: You are the assignee for the bug. --1363304005.fB632.13825 Date: Thu, 14 Mar 2013 23:33:25 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 50 on bug 60802 from
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

    /* 128 bit formats require tile type = 1 */
    if (rscreen->chip_class == CAYMAN) {
        if (util_format_get_blocksize(pipe_format) >= 16)
            non_disp_tiling = 1;
    }

however, within evergreen_dma_copy_tile in the same source file no such code
exists.  I tested whether this was the case or not by placing the lines of code

        if (util_format_get_blocksize(dst->format) >= 16) {
            printf("Caymen non disp tiling skipping dma tile\n");
            return FALSE;
        }

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)

I'm not sure which bits in the DMA packet control this setting.


You are receiving this mail because:
  • You are the assignee for the bug.
--1363304005.fB632.13825-- --===============1154201009== 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 --===============1154201009==--