From owner-freebsd-x11@FreeBSD.ORG Wed Jun 13 11:02:36 2012 Return-Path: Delivered-To: x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5C24106564A for ; Wed, 13 Jun 2012 11:02:36 +0000 (UTC) (envelope-from l.pizzamiglio@bally-wulff.de) Received: from mail.bally-wulff.de (mail.bally-wulff.de [212.144.118.8]) by mx1.freebsd.org (Postfix) with ESMTP id 959328FC17 for ; Wed, 13 Jun 2012 11:02:36 +0000 (UTC) Received: from bwex.bally-wulff.de (unknown [192.168.204.106]) by mail.bally-wulff.de (Postfix) with ESMTP id A1F894089 for ; Wed, 13 Jun 2012 12:40:28 +0200 (CEST) Received: from pizzamig.bally.de ([192.9.205.30]) by bwex.bally-wulff.de with Microsoft SMTPSVC(6.0.3790.4675); Wed, 13 Jun 2012 12:40:29 +0200 Message-ID: <4FD86E13.6090202@bally-wulff.de> Date: Wed, 13 Jun 2012 12:40:19 +0200 From: Luca Pizzamiglio User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:13.0) Gecko/20120612 Thunderbird/13.0 MIME-Version: 1.0 To: x11@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Jun 2012 10:40:29.0777 (UTC) FILETIME=[F3A91C10:01CD4950] Cc: Subject: Intel KMS: a memory problem X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 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, 13 Jun 2012 11:02:36 -0000 Hi people, I'm using 9-RELENG with KMS and the last port updated on a SandyBridge platform (Intel Graphics) With a quite simple openGL application, a panic occurred: panic: pmap_mapdev: Couldn't alloc kernel virtual memory Tracing pid 944 tid 100105 td 0xca85c8a0 kdb_enter(c0ffe535,c0ffe535,c103dcff,efa62ac0,1,...) at kdb_enter+0x3a panic(c103dcff,5000,c9879151,0,c1a02000,...) at panic+0x18c pmap_mapdev_attr(c1a02000,4800,1,1,c911d980,...) at pmap_mapdev_attr+0x7e i915_gem_obj_io(2d014008,0,4800,0,0,...) at i915_gem_obj_io+0x513 i915_gem_pwrite_ioctl(c9925800,ca827120,ca871300,c0a78b5b,efa62bd4,...) at i915_gem_pwrite_ioctl+0x4b drm_ioctl(c97e0400,8020645d,ca827120,3,ca85c8a0,...) at drm_ioctl+0x2d8 devfs_ioctl_f(c91cb850,8020645d,ca827120,c91b5e80,ca85c8a0,...) at devfs_ioctl_f+0x10a kern_ioctl(ca85c8a0,4,8020645d,ca827120,a62ccc,...) at kern_ioctl+0x2a0 sys_ioctl(ca85c8a0,efa62ccc,c67c4c80,293d3b4e,1,...) at sys_ioctl+0x134 syscall(efa62d08) at syscall+0x34a Xint0x80_syscall() at Xint0x80_syscall+0x21 --- syscall (54, FreeBSD ELF32, sys_ioctl), eip = 0x293d5b93, esp = 0xbfbf7f4c, ebp = 0xbfbf7f68 --- I tried to increase vm.kmem_size and vm.kmem_size_max to 512M, but the problem persists. Any easy idea or workaround? In the meanwhile, I'll try to investigate this problem deeper. Thanks in advance, Luca PS I compiled apitrace (https://github.com/apitrace/apitrace) on FreeBSD and it works! Ok, a couple of patch and fix to build it correctly, but it works. It was developed by intel as an easy way to have repeatable openGL test cases.