From owner-freebsd-multimedia@FreeBSD.ORG Wed Jun 11 08:50:12 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D256937B401; Wed, 11 Jun 2003 08:50:12 -0700 (PDT) Received: from totem.fix.no (totem.fix.no [80.91.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 265E843F85; Wed, 11 Jun 2003 08:50:12 -0700 (PDT) (envelope-from anders@totem.fix.no) Received: by totem.fix.no (Postfix, from userid 1000) id AEFD620242; Wed, 11 Jun 2003 17:50:59 +0200 (CEST) Date: Wed, 11 Jun 2003 17:50:59 +0200 From: Anders Nordby To: anholt@FreeBSD.org Message-ID: <20030611155059.GA37255@totem.fix.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.1i cc: multimedia@FreeBSD.org Subject: Weird drawing errors with Radeon Mobility 7500 on IBM T30 laptop X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 15:50:13 -0000 Hi, >From dmesg: agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 drm0: port 0x3000-0x30ff mem 0xd0100000-0xd010ffff,0xe8000000-0xefffffff irq 11 at device 0.0 on pci1 info: [drm] AGP at 0xe0000000 64MB info: [drm] Initialized radeon 1.8.0 20020828 on minor 0 Special tweaks used on this laptop: /boot/loader.conf: hw.pci.allow_unsupported_io_range="1" hw.cbb.start_memory="0x20000000" agp_load="NO" /boot/device.hints: hint.acpi.0.disabled="1" hint.apm.0.disabled="0" hint.apm.0.flags="0x20" If I don't set VideoRam in XF86Config (or set it to a low value), dri does not work at all (glxinfo reports direct rendering: No). If I set it to a little more than 17 MB (XFree86 reports (WW) RADEON(0): Static buffer allocation failed -- need at least 17325 kB video memory if I set it too low), dri works (glxinfo reports direct rendering: Yes). When dri works, I get the drawing errors. A couple of xv grabs of what I see: http://anders.fix.no/test/t30drm/grab.png http://anders.fix.no/test/t30drm/xgrab.png My XFree86.0.log: http://anders.fix.no/test/t30drm/XFree86.0.log scanpci reports: pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x1002 device 0x4c57 ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] pciconf -l -v reports: drm0@pci1:0:0: class=0x030000 card=0x05171014 chip=0x4c571002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies' device = 'Radeon Mobility M7 LW' class = display subclass = VGA glxgears reports 633 FPS. This is a nice laptop, but it would be better with no drawing errors using dri/drm. :-) Any tips on how to make them go away? Patches I can try? PS: I run XFree86 4.3.0 on FreeBSD 5.1-RELEASE. Cheers, -- Anders.