From owner-freebsd-x11@FreeBSD.ORG Wed Sep 24 05:26:52 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07A05253 for ; Wed, 24 Sep 2014 05:26:52 +0000 (UTC) Received: from srv.ahhyes.net (srv.ahhyes.net [IPv6:2001:470:1:203::1003]) (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 D90F1EDF for ; Wed, 24 Sep 2014 05:26:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ahhyes.net; s=x; h=Message-ID:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=sBcufrhVjLe7wC12gdiaBBH2CuhtaLwREyeEeGPVc9E=; b=hY3XXRCL1OteGoglrerRo3ymmA/LFQf72Q+yDzl588/FLnVL8UvfxqKDg3JW8W4QhhNYfeBq8+9MXHXErECLIuKySVbTQm3F32cYsGsA5DI3hRJj+YHeupcNxEEfGPz8SR98uOh37bKvb5brxtinhvfrRqYmGDNV7RXYb69KNdU=; Received: from [127.0.0.1] (helo=core.ahhyes.net) by srv.ahhyes.net with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XWf6C-0005Nx-UQ for freebsd-x11@freebsd.org; Wed, 24 Sep 2014 15:26:44 +1000 X-Virus-Scanned: amavisd-new at srv.ahhyes.net X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-1 required=5 tests=[ALL_TRUSTED=-1] autolearn=ham autolearn_force=no Received: from srv.ahhyes.net ([IPv6:::1]) by core.ahhyes.net (core.ahhyes.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id IpzVTa8BQHBm for ; Wed, 24 Sep 2014 15:26:43 +1000 (EST) Received: from [127.0.0.1] (helo=webmail.ahhyes.net) by srv.ahhyes.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XWf6B-0005Nl-Lf for freebsd-x11@freebsd.org; Wed, 24 Sep 2014 15:26:43 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 24 Sep 2014 15:26:43 +1000 From: thunder@ahhyes.net To: freebsd-x11@freebsd.org Subject: Enabling accelerated video in the vmware video driver Message-ID: <6cf9dd7abfa991475465c349daefe052@ahhyes.net> X-Sender: thunder@ahhyes.net User-Agent: Roundcube Webmail/1.0.2 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 05:26:52 -0000 Hi Guys, Battling with trying to get video acceleration enabled in this driver... The driver refuses to enable it during building and I discovered why.. Someone has added a patch into the xf86-video-vmmware port that deliberately disables 3d support in the driver by messing with the configure script... I removed this patch and got a bit further: --- snippet --- checking whether XSERVER_LIBPCIACCESS is declared... yes checking for PCIACCESS... yes checking for LIBDRM... yes checking for XATRACKER... no configure: error: Package requirements (xatracker >= 0.4.0) were not met: Package xatracker was not found in the pkg-config search path. Perhaps you should add the directory containing `xatracker.pc' to the PKG_CONFIG_PATH environment variable Package 'xatracker', required by 'world', not found --- snippet --- Looks like it uses pkgconfig to find libraries and is missing xatracker (for which there is no specific port or package for on freebsd). One must modify the "graphics/dri" port Makefile and add --enable-xa to the configure arguments and issue a "make reinstall" to rebuild it, this allows the building of the xatracker libraries to occur however the libraries and header files are not included into the final installation (probably because the creation of the install package does not know about these extra files), one must install them manually. I found the relevant xatracker.pc file under /usr/ports/graphics/dri/work/Mesa-9.1.7/src/gallium/targets/xa-vmwgfx/xatracker.pc, put it in the right place along with the xa header files under /usr/local/include. The vmware driver build completes and 3d support is enabled in the driver itself. But now the plot thickens. There is no DRM kernel module: From the Xorg log: -- snippet -- [104703.219] drmOpenDevice: node name is /dev/dri/card0 [104703.219] Failed to change owner or group for file /dev/dri! 2: No such file or directory [104703.219] Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory [104703.219] drmOpenDevice: open result is -1, (No such file or directory) [104703.219] Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory [104703.219] drmOpenDevice: open result is -1, (No such file or directory) [104703.219] drmOpenDevice: Open failed [104703.235] [drm] failed to load kernel module "vmwgfx" [104703.235] (EE) vmware(0): Failed to open drm. [104703.235] (WW) vmware(0): Disabling 3D support. [104703.235] (WW) vmware(0): Disabling Render Acceleration. [104703.235] (WW) vmware(0): Disabling RandR12+ support. -- snippet -- There's no vmwgfx.ko included with the FreeBSD kernel it seems - A quick check of /usr/src/sys/amd64/conf/NOTES shows the following drm options: # Direct Rendering modules for 3D acceleration. device drm # DRM core module required by DRM drivers device i915drm # Intel i830 through i915 device mach64drm # ATI Rage Pro, Rage Mobility P/M, Rage XL device mgadrm # AGP Matrox G200, G400, G450, G550 device r128drm # ATI Rage 128 device radeondrm # ATI Radeon device savagedrm # S3 Savage3D, Savage4 device sisdrm # SiS 300/305, 540, 630 device tdfxdrm # 3dfx Voodoo 3/4/5 and Banshee device viadrm # VIA options DRM_DEBUG # Include debug printfs (slow) And that's all there is.... The open-vm-tools doesn't build one either: root@desktop:/usr/ports/emulators/open-vm-tools/work/open-vm-tools-9.4.0-1280544 # find . -name "*.ko" ./modules/freebsd/vmmemctl.ko ./modules/freebsd/vmblock.ko ./modules/freebsd/vmxnet.ko ./modules/freebsd/vmhgfs.ko The vmwaretools package from vmware doesn't have the kernel module either. Is there a happy ending to this??????????????? I think I have hit a dead end here.. :/ Cheers, Alex.