Subject: 4400 vs 9500 strangeness
To: netbsd-macppc <port-macppc@NetBSD.ORG>
From: Riccardo Mottola <rollei@tiscalinet.it>
List: port-macppc
Date: 11/20/2004 15:26:56
Hey all,

I wanted to try out Michael's improvments in the kernel and in the X
server on my 4400 which has an integrated ATI card on which I weren't
able to use X up to now.

The box behaves quite differently: it has of 2.0. Maybe that is the
cause.

The most noticeable thing is that at startup the first messages are in a
small font at 1024x768 (so this OF detects the monitor). Then the rest
of the kernel messages as well as the console appear ina bigger sized
font very similar to the one that sun sparcstations use. Also strangely
the image is abit fuzzy and horizontal sznc seems unperfect, the left
and right edges of the image show pciels coming and going...

Then I try to configure X as much as possible closely as I did on the
9500.


My Mouse (physically the SAME mouse and keyboard I attach to the 9500)
doesn't work, either with Xfree or Xmacppc. But dmesg shows it!

some dmesg:
adb0 at obio0 offset 0x16000 irq 18: 4 targets
aed0 at adb0 addr 0: ADB Event device
akbd0 at adb0 addr 15: extended keyboard
wskbd0 at akbd0: console keyboard
ams0 at adb0 addr 14: 1-button, 100 dpi mouse
wsmouse0 at ams0 mux 0
akbd1 at adb0 addr 2: extended keyboard
wskbd at akbd1 not configured
ams1 at adb0 addr 3: 1-button, 100 dpi mouse
wsmouse at ams1 not configured
ofb0 at pci0 dev 17 function 0: ATI Technologies Mach64 VT
ofb0: 1024 x 768, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation), using
wskbd0
wsmux1: connecting to wsdisplay0

Xmacppc comes up in 1024x768! but I need to kill the process having no
mouse. Keyboad works and I can type in the console.

The troubles come with Xfree.

I tried setting colors to 8, 16, 24 but no big changes. The driver I
selected in xf86config is "ati"
The screen come sup, some windows are displayed but entire parts of the
screen are duplicated but not regularly (that is not split in half
vertically or horizontally. More like 3-4)! I see two xclocks...
sometimes at some resolutions some parts are then colored with yellow.

But here are good news too. Once killed the X server, I get back to a
uniformly mangled screen, small white checkers! but the font table is
not corrupted and typing shows the console is perfectly usable! The
"borders" were no text is written cotinue to have the strnge pattern,
but this is only aesthetic and the console works perfectly.

Afaik I should have at least 2MB of VRAM and IIRC the computer was
uprgaded to 4. 4MB is also what Xfree detects.

here some excerpts from my Xfree log, there is a warning I donl't like
at all though.

(--) Using wscons driver
(WW) xf86EnableIO 6
(WW) xf86EnableIO: 41b04000
(WW) xf86EnableIO 6
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:0b:0: chip 106b,0001 card 0000,0000 rev 03 class 06,00,00
hdr 00
(II) PCI: 00:0e:0: chip 10ec,8139 card 10ec,8139 rev 10 class 02,00,00
hdr 00
(II) PCI: 00:10:0: chip 106b,0007 card 0000,0000 rev 01 class ff,00,00
hdr 00
(II) PCI: 00:11:0: chip 1002,5654 card 0000,0000 rev 40 class 03,00,00
hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:11:0), (0,0,0), BCTRL: 0x0008 (VGA_EN is
set)
(II) Bus 0 I/O range:
        [0] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:

       [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
(--) PCI:*(0:17:0) ATI Technologies Inc 264VT [Mach64 VT] rev 64, Mem @
0x81000000/24, I/O @ 0x0400/8
(II) Addressable bus resource ranges are
        [0] -1  0       0x00000000 - 0xffffffff (0x0) MX[B]
        [1] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [3] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) Active PCI resource ranges:
        [0] -1  0       0xf3000000 - 0xf3ffffff (0x1000000) MX[B]E
        [1] -1  0       0x80800000 - 0x80ffffff (0x800000) MX[B]E
        [2] -1  0       0x81000000 - 0x81ffffff (0x1000000) MX[B](B)
        [3] -1  0       0x00000400 - 0x000004ff (0x100) IX[B]E
        [4] -1  0       0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) Active PCI resource ranges after removing overlaps:
        [0] -1  0       0xf3000000 - 0xf3ffffff (0x1000000) MX[B]E
        [1] -1  0       0x80800000 - 0x80ffffff (0x800000) MX[B]E
        [2] -1  0       0x81000000 - 0x81ffffff (0x1000000) MX[B](B)
        [3] -1  0       0x00000400 - 0x000004ff (0x100) IX[B]E
        [4] -1  0       0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) OS-reported resource ranges after removing overlaps with PCI:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [3] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
(II) All system resource ranges:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0xf3000000 - 0xf3ffffff (0x1000000) MX[B]E
        [3] -1  0       0x80800000 - 0x80ffffff (0x800000) MX[B]E
        [4] -1  0       0x81000000 - 0x81ffffff (0x1000000) MX[B](B)
        [5] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [6] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
        [7] -1  0       0x00000400 - 0x000004ff (0x100) IX[B]E
        [8] -1  0       0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) LoadModule: "dbe"



....


