dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Ivanov <gnidorah@p0n4ik.tk>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Maling list - DRI developers <dri-devel@lists.freedesktop.org>
Subject: Re: drm/radeon: "ring test failed" on PA-RISC Linux
Date: Wed, 25 Sep 2013 20:29:07 +0400	[thread overview]
Message-ID: <191451380126547@web25g.yandex.ru> (raw)
In-Reply-To: <20130923201132.GD3019@phenom.dumpdata.com>

24.09.2013, 00:11, "Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>:
> On Sat, Sep 21, 2013 at 07:39:10AM +0400, Alex Ivanov wrote:
>
>>  21.09.2013, в 1:27, Alex Deucher <alexdeucher@gmail.com> написал(а):
>>>  The register writes seems to be going through the register backbone correctly:
>>>
>>>  [0x00B] 0x15E0=0x00000000
>>>  [0x00C] 0x15E4=0xCAFEDEAD
>>>  [0x00D] 0x4274=0x0000000F
>>>  [0x00E] 0x42C8=0x00000007
>>>  [0x00F] 0x4018=0x0000001D
>>>  [0x010] 0x170C=0x80000000
>>>  [0x011] 0x3428=0x00020100
>>>  [0x012] 0x15E4=0xCAFEDEAD
>>>
>>>  You can see the 0xCAFEDEAD written to the scratch register via MMIO
>>>  from the ring_test(). The CP fifo however seems to be full of garbage.
>>>  The CP is busy though, so it seems to be functional.  I guess it's
>>>  just fetching garbage rather than commands.
>
> If it is fetching garbage, that would imply the DMA (or bus addresses)
> that are programmed in the GART are bogus. If you dump them and try
> to figure out if bus adress -> physical address -> virtual address ==
> virtual address -> bus address that could help. And perhaps seeing what
> the virtual address has - and or poisoning it with known data?
>
> Or perhaps the the card has picked up an incorrect page table? Meaning
> the (bus) address given to it is not the correct one?
>

Konrad,

Let's see. Please notice that i'm not PA-RISC or general linux kernel
developer, just the user, so i may do things completely wrong. 
I was hoping that PA-RISC smarties will join me here, but they seem
to be busy with other duties. Even port's mail list activity is low 
during last weeks.

> If you dump them and try
> to figure out if bus adress -> physical address -> virtual address ==
> virtual address -> bus address that could help

With following

radeon/radeon_ttm.c:

radeon_ttm_tt_populate():
...
for (i = 0; i < ttm->num_pages; i++) {
                gtt->ttm.dma_address[i] = pci_map_page(rdev->pdev, ttm->pages[i],
                                                       0, PAGE_SIZE,
                                                       PCI_DMA_BIDIRECTIONAL);

                void *va = bus_to_virt(gtt->ttm.dma_address[i]);
                if ((phys_addr_t) va != virt_to_bus(va)) {
                     DRM_INFO("MISMATCH: %p != %p\n", va, (void *) virt_to_bus(va));
                     /*DRM_INFO("CONTENTS: %x\n", *((uint32_t *)va));*/ // Leads to a Kernel Fault
                     ...
                }

I'm getting the output:

[drm] MISMATCH: 0000000080280000 != 0000000040280000
[drm] MISMATCH: 0000000080281000 != 0000000040281000
...

How can i check the same for an AGP mode?

> Or perhaps the the card has picked up an incorrect page table? Meaning
> the (bus) address given to it is not the correct one?

I'll see.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2013-09-25 16:38 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <995101375614033@web11d.yandex.ru>
2013-09-09 16:44 ` drm/radeon: "ring test failed" on PA-RISC Linux Alex Ivanov
2013-09-09 17:43   ` Alex Deucher
2013-09-10  9:20     ` Alex Ivanov
2013-09-10 12:37       ` Alex Deucher
2013-09-10 13:03         ` Hans Verkuil
2013-09-10 13:25       ` Konrad Rzeszutek Wilk
2013-09-17  9:23         ` Alex Ivanov
2013-09-17 14:24           ` Alex Deucher
2013-09-17 19:33             ` Alex Ivanov
2013-09-20  6:52               ` Alex Ivanov
2013-09-20 21:27               ` Alex Deucher
2013-09-21  3:39                 ` Alex Ivanov
2013-09-23 20:11                   ` Konrad Rzeszutek Wilk
2013-09-25 16:29                     ` Alex Ivanov [this message]
2013-09-25 17:28                       ` Konrad Rzeszutek Wilk
2013-09-25 18:17                         ` Alex Deucher
2013-09-25 18:51                         ` Alex Ivanov
2013-09-26  8:39                           ` Alex Ivanov
2013-09-10 15:45   ` Michel Dänzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=191451380126547@web25g.yandex.ru \
    --to=gnidorah@p0n4ik.tk \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=konrad.wilk@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox