Summary: | [KMS] HDMI-0 connected, but shown as DVI-0 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Oldrich Jedlicka <oldium.pro> | ||||||||||||||
Component: | Driver/Radeon | Assignee: | xf86-video-ati maintainers <xorg-driver-ati> | ||||||||||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||||||||||
Severity: | normal | ||||||||||||||||
Priority: | medium | ||||||||||||||||
Version: | git | ||||||||||||||||
Hardware: | x86 (IA32) | ||||||||||||||||
OS: | Linux (All) | ||||||||||||||||
Whiteboard: | |||||||||||||||||
i915 platform: | i915 features: | ||||||||||||||||
Attachments: |
|
Description
Oldrich Jedlicka
2010-12-29 13:02:15 UTC
Created attachment 41510 [details]
Xorg.0.log
Created attachment 41511 [details]
`xrandr --verbose`
Please attach a copy of your vbios. (as root) (use lspci to get the bus id) cd /sys/bus/pci/devices/<pci bus id> echo 1 > rom cat rom > /tmp/vbios.rom echo 0 > rom Created attachment 41514 [details] ATI's VBIOS (ATI Mobility Radeon HD 3470, 256MB VRAM) The VBIOS was part of bug #21767, which mentions (and fixes) non-KMS problems with DVI/HDMI on my system too. Anyway, here it is. Created attachment 41594 [details] [review] revert hpd pin swap Does this patch help? please test both DVI and HDMI if possible, to make sure both work as expected. If the patch doesn't help, please try the following using avivotool (http://cgit.freedesktop.org/~airlied/radeontool/) as root: avivotool regmatch 0x7d08 avivotool regmatch 0x7d14 avivotool regmatch 0x7d20 avivotool regmatch 0x7d2c and make sure bit 28 is set for each of them. Then, plug a monitor into the hdmi port and run: avivotool regmatch 0x7d00 avivotool regmatch 0x7d0c avivotool regmatch 0x7d18 avivotool regmatch 0x7d24 then unplug it and and run the same commands again and see which, if any of them changed. bit 1 should change when you plug and unplug the monitor. Then repeat the same test for the DVI port and report back your findings. Strange things are happening. With your patch, both DVI (monitor) and HDMI (Samsung TV) shows as HDMI (same state as reported in bug #29387). I will play with avivotool now. So here are the results. I wasn't able to set the 24th bit, all values stayed at 0x00fa09c4 (original value). I've tried to run `avivotool regset 0x7d08 0x10fa09c4` (as one example). Registers: 0x7d00 0x7d0c 0x7d18 0x7d24 1. Nothing connected 0x0..000 0x0..000 0x0..000 0x0..002 2. LCD (DVI-D) connected 0x0..002 0x0..000 0x0..000 0x0..002 3. Samsung TV (HDMI) connected 0x0..002 0x0..000 0x0..000 0x0..002 4. Both LCD+Samsung TV connected 0x0..002 0x0..000 0x0..000 0x0..002 So DVI-D and HDMI share the same HPD. (In reply to comment #8) > So DVI-D and HDMI share the same HPD. So there's no way to tell which is connected. I'm inclined to expose only one connector since they are wired up to the same encoder and hpd pin and you can't use them independently. (In reply to comment #9) > (In reply to comment #8) > > So DVI-D and HDMI share the same HPD. > > So there's no way to tell which is connected. I'm inclined to expose only one > connector since they are wired up to the same encoder and hpd pin and you > can't use them independently. Having always HDMI connected makes sense, but what about enabling/disabling the HDMI audio? Cannot DDC/EDID for example offer a hint whether the HDMI/DVI is connected? Or can it be determined from audio HDMI functionality whether the HDMI is plugged-in? I'm just guessing :-) (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #8) > > > So DVI-D and HDMI share the same HPD. > > > > So there's no way to tell which is connected. I'm inclined to expose only one > > connector since they are wired up to the same encoder and hpd pin and you > > can't use them independently. > > Having always HDMI connected makes sense, but what about enabling/disabling the > HDMI audio? > > Cannot DDC/EDID for example offer a hint whether the HDMI/DVI is connected? Or > can it be determined from audio HDMI functionality whether the HDMI is > plugged-in? I'm just guessing :-) hdmi audio works over hdmi or dvi (on radeon cards) and whether or not the monitor supports audio is determined by the CEA extension blocks in the EDID. Created attachment 41648 [details] [review] drop dvi This patch should do the trick. (In reply to comment #12) > Created an attachment (id=41648) [details] > drop dvi > > This patch should do the trick. The patch works, HDMI audio too, `xrandr` doesn't show DVI-D anymore. So it works for me. Big thanks! I've sent the patch to Dave. 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.