linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with alpha/pci + radeon/ttm
@ 2010-06-21 21:19 Matt Turner
  2010-06-22  5:59 ` FUJITA Tomonori
  0 siblings, 1 reply; 14+ messages in thread
From: Matt Turner @ 2010-06-21 21:19 UTC (permalink / raw)
  To: LKML, linux-alpha
  Cc: FUJITA Tomonori, Richard Henderson, Ivan Kokshaysky,
	Michael Cree, Jesse Barnes, linux-pci,
	Maling list - DRI developers, Dave Airlie, Alex Deucher,
	Jerome Glisse

Michael Cree and I have been debugging FDO bug 26403 [1]. I tried
booting with `radeon.test=1` and found this, which I think is related:

> [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x202000
> [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x302000
[snip]
> [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0xfd02000
> [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0xfe02000
> pci_map_single failed: could not allocate dma page tables
> [drm:radeon_ttm_backend_bind] *ERROR* failed to bind 128 pages at 0x0FF02000
> [TTM] Couldn't bind backend.
> radeon 0000:00:07.0: object_init failed for (1048576, 0x00000002)
> [drm:radeon_test_moves] *ERROR* Failed to create GTT object 253
> Error while testing BO move.

>From what I can see, the call chain is
radeon_test_moves
 (radeon_ttm_backend_bind called through callback function)
 - radeon_ttm.c:radeon_ttm_backend_bind calls radeon_gart_bind
  - radeon_gart.c:radeon_gart_bind calls pci_map_page
   - pci_map_page is alpha_pci_map_page, which calls...
    - alpha_pci_map_page calls pci_iommu.c:pci_map_single_1
     - pci_map_single_1 calls iommu_arena_alloc
      - iommu_arena_alloc calls iommu_arena_find_pages
       - iommu_arena_find_pages returns non-0
      - iommu_arena_alloc returns non-0
     - pci_map_single_1 returns 0 after printing
       "could not allocate dma page tables" error
    - alpha_pci_map_page returns 0 from pci_map_single_1
  - radeon_gart_bind returns non-0, error path prints
    "*ERROR* failed to bind 128 pages at 0x0FF02000"

Is this the cause of the bug we're seeing in the report [1]?

Anyone know what's going wrong here?

Thanks!
Matt Turner

[1] https://bugs.freedesktop.org/show_bug.cgi?id=26403

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

end of thread, other threads:[~2010-06-30 18:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-21 21:19 Problems with alpha/pci + radeon/ttm Matt Turner
2010-06-22  5:59 ` FUJITA Tomonori
2010-06-22  8:32   ` Dave Airlie
2010-06-24  9:51     ` Michael Cree
2010-06-24 15:02       ` Matt Turner
2010-06-27  4:20       ` FUJITA Tomonori
2010-06-27 10:46         ` Michael Cree
2010-06-27 23:14           ` Dave Airlie
2010-06-28  9:03             ` Michael Cree
2010-06-28 16:08               ` Richard Henderson
2010-06-24 14:53   ` Matt Turner
2010-06-27  4:20     ` FUJITA Tomonori
2010-06-27  4:58       ` Matt Turner
2010-06-30 18:43         ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).