Port-macppc archive

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

machfb corruption on powerbook G3 Lombard



I'm running into a problem with machfb on an powerbook g3 lombard
(powerbook 1.1, also named "bronze keyboard"), I get a corrupted screen
as soon as the driver take control of the display.
The system is a ppc 750 g3 333Mhz with an ATI Rage LT Pro with 8Mb of
memory, machfb seems to identify it correctly and also select the
correct resolution for the lcd panel (1024x768).
I'm getting two type of screen corruption, in one case the screen turns
blue with garbage on the upper half of the screen and truncated text
output on the left side of the screen, on the other case the screen
doesn't go blue but the text is display correctly only on the left 1/3
of the screen, while on the other 2/3 of the screen the text is
corrupted or simply a repetition of the first 1/3 of the text.
This powerbook works fine in macos 9 or osx (10.3, 10.4) so the hardware
seems fine.
I can simply disable machfb as I don't need anything more than a text
console on this system but it will be good if this can be fixed, I can
build a kernel and make some test, so if anyone has any idea or patches
to fix this I'm happy to try.

Some picture of the screen corruption:
https://www.dropbox.com/s/8s56pauodutjmwl/20190426_232806.jpg?dl=0
https://www.dropbox.com/s/9b26tmcf6gk6078/20190426_234545.jpg?dl=0

Here's some output from netbsd 8 and head kernel:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018
	mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/macppc/compile/GENERIC
total memory = 384 MB
avail memory = 359 MB
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
found heathrow PIC at 80800000
bootpath: /pci/mac-io/ata-3@20000/disk@0:0/netbsd-GENERIC.gz
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 2.2), ID 0 (primary)
cpu0: HID0 0x8050c0a4<EMCP,NAP,DPM,ICE,DCE,SGE,BTIC,BHT>, powersave: 1
cpu0: 333.33 MHz, no-parity 512KB WB L2 cache (PB SRAM) at 2.5:1 ratio
memory0 at mainbus0
grackle0 at mainbus0
pci0 at grackle0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Motorola MPC106 "Grackle" Host Bridge (rev. 0x40)
pchb0: L2 cache: 256K, uniprocessor/none mode
ohci0 at pci0 dev 14 function 0: Lucent Technologies USB Host Controller
(rev. 0x12)
ohci0: interrupting at irq 28
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
obio0 at pci0 dev 16 function 0: addr 0x80800000
zsc0 at obio0 irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
davbus at obio0 offset 0x14000 not configured
pmu0 at obio0 offset 0x16000 irq 18:  rev. 11
pmu0: initializing RTC
pmu0: initializing ADB
nadb0 at pmu0: Apple Desktop Bus
pmu0: nvram not configured
pmu0: backlight not configured
smartbat0 at pmu0 addr 0: smart battery
 flags: 5 AC present
smartbat1 at pmu0 addr 1: smart battery
 flags: 1 AC
wdc0 at obio0 offset 0x20000 irq 13, edge triggered: DMA transfer
atabus0 at wdc0 channel 0
mediabay0 at obio0 offset 0x34 irq 29 falling edge triggered
mediabay0: powering up...
wdc1 at mediabay0 offset 0x21000 irq 14, edge triggered
atabus1 at wdc1 channel 0
mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
scsibus0 at mesh0: 8 targets, 8 luns per target
bm0 at obio0 offset 0x11000 irq 42,33: address 00:50:e4:85:1d:47
nsphyter0 at bm0 phy 0: DP83843 10/100 media interface, rev. 0
nsphyter0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
machfb0 at pci0 dev 17 function 0: ATI Technologies 3D Rage LT Pro (rev.
0xdc)
machfb0: using MMIO aperture
machfb0: 16 MB aperture at 0x81000000, 4 KB registers at 0x80881000
machfb0: 128 KB ROM at 0x00000000
machfb0: ref_freq=29.498MHz
ref_div: 60
mclk_fb_div: 200
minref: 450 m: 65
machfb0: 8192 KB SDRAM 98.326 MHz, maximum RAMDAC clock 230 MHz
post_div: 2 log2_post_div: 1 mclk_div: 200
target: 65000 output: 64895
machfb0: initializing the DSP
xclks_per_qw 193 193
machfb0: initial resolution 1024x768 at 8 bpp
wsdisplay0 at machfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
direct rendering for machfb0 unsupported
cbb0 at pci0 dev 19 function 0: Texas Instruments PCI1211 PCI-CardBus
Bridge (rev. 0x00)
cbb0: cacheline 0x8 lattimer 0x20
cbb0: bhlc 0x22008
cbb0: interrupting at irq 22
cardslot0 at cbb0
cardbus0 at cardslot0: bus 1
pcmcia0 at cardslot0
vmmask 7ff00000 schedmask 7ff00000 highmask 7ff00000
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 16666666 Hz quality 100
scsibus0: waiting 2 seconds for devices to settle...
uhub0 at usb0: Lucent Technologies (0x11c1) OHCI root hub (0000), class
9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
adbkbd0 at nadb0 addr 2: iBook keyboard
wskbd0 at adbkbd0: console keyboard, using wsdisplay0
wsmouse0 at adbkbd0 mux 0
adbms0 at nadb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse1 at adbms0 mux 0
adbbt0 at nadb0 addr 7: button device
AC Power: AC adapter online.
wd0 at atabus0 drive 0
wd0: <FUJITSU MHT2040AT>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <MATSHITA CR-175, , 5AAE> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(wdc1:0:0): using PIO mode 4
swwdog0: software watchdog initialized
WARNING: 5 errors while detecting hardware; check system log.
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
kern.module.path=/stand/macppc/8.0/modules
smartbat0: normal capacity on 'Battery charge state'

[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
2015, 2016, 2017,
[   1.0000000]     2018, 2019 The NetBSD Foundation, Inc.  All rights
reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All
rights reserved.

[   1.0000000] NetBSD 8.99.37 (GENERIC) #0: Thu Apr 25 11:47:59 UTC 2019
[   1.0000000]
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/macppc/compile/GENERIC
[   1.0000000] total memory = 512 MB
[   1.0000000] avail memory = 484 MB
[   1.0000000] timecounter: Timecounters tick every 10.000 msec
[   1.0000000] Kernelized RAIDframe activated
[   1.0000000] found heathrow PIC at 80800000
[   1.0000000] bootpath: /pci/mac-io/ata-3@20000/disk@0:0/netbsd-head
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0: 750 (Revision 2.2), ID 0 (primary)
[   1.0000000] cpu0: HID0 0x8050c0a4<EMCP,NAP,DPM,ICE,DCE,SGE,BTIC,BHT>,
powersave: 1
[   1.0000000] cpu0: 333.34 MHz, no-parity 512KB WB L2 cache (PB SRAM)
at 2.5:1 ratio
[   1.0000000] memory0 at mainbus0
[   1.0000000] grackle0 at mainbus0
[   1.0000000] pci0 at grackle0 bus 0
[   1.0000000] pci0: i/o space, memory space enabled
[   1.0000000] pchb0 at pci0 dev 0 function 0
[   1.0000000] pchb0: Motorola MPC106 "Grackle" Host Bridge (rev. 0x40)
[   1.0000000] pchb0: L2 cache: 256K, uniprocessor/none mode
[   1.0000000] ohci0 at pci0 dev 14 function 0: Lucent Technologies USB
Host Controller (rev. 0x12)
[   1.0000000] ohci0: interrupting at irq 28
[   1.0000000] ohci0: OHCI version 1.0
[   1.0000000] usb0 at ohci0: USB revision 1.0
[   1.0000000] obio0 at pci0 dev 16 function 0: addr 0x80800000
[   1.0000000] zsc0 at obio0 irq 15,16
[   1.0000000] zstty0 at zsc0 channel 0
[   1.0000000] zstty1 at zsc0 channel 1
[   1.0000000] awacs0 at obio0 offset 0x14000 Screamer: irq 17,8,9
[   1.0000000] awacs0: speaker
[   1.0000000] audio0 at awacs0: full duplex, playback, capture, mmap
[   1.0000000] awacs0: Virtual format configured - Format SLINEAR,
precision 16, channels 2, frequency 44100
[   1.0000000] awacs0: Latency: 278 milliseconds
[   1.0000000] spkr0 at audio0: PC Speaker (synthesized)
[   1.0000000] wsbell at spkr0 not configured
[   1.0000000] pmu0 at obio0 offset 0x16000 irq 18:  rev. 234
[   1.0000000] pmu0: initializing RTC
[   1.0000000] pmu0: initializing ADB
[   1.0000000] nadb0 at pmu0: Apple Desktop Bus
[   1.0000000] pmu0: nvram not configured
[   1.0000000] pmu0: backlight not configured
[   1.0000000] smartbat0 at pmu0 addr 0: smart battery
[   1.0000000]  flags: 0
[   1.0000000] smartbat1 at pmu0 addr 1: smart battery
[   1.0000000]  flags: 0
[   1.0000000] wdc0 at obio0 offset 0x20000 irq 13, edge triggered: DMA
transfer
[   1.0000000] atabus0 at wdc0 channel 0
[   1.0000000] mediabay0 at obio0 offset 0x34 irq 29 falling edge triggered
[   1.0000000] mediabay0: powering up...
[   1.0000000] wdc1 at mediabay0 offset 0x21000 irq 14, edge triggered
[   1.0000000] atabus1 at wdc1 channel 0
[   1.0000000] mesh0 at obio0 offset 0x10000 irq 12: 50MHz, SCSI ID 7
[   1.0000000] scsibus0 at mesh0: 8 targets, 8 luns per target
[   1.0000000] bm0 at obio0 offset 0x11000 irq 42,33: address
00:50:e4:85:1d:47
[   1.0000000] nsphyter0 at bm0 phy 0: DP83843 10/100 media interface,
rev. 0
[   1.0000000] nsphyter0: 10baseT, 10baseT-FDX, 100baseTX,
100baseTX-FDX, auto
[   1.0000000] machfb0 at pci0 dev 17 function 0: ATI Technologies 3D
Rage LT Pro (rev. 0xdc)
[   1.0000000] machfb0: using MMIO aperture
[   1.0000000] machfb0: 16 MB aperture at 0x81000000, 4 KB registers at
0x80881000
[   1.0000000] machfb0: 128 KB ROM at 0x00000000
[   1.0000000] machfb0: ref_freq=29.498MHz
[   1.0000000] autoconfiguration error: ref_div: 60
[   1.0000000] autoconfiguration error: mclk_fb_div: 200
[   1.0000000] autoconfiguration error: minref: 450 m: 65
[   1.0000000] machfb0: 8192 KB SDRAM 98.326 MHz, maximum RAMDAC clock
230 MHz
[   1.0000000] autoconfiguration error: post_div: 2 log2_post_div: 1
mclk_div: 200
[   1.0000000] autoconfiguration error: target: 65000 output: 64895
[   1.0000000] machfb0: initializing the DSP
[   1.0000000] xclks_per_qw 193 193
[   1.0000000] machfb0: initial resolution 1024x768 at 8 bpp
[   1.0000000] wsdisplay0 at machfb0 kbdmux 1: console (default, vt100
emulation)
[   1.0000000] wsmux1: connecting to wsdisplay0
[   1.0000000] direct rendering for machfb0 unsupported
[   1.0000000] cbb0 at pci0 dev 19 function 0: Texas Instruments PCI1211
PCI-CardBus Bridge (rev. 0x00)
[   1.0000000] cbb0: cacheline 0x8 lattimer 0x20
[   1.0000000] cbb0: bhlc 0x22008
[   1.0000000] cbb0: interrupting at irq 22
[   1.0000000] cardslot0 at cbb0
[   1.0000000] cardbus0 at cardslot0: bus 1
[   1.0000000] pcmcia0 at cardslot0
[   1.0000000] vmmask 79fe0000 schedmask 7ffe0000 highmask 7ffe0000
[   1.0000000] timecounter: Timecounter "clockinterrupt" frequency 100
Hz quality 0
[   1.0000050] timecounter: Timecounter "mftb" frequency 16666666 Hz
quality 100
[   1.0099857] scsibus0: waiting 2 seconds for devices to settle...
[   1.2499818] uhub0 at usb0: NetBSD (0000) OHCI root hub (0000), class
9/0, rev 1.00/1.00, addr 1
[   1.2499818] uhub0: 2 ports with 2 removable, self powered
[   1.2599874] IPsec: Initialized Security Association Processing.
[   1.3599821] adbkbd0 at nadb0 addr 2: iBook keyboard
[   1.3699852] wskbd0 at adbkbd0: console keyboard, using wsdisplay0
[   1.3699852] wsmouse0 at adbkbd0 mux 0
[   1.3699852] adbms0 at nadb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
[   1.4699836] wsmouse1 at adbms0 mux 0
[   1.4699836] adbbt0 at nadb0 addr 7: button device
[   1.9999838] AC Power: AC adapter offline.
[   2.9999856] AC Power: AC adapter online.
[   4.2899881] wd0 at atabus0 drive 0
[   4.2899881] wd0: <FUJITSU MHT2040AT>
[   4.2899881] wd0: drive supports 16-sector PIO transfers, LBA addressing
[   4.2899881] wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect
x 78140160 sectors
[   4.4099914] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA
mode 5 (Ultra/100)
[   4.4199891] wd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
[   4.4199891] atapibus0 at atabus1: 2 targets
[   4.4299920] cd0 at atapibus0 drive 0: <MATSHITA CR-175, , 5AAE> cdrom
removable
[   4.4299920] cd0: drive supports PIO mode 4, DMA mode 2
[   4.4299920] cd0(wdc1:0:0): using PIO mode 4
[   5.7799908] swwdog0: software watchdog initialized
[   5.8499916] WARNING: 5 errors while detecting hardware; check system log.
[   5.8499916] boot device: wd0
[   5.8699996] root on wd0a dumps on wd0b
[   5.9299915] root file system type: ffs
[   5.9299915] kern.module.path=/stand/macppc/8.99.37/modules
[  31.0001665] smartbat0: normal capacity on 'Battery charge state'

part of the ofctl for the graphics card

ff885f20: /pci@80000000/ATY,LTProParent@11

AAPL,slot-name          453100.. ........ ........ ........   E1.
ATY,Fcode               312e3633 00...... ........ ........   1.63.
ATY,Flags               073f0180 ........ ........ ........   .?..
ATY,Rom#                3131332d 58585858 582d3131 3100....   113-XXXXX-111.
ATY,Status              00000000 ........ ........ ........   ....
assigned-addresses      82008810 00000000 81000000 00000000
................
            0010:       01000000 82008818 00000000 80881000
................
            0020:       00000000 00001000 ........ ........   ........
built-in
class-code              00030000 ........ ........ ........   ....
device-id               00004c49 ........ ........ ........   ..LI
device_type             4c545072 6f2d7061 72656e74 00......   "LTPro-parent"
devsel-speed            00000001 ........ ........ ........   ....
fast-back-to-back
interrupts              00000001 ........ ........ ........   ....
max-latency             00000000 ........ ........ ........   ....
min-grant               00000008 ........ ........ ........   ....
model                   4154592c 4c542d43 00...... ........   "ATY,LT-C"
name                    4154592c 4c545072 6f506172 656e7400
"ATY,LTProParent"
reg                     00008800 00000000 00000000 00000000
................
            0010:       00000000 02008810 00000000 00000000
................
            0020:       00000000 01000000 02008818 00000000
................
            0030:       00000000 00000000 00001000 ........   ............
revision-id             000000dc ........ ........ ........   ....
slot-names              00000001 6275696c 742d696e 00......   ....built-in.
vendor-id               00001002 ........ ........ ........   ....

--------------------------------------------------------------------------------


ff88c908: /pci@80000000/ATY,LTProParent@11/ATY,264LTProA

address                 81000000 ........ ........ ........   ....
character-set           49534f38 3835392d 3100.... ........   ISO8859-1.
compatible              4154592c 3236344c 5450726f 00......   "ATY,264LTPro"
depth                   00000008 ........ ........ ........   ....
device_type             64697370 6c617900 ........ ........   "display"
driverID                4c545072 6f20312e 30663900 ........   LTPro 1.0f9.
height                  00000300 ........ ........ ........   ....
iso6429-1983-colors
linebytes               00000400 ........ ........ ........   ....
name                    4154592c 3236344c 5450726f 4100....
"ATY,264LTProA"
width                   00000400 ........ ........ ........   ....

--------------------------------------------------------------------------------


ff88d890: /pci@80000000/ATY,LTProParent@11/ATY,264LTProB

character-set           49534f38 3835392d 3100.... ........   ISO8859-1.
compatible              4154592c 3236344c 5450726f 00......   "ATY,264LTPro"
depth                   00000008 ........ ........ ........   ....
device_type             64697370 6c617900 ........ ........   "display"
driverID                4c545072 6f20312e 30663900 ........   LTPro 1.0f9.
height                  000001e0 ........ ........ ........   ....
iso6429-1983-colors
linebytes               00000280 ........ ........ ........   ....
name                    4154592c 3236344c 5450726f 4200....
"ATY,264LTProB"
width                   00000280 ........ ........ ........   ....

--------------------------------------------------------------------------------

and some information from lspci

00:11.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] 3D Rage LT PRO PCI (rev dc) (prog-if 00 [VGA controller])
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping+ SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 24
	Region 0: Memory at 81000000 (32-bit, non-prefetchable)
	Region 1: I/O ports at 0c00 [disabled]
	Region 2: Memory at 80881000 (32-bit, non-prefetchable)
	Capabilities: [5c] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-

-- 
Giuliano Paolo Brunetti
http://www.flickr.com/photos/31231773@N02/sets/
Italian hobbyist DECnet network - http://decnet.ipv7.net



Home | Main Index | Thread Index | Old Index