(WW) xf86EnableIO 6
(II) ATI:  Shared PCI/AGP Mach64 in slot 0:17:0 detected.
(II) ATI:  Shared PCI/AGP Mach64 in slot 0:17:0 assigned to active
"Device" section "atirage".
(II) Loading sub module "atimisc"
(II) LoadModule: "atimisc"
(II) Loading /usr/X11R6/lib/modules/drivers/atimisc_drv.o
(II) Module atimisc: vendor="The XFree86 Project"
        compiled for 4.4.0, module version = 6.5.6
        Module class: XFree86 Video Driver
        ABI class: XFree86 Video Driver, version 0.7
(WW) ****INVALID IO ALLOCATION**** b: 0x400 e: 0x4ff correcting^G
(II) window:
        [0] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) resSize:
        [0] -1  0       0x00000000 - 0xffffffff (0x0) IX[B]
(II) window fixed:
        [0] -1  0       0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) resource ranges after probing:
        [0] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [1] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [2] -1  0       0xf3000000 - 0xf3ffffff (0x1000000) MX[B]E
        [3] -1  0       0x80800000 - 0x80ffffff (0x800000) MX[B]E
        [4] -1  0       0x81000000 - 0x81ffffff (0x1000000) MX[B](B)
        [5] -1  0       0x00000000 - 0x000000ff (0x100) IX[B](B)
        [6] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [7] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
        [8] -1  0       0x00000400 - 0x000004ff (0x100) IX[B](B)
(==) ATI(0): Chipset:  "ati".
(**) ATI(0): Depth 8, (--) framebuffer bpp 8
(II) ATI(0): BIOS Data:  BIOSSize=0x0000, ROMTable=0x0000.
(II) ATI(0): BIOS Data:  ClockTable=0x0000, FrequencyTable=0x0000.
(II) ATI(0): BIOS Data:  LCDTable=0x0000, LCDPanelInfo=0x0000.
(II) ATI(0): BIOS Data:  VideoTable=0x0000, HardwareTable=0x0000.
(II) ATI(0): BIOS Data:  I2CType=0x00, Tuner=0x00, Decoder=0x00,
Audio=0x0F.
(--) ATI(0): ATI 264VT graphics controller detected.
(--) ATI(0): Chip type 5654 "VT", version 0, foundry SGS, class 0,
revision 0x01.
(--) ATI(0): PCI bus interface detected.

that INVALID IO ALLOCATION doesn't look good, right ?

--) ATI(0): ATI Mach64 adapter detected.
(--) ATI(0): Internal RAMDAC (subtype 1) detected.
(==) ATI(0): RGB weight 888
(==) ATI(0): Default visual is PseudoColor
(==) ATI(0): Using gamma correction (1.0, 1.0, 1.0)
(II) ATI(0): Using Mach64 accelerator CRTC.
(II) ATI(0): Storing hardware cursor image at 0x813FFC00.
(II) ATI(0): Using 8 MB linear aperture at 0x81800000.
(!!) ATI(0): Virtual resolutions will be limited to 4095 kB
 due to linear aperture size and/or placement of hardware cursor image
area.
(II) ATI(0): Using Block 0 MMIO aperture at 0x817FFC00.
(II) ATI(0): Using Block 1 MMIO aperture at 0x817FF800.
(II) ATI(0): MMIO write caching enabled.
(--) ATI(0): 4096 kB of SDRAM (1:1) detected (using 4095 kB).
(WW) ATI(0): Cannot shadow an accelerated frame buffer.
(--) ATI(0): Internal programmable clock generator detected.
(--) ATI(0): Reference clock 157.5/11 (14.318) MHz.


.....


(II) ATI(0): I2C bus "Mach64" initialized.
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
        [0] 0   0       0x81000000 - 0x81ffffff (0x1000000) MS[B]
        [1] -1  0       0xffffffff - 0xffffffff (0x1) MX[B]
        [2] -1  0       0x00000000 - 0x00000000 (0x1) MX[B]
        [3] -1  0       0xf3000000 - 0xf3ffffff (0x1000000) MX[B]E
        [4] -1  0       0x80800000 - 0x80ffffff (0x800000) MX[B]E
        [5] -1  0       0x81000000 - 0x81ffffff (0x1000000) MX[B](B)
        [6] -1  0       0x00000000 - 0x000000ff (0x100) IX[B](B)
        [7] -1  0       0x0000ffff - 0x0000ffff (0x1) IX[B]
        [8] -1  0       0x00000000 - 0x00000000 (0x1) IX[B]
        [9] -1  0       0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) ATI(0): Largest offscreen areas (with overlaps):
(II) ATI(0):    1280 x 2252 rectangle at 0,1024
(II) ATI(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
        Offscreen Pixmaps
        Setting up tile and stipple cache:
                32 128x128 slots
                14 256x256 slots
                5 512x512 slots
(==) ATI(0): Backing store disabled
(==) ATI(0): Silken mouse enabled
(==) RandR enabled

....

(II) Initializing built-in extension RANDR
(**) Option "Protocol" "wsmouse"
(**) Mouse1: Protocol: wsmouse
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/wsmouse"
(**) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(==) Mouse1: Buttons: 3
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
Could not init font path element /usr/X11R6/lib/X11/fonts/local/,
removing from list!


.....

Any suggestions are welcome. Maybe I found a bug? or some new hint for
Michael to improve his work?
This ATi card is integrated on the board, even if it is plainly seen as
a PCI card.

-Riccardo

PS: about my XDM problem no one has suggestions ?Riccardo Mottola wrote: