From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Arvind R <arvino55@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Nouveau on dom0
Date: Thu, 4 Mar 2010 13:25:18 -0500 [thread overview]
Message-ID: <20100304182518.GB20263@phenom.dumpdata.com> (raw)
In-Reply-To: <d799c4761003040117g1c5c072v8a996b6f9af1fb32@mail.gmail.com>
On Thu, Mar 04, 2010 at 02:47:58PM +0530, Arvind R wrote:
> On Wed, Mar 3, 2010 at 11:43 PM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> >> > aio-write -
> >>
> >> which triggers do_page_fault, handle_mm_fault, do_linear_fault, __do_fault
> >> and finally ttm_bo_vm_fault.
>
> > I've attached a simple patch I wrote some time ago to get the real MFNs
> > and its page protection. I think you can adapt it (print_data function to be exact)
> > to peet at the PTE and its protection values.
> Have patched - did not apply clean. Will compile and get some info.
Right. I don't think it would help you immediately - I was thinking you could
take the print_data function and just jam it in the tt_bo_vm_fault code
and use it to print the PTE data.
>
> > There is an extra flag that the PTE can have when running under Xen: _PAGE_IOMAP.
> > This signifies that the PFN is actually the MFN. In this case thought
> > it sholdn't be enabled b/c the memory is actually gathered from
> > alloc_page. But if it is, it might be the culprit.
>
> >> What can possibly cause the fault-handler to repeat endlessly?
>
> FYI: about 2000 times a second - slowed by printk
>
> >> If a wrong page is backed at the user-address, it should create bad_access or
> >> some other subsequent events - but the system is running fine minus all local
> > So you see this fault handler being called endlessly while the machine
> > is still running and other pieces of code work just fine, right?
> Right. Can ssh in - but no local console
>
> >> ttm_tt_get_page calls alloc in a loop - so it may allocate multiple pages from
> >> start/end depending on Highmem memory or not - implying asynchronous allocation
> >> and mapping.
> >
> > I thought it had some logic to figure out that it already handled this
> > page and would return an already allocate page?
> Right.
>
> I think the problem lies in the vm_insert_pfn/page/mixed family of functions.
> These are only used (grep'ed kernel tree) and invariably for mmaping.
> Scsi-tgt, mspec, some media/video, poch,android in staging and ttm
> - and, surprise - xen/blktap/ring.c and device.c
> - which both check XENFEAT_auto_translated_physmap
>
> Pls. look at xen/blktap/ring.c - it looks to be what we need
Let me take a look at it tomorrow. Bit swamped.
next prev parent reply other threads:[~2010-03-04 18:25 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 8:46 Nouveau on dom0 Arvind R
2010-02-25 12:55 ` Konrad Rzeszutek Wilk
2010-02-25 17:01 ` Arvind R
2010-02-25 17:44 ` Konrad Rzeszutek Wilk
2010-02-26 15:34 ` Arvind R
2010-03-01 16:01 ` Konrad Rzeszutek Wilk
2010-03-02 21:34 ` Arvind R
2010-03-03 17:11 ` Arvind R
2010-03-03 18:13 ` Konrad Rzeszutek Wilk
2010-03-04 9:17 ` Arvind R
2010-03-04 18:25 ` Konrad Rzeszutek Wilk [this message]
2010-03-05 7:46 ` Arvind R
2010-03-05 20:23 ` Konrad Rzeszutek Wilk
2010-03-06 8:16 ` Arvind R
2010-03-06 20:59 ` Arvind R
2010-03-06 23:56 ` Arvind R
2010-03-08 17:51 ` Konrad Rzeszutek Wilk
2010-03-10 12:50 ` [Solved] " Arvind R
2010-03-10 14:00 ` Pasi Kärkkäinen
2010-03-10 19:37 ` Jeremy Fitzhardinge
[not found] ` <20100311201536.GA22182@phenom.dumpdata.com>
2010-03-12 6:12 ` Arvind R
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=20100304182518.GB20263@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=arvino55@gmail.com \
--cc=xen-devel@lists.xensource.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;
as well as URLs for NNTP newsgroup(s).