ALT Linux hardware support
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: hardware@altlinux.ru
Cc: X-Stranger <x@interfax.by>
Subject: [Hardware] Re: [Comm] [hw-video] ATI Rage Mobility DRI does work :)
Date: Tue, 31 May 2005 13:34:38 +0300
Message-ID: <20050531103438.GR7028@osdn.org.ua> (raw)
In-Reply-To: <20050530133048.GA14804@master.mivlgu.local>

[-- Attachment #1: Type: text/plain, Size: 5485 bytes --]

перевожу в hardware@ (бо там такому и место)

On Mon, May 30, 2005 at 05:30:48PM +0400, Sergey Vlasov wrote:
> > (II) ATI(0): [drm] register handle = 0xf4200000
> > (II) ATI(0): [dri] Visual configs initialized
> > (II) ATI(0): [dri] Block 0 base at 0xf4200400
> > (WW) ATI(0): Not enough memory for local textures, disabling DRI
> > (II) ATI(0): [drm] removed 1 reserved context for kernel
> > (II) ATI(0): [drm] unmapping 8192 bytes of SAREA 0xd8c31000 at 0xb7536000
> А сколько там видеопамяти?  Вот только что написали, что на 4M
> работать будет максимум в 800x600x16bit:
> http://permalink.gmane.org/gmane.comp.video.dri.user/4858
> http://permalink.gmane.org/gmane.comp.video.dri.user/4859

Очень на то похоже -- тоже Lifebook, тоже Rage Mobility, 
тоже 2X, но 4M.

2.6.10-wks26-up-alt5, загрузил intel_agp, agpgart, mach64;
xorg-x11-6.8.2-alt7, прописал Load'ы dri, glx.

agpgart: Detected an Intel 440BX Chipset.
agpgart: Maximum main memory to use for agp memory: 96M
agpgart: AGP aperture is 64M @ 0xf8000000
[drm] Initialized mach64 1.0.0 20020904 on minor 0: ATI Technologies Inc Rage Mobility P/M AGP 2x

(--) ATI(0): 4096 kB of SGRAM (2:1) 32-bit detected (using 4095 kB).
(WW) ATI(0): DRI static buffer allocation failed -- need at least 4608 kB video memory
(II) ATI(0): Direct rendering disabled

Соответственно в 800x600x16 (брр, оно отмасштабировалось):

[drm] Module unloaded
[drm] Initialized mach64 1.0.0 20020904 on minor 0: ATI Technologies Inc Rage Mobility P/M AGP 2x
agpgart: Found an AGP 1.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 2x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 2x mode
[drm] descriptor ring: cpu addr 0xc8ce0000, bus addr: 0xf8000000
[drm] Forcing pseudo-DMA mode

(II) ATI(0): [drm] SAREA 2200+1208: 3408
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) ATI(0): [drm] DRM interface version 1.2
(II) ATI(0): [drm] created "mach64" driver at busid "pci:0000:01:00.0"
(II) ATI(0): [drm] added 8192 byte SAREA at 0xc8cd1000
(II) ATI(0): [drm] mapped SAREA 0xc8cd1000 to 0xb794c000
(II) ATI(0): [drm] framebuffer handle = 0xf5000000
(II) ATI(0): [drm] added 1 reserved context for kernel
(II) ATI(0): [drm] Will request pseudo-DMA (MMIO) mode
(==) ATI(0): [agp] Using AGP 2x Mode
(==) ATI(0): [agp] Using 8 MB AGP aperture
(II) ATI(0): [agp] Mode 0x1f000203 [AGP 0x8086/0x7190; Card 0x1002/0x4c4d]
(II) ATI(0): [agp] 8192 kB allocated with handle 0x00000001
(II) ATI(0): [agp] Using 16 kB for DMA descriptor ring
(==) ATI(0): [agp] Using 2 MB for DMA buffers
(II) ATI(0): [agp] Using 6016 kB for AGP textures
(II) ATI(0): [agp] ring handle = 0xf8000000
(II) ATI(0): [agp] Ring mapped at 0xb7948000
(II) ATI(0): [agp] vertex buffers handle = 0xf8004000
(II) ATI(0): [agp] Vertex buffers mapped at 0xb7748000
(II) ATI(0): [agp] AGP texture region handle = 0xf8204000
(II) ATI(0): [agp] AGP Texture region mapped at 0xb7168000
(II) ATI(0): [drm] register handle = 0xf4100000
(II) ATI(0): [dri] Visual configs initialized
(II) ATI(0): [dri] Block 0 base at 0xf4100400
(II) ATI(0): [drm] installed DRM signal handler
(II) ATI(0): [DRI] installation complete
(II) ATI(0): [drm] Added 128 16384 byte DMA buffers
(II) ATI(0): [drm] Mapped 128 DMA buffers at 0xb6f68000
(II) ATI(0): [drm] Installed interrupt handler, using IRQ 9
(II) ATI(0): Direct rendering enabled

...но почему-то

life:~> glxinfo|grep ^direct
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
direct rendering: No

После sudo chown $USER /dev/dri/card0 поправилось;
FPS в glxgears поднялись со ~113 до ~140, правда, не знаю, 
на чём масштабирование выполняется (800x600 растянуто
на весь экран, лезть отключать лень).

(можно было дочитать это и прописать Section "DRI"...
http://dri.freedesktop.org/wiki/DriTroubleshooting)

С libGL вроде порядок:

life:~> l /usr/X11R6/lib/libGL* | cut -c60-
libGL.so.1 -> mesa_gl/libGL.so.1.2
libGL.so.1.2 -> mesa_gl/libGL.so.1.2
libGLU.so.1 -> libGLU.so.1.3
libGLU.so.1.3
libGLw.so.1 -> libGLw.so.1.0
libGLw.so.1.0
life:~> LIBGL_DEBUG=verbose glxgears
libGL: XF86DRIGetClientDriverName: 6.5.6 mach64 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mach64_dri.so
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
libGL error: 
Can't open configuration file /etc/drirc: No such file or directory.
libGL error: 
Can't open configuration file /home/mike/.drirc: No such file or directory.

В общем, по ссылкам в цитате всё сказано. :-)

Т.к. машинка и не предполагала, то отключаю заради памяти, 
но приятно, что в Xorg уже смержили найденный перед покупкой
ноута скорее из любопытства код для Mach64 DRI. :-)

PS: проверил ppracer.  Четыре с хвостиком FPS, ездит :)))

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

           reply	other threads:[~2005-05-31 10:34 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20050530133048.GA14804@master.mivlgu.local>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050531103438.GR7028@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=hardware@altlinux.ru \
    --cc=x@interfax.by \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux hardware support

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \
		hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
	public-inbox-index hardware

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.hardware


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git