2010/1/27 Michel Dänzer <mic...@daenzer.net>:
>
> Hi Alex,
>
>
> your commit 8131660130d3dc2629a150d47e6a04c8a1a6244b ('drm/radeon/kms:
> add support for hw i2c on r1xx-r5xx') breaks LVDS on my PowerBook. It
> looks kinda like blooming, though I can actually make out a higly
> distorted part of what it's supposed to display, and there's a
> panel/backlight blinking around every second or so.
>

Hmm, maybe the mac's edid is wired up such that hw i2c doesn't work or
the prescale calculation for your system needs adjusting.  Switching
back to sw i2c should fix it in the meantime.  Set the hw_capable bool
in the radeon_i2c_bus_rec struct to false.  For the prescale:
u32 prescale = (((rdev->clock.default_sclk * 10)/(4 * 128 * 100) + 1)
<< 8) + 128;
does rdev->clock.default_sclk get initialized properly on the mac?  If
not, you can use radeon_get_engine_clock to read back the value from
the regs.

Alex

> These errors from dmesg might be relevant (nothing's connected to the
> DVI connector):
>
> [    0.355445] [drm] Radeon Display Connectors
> [    0.355473] [drm] Connector 0:
> [    0.355490] [drm]   LVDS
> [    0.355509] [drm]   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
> [    0.355533] [drm]   Encoders:
> [    0.355550] [drm]     LCD1: INTERNAL_LVDS
> [    0.355570] [drm] Connector 1:
> [    0.355587] [drm]   DVI-I
> [    0.355602] [drm]   HPD2
> [    0.355620] [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
> [    0.355645] [drm]   Encoders:
> [    0.355661] [drm]     DFP2: INTERNAL_DVO1
> [    0.355681] [drm]     CRT1: INTERNAL_DAC1
> [    0.355700] [drm] Connector 2:
> [    0.355716] [drm]   S-video
> [    0.355732] [drm]   Encoders:
> [    0.355748] [drm]     TV1: INTERNAL_DAC2
> [    0.591623] [drm:edid_is_valid] *ERROR* Raw EDID:
> [    0.591652] <3>a1 ff bf bf fd ff ff ff ff ff ff ff fd ff ff ff  
> ................
> [    0.591661] <3>ff ff ff ff ff ef a1 ff ff ff a1 7f ff ff a1 ff  
> ................
> [    0.591669] <3>fb ff a1 ff ff ff a1 ff ff ff a1 fe ff ff a1 ff  
> ................
> [    0.591678] <3>f7 ff ff ff ff ff ff ff ff bf bf ff ff ff ff fd  
> ................
> [    0.591686] <3>ff ff ff ff ef ff ff ff ff a1 ff ff ff a1 ff fb  
> ................
> [    0.591695] <3>ff a1 ff ff ff a1 ff ff ff a1 fe ff ff a1 ff ff  
> ................
> [    0.591704] <3>ff ff ff f7 ff ff ff ff bf bf ff ff ff ff fd ff  
> ................
> [    0.591726] <3>ff ff ff ef ff ff ff ef a1 ff ff ff a1 7f fb ff  
> ................
> [    0.591733]
> [    0.634535] [drm:edid_is_valid] *ERROR* Raw EDID:
> [    0.634559] <3>a1 ff ff ff fd ff ff ff fd ff ff ff ff ef a1 ff  
> ................
> [    0.634568] <3>ff ff a1 7f ff ff a1 ff fb ff a1 ff ff ff a1 ff  
> ................
> [    0.634576] <3>ff df a1 fe ff ff a1 ff ff ff ff ff 08 ff ff ff  
> ................
> [    0.634585] <3>ff bf bf ff ff 00 00 04 10 4e 4e 9c 00 00 00 00  
> .........NN.....
> [    0.634594] <3>10 a1 0e 0f 01 a1 83 80 20 a1 16 7c 0a a1 87 f5  ........ 
> ..|....
> [    0.634602] <3>94 a1 57 4f 8c a1 26 27 50 a1 54 00 00 00 00 01  
> ..WO..&'P.T.....
> [    0.634611] <3>01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01  
> ................
> [    0.634620] <3>a1 01 01 01 a1 b8 28 a0 a1 40 51 c0 a1 10 30 40  
> ......(....@q...0@
> [    0.634627]
> [    0.676987] [drm:edid_is_valid] *ERROR* Raw EDID:
> [    0.677010] <3>a1 89 ff a1 ff ff ff a1 7f fb ff a1 ff ff ff a1  
> ................
> [    0.677019] <3>ff ff ff a1 fe ff ff a1 ff ff ff ff ff ff ff ff  
> ................
> [    0.677028] <3>ff ff bf bf ff ff ff ff fd ff ff ff ff ef ff ff  
> ................
> [    0.677036] <3>ff ff a1 7f ff ff a1 7f fb ff a1 ff ff ff a1 ff  
> ................
> [    0.677045] <3>ff df a1 fe ff ff a1 ff ff ff ff ff f7 ff ff ff  
> ................
> [    0.677054] <3>ff bf bf ff ff ff ff fd ff ff ff ff ff ff ff ff  
> ................
> [    0.677062] <3>ef a1 ff ff ff a1 7f ff ff a1 ff fb ff a1 ff ff  
> ................
> [    0.677071] <3>ff a1 ff ff ff a1 fe ff ff a1 ff f7 ff ff ff ff  
> ................
> [    0.677078]
> [    0.719430] [drm:edid_is_valid] *ERROR* Raw EDID:
> [    0.719453] <3>a1 ff df a1 ff ff df a1 fe ff ff a1 ff ff ff ff  
> ................
> [    0.719462] <3>ff ff ff ff ff ff bf bf ff ff ff ff fd ff ff ff  
> ................
> [    0.719471] <3>ff ef ff ff ff ff a1 ff ff ff a1 ff fb ff a1 ff  
> ................
> [    0.719479] <3>ff ff a1 ff ff ff a1 fe ff ff a1 ff ff ff ff ff  
> ................
> [    0.719488] <3>f7 ff ff ff ff bf bf ff ff ff ff fd ff ff ff ff  
> ................
> [    0.719497] <3>ef ff ff ff ff a1 ff ff ff a1 7f fb ff a1 ff ff  
> ................
> [    0.719505] <3>ff a1 ff ff df a1 ff ff ff a1 fe ff ff a1 ff f7  
> ................
> [    0.719514] <3>ff ff ff ff ff ff ff ff bf bf fd ff ff ff fd ff  
> ................
> [    0.719521]
> [    0.761872] [drm:edid_is_valid] *ERROR* Raw EDID:
> [    0.761895] <3>a1 ff ff bf bf ff ff ff ff fd ff ff ff ff ef ff  
> ................
> [    0.761904] <3>ff ff ff a1 ff ff ff a1 ff ff ff a1 ff ff ff a1  
> ................
> [    0.761912] <3>ff ff df a1 fe ff ff a1 ff ff ff ff ff f7 ff ff  
> ................
> [    0.761921] <3>ff ff bf bf ff ff ff ff fd ff ff ff ff ef ff ff  
> ................
> [    0.761930] <3>ff ff a1 ff ff ff a1 7f ff ff a1 ff ff ff a1 ff  
> ................
> [    0.761938] <3>ff df a1 ff ff ff a1 fe ff ff a1 ff f7 ff ff ff  
> ................
> [    0.761947] <3>ff bf bf ff ff bf bf fd ff ff ff ff ff ff ff ff  
> ................
> [    0.761956] <3>ef a1 ff ff ff a1 7f ff ff a1 ff fb ff a1 ff ff  
> ................
> [    0.761963]
> [    0.761977] radeon 0000:00:10.0: LVDS-1: EDID invalid.
> [    0.762960] [drm:radeon_dvi_detect] *ERROR* DVI-I-1: probed a monitor but 
> no|invalid EDID
>
>
>
> --
> Earthling Michel Dänzer           |                http://www.vmware.com
> Libre software enthusiast         |          Debian, X and DRI developer
>

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to