[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help with X using ATI pci card?



Not to be too dramatic, but getting my video card to
work on my PowerMac 7500 running debian is killing me.
 I apologize in advance for the length of
this post.

Here are the os/hardware facts
1) OS - Debian woody
2) kernel = linux-2.4.21-ben2
3) the kernel has the atyfb and the aty128fb modules
   compiled into it.
4) the ATI card I believe is a NexusGA, because it
   matches specs on the ATI website.  But the chip
   on it says "ATI Rage 128 3D AGP".
5) the card is installed in the first PCI bus on 
   the PowerPC 7500
6) the Xserver is 4.0.1, using the "ati" driver for
   the card driver
7) one of 2 monitors, either a Dell M990 (17") or a 
   Apple 15" Multiscan. Although the video card has
   2 video parts (one mac and one VGA), I only
   attach one of the above monitors to it.

I have no problems getting either of these two working
on the framebuffer using the ATI card at atyfb. dmesg
output shows that the kernel reconizes the ATI
in the following way:

Aug  3 13:27:35 anima kernel: atyfb: using auxiliary
register aperture
Aug  3 13:27:35 anima kernel: atyfb: 3D RAGE PRO (BGA,
PCI) [0x4749 rev 0x7c] 8M WRAM, 14.31818 MHz XTAL, 230
MHz PLL, 100 Mhz MCLK
Aug  3 13:27:35 anima kernel: fb1: ATY Mach64 frame
buffer device on PCI

Of course, I encounter problem with X using this ATI
card.  X recognizes
the card as follows:

(II) ATI: ATI driver (version 6.3.6) for chipsets: ati
(II) R128: Driver for ATI Rage 128 chipsets: ATI Rage
128 RE (PCI),
        ATI Rage 128 RF (AGP), ATI Rage 128 RG (AGP),
ATI Rage 128 RK (PCI),
        ATI Rage 128 RL (AGP), ATI Rage 128 Pro PD
(PCI),
        ATI Rage 128 Pro PF (AGP), ATI Rage 128 Pro PP
(PCI),
        ATI Rage 128 Pro PR (PCI), ATI Rage 128
Mobility LE (PCI),
        ATI Rage 128 Mobility LF (AGP), ATI Rage 128
Mobility MF (AGP),
        ATI Rage 128 Mobility ML (AGP)
(II) RADEON: Driver for ATI Radeon chipsets: ATI
Radeon QD (AGP),
        ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI
Radeon QG (AGP),
        ATI Radeon VE (AGP)
(II) ATI:  Candidate "Device" section "ATI Rage Pro
3D".
(II) ATI:  Shared PCI/AGP Mach64 in slot 0:13:0
detected.
(II) ATI:  Shared PCI/AGP Mach64 in slot 0:13:0
assigned to active "Device" section "ATI Rage Pro 3D".
(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.1.0.1, module version = 6.3.6
        Module class: XFree86 Video Driver
        ABI class: XFree86 Video Driver, version 0.4
(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 - 0xf301ffff
(0x20000) MX[B]
        [3] -1 0        0x80800000 - 0x80800fff
(0x1000) MX[B]
        [4] -1 0        0x80820000 - 0x8083ffff
(0x20000) MX[B](B)
        [5] -1 0        0x80801000 - 0x80801fff
(0x1000) MX[B](B)
        [6] -1 0        0x81000000 - 0x81ffffff
(0x1000000) MX[B](B)
        [7] -1 0        0xf1000000 - 0xf10003ff
(0x400) MX[B]
        [8] -1 0        0x94000000 - 0x97ffffff
(0x4000000) MX[B]
        [9] -1 0        0x90000000 - 0x9000ffff
(0x10000) MX[B]
        [10] -1 0       0x0000ffff - 0x0000ffff (0x1)
IX[B]
        [11] -1 0       0x00000000 - 0x00000000 (0x1)
IX[B]
        [12] -1 0       0x00000800 - 0x0000083f (0x40)
IX[B]
        [13] -1 0       0x00000400 - 0x000004ff
(0x100) IX[B](B)
        [14] -1 0       0xfffffffc - 0xfffffffc (0x1)
IX[B]
        [15] -1 0       0xfffffffc - 0xfffffffc (0x1)
IX[B]
        [16] -1 0       0xfffffffc - 0xfffffffc (0x1)
IX[B]
        [17] -1 0       0xfffffffc - 0xfffffffc (0x1)
IX[B]
(==) ATI(0): Chipset:  "ati".
(**) ATI(0): Depth 24, (--) framebuffer bpp 32
(--) ATI(0): ATI 3D Rage Pro graphics controller
detected.
(--) ATI(0): Chip type 4749 "GI", version 4, foundry
UMC, class 0, revision 0x01.
(--) ATI(0): PCI bus interface detected;  block I/O
base is 0x0400.
(--) ATI(0): ATI Mach64 adapter detected.
(--) ATI(0): Internal RAMDAC (subtype 1) detected.
(==) ATI(0): RGB weight 888
(==) ATI(0): Default visual is TrueColor
(==) 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
0x817FFC00.
(II) ATI(0): Using 8 MB linear aperture at 0x81800000.
(!!) ATI(0): Virtual resolutions will be limited to
8191 kB
 due to linear aperture size and/or placement of
hardware cursor image area.
(II) ATI(0): Using Block 0 MMIO aperture at
0x80801400.
(II) ATI(0): Using Block 1 MMIO aperture at
0x80801000.
(II) ATI(0): MMIO write caching enabled.
(--) ATI(0): 8192 kB of SGRAM (2:1) 32-bit detected
(using 8191 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): Small: Using hsync range of 31.50-60.30
kHz
(II) ATI(0): Small: Using vrefresh range of
59.90-75.10 Hz
(II) ATI(0): Maximum clock: 199.00 MHz

Here is the relevant section of my XF86Config-p file:

Section "Monitor"
        Identifier      "Large"
        VendorName      "Dell"
        ModelName       "M990"
        HorizSync       30-96
        VertRefresh     75-160
        DisplaySize     355 265
        UseModes        "fb.modes"
        Option          "DPMS"
EndSection

Section "Device"
        Identifier      "ATI Nexus GA" 
        Driver          "ati"
        BusID           "PCI:0:13:0"
        Option          "dpms"
EndSection

Note: I have followed the "ati" driver options
instructions to the letter. I cannot add "Clocks"
option for this card because they will not be
recognized. I have not added the "ChipID "mach64""
option because it does not work with this card.  I
have also tried using the "r128" driver and it
doesn't work at all with my card.

Finally, these are the modelines I used for this card:

Section "Modes"
        Identifier "fb.modes"
        Modeline "800x600-56" 36.0 800 824 896 1024
600 601 603 625 +hsync +vsync
        Modeline "800x600-60" 40.0 800 840 968 1056
600 601 605 628 +hsync +vsync
        Modeline "800x600-70" 44.90 800 824 968 1008
600 609 621 636 +hsync
        Modeline "800x600-72" 50.0 800 856 976 1040
600 637 643 666 +hsync +vsync
        Modeline "800x600-75" 49.5 800 816 896 1056
600 601 604 625 +hsync +vsync
        Modeline "800x600-90" 56.65 800 808 872 992
600 608 619 635 +hsync +vsync
        Modeline "800x600-100" 67.50 800 800 864 1080
600 607 611 625 +hsync +vsync
        Modeline "1024x768-70" 75.0 1024 1048 1184
1328 768 771 777 806
        Modeline "1024x768-72" 75.0 1024 1048 1184
1288 768 771 777 806
        Modeline "1024x768-75" 78.75 1024 1040 1136
1312 768 769 772 800 +hsync +vsync
        Modeline "1024x768-90" 100.0 1024 1024 1120
1312 768 789 804 845
        Modeline "1024x768-100" 110.0 1024 1024 1112
1392 768 768 776 792
EndSection

I calculated these modelines -- following kernel
documentation -- from the file /etc/fb.modes found in
Debian, which according to its header says they were
derived from the ATI Mach64 documentation.  I have
also calculating modelines by hand using the howto. 
Most on the time, the image produced by these
Modelines either 
a) exceeds the signal the monitor can receive, 
b) produces a cross-hatch artifacted display,
   completely unreadable
c) or gives a strange overlapped-duplicated image of
   my desktop with no arrow (the most promising).

At this point, I have no idea were to go from here. 
If anybody has any idea how I can solve this, I would
greatly appreciate it.  I would really like to get 2
monitors going and was looking forward to some speed
improvement with the ATI card on my large monitor.

W. Crowshaw

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



Reply to: