From owner-svn-src-head@FreeBSD.ORG Thu Jul 3 17:53:29 2014 Return-Path: Delivered-To: svn-src-head@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 000A9F26; Thu, 3 Jul 2014 17:53:28 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E19BC2396; Thu, 3 Jul 2014 17:53:28 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s63HrSIw088393; Thu, 3 Jul 2014 17:53:28 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s63HrSjq088392; Thu, 3 Jul 2014 17:53:28 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201407031753.s63HrSjq088392@svn.freebsd.org> From: Ed Maste Date: Thu, 3 Jul 2014 17:53:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268227 - head/sys/boot/amd64/efi X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 17:53:29 -0000 Author: emaste Date: Thu Jul 3 17:53:28 2014 New Revision: 268227 URL: http://svnweb.freebsd.org/changeset/base/268227 Log: Display efi framebuffer dimensions on boot The EFI framebuffer produces corrupted output on certain systems. For now display the framebuffer parameters (address, dimensions, etc.) on boot to aid in tracking down these issues. Sponsored by: The FreeBSD Foundation Modified: head/sys/boot/amd64/efi/bootinfo.c Modified: head/sys/boot/amd64/efi/bootinfo.c ============================================================================== --- head/sys/boot/amd64/efi/bootinfo.c Thu Jul 3 17:42:26 2014 (r268226) +++ head/sys/boot/amd64/efi/bootinfo.c Thu Jul 3 17:53:28 2014 (r268227) @@ -225,8 +225,15 @@ bi_load_efi_data(struct preloaded_file * struct efi_map_header *efihdr; struct efi_fb efifb; - if (efi_find_framebuffer(&efifb) == 0) + if (efi_find_framebuffer(&efifb) == 0) { + printf("EFI framebuffer information:\n"); + printf("addr, size 0x%lx, 0x%lx\n", efifb.fb_addr, efifb.fb_size); + printf("dimensions %d x %d\n", efifb.fb_width, efifb.fb_height); + printf("stride %d\n", efifb.fb_stride); + printf("masks 0x%08x, 0x%08x, 0x%08x, 0x%08x\n", efifb.fb_mask_red, efifb.fb_mask_green, efifb.fb_mask_blue, efifb.fb_mask_reserved); + file_addmetadata(kfp, MODINFOMD_EFI_FB, sizeof(efifb), &efifb); + } efisz = (sizeof(struct efi_map_header) + 0xf) & ~0xf;