Port-macppc archive

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

Re: radeonfb vs. Mac Mini



On 09/09/2017 16:43, Michael wrote:
> ... and the workaround is enabled as intended. Leaves the question why
> it doesn't work. Just to be sure - do you get anything different with
> the updated Xorg driver but genfb instead of radeonfb in the kernel?
> ( I don't expect you to, other than a usable console on boot, but who
> knows. Also, would be nice to know if the driver restores the hardware
> to a working console on exit )
> 
> Also, do you get anything useful when playing with Option "MacModel"
> "mini-external'? Or any of the other supported options ( see man radeon
> ) ?

I've not played with this yet.

> Finally, please build a kernel with radeonfb and options
> RADEONFB_DEBUG, run it with the DVI monitor and mail me all the debug
> spam that will dump into the message buffer ( which will be a lot ).
> With that I should be able to determine how exactly the port is wired
> up by OF and hopefully replicate that in radeonfb.

dmesg buffer size needs increasing, with this option set, top of the
output is snipped.

ary)
cpu0: HID0
0x84d0c1bc<EMCP,TBEN,HIGH_BAT_EN,NAP,DPM,ICE,DCE,XBSEN,SGE,BTIC,LRSTK,FOLD,BHT>,
powersave: 1
cpu0: 1250.00 MHz, 512KB L2 cache no parity parity enabled
memory0 at mainbus0: len=128
spdmem0 at memory0
spdmem0: DDR SDRAM, no parity or ECC, 1GB, 333MHz (PC-2700)
spdmem0: 13 rows, 11 cols, 2 ranks, 4 banks/chip, 6.0ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem0: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
uni_n0 at mainbus0 address 0xf8000000
hw-clock at uni_n0 not configured
ki2c0 at uni_n0 address 0xf8001000
iic0 at ki2c0: I2C bus
cereal at iic0 addr 0x60 not configured
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Bridge (rev. 0x00)
radeonfb0 at pci0 dev 16 function 0: ATI Technologies Radeon 9200 5962
(rev. 0x01)




	<key>EDID</key>
	<data>AP///////wBMLcwFNDJSTBMUAQOANR54KmBBplZKnCUSUFQjCACBAIFAgYCVAKlAswABAQEBAjqAGHE4LUBYLEUAEiwhAAAeAAAA/QA4PB5REQAKICAgICAgAAAA/ABTeW5jTWFzdGVyCiAgAAAA/wBIOU1aNTAyMjQ4CiAgADc=</data>
	<key>address</key>
	<integer>0x9c008000</integer>
	<key>cmap_callback</key>
	<integer>0xacdb80</integer>
	<key>depth</key>
	<integer>0x8</integer>
	<key>device-driver</key>
	<string>radeonfb</string>
	<key>device-parent</key>
	<string>pci0</string>
	<key>device-unit</key>
	<integer>0x0</integer>
	<key>device_node</key>
	<integer>0xff9caeb0</integer>
	<key>dvi-internal</key>
	<true/>
	<key>height</key>
	<integer>0x438</integer>
	<key>interface-attributes</key>
	<array>
		<dict>
			<key>attribute-name</key>
			<string>drm</string>
		</dict>
		<dict>
			<key>attribute-name</key>
			<string>i2cbus</string>
		</dict>
		<dict>
			<key>attribute-name</key>
			<string>wsemuldisplaydev</string>
			<key>locators</key>
			<array>
				<dict>
					<key>default</key>
					<string>-1</string>
					<key>loc-name</key>
					<string>console</string>
				</dict>
				<dict>
					<key>default</key>
					<string>1</string>
					<key>loc-name</key>
					<string>kbdmux</string>
				</dict>
			</array>
		</dict>
	</array>
	<key>is_console</key>
	<true/>
	<key>linebytes</key>
	<integer>0x800</integer>
	<key>refclk</key>
	<integer>0xa8c</integer>
	<key>width</key>
	<integer>0x780</integer>


found RV* chip, backlight is supposedly linear
RADEON_CRTC_EXT_CNTL = 00000000
RADEON_CRTC_GEN_CNTL = 03000200
RADEON_CRTC2_GEN_CNTL = 04000200
RADEON_DISP_OUTPUT_CNTL = 00000000
RADEON_DAC_CNTL2 = 00000000
RADEON_BIOS_4_SCRATCH = 00000000
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 00000008
RADEON_TMDS_CNTL = 01000000
RADEON_TMDS_TRANSMITTER_CNTL = 00000041
RADEON_TMDS_PLL_CNTL = 01fb00f7
RADEON_LVDS_GEN_CNTL = 00008020
RADEON_DISP_HW_DEBUG = 00020000
RADEON_PIXCLKS_CNTL = 20000000
RADEON_CRTC_H_SYNC_STRT_WID = 000507d8
RADEON_FP_H_SYNC_STRT_WID = 00050058
RADEON_CRTC2_H_SYNC_STRT_WID = 00000000
RADEON_FP_H2_SYNC_STRT_WID = 00000000
radeonfb0: Video BIOS not present
RADEON_PPLL_REF_DIV = 0000000c
RADEON_PPLL_DIV_0 = 00010084
RADEON_PPLL_DIV_1 = 000001f2
RADEON_PPLL_DIV_2 = 000001bb
RADEON_PPLL_DIV_3 = 000001bb
RADEON_CLOCK_CNTL_INDEX = 00000007
RADEON_P2PLL_REF_DIV = 00000000
RADEON_P2PLL_DIV_0 = 00000000
radeonfb0: No video BIOS, using default clocks
no suitable DFP table present
TMDS_PLL dot clock 13000 pll 400f4
TMDS_PLL dot clock 15000 pll 400f7
TMDS_PLL dot clock -1 pll 40111
TMDS_PLL dot clock 0 pll 0
radeonfb0: refclk = 27.000 MHz, refdiv = 12 minpll = 125000, maxpll = 400000
No connector info in BIOS!
Port #0:
   conn = 3
    ddc = 4
    dac = 0
   tmds = 0
   crtc = 0
