drm/i915: always set FDI composite sync bit
Subsystems (2)
PATCH 1/1 drm/i915: always set FDI composite sync bit
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
--- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_display.c | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -3180,6 +3180,7 @@#define FDI_LINK_TRAIN_NONE_IVB (3<<8)/* both Tx and Rx */ +#define FDI_COMPOSITE_SYNC (1<<11)#define FDI_LINK_TRAIN_AUTO (1<<10)#define FDI_SCRAMBLING_ENABLE (0<<7)#define FDI_SCRAMBLING_DISABLE (1<<7)
drivers/gpu/drm/i915/intel_display.c +2 -0
@@ -2593,6 +2593,7 @@ static void ivb_manual_fdi_link_train(struct drm_crtc *crtc) temp |=FDI_LINK_TRAIN_PATTERN_1_IVB ; temp &= ~FDI_LINK_TRAIN_VOL_EMP_MASK ; temp |=FDI_LINK_TRAIN_400MV_0DB_SNB_B ; + temp |=FDI_COMPOSITE_SYNC ;I915_WRITE (reg, temp |FDI_TX_ENABLE ); reg =FDI_RX_CTL (pipe);
@@ -2600,6 +2601,7 @@ static void ivb_manual_fdi_link_train(struct drm_crtc *crtc) temp &= ~FDI_LINK_TRAIN_AUTO ; temp &= ~FDI_LINK_TRAIN_PATTERN_MASK_CPT ; temp |=FDI_LINK_TRAIN_PATTERN_1_CPT ; + temp |=FDI_COMPOSITE_SYNC ;I915_WRITE (reg, temp |FDI_RX_ENABLE );POSTING_READ (reg);
Signature · 1 line
1.7.4.1
Quoted 4 lines · Jesse Barnes
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
Signed-off-by Jesse Barnes <[email protected]>
- ajax
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Jesse Barnes
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
Signed-off-by Jesse Barnes <[email protected]>
Signature · 2 lines
Eugeni Dodonov <http://eugeni.dodonov.net/>
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 2 lines · Jesse Barnes
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
Any explanation on how you get sync without this? As in, why did this ever work?
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Keith Packard
Quoted 2 lines · Jesse Barnes
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
Any explanation on how you get sync without this? As in, why did this ever work?
To a first approximation, it didn't. I was never able to get anything reliably lit up besides the boot output (and only that one; hotplug after was a disaster).
I don't have register dumps handy to compare BIOS setup with this change, but I could if needed.
It still seems entirely magical and probably wrong in some situations. And I'm thrilled to see that PPT is functionally different from CPT (seriously, stop doing that) instead of just moving bit definitions around (seriously, stop doing that). But this change is massively better than before.
- ajax
Quoted 13 lines · On Tue, 11 Oct 2011 10:10:24 -0400 Adam Jackson <[email protected]> wrote:
Quoted 7 lines · Keith Packard
Quoted 2 lines · Jesse Barnes
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
Any explanation on how you get sync without this? As in, why did this ever work?
To a first approximation, it didn't. I was never able to get anything reliably lit up besides the boot output (and only that one; hotplug after was a disaster).
Quoted 8 lines
I don't have register dumps handy to compare BIOS setup with this change, but I could if needed.
It still seems entirely magical and probably wrong in some situations. And I'm thrilled to see that PPT is functionally different from CPT (seriously, stop doing that) instead of just moving bit definitions around (seriously, stop doing that). But this change is massively better than before.
Without composite sync, FDI needs frame/line sync (the fsync/lsync mentioned in the docs), which means extra wires between the CPU and PCH. Some boards don't have these and so we need to use composite. For the same reason, if FDI B and C are sharing lanes, we need to use composite or we won't have enough lines to go around.
I've asked the hardware guys whether using composite on a board that supports fsync/lsync is ok generally; if so just defaulting to that everywhere should be fine.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 13 lines · Jesse Barnes
Quoted 5 lines · On Tue, 11 Oct 2011 10:10:24 -0400 Adam Jackson<[email protected]> wrote:
It still seems entirely magical and probably wrong in some situations. And I'm thrilled to see that PPT is functionally different from CPT (seriously, stop doing that) instead of just moving bit definitions around (seriously, stop doing that). But this change is massively better than before.
Without composite sync, FDI needs frame/line sync (the fsync/lsync mentioned in the docs), which means extra wires between the CPU and PCH. Some boards don't have these and so we need to use composite. For the same reason, if FDI B and C are sharing lanes, we need to use composite or we won't have enough lines to go around.
Quoted 3 lines
I've asked the hardware guys whether using composite on a board that supports fsync/lsync is ok generally; if so just defaulting to that everywhere should be fine.
Makes sense. If true this seems worth doing for CPT too. The IBX docs don't make any mention of composite sync.
- ajax
Quoted 14 lines · On Tue, 11 Oct 2011 12:42:22 -0400 Adam Jackson <[email protected]> wrote:
Quoted 13 lines · Jesse Barnes
Quoted 5 lines · On Tue, 11 Oct 2011 10:10:24 -0400 Adam Jackson<[email protected]> wrote:
It still seems entirely magical and probably wrong in some situations. And I'm thrilled to see that PPT is functionally different from CPT (seriously, stop doing that) instead of just moving bit definitions around (seriously, stop doing that). But this change is massively better than before.
Without composite sync, FDI needs frame/line sync (the fsync/lsync mentioned in the docs), which means extra wires between the CPU and PCH. Some boards don't have these and so we need to use composite. For the same reason, if FDI B and C are sharing lanes, we need to use composite or we won't have enough lines to go around.
Quoted 6 lines
Quoted 3 lines
I've asked the hardware guys whether using composite on a board that supports fsync/lsync is ok generally; if so just defaulting to that everywhere should be fine.
Makes sense. If true this seems worth doing for CPT too. The IBX docs don't make any mention of composite sync.
Supposedly SNB doesn't support this on the CPU side, so I've only put it in the IVB FDI training code. ILK + IBX don't support it at all according to the hw folks.
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 13 lines · On Tue, 11 Oct 2011 10:10:24 -0400 Adam Jackson <[email protected]> wrote:
Quoted 7 lines · Keith Packard
Quoted 2 lines · Jesse Barnes
It's needed for 3 pipe support as well as just regular functionality (e.g. DisplayPort).
Any explanation on how you get sync without this? As in, why did this ever work?
To a first approximation, it didn't. I was never able to get anything reliably lit up besides the boot output (and only that one; hotplug after was a disaster).
Quoted 8 lines
I don't have register dumps handy to compare BIOS setup with this change, but I could if needed.
It still seems entirely magical and probably wrong in some situations. And I'm thrilled to see that PPT is functionally different from CPT (seriously, stop doing that) instead of just moving bit definitions around (seriously, stop doing that). But this change is massively better than before.
Ok just got confirmation that always setting the composite bit is safe on IVB per the specs we provide to board designers (i.e. they're required to make composite sync work, and fsync/lsync is optional).
Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 3 lines · Jesse Barnes
Ok just got confirmation that always setting the composite bit is safe on IVB per the specs we provide to board designers (i.e. they're required to make composite sync work, and fsync/lsync is optional).
Thanks. That sounds conclusive enough :)
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx