drm/i915: fix gen4 digital port hotplug definitions
Subsystems (2)
PATCH 1/1 drm/i915: fix gen4 digital port hotplug definitions
Apparently Bspec is wrong in this case here even for gm45. Note that Bspec is horribly misguided on i965g/gm, so we don't have any other data points besides that it seems to make machines work better.
With this changes all the bits in PORT_HOTPLUG_STAT for the digital ports are ordered the same way. This seems to agree with what register dumps from the hpd storm handling code shows, where the LIVE bit and the short/long pulse STATUS bits light up at the same time with this enumeration (but no with the one from Bspec).
Also tested on my gm45 which has two DP+ ports, and everything seems to still work as expected.
References: http://www.mail-archive.com/[email protected]/msg23054.html
--- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +2 -2
@@ -1925,9 +1925,9 @@#define PORT_HOTPLUG_STAT (dev_priv->info->display_mmio_offset + 0x61114)/* HDMI/DP bits are gen4+ */ -#define PORTB_HOTPLUG_LIVE_STATUS (1 << 29) +#define PORTD_HOTPLUG_LIVE_STATUS (1 << 29)#define PORTC_HOTPLUG_LIVE_STATUS (1 << 28) -#define PORTD_HOTPLUG_LIVE_STATUS (1 << 27) +#define PORTB_HOTPLUG_LIVE_STATUS (1 << 27)#define PORTD_HOTPLUG_INT_STATUS (3 << 21)#define PORTC_HOTPLUG_INT_STATUS (3 << 19)#define PORTB_HOTPLUG_INT_STATUS (3 << 17)
Signature · 1 line
1.8.3.2
Jani Nikula
maintainerQuoted 9 lines · Daniel Vetter
Apparently Bspec is wrong in this case here even for gm45. Note that Bspec is horribly misguided on i965g/gm, so we don't have any other data points besides that it seems to make machines work better.
With this changes all the bits in
PORT_HOTPLUG_STATfor the digital ports are ordered the same way. This seems to agree with what register dumps from the hpd storm handling code shows, where the LIVE bit and the short/long pulse STATUS bits light up at the same time with this enumeration (but no with the one from Bspec).
Would a comment about this near the #defines be in order? To avoid the "these values are all wrong per bspec" patches.
Cheers,
Jani.
Quoted 35 lines
Also tested on my gm45 which has two DP+ ports, and everything seems to still work as expected.
References: http://www.mail-archive.com/[email protected]/msg23054.html
Cc Egbert Eich <[email protected]>Cc Jan Niggemann <[email protected]>Tested-by Jan Niggemann <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_reg.h +2
-2@@ -1925,9 +1925,9 @@#define PORT_HOTPLUG_STAT (dev_priv->info->display_mmio_offset + 0x61114)/* HDMI/DP bits are gen4+ */ -#define PORTB_HOTPLUG_LIVE_STATUS (1 << 29) +#define PORTD_HOTPLUG_LIVE_STATUS (1 << 29)#define PORTC_HOTPLUG_LIVE_STATUS (1 << 28) -#define PORTD_HOTPLUG_LIVE_STATUS (1 << 27) +#define PORTB_HOTPLUG_LIVE_STATUS (1 << 27)#define PORTD_HOTPLUG_INT_STATUS (3 << 21)#define PORTC_HOTPLUG_INT_STATUS (3 << 19)#define PORTB_HOTPLUG_INT_STATUS (3 << 17)Signature · 6 lines
1.8.3.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Quoted 5 lines · Jani Nikula
Quoted 4 lines · Daniel Vetter
Apparently Bspec is wrong in this case here even for gm45. Note that Bspec is horribly misguided on i965g/gm, so we don't have any other data points besides that it seems to make machines work better.
Quoted 8 lines
Quoted 5 lines
With this changes all the bits in
PORT_HOTPLUG_STATfor the digital ports are ordered the same way. This seems to agree with what register dumps from the hpd storm handling code shows, where the LIVE bit and the short/long pulse STATUS bits light up at the same time with this enumeration (but no with the one from Bspec).Would a comment about this near the #defines be in order? To avoid the "these values are all wrong per bspec" patches.
Yeah, good idea, I'll add a comment when merging this. -Daniel
Quoted 42 lines
Cheers,
Jani.Quoted 35 lines
Also tested on my gm45 which has two DP+ ports, and everything seems to still work as expected.
References: http://www.mail-archive.com/[email protected]/msg23054.html
Cc Egbert Eich <[email protected]>Cc Jan Niggemann <[email protected]>Tested-by Jan Niggemann <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_reg.h +2
-2@@ -1925,9 +1925,9 @@#define PORT_HOTPLUG_STAT (dev_priv->info->display_mmio_offset + 0x61114)/* HDMI/DP bits are gen4+ */ -#define PORTB_HOTPLUG_LIVE_STATUS (1 << 29) +#define PORTD_HOTPLUG_LIVE_STATUS (1 << 29)#define PORTC_HOTPLUG_LIVE_STATUS (1 << 28) -#define PORTD_HOTPLUG_LIVE_STATUS (1 << 27) +#define PORTB_HOTPLUG_LIVE_STATUS (1 << 27)#define PORTD_HOTPLUG_INT_STATUS (3 << 21)#define PORTC_HOTPLUG_INT_STATUS (3 << 19)#define PORTB_HOTPLUG_INT_STATUS (3 << 17)Signature · 6 lines
1.8.3.2 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 1 line
Jani Nikula, Intel Open Source Technology Center
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 12 lines · Daniel Vetter
Quoted 11 lines · Jani Nikula
Quoted 9 lines · Daniel Vetter
Apparently Bspec is wrong in this case here even for gm45. Note that Bspec is horribly misguided on i965g/gm, so we don't have any other data points besides that it seems to make machines work better.
With this changes all the bits in
PORT_HOTPLUG_STATfor the digital ports are ordered the same way. This seems to agree with what register dumps from the hpd storm handling code shows, where the LIVE bit and the short/long pulse STATUS bits light up at the same time with this enumeration (but no with the one from Bspec).
Quoted 4 lines
Quoted 2 lines
Would a comment about this near the #defines be in order? To avoid the "these values are all wrong per bspec" patches.
Yeah, good idea, I'll add a comment when merging this.
Done and merged with your irc-ack.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Hi list,
Am 26.07.2013 21:46, schrieb Daniel Vetter:
Quoted 19 lines · Daniel Vetter
Quoted 18 lines · Jani Nikula
Quoted 2 lines · Daniel Vetter
Quoted 1 line
Apparently Bspec is wrong in this case here even for gm45. Note
that
Quoted 1 line
Quoted 1 line
Bspec is horribly misguided on i965g/gm, so we don't have any
other
Quoted 3 lines
Quoted 3 lines
data points besides that it seems to make machines work better.
With this changes all the bits in
PORT_HOTPLUG_STATfor thedigital
Quoted 1 line
Quoted 1 line
ports are ordered the same way. This seems to agree with what
register
Quoted 1 line
Quoted 1 line
dumps from the hpd storm handling code shows, where the LIVE bit
and
Quoted 1 line
Quoted 1 line
the short/long pulse STATUS bits light up at the same time with
this
Quoted 2 lines
Quoted 1 line
enumeration (but no with the one from Bspec).
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Would a comment about this near the #defines be in order? To avoid
the
Quoted 1 line
"these values are all wrong per bspec" patches.
Yeah, good idea, I'll add a comment when merging this.
Done and merged with your irc-ack.
this made it in 3.11, is there any chance GKH will also merge this into 3.10 longterm? I'm too new in kernel development... What would need to be done to achieve that?
Regards
Jan