Port #1:
   conn = 0
    ddc = 0
    dac = -1
   tmds = -1
   crtc = 0
aperbase = 2550136832
RADEON_MC_FB_LOCATION = 9bff9800
RADEON_MC_AGP_LOCATION = 9bff9c00
radeonfb_attach: port 0 tmds type 0
radeonfb_attach: plugging internal TMDS into CRTC 0
radeonfb_attach: plugging external TMDS into CRTC 0
radeonfb_attach: port 1 tmds type -1
RADEON_DAC_CNTL2 = 00000000
RADEON_DISP_HW_DEBUG = 00020000
RADEON_DAC_CNTL = ff60410a
RADEON_DAC_CNTL = ff000102
RADEON_TV_DAC_CNTL = 00280203
radeonfb0: 64 MB aperture at 0x98000000, 64 KB registers at 0x90000000
dual crtcs!
radeonfb0: display 0: initial virtual resolution 1920x1080 at 8 bpp
radeonfb0: using 32 MB per display
radeonfb0: port 0: physical 1920x1080 60Hz
radeonfb0: port 1: physical 1920x1080 60Hz
stride: 1920
fpbtr = 0x98000000
init engine
RADEON_CLOCK_CNTL_INDEX = 0000002c
init screen called, existing 1
RADEON_FP_GEN_CNTL = 000300cc
RADEON_FP2_GEN_CNTL = 00000008
CRTC_GEN_CNTL = 03000200
RADEON_CRTC_EXT_CNTL = 00008448
CRTC_H_TOTAL_DISP = 00ef0112
FP_H_TOTAL_DISP = 00ef0112
CRTC_H_SYNC_STRT_WID = 000507d0
FP_H_SYNC_STRT_WID = 000507d0
CRTC_V_TOTAL_DISP = 04370464
FP_V_TOTAL_DISP = 04370464
CRTC_V_SYNC_STRT_WID = 0005043b
FP_V_SYNC_STRT_WID = 0005043b
dot clock: 148500
outfreq: 297000
post divider: 2 (mask 10000)
feedback divider: 132
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000200
RADEON_CLOCK_CNTL_INDEX = 00000004
CRTC_GEN_CNTL = 03000200
RADEON_CRTC_EXT_CNTL = 00008048
CRTC_H_TOTAL_DISP = 00ef0112
FP_H_TOTAL_DISP = 00ef0112
CRTC_H_SYNC_STRT_WID = 000507d0
FP_H_SYNC_STRT_WID = 000507d0
CRTC_V_TOTAL_DISP = 04370464
FP_V_TOTAL_DISP = 04370464
CRTC_V_SYNC_STRT_WID = 0005043b
FP_V_SYNC_STRT_WID = 0005043b
dot clock: 148500
outfreq: 297000
post divider: 2 (mask 10000)
feedback divider: 132
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000200
RADEON_CLOCK_CNTL_INDEX = 00000004
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 00000008
RADEON_FP_GEN_CNTL = 000300cc
RADEON_FP2_GEN_CNTL = 00000008
CRTC_GEN_CNTL = 03000200
RADEON_CRTC_EXT_CNTL = 00008448
CRTC_H_TOTAL_DISP = 00ef0112
FP_H_TOTAL_DISP = 00ef0112
CRTC_H_SYNC_STRT_WID = 000507d0
FP_H_SYNC_STRT_WID = 000507d0
CRTC_V_TOTAL_DISP = 04370464
FP_V_TOTAL_DISP = 04370464
CRTC_V_SYNC_STRT_WID = 0005043b
FP_V_SYNC_STRT_WID = 0005043b
dot clock: 148500
outfreq: 297000
post divider: 2 (mask 10000)
feedback divider: 132
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000200
RADEON_CLOCK_CNTL_INDEX = 00000004
CRTC_GEN_CNTL = 03000200
RADEON_CRTC_EXT_CNTL = 00008048
CRTC_H_TOTAL_DISP = 00ef0112
FP_H_TOTAL_DISP = 00ef0112
CRTC_H_SYNC_STRT_WID = 000507d0
FP_H_SYNC_STRT_WID = 000507d0
CRTC_V_TOTAL_DISP = 04370464
FP_V_TOTAL_DISP = 04370464
CRTC_V_SYNC_STRT_WID = 0005043b
FP_V_SYNC_STRT_WID = 0005043b
dot clock: 148500
outfreq: 297000
post divider: 2 (mask 10000)
feedback divider: 132
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000200
RADEON_CLOCK_CNTL_INDEX = 00000004
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 00000008
wsdisplay0 at radeonfb0 kbdmux 1: console (fb, vt100 emulation)
wsmux1: connecting to wsdisplay0
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 00000008
drm at radeonfb0 not configured
needs_unmap: 0
RADEON_CRTC_EXT_CNTL = 00008048
RADEON_CRTC_GEN_CNTL = 03000200
RADEON_CRTC2_GEN_CNTL = 04000200
RADEON_DISP_OUTPUT_CNTL = 00000000
RADEON_DAC_CNTL2 = 00000000
RADEON_FP_GEN_CNTL = 000300cd
RADEON_FP2_GEN_CNTL = 00000008
RADEON_TMDS_CNTL = 01000000
RADEON_TMDS_TRANSMITTER_CNTL = 00000041
RADEON_TMDS_PLL_CNTL = 00400a27
RADEON_PIXCLKS_CNTL = 40000000
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0 irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at obio0 offset 0x10000: irq 30,1,2
pmu0 at obio0 offset 0x16000 irq 47:  rev. 85
pmu0: initializing IIC bus
iic1 at pmu0: I2C bus
admtemp0 at iic1 addr 0x48: MAX6642 temperature sensor: id. 0x4d, rev. 0x4d
pmu0: initializing RTC
pmu0: power-mgt not configured
pmu0: pmu-pwm-fans not configured
ki2c1 at obio0
iic2 at ki2c1: I2C bus
cereal at iic2 addr 0x60 not configured
wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
atabus0 at wdc0 channel 0
snapper0: software codec
audio0 at snapper0: full duplex, playback, capture, mmap
snapper0: Virtual format configured - Format SLINEAR, precision 16,
channels 2, frequency 48000
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
ohci0 at pci1 dev 24 function 0: Apple Computer Intrepid USB Controller
(rev. 0x00)
ohci0: memory access is disabled
ohci1 at pci1 dev 25 function 0: Apple Computer Intrepid USB Controller
(rev. 0x00)
ohci1: memory access is disabled
ohci2 at pci1 dev 26 function 0: Apple Computer Intrepid USB Controller
(rev. 0x00)
ohci2: interrupting at irq 29
ohci2: OHCI version 1.0, legacy support
usb0 at ohci2: USB revision 1.0
ohci3 at pci1 dev 27 function 0: NEC USB Host Controller (rev. 0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb1 at ohci3: USB revision 1.0
ohci4 at pci1 dev 27 function 1: NEC USB Host Controller (rev. 0x43)
ohci4: interrupting at irq 63
ohci4: OHCI version 1.0
usb2 at ohci4: USB revision 1.0
ehci0 at pci1 dev 27 function 2: NEC USB2 Host Controller (rev. 0x04)
ehci0: interrupting at irq 63
ehci0: EHCI version 1.0
ehci0: 2 companion controllers, 3 ports each: ohci3 ohci4
usb3 at ehci0: USB revision 2.0
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
wdc1 at pci2 dev 13 function 0: interrupting at irq 39
atabus1 at wdc1 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire
(rev. 0x81)
fwohci0: interrupting at irq 40
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:0d:93:ff:fe:
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
gem0: interrupting at irq 41
bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem0: Ethernet address 00:0d:93:, 10KB RX fifo, 4KB TX fifo
vmmask 66f80000 schedmask 7ff80000 highmask 7ff80000
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 41620997 Hz quality 100
fwohci0: BUS reset
fwohci0: node_id=0x8800ffc0, gen=3, non CYCLEMASTER mode
ieee1394if0: 2 nodes, maxhop <= 1 cable IRM irm(1)
uhub0 at usb0: Apple Computer (0x106b) OHCI root hub (0000), class 9/0,
rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: NEC (0x1033) OHCI root hub (0000), class 9/0, rev
1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
uhub2 at usb2: NEC (0x1033) OHCI root hub (0000), class 9/0, rev
1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: NEC (0x1033) EHCI root hub (0000), class 9/0, rev
2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 1: <MATSHITACD-RW  CW-8123, , CAD4> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0 at atabus1 drive 0
wd0: <ST98823A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
(Ultra/100) (using DMA)
cd0(wdc1:0:1): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
(using DMA)
swwdog0: software watchdog initialized
WARNING: 2 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.99.3/modules
fwohci0: BUS reset
fwohci0: node_id=0x8800ffc0, gen=4, non CYCLEMASTER mode
fwohci0: txd err= f flushed
ieee1394if0: 2 nodes, maxhop <= 1 cable IRM irm(1)
ieee1394if0: fwdev->speed(S800) decremented due to negotiation
ieee1394if0: New S400 device ID:001e52fffe521bf4
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
sbp0: NULL management address


Home | Main Index | Thread Index | Old Index