From owner-freebsd-current@FreeBSD.ORG Mon Jul 7 09:08:50 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB9C78A7; Mon, 7 Jul 2014 09:08:50 +0000 (UTC) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 2742C2D34; Mon, 7 Jul 2014 09:08:49 +0000 (UTC) Received: from terran (unknown [192.168.99.1]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 6927CC492D; Mon, 7 Jul 2014 12:08:42 +0300 (EEST) Date: Mon, 7 Jul 2014 12:11:24 +0300 From: Aleksandr Rybalko To: huanghwh@gmail.com Subject: Re: uefi boot on Apple Mac Message-Id: <20140707121124.02eb07cf9aee1d7e934513c4@ddteam.net> In-Reply-To: References: <537DFD85.1090903@icloud.com> <20140706164008.d26a0bf0baa23981ad7baedf@ddteam.net> X-Mailer: Sylpheed 3.3.1 (GTK+ 2.24.22; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Adrian Chadd , freebsd-current , Ed Maste , Rafael Esp'indola X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 09:08:50 -0000 On Mon, 7 Jul 2014 08:18:37 +0800 Huang Wen Hui wrote: > I got the same result from Fedora-20: > > [liveuser@localhost ~]$ dmesg|grep efifb > [ 2.665017] efifb: probing for efifb > [ 2.667915] efifb: framebuffer at 0x80020000, mapped to > 0xffffc9000b980000, using 28800k, total 28800k > [ 2.667916] efifb: mode is 2880x1800x32, linelength=16384, pages=1 > [ 2.667916] efifb: scrolling: redraw > [ 2.667917] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0 > > stride(4096) *4 = linelength No, stride >= line_width * bytes_per_pixel. It is just step size in bytes, to skip into next line. (sometime it contain gaps related to blank parts of screen, sometime related to round screen line to page size). So if it have mode - 2880x1800x32, it have to be 2880 * (32 / 8) = 11520 or 11520 + (4096 - 1) & 0xffffffff_fffff000 = 12288 (0x03000, 3 4k_pages) > 28800k=stride(4096) *4*1800=0x1c20000 > > > 2014-07-07 2:59 GMT+08:00 Adrian Chadd : > > > The linux UEFI peeps have the same problem(s): > > > > http://mjg59.dreamwidth.org/10014.html > > > > Look for "stride". > > > > > > -a > > > > > > On 6 July 2014 06:40, Aleksandr Rybalko wrote: > > > On Fri, 4 Jul 2014 22:34:30 +0800 > > > Huang Wen Hui wrote: > > > > > >> Hi, > > >> On my MacbookPro11,3, I got this error message: > > >> > > >> http://sw.gddsn.org.cn/freebsd/uefi.jpg > > > > > > Hmmm, really weird. > > > Looks like wrong info about UEFI framebuffer. > > > Picture said: > > > 1. 2880 x 1800 > > > 2. 4 bytes per pixel (masks cover whole 32bit) > > > 3. but same time stride eq to 4096 (but have to be (width * > > bytes_per_pixel) 4 * 2880) > > > > > >> > > >> cheers, > > >> > > >> Huang WenHui > > >> > > >> 2014-07-04 22:13 GMT+08:00 Ed Maste : > > >> > > >> > On 24 May 2014 19:39, Rafael Esp'indola > > wrote: > > >> > > > > >> > > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro. > > It > > >> > > might be the frame buffer corruption that Ed Maste was mentioning. > > >> > > > >> > I purchased a new MacBook Air yesterday (model identifier > > >> > MacBookAir6,2). UEFI boot and vt(4) worked correctly. (My image > > >> > included Rafael's patch; I haven't tried a boot without.) > > >> > > > >> > I also committed a change to display the framebuffer parameters > > >> > (address, dimensions, etc.) on boot, in order to help identify the > > >> > source of this issue. If you have a moment can you build a new USB > > >> > stick image and give it a try? > > >> > > > >> > -Ed > > >> > > > >> _______________________________________________ > > >> freebsd-current@freebsd.org mailing list > > >> http://lists.freebsd.org/mailman/listinfo/freebsd-current > > >> To unsubscribe, send any mail to " > > freebsd-current-unsubscribe@freebsd.org" > > > > > > Thanks. > > > WBW > > > -- > > > Aleksandr Rybalko > > > _______________________________________________ > > > freebsd-current@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > > To unsubscribe, send any mail to " > > freebsd-current-unsubscribe@freebsd.org" > > -- Aleksandr Rybalko