From owner-freebsd-current@FreeBSD.ORG Thu Sep 9 06:50:10 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F90F16A4CE for ; Thu, 9 Sep 2004 06:50:10 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE77343D64 for ; Thu, 9 Sep 2004 06:50:09 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1C5Iky-0000LC-TW; Thu, 09 Sep 2004 10:50:08 +0400 From: Vladimir Grebenschikov To: Eric Anholt In-Reply-To: <1094685817.871.4.camel@leguin> References: <1094502674.2668.4.camel@localhost> <1094631615.860.7.camel@leguin> <1094634253.2172.13.camel@localhost> <1094685817.871.4.camel@leguin> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Thu, 09 Sep 2004 10:50:08 +0400 Message-Id: <1094712608.1043.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 1.5.94.1FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: "current@freebsd.org" Subject: Re: ATI Radeon LY Mobility M6: DRM does not work - locking issue ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 06:50:10 -0000 =F7 =D3=D2, 08/09/2004 =D7 16:23 -0700, Eric Anholt =D0=C9=DB=C5=D4: > On Wed, 2004-09-08 at 02:04, Vladimir Grebenschikov wrote: > > =F7 =D3=D2, 08/09/2004 =D7 01:20 -0700, Eric Anholt =D0=C9=DB=C5=D4: > > > On Mon, 2004-09-06 at 13:31, Vladimir Grebenschikov wrote: > > > > Hi > > > >=20 > > > > 6-CURRENT > > > >=20 > > > > from dmesg: > > > >=20 > > > > drm0: port 0x3000-0x30ff mem > > > > 0xd0100000-0xd010ffff,0xd8000000-0xdfffffff irq 9 at device 0.0 on = pci1 > > > > info: [drm] Initialized radeon 1.11.0 20020828 on minor 0 > > > > error: [drm:pid2477:radeon_cp_init] *ERROR* radeon_cp_init called > > > > without lock held > > > > error: [drm:pid2477:radeon_unlock] *ERROR* Process 2477 using kerne= l > > > > context 0 > > >=20 > > > If you look in your dmesg, does agp initialization come before or aft= er > > > the drm? This sure looks like the symptoms of agp initialization com= ing > > > after (or not at all), but if you say your agp is loaded and attached= , > > > I'm not sure how that would happen. > >=20 > > dmesg: > >=20 > > drm0: port 0x3000-0x30ff mem > > 0xd0100000-0xd010ffff,0xd8000000-0xdfffffff irq 9 at device 0.0 on pci1 > > info: [drm] AGP at 0xe0000000 256MB > > info: [drm] Initialized radeon 1.11.0 20020828 on minor 0 > >=20 > > I have solved problem, it need to make depth 16 or there is no enough > > memory to serve direct rendering on 1400x1050 screen with 24 bpp. > >=20 > > and both modules should be loaded before X start > >=20 > > with 16 bpp: > > (II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:0:0" > > (II) RADEON(0): [drm] added 8192 byte SAREA at 0xc2f20000 > > (II) RADEON(0): [drm] mapped SAREA 0xc2f20000 to 0x283c2000 > > (II) RADEON(0): [drm] framebuffer handle =3D 0xd8000000 > > (II) RADEON(0): [drm] added 1 reserved context for kernel > > (II) RADEON(0): [agp] Mode 0x1f000201 [AGP 0x0000/0x0000; Card > > 0x1002/0x4c59] > > (II) RADEON(0): [agp] 8192 kB allocated with handle 0xc1e8fac0 > > (II) RADEON(0): [agp] ring handle =3D 0xe0000000 > > (II) RADEON(0): [agp] Ring mapped at 0x29422000 > > (II) RADEON(0): [agp] ring read ptr handle =3D 0xe0101000 > > (II) RADEON(0): [agp] Ring read ptr mapped at 0x282cf000 > > (II) RADEON(0): [agp] vertex/indirect buffers handle =3D 0xe0102000 > > (II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x29523000 > > (II) RADEON(0): [agp] GART texture map handle =3D 0xe0302000 > > (II) RADEON(0): [agp] GART Texture map mapped at 0x29723000 > > (II) RADEON(0): [drm] register handle =3D 0xd0100000 > > (II) RADEON(0): [dri] Visual configs initialized > > (II) RADEON(0): CP in BM mode > > (II) RADEON(0): Using 8 MB GART aperture > > (II) RADEON(0): Using 1 MB for the ring buffer > > (II) RADEON(0): Using 2 MB for vertex/indirect buffers > > (II) RADEON(0): Using 5 MB for GART textures > > (II) RADEON(0): Memory manager initialized to (0,0) (1408,5957) > > (II) RADEON(0): Reserved area from (0,1050) to (1408,1052) > > (II) RADEON(0): Largest offscreen area available: 1408 x 4905 > > (II) RADEON(0): Will use back buffer at offset 0x5b8000 > > (II) RADEON(0): Will use depth buffer at offset 0x88a000 > > (II) RADEON(0): Will use 4736 kb for textures at offset 0xb60000 > > (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA > > Screen to screen bit blits > > Solid filled rectangles > > 8x8 mono pattern filled rectangles > > Indirect CPU to Screen color expansion > > Solid Lines > > Dashed Lines > > Scanline Image Writes > > Offscreen Pixmaps > > Setting up tile and stipple cache: > > 32 128x128 slots > > 32 256x256 slots > > 15 512x512 slots > > (II) RADEON(0): Acceleration enabled > > (=3D=3D) RADEON(0): Backing store disabled > > (=3D=3D) RADEON(0): Silken mouse enabled > > (II) RADEON(0): Using hardware cursor (scanline 1052) > > (II) RADEON(0): Largest offscreen area available: 1408 x 4899 > > (II) RADEON(0): X context handle =3D 0x00000001 > > (II) RADEON(0): [drm] installed DRM signal handler > > (II) RADEON(0): [DRI] installation complete > > (II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers > > (II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers > > (II) RADEON(0): [drm] dma control initialized, using IRQ 9 > > (II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808 > > (II) RADEON(0): Direct rendering enabled > >=20 > > With 24 bpp: > > (WW) RADEON(0): Static buffer allocation failed -- need at least 17325 > > kB video memory > > (II) RADEON(0): Memory manager initialized to (0,0) (1408,2978) > > (II) RADEON(0): Reserved area from (0,1050) to (1408,1052) > > (II) RADEON(0): Largest offscreen area available: 1408 x 1926 > > (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA) > > Screen to screen bit blits > > Solid filled rectangles > > 8x8 mono pattern filled rectangles > > Indirect CPU to Screen color expansion > > Solid Lines > > Dashed Lines > > Scanline Image Writes > > Offscreen Pixmaps > > Setting up tile and stipple cache: > > 32 128x128 slots > > 13 256x256 slots > > 5 512x512 slots > > (II) RADEON(0): Acceleration enabled > > (=3D=3D) RADEON(0): Backing store disabled > > (=3D=3D) RADEON(0): Silken mouse enabled > > (II) RADEON(0): Using hardware cursor (scanline 1052) > > (II) RADEON(0): Largest offscreen area available: 1408 x 1923 > > (II) RADEON(0): Direct rendering disabled > >=20 > >=20 > > So how required memory calculated ? > >=20 > > VRAM =3D width * height * 24 / 8 =3D 4368000 =3D 4266 Kb=20 > > but it wants 17325 ... >=20 > Your card can't accelerate 24bpp for anything more complicated than 2d > source copies, only 24/32 depth with 32 bpp, so you're actually at > 32bpp. Also, front, back, and depth buffers are allocated statically at > startup all with the same bpp, so there are 3 buffers. So, width * > height * 4 * 3 is how much you need. I see, options are: lower resolution for OpenGL apps or bpp 16 for OpenGL apps (there is no vram upgrades for my notebook) Also, as I understand OpenGL can't be turned on while changing physical resolution by Ctrl-Alt-+/- on the fly ? > (These logs posted here are different from what was initially posted.=20 > I'm still curious as to what was happening previously.) Actually I not seen more warnings as in initial post. Something was fixed not know what exactly, may be fresh -CURRENT helps. --=20 Vladimir B. Grebenchikov vova@fbsd.ru