From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Fbdev graphics broken in xen/next dom0 Date: Fri, 12 Mar 2010 16:51:30 -0800 Message-ID: <4B9AE192.30104@goop.org> References: <4B9AA301.6090303@tycho.nsa.gov> <4B9AB559.1070709@goop.org> <4B9ADFDB.1070300@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B9ADFDB.1070300@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Eamon Walsh Cc: George Coker , Xen-devel , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org On 03/12/2010 04:44 PM, Eamon Walsh wrote: > I have narrowed the problem down: it has something to do with mmap of > /dev/fb0 not syncing. The attached C code mmaps /dev/fb0 and writes > some random bits. On a configuration that does work (2.6.31.4 on > 4.0-rc6, or xen/next on bare metal) the random bits are visible on the > screen. With xen/next on 4.0-rc6, nothing is visible. Calling msync() > before the sleep has no effect. Also, using write() on /dev/fb0 always > works so it appears to be mmap related. > Yes. I suspect there's a missing VM_IO in there, and so the mmap is mapping the wrong pages (if you're lucky you might be able to crash the machine to see something juicy). J