From owner-freebsd-i386@FreeBSD.ORG Tue May 24 18:10:03 2005 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F62B16A41C for ; Tue, 24 May 2005 18:10:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9BBE43D48 for ; Tue, 24 May 2005 18:10:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4OIA2lm097672 for ; Tue, 24 May 2005 18:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4OIA24V097671; Tue, 24 May 2005 18:10:02 GMT (envelope-from gnats) Resent-Date: Tue, 24 May 2005 18:10:02 GMT Resent-Message-Id: <200505241810.j4OIA24V097671@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, jiashiun@gmail.com Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3194916A41C for ; Tue, 24 May 2005 18:04:22 +0000 (GMT) (envelope-from root@gmail.com) Received: from mail.synology.com (dns1.synology.com [210.202.102.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C9C643D48 for ; Tue, 24 May 2005 18:04:19 +0000 (GMT) (envelope-from root@gmail.com) Received: from jsli-x4.synology.com ([192.168.33.33]) by mail.synology.com (8.13.1/8.13.1) with SMTP id j4OI2IRG020136 for ; Wed, 25 May 2005 02:02:18 +0800 (CST) Received: by jsli-x4.synology.com (sSMTP sendmail emulation); Wed, 25 May 2005 02:03:48 +0800 Message-Id: <200505241802.j4OI2IRG020136@mail.synology.com> Date: Wed, 25 May 2005 02:03:48 +0800 From: "Charlie &" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: i386/81445: [patch] Make VESA work on VMWare X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jiashiun@gmail.com List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 18:10:03 -0000 >Number: 81445 >Category: i386 >Synopsis: [patch] Make VESA work on VMWare >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 24 18:10:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jia-Shiun Li >Release: FreeBSD 6.0-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD jsli-x4 6.0-CURRENT FreeBSD 6.0-CURRENT #4: Wed May 18 19:55:37 CST 2005 root@jsli-x4.synology.com:/usr/obj/usr/src/sys/x4 i386 >Description: VESA driver in current source tree checks the NONVGA flag of VESA information block when loading. If this flag is set it will refuse to initialize. Most VESA adapters do not set this flag, but the virtual display adapter in VMWare does. As a result VESA cannot be used on VMWare. http://lists.freebsd.org/mailman/htdig/freebsd-current/2005-March/047559.html >How-To-Repeat: Boot verbose and type the following command under shell: # kldload vesa will result: VESA: information block 56 45 53 41 00 02 f0 5a 00 c0 03 00 00 00 a9 5f 00 c0 00 01 00 02 e4 5a 00 c0 cd 5a 00 c0 c9 5a 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 module_register_init: MOD_LOAD (vesa, 0xc178c138, 0) error 6 >Fix: --- vesa.diff begins here --- Index: src/sys/i386/isa/vesa.c =================================================================== RCS file: /home/ncvs/src/sys/i386/isa/vesa.c,v retrieving revision 1.50 diff -b -u -r1.50 vesa.c --- src/sys/i386/isa/vesa.c 4 Mar 2005 00:53:03 -0000 1.50 +++ src/sys/i386/isa/vesa.c 20 May 2005 07:27:07 -0000 @@ -652,8 +652,6 @@ printf("VESA: information block\n"); dump_buffer(buf, 64); } - if (vesa_adp_info->v_flags & V_NONVGA) - return 1; if (vesa_adp_info->v_version < 0x0102) { printf("VESA: VBE version %d.%d is not supported; " "version 1.2 or later is required.\n", --- vesa.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: