All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Failure to get memory for GATT table, again
@ 2005-02-01  7:27 Ian Pratt
  2005-02-01  8:23 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-01  7:27 UTC (permalink / raw)
  To: Jacob Gorm Hansen, xen-devel

> I seem to have narroved the problem down to the function 
> direct_remap_area_pages() which fails on an MMU update.
> 
> Xen tells me about this, in:
> 
> (XEN) 
> (file=/mnt/hda3/home/jacobg/xeno-unstable.bk/xen/include/asm/mm.h, 
> line=157) Error pfn 0003ff40: ed=fc599260, sd=fc5996a0, caf=80000002, 
> taf=f0000001

You're trying to do this in dom0, right? Do you have any other domains
running? 
If so, use the 'q' debug key to find out the domain pointers. It might
be helpful to add a show_registers after the DPRINTK so that we can see
the call trace.
 
Ian

> The offending hypercall is at arch/xen/i386/mm/ioremap.c 
> around line 437.
> 
> A couple of variables that may be important: start_address is 
> 0xf8880000, and address-start_address is 0x2000.
> 
> 
> Changing the amount of dom0_mem does not seem to help. The 
> closed-source 
> ATI flgrx driver is not involved at this point, though I am 
> sure it has 
> some problems as well, the wrapper has a lot of references to 
> virt_to_phys().
> 
> Jacob
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive 
> Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Failure to get memory for GATT table, again
@ 2005-02-02 22:38 Ian Pratt
  2005-02-02 23:55 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-02 22:38 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: Ian Pratt, xen-devel

> Just to recap, this seems like a bug in Xen or Xenlinux. 
> MMUEXT_SET_FOREIGNDOM seems to expect the granted pages to be 
> owned by 
> the grantee already, instead of the granter. I've disabled 
> the check in 
> Xen, and fglrx now proceeds to take down the machine when I start X. 
> Perhaps it would be better to spend the time on the open drivers at 
> http://r300.sourceforge.net/ , or wait for ATI to discover Xen.

It sounds rather more like an agp driver that's taking liberties to me.
The fact that disabling the check takes the machine down seems to
suggest its there for a purpose :-)

Trying to debug this without hardware or even driver source code is
pretty futile...

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Failure to get memory for GATT table, again
@ 2005-02-02  0:01 Ian Pratt
  2005-02-02  0:55 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-02  0:01 UTC (permalink / raw)
  To: Jacob Gorm Hansen, Ian Pratt; +Cc: xen-devel

> > You should be able to call ioremap_nocache on the virt_to_bus'ed
> > address you get back from xen_contig_memory.
> 
> Apparently this is where things go wrong; the pages I get 
> from __get_free_pages
> seem to always be a the top of dom0 mem (probably because 
> order is 6), and when
> converted with virt_to_bus I get an mfn which Xen thinks is 
> not owned by dom0.

dma_alloc_coherent should be calling xen_contig_mem which should turn
the pages into ones that are owned by dom0 and contiguous. Add some
dubugging to xen_contig_mem to see if you're getting there.

Ian 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Failure to get memory for GATT table, again
@ 2005-02-01 21:25 Ian Pratt
  2005-02-01 22:15 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-01 21:25 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: xen-devel

> >>(file=/mnt/hda3/home/jacobg/xeno-unstable.bk/xen/include/asm/mm.h, 
> > > >>line=157) Error pfn 0003ff40: ed=fc599260, sd=fc5996a0, 
> > > caf=80000002, 
> > > >>taf=f0000001
> > 
> > I suspect that sd is actually 'dom_xen', but it would be useful to
> > verify this.
> > Also, please print out max_page and post the e820 map for 
> the machine.
> 
> here is the error again, with max_page added:
> 
> (XEN) 
> (file=/mnt/hda3/home/jacobg/xeno-unstable.bk/xen/include/asm/m
> m.h, line=161) Error pfn 0003ff40: ed=fc599260, sd=fc5996a0, 
> caf=80000002, taf=f0000001 max_page 0003ff74
> (XEN)  0000000000100000 - 000000003ff74000 (usable)

I bet the fglrx driver just does get_free_pages rather than the proper
dma_alloc_coherent.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: Failure to get memory for GATT table, again
@ 2005-02-01 16:39 Ian Pratt
  2005-02-01 20:08 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Ian Pratt @ 2005-02-01 16:39 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: xen-devel

> Ian Pratt wrote:
> >>I seem to have narroved the problem down to the function 
> >>direct_remap_area_pages() which fails on an MMU update.
> >>
> >>Xen tells me about this, in:
> >>
> >>(XEN) 
> >>(file=/mnt/hda3/home/jacobg/xeno-unstable.bk/xen/include/asm/mm.h, 
> >>line=157) Error pfn 0003ff40: ed=fc599260, sd=fc5996a0, 
> caf=80000002, 
> >>taf=f0000001

I suspect that sd is actually 'dom_xen', but it would be useful to
verify this.
Also, please print out max_page and post the e820 map for the machine.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Failure to get memory for GATT table, again
@ 2005-02-01  4:29 Jacob Gorm Hansen
  0 siblings, 0 replies; 18+ messages in thread
From: Jacob Gorm Hansen @ 2005-02-01  4:29 UTC (permalink / raw)
  To: xen-devel

hi,

I seem to have narroved the problem down to the function 
direct_remap_area_pages() which fails on an MMU update.

Xen tells me about this, in:

(XEN) (file=/mnt/hda3/home/jacobg/xeno-unstable.bk/xen/include/asm/mm.h, 
line=157) Error pfn 0003ff40: ed=fc599260, sd=fc5996a0, caf=80000002, 
taf=f0000001

The offending hypercall is at arch/xen/i386/mm/ioremap.c around line 437.

A couple of variables that may be important: start_address is 
0xf8880000, and address-start_address is 0x2000.


Changing the amount of dom0_mem does not seem to help. The closed-source 
ATI flgrx driver is not involved at this point, though I am sure it has 
some problems as well, the wrapper has a lot of references to 
virt_to_phys().

Jacob


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

end of thread, other threads:[~2005-02-02 23:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-01  7:27 Failure to get memory for GATT table, again Ian Pratt
2005-02-01  8:23 ` Jacob Gorm Hansen
2005-02-01  8:46   ` Jacob Gorm Hansen
2005-02-01  8:59     ` Jacob Gorm Hansen
  -- strict thread matches above, loose matches on Subject: below --
2005-02-02 22:38 Ian Pratt
2005-02-02 23:55 ` Jacob Gorm Hansen
2005-02-02  0:01 Ian Pratt
2005-02-02  0:55 ` Jacob Gorm Hansen
2005-02-02 21:28   ` Jacob Gorm Hansen
2005-02-01 21:25 Ian Pratt
2005-02-01 22:15 ` Jacob Gorm Hansen
2005-02-01 22:45   ` Ian Pratt
2005-02-01 22:52     ` Jacob Gorm Hansen
2005-02-01 23:18       ` Ian Pratt
2005-02-01 23:29         ` Jacob Gorm Hansen
2005-02-01 16:39 Ian Pratt
2005-02-01 20:08 ` Jacob Gorm Hansen
2005-02-01  4:29 Jacob Gorm Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.