Date: Fri, 11 Sep 2009 19:03:41 -0700 From: Xin LI <delphij@delphij.net> To: "b. f." <bf1783@googlemail.com> Cc: freebsd-current@FreeBSD.org, delphij@FreeBSD.org Subject: Re: vesa(4) and amd64 Message-ID: <4AAB017D.7090909@delphij.net> In-Reply-To: <d873d5be0909111303m3ea6d166k3f4d44025faadd77@mail.gmail.com> References: <d873d5be0909111303m3ea6d166k3f4d44025faadd77@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------070706020609080506080705 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, b. f. wrote: > After the recent x86emu/vesa/dpms commits, I'm now able to use some > more graphics modes with syscons on amd64. That's good. Not so good > is the fact that my HP Pavilion desktop running 9-CURRENT i386 r197085 > with > > devic sc > options SC_PIXEL_MODE > device vga > options VGA_WIDTH90 > > in the kernel and agp, dpms, x86emu, and vesa loaded as kernel modules > can no longer use the 132x60 mode that had been my default syscons > mode, and now yields a blank screen. Even worse is the fact that my > Toshiba laptop, with nearly the same configuration, locks up with a > screen full of zeroes every time I load the new vesa kernel module, > when formerly it had no such problem. Other than simplifying the > organization of the code, is there any advantage to be gained from > forcing those platforms that are capable of native vesa to use x86emu? > Because up to this point there are serious disadvantages to doing so. I think it was caused by some unrelated change. ddkprog@ has proposed a change, here is a slightly modified one, could you please give it a try? I'll try to see if I can have some clue myself tonight. Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkqrAXwACgkQi+vbBBjt66AK3wCgj9fnz60SWIIa7OUAdF/4x8aR evsAoJ3A8QObHWMYXsOXwKbuCBR0pxKe =Sr3u -----END PGP SIGNATURE----- --------------070706020609080506080705 Content-Type: text/plain; name="vesa.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vesa.diff" Index: sys/dev/fb/vesa.c =================================================================== --- sys/dev/fb/vesa.c (revision 197050) +++ sys/dev/fb/vesa.c (working copy) @@ -1126,7 +1126,7 @@ } else { vesa_adp->va_buffer = 0; vesa_adp->va_buffer_size = info.vi_buffer_size; - vesa_adp->va_window = (vm_offset_t)(emumem+L_ADD(info.vi_window)); + vesa_adp->va_window = info.vi_window + KERNBASE; vesa_adp->va_window_size = info.vi_window_size; vesa_adp->va_window_gran = info.vi_window_gran; } --------------070706020609080506080705--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4AAB017D.7090909>