Bug 28774

Summary: RS780: No picture over HDMI
Product: DRI Reporter: Rafał Miłecki <zajec5>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
[KMS] Xorg.0.log
none
[KMS] dmesg
none
[KMS] regs dump
none
[UMS r] Xorg.0.log
none
[UMS r] regs dump
none
[BOOT] regs dump
none
[BOOT + UMS r] Xorg.0.log
none
[BOOT + UMS r] regs dump
none
diff -u dump.kms.log dump.boot.log
none
Differences in registers dumps
none
nb_misc pcie regs are only accessible via io ports none

Description Rafał Miłecki 2010-06-27 00:15:59 UTC
This is netbook MSI U230 with RS780 using drm-radeon-testing.

When I connect TV using HDMI I can see it's resolutions in xrandr and even enabling it seems to work fine (1920x1080 is selected, my desktop expands) but there is nothing displayed on TV.

I've tried KMS radeon, DDX radeon, DDX radeonhd. Same result for each.
Comment 1 Rafał Miłecki 2010-06-27 00:18:30 UTC
Created attachment 36529 [details]
[KMS] Xorg.0.log
Comment 2 Rafał Miłecki 2010-06-27 00:19:02 UTC
Created attachment 36530 [details]
[KMS] dmesg
Comment 3 Rafał Miłecki 2010-06-27 00:19:31 UTC
Created attachment 36531 [details]
[KMS] regs dump
Comment 4 Rafał Miłecki 2010-06-27 00:20:40 UTC
Created attachment 36532 [details]
[UMS r] Xorg.0.log
Comment 5 Rafał Miłecki 2010-06-27 00:21:11 UTC
Created attachment 36533 [details]
[UMS r] regs dump
Comment 6 Rafał Miłecki 2010-06-27 00:23:13 UTC
Created attachment 36534 [details]
[BOOT] regs dump

Regs dump after booting (no X, no fb driver, no KMS) with HDMI connected. Both: PANEL and TV (!) were displaying console with TV telling it's 1080p.
Comment 7 Rafał Miłecki 2010-06-27 00:24:27 UTC
Created attachment 36535 [details]
[BOOT + UMS r] Xorg.0.log

After booting with HDMI attached (and seeing picture on it) I started X using radeon UMS. TV switched to 720p and was still working!
Comment 8 Rafał Miłecki 2010-06-27 00:25:46 UTC
Created attachment 36536 [details]
[BOOT + UMS r] regs dump

Regs with X started using radeon UMS. TV in 720p, still working!
Comment 9 Rafał Miłecki 2010-06-27 00:33:30 UTC
Created attachment 36537 [details]
diff -u dump.kms.log dump.boot.log

I expected same displays layout with 3 dumps:
dump.kms.log ─ [KMS] regs dump
dump.radeon.log ─ [UMS r] regs dump
dump.boot.log ─ [BOOT] regs dump

Last one (dump.boot.log) is the only working so we may want to compare for example dump.kms.log with dump.boot.log.

Unfortunately there are many registers that differ. Any hint which group should I try?
Comment 10 Rafał Miłecki 2010-06-27 04:59:14 UTC
Created attachment 36544 [details]
Differences in registers dumps
Comment 11 Alex Deucher 2010-06-28 22:38:29 UTC
On avivo chips, the display regs start at 0x6000 (crtcs/grph/cur/etc.) and the output regs start at 0x7000 (dacs/dig/etc.).  They only relevant register in your dump that's different is 0x75a0 (DIG_CNTL) and the only difference is that dig mode (DVI vs HDMI) either of which should work fine.  I think the problem lies in the north bridge pcie config regs as the HDMI port uses the PCIEPHY transmitter which shares lanes with the northbrigde.  I'm trying to get some better info on how it's supposed to work to help debug it.
Comment 12 Alex Deucher 2010-06-29 15:36:33 UTC
Created attachment 36615 [details] [review]
nb_misc pcie regs are only accessible via io ports

Does the attached patch help?
Comment 13 Rafał Miłecki 2010-07-04 06:16:53 UTC
(In reply to comment #12)
> Created an attachment (id=36615) [details]
> nb_misc pcie regs are only accessible via io ports
> 
> Does the attached patch help?

As I told you on IRC, my access to this netbook is limited. I didn't manage to test your patch until yesterday. However after yesterday's testing I can say, it works great! Thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.