ATI Radeon 9200 on Mac Mini

2014-03-08 Thread Jan Stary
This is current/macppc on a Mac Mini, see full dmesg below.
It works fine, but the Radeon graphics, which is
radeondrm0 at pci0 dev 16 function 0 ATI Radeon 9200 rev 0x01
might have some problems.

This is how the boot sequence ends:

root on wd0a (d2e7005f40cdabc7.a) swap on wd0b dump on wd0b
drm: initializing kernel modesetting (RV280 0x1002:0x5962 0x1002:0x5962).
error: [drm:pid0:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
drm: Using generic clock info
radeondrm0: VRAM: 128M 0x9800 - 0x9FFF (64M used)
trying to bind memory to uninitialized GART !
error: [drm:pid0:radeon_ttm_backend_bind] *ERROR* failed to bind 1 pages at 
0x
error: [drm:pid0:radeon_wb_init] *ERROR* (-22) create WB bo failed
error: [drm:pid0:r100_init] *ERROR* Disabling GPU acceleration
drm: radeon: cp finalized
drm: radeon: cp finalized
Finalizing pool allocator
ttm_pool_mm_shrink_fini stub
drm: Zone  kernel: Used memory at exit: 0 kiB
drm: radeon: ttm finalized
drm: Forcing AGP to PCI mode
error: [drm:pid0:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
drm: Using generic clock info
radeondrm0: VRAM: 128M 0x9800 - 0x9FFF (64M used)
radeondrm0: GTT: 512M 0x7800 - 0x97FF
drm: PCI GART of 512M enabled (table at 0x0294A000).
drm: Connector Table: 6 (mini external tmds)
drm: No valid Ext TMDS info found in BIOS
drm: No TV DAC info found in BIOS
radeon_i2c_put_byte stub
radeon_i2c_put_byte stub
radeon_i2c_put_byte stub
radeon_i2c_put_byte stub
radeon_i2c_put_byte stub
radeondrm0: 1280x1024
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

Is this anything to worry about?
What can I do to debug what radeon is complaining about?

The graphics seems to work fine,
and I can run X with machdep.allowaperture=0
(a good opportunity to thank all those
who have been working on KMS!).

One silly problem I am having with the graphics
is that the textures of games/frozen-bubble are broken
http://stare.cz/~hans/.tmp/fb.jpg
For those of you deprived of the orgastic joys of frozen-bubble,
the ball to be shooted should be shooting from a canon,
and there is a penguin angling the canon to the left.
In the left part, the level is supposed to be written.

I don't know if this is frozen-bubble's problem,
or a symptom of something wrong with my graphics.

Jan

[ using 554672 bytes of bsd ELF symbol table ]
console out [ATY,RockHopper2_A]console in [keyboard] , using USB
using parent ATY,RockHopper2Paren:: memaddr 9800 size 800, : consaddr 
9c008000, : ioaddr 9002, size 2: width 1280 linebytes 1280 height 1024 
depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.5 (GENERIC) #166: Tue Mar  4 13:58:36 MST 2014
dera...@macppc.openbsd.org:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1031159808 (983MB)
mainbus0 at root: model PowerMac10,2
cpu0 at mainbus0: 7447A (Revision 0x102): 1499 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: 1GB DDR SDRAM non-parity PC3200CL3.0
memc0 at mainbus0: uni-n rev 0xd2
hw-clock at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
mpcpcibr0 at mainbus0 pci: uni-north
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 Apple UniNorth AGP rev 0x00
radeondrm0 at pci0 dev 16 function 0 ATI Radeon 9200 rev 0x01
drm0 at radeondrm0
radeondrm0: irq 48
mpcpcibr1 at mainbus0 pci: uni-north
pci1 at mpcpcibr1 bus 0
macobio0 at pci1 dev 23 function 0 Apple Intrepid rev 0x00
openpic0 at macobio0 offset 0x4: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
modem-reset at macgpio0 offset 0x1d not configured
modem-power at macgpio0 offset 0x1c not configured
macgpio1 at macgpio0 offset 0x9: irq 47
programmer-switch at macgpio0 offset 0x11 not configured
gpio5 at macgpio0 offset 0x6f not configured
gpio6 at macgpio0 offset 0x70 not configured
extint-gpio15 at macgpio0 offset 0x67 not configured
escc-legacy at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
aoa0 at macobio0 offset 0x1: irq 30,1,2
audio0 at aoa0
timer at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000
apm0 at adb0: battery flags 0x0, 0% charged
piic0 at adb0
iic1 at piic0
maxtmp0 at iic1 addr 0xc8: max6642
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
wdc0 at macobio0 offset 0x2 irq 24: DMA
bwi0 at pci1 dev 18 function 0 Broadcom BCM4318 rev 0x02: irq 52, address 
00:11:24:bf:cb:2a
ohci0 at pci1 dev 26 function 0 Apple Intrepid USB rev 0x00: irq 29, version 
1.0, legacy support
ohci1 at pci1 dev 27 function 0 NEC USB rev 0x43: irq 63, version 1.0
ohci2 at pci1 dev 27 function 1 NEC USB rev 

Re: ATI Radeon 9200 on Mac Mini

2014-03-08 Thread Martin Pieuchot
On 08/03/14(Sat) 14:26, Jan Stary wrote:
 This is current/macppc on a Mac Mini, see full dmesg below.
 It works fine, but the Radeon graphics, which is
 radeondrm0 at pci0 dev 16 function 0 ATI Radeon 9200 rev 0x01
 might have some problems.
 
 This is how the boot sequence ends:
 
 root on wd0a (d2e7005f40cdabc7.a) swap on wd0b dump on wd0b
 drm: initializing kernel modesetting (RV280 0x1002:0x5962 0x1002:0x5962).
 error: [drm:pid0:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
 drm: Using generic clock info
 radeondrm0: VRAM: 128M 0x9800 - 0x9FFF (64M used)
 trying to bind memory to uninitialized GART !
 error: [drm:pid0:radeon_ttm_backend_bind] *ERROR* failed to bind 1 pages at 
 0x
 error: [drm:pid0:radeon_wb_init] *ERROR* (-22) create WB bo failed
 error: [drm:pid0:r100_init] *ERROR* Disabling GPU acceleration
 drm: radeon: cp finalized
 drm: radeon: cp finalized
 Finalizing pool allocator
 ttm_pool_mm_shrink_fini stub
 drm: Zone  kernel: Used memory at exit: 0 kiB
 drm: radeon: ttm finalized
 drm: Forcing AGP to PCI mode
 error: [drm:pid0:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
 drm: Using generic clock info
 radeondrm0: VRAM: 128M 0x9800 - 0x9FFF (64M used)
 radeondrm0: GTT: 512M 0x7800 - 0x97FF
 drm: PCI GART of 512M enabled (table at 0x0294A000).
 drm: Connector Table: 6 (mini external tmds)
 drm: No valid Ext TMDS info found in BIOS
 drm: No TV DAC info found in BIOS
 radeon_i2c_put_byte stub
 radeon_i2c_put_byte stub
 radeon_i2c_put_byte stub
 radeon_i2c_put_byte stub
 radeon_i2c_put_byte stub
 radeondrm0: 1280x1024
 wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
 wskbd1: connecting to wsdisplay0
 wsdisplay0: screen 1-5 added (std, vt100 emulation)
 
 Is this anything to worry about?

Not really.

 What can I do to debug what radeon is complaining about?

You can try to figure out why AGP is no longer working, you'll need
to enable appleagp for that in your kernel, if you find why I'm 
interested :)

 The graphics seems to work fine,
 and I can run X with machdep.allowaperture=0
 (a good opportunity to thank all those
 who have been working on KMS!).
 
 One silly problem I am having with the graphics
 is that the textures of games/frozen-bubble are broken
 http://stare.cz/~hans/.tmp/fb.jpg
 For those of you deprived of the orgastic joys of frozen-bubble,
 the ball to be shooted should be shooting from a canon,
 and there is a penguin angling the canon to the left.
 In the left part, the level is supposed to be written.
 
 I don't know if this is frozen-bubble's problem,
 or a symptom of something wrong with my graphics.

Or simply just a bug in the driver(s), was it working before?  Coud you
try with software rendering only, by setting LIBGL_ALWAYS_SOFTWARE
before launching the application?  See the Mesa page [0] for more
informations.

Martin

[0] http://www.mesa3d.org/envvars.html