From owner-freebsd-current@FreeBSD.ORG Sat Sep 12 02:03:55 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D76D1065670; Sat, 12 Sep 2009 02:03:55 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id B5B5D8FC08; Sat, 12 Sep 2009 02:03:54 +0000 (UTC) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 7C3065C06F; Sat, 12 Sep 2009 10:03:53 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 3113355CDF7D; Sat, 12 Sep 2009 10:03:53 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id AyjuB3AMojK5; Sat, 12 Sep 2009 10:03:47 +0800 (CST) Received: from charlie.delphij.net (adsl-76-237-33-62.dsl.pltn13.sbcglobal.net [76.237.33.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 8A86255CDF7B; Sat, 12 Sep 2009 10:03:44 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type; b=viBWhxi8j5/UBVVCrg3onpuPMliDNtmU0yA//vjK38qxHThgz5jTDZPt8mxiwrtiP DHanW60w9Wcigjc9S8PDQ== Message-ID: <4AAB017D.7090909@delphij.net> Date: Fri, 11 Sep 2009 19:03:41 -0700 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.22 (X11/20090803) MIME-Version: 1.0 To: "b. f." References: In-Reply-To: X-Enigmail-Version: 0.96.0 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: multipart/mixed; boundary="------------070706020609080506080705" Cc: freebsd-current@FreeBSD.org, delphij@FreeBSD.org Subject: Re: vesa(4) and amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2009 02:03:55 -0000 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 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--