From owner-freebsd-x11@FreeBSD.ORG Wed Apr 12 17:29:51 2006 Return-Path: X-Original-To: freebsd-x11@FreeBSD.org Delivered-To: freebsd-x11@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E700816A401; Wed, 12 Apr 2006 17:29:51 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id EED8143D48; Wed, 12 Apr 2006 17:29:47 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k3CHTWhY067467; Wed, 12 Apr 2006 20:29:32 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Wed, 12 Apr 2006 20:29:32 +0300 (EEST) From: Dmitry Pryanishnikov To: Eric Anholt In-Reply-To: <1144803568.74871.11.camel@leguin> Message-ID: <20060412201611.W50290@atlantis.atlantis.dp.ua> References: <20060411230807.Y71855@atlantis.atlantis.dp.ua> <1144803568.74871.11.camel@leguin> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-x11@FreeBSD.org Subject: Re: DRM regression (cvs commit: src/sys/dev/drm drm-preprocess.sh...) 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, 12 Apr 2006 17:29:52 -0000 Hello! On Tue, 11 Apr 2006, Eric Anholt wrote: >>> Update to DRM CVS as of 2006-04-09. The most notable new feature is the >> >> This commit has broken DRM on my notebook ASUS M5A (i915GM graphics). drm >> no longer attaches; here is relevant diff of old (OK) and new (failed) >> verbose dmesg: >> >> agp0: detected 7932k stolen memory >> agp0: aperture size is 256M >> drm0: on vgapci0 >> -info: [drm] AGP at 0xfeb80000 0MB >> -info: [drm] Initialized i915 1.2.0 20041217 >> +error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize >> AGP. >> +device_attach: drm0 attach returned 12 >> vgapci1: mem 0xfea80000-0xfeafffff at device 2.1 on >> pci0 > > How about if you build the module with "make -DDRM_DEBUG=1"? Sure. First I did "cd /sys/modules/drm; make -DDRM_DEBUG=1", but noticed that this didn't pass DRM_DEBUG to cc and thus made exactly the same binary. Then I evaluated proper CFLAGS and did: CFLAGS="-DDRM_DEBUG=1 -O2 -fno-strict-aliasing -pipe" make obj depend \ all install Here is relevant part of the new verbose dmesg.boot: vgapci0: port 0xec00-0xec07 mem 0xfeb80000-0xfebfffff,0xd0000000-0xdfffffff,0xfeb40000-0xfeb7ffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 vgapci0: Reserved 0x80000 bytes for rid 0x10 type 3 at 0xfeb80000 vgapci0: Reserved 0x80000 bytes for rid 0x10 type 3 at 0xfeb80000 vgapci0: Reserved 0x40000 bytes for rid 0x1c type 3 at 0xfeb40000 agp0: detected 7932k stolen memory agp0: aperture size is 256M drm0: on vgapci0 [drm:pid0:drm_load] error: [drm:pid0:drm_load] *ERROR* Card isn't AGP, or couldn't initialize AGP. [drm:pid0:drm_lastclose] device_attach: drm0 attach returned 12 vgapci1: mem 0xfea80000-0xfeafffff at device 2.1 on pci0 So it adds just 2 messages: "[drm:pid0:drm_load]" and "[drm:pid0:drm_lastclose]". I'm not sure whether it's very useful, but that's the only relevant difference. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE