From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Frame buffer mmap not working in pvops dom0
Date: Wed, 21 Jul 2010 15:00:56 -0400 [thread overview]
Message-ID: <20100721190056.GA9756@phenom.dumpdata.com> (raw)
In-Reply-To: <4C4711BB.5090905@tycho.nsa.gov>
> I have been dumping the page tables (using the attached pt-dump script,
> as qemu's "info tlb" only works on i386) from a paused qemu instance
> that is running a simple mmap-and-spin program (also attached). All 100
> pages map to physical memory address 39a4c000.
The qemu output then isn't going to a VNC window but something else. I
presume the something else is the SDL piece? Were there any special flags
to enable this on QEMU?
>
> >From a bit more debugging, I've been able to trace the correct address
> (0xf0000000) being lost when it is passed by xen_make_pte to
> pte_pfn_to_mfn and eventually to get_phys_to_machine(0xf0000) which
> returns -1. Still not sure where the final physical address is coming
> from, but I'm guessing this is part of the problem.
That looks like the VM_IO flag (_PAGE_IOMAP on the PTE) is not set somewhere.
Do you have an idea what piece of kernel code gets triggered when QEMU does
'mmap' on the /dev/fb0?
On my machine where I use KMS/DRM it ends up calling 'ttm_fb_mmap'. But
for your system, where it looks that you are using the "old" framebuffer
code it might be something entirely different.
.. snip..
> The attached program has no visible effect on the screen when run, so
> it's likely also not working here.
<nods> Looks quite similar to what I've been using.
next prev parent reply other threads:[~2010-07-21 19:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 13:47 Frame buffer mmap not working in pvops dom0 Daniel De Graaf
2010-07-21 14:16 ` Pasi Kärkkäinen
2010-07-21 14:42 ` Konrad Rzeszutek Wilk
2010-07-21 14:49 ` Pasi Kärkkäinen
2010-07-21 15:26 ` Daniel De Graaf
2010-07-21 19:00 ` Konrad Rzeszutek Wilk [this message]
2010-07-21 19:12 ` Konrad Rzeszutek Wilk
2010-07-21 19:22 ` Daniel De Graaf
2010-07-21 19:50 ` Konrad Rzeszutek Wilk
2010-07-21 20:27 ` Daniel De Graaf
2010-07-28 14:29 ` Konrad Rzeszutek Wilk
2010-07-28 15:33 ` Konrad Rzeszutek Wilk
2010-07-28 18:09 ` Daniel De Graaf
2010-07-21 20:36 ` Eamon Walsh
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=20100721190056.GA9756@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=dgdegra@tycho.nsa.gov \
--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).