drm/i915: Hook up Ivybridge eDP
Subsystems (2)
PATCH 1/1 drm/i915: Hook up Ivybridge eDP
The Ivybridge eDP control register looks like a cross between a Cougarpoint PCH DP control register and a Sandybridge eDP control register.
Where things trivially match, share the code. Where there are any tricky bits, just split things out into two obviously separate code paths.
--- drivers/gpu/drm/i915/i915_reg.h | 18 +++++ drivers/gpu/drm/i915/intel_dp.c | 151 ++++++++++++++++++++++++++++++--------- 2 files changed, 135 insertions(+), 34 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +18 -0
@@ -3447,6 +3447,24 @@#define EDP_LINK_TRAIN_800_1200MV_0DB_SNB_B (0x38<<22)#define EDP_LINK_TRAIN_VOL_EMP_MASK_SNB (0x3f<<22) +/* IVB */ +#define EDP_LINK_TRAIN_400MV_0DB_IVB (0x24 <<22) +#define EDP_LINK_TRAIN_400MV_3_5DB_IVB (0x2a <<22) +#define EDP_LINK_TRAIN_400MV_6DB_IVB (0x2f <<22) +#define EDP_LINK_TRAIN_600MV_0DB_IVB (0x30 <<22) +#define EDP_LINK_TRAIN_600MV_3_5DB_IVB (0x36 <<22) +#define EDP_LINK_TRAIN_800MV_0DB_IVB (0x38 <<22) +#define EDP_LINK_TRAIN_800MV_3_5DB_IVB (0x33 <<22) + +/* legacy values */ +#define EDP_LINK_TRAIN_500MV_0DB_IVB (0x00 <<22) +#define EDP_LINK_TRAIN_1000MV_0DB_IVB (0x20 <<22) +#define EDP_LINK_TRAIN_500MV_3_5DB_IVB (0x02 <<22) +#define EDP_LINK_TRAIN_1000MV_3_5DB_IVB (0x22 <<22) +#define EDP_LINK_TRAIN_1000MV_6DB_IVB (0x23 <<22) + +#define EDP_LINK_TRAIN_VOL_EMP_MASK_IVB (0x3f<<22) +#define FORCEWAKE 0xA18C#define FORCEWAKE_ACK 0x130090
drivers/gpu/drm/i915/intel_dp.c +117 -34
253 lines not on this page · raw message
Signature · 1 line
1.7.7.2
Quoted 3 lines · Keith Packard
The Ivybridge eDP control register looks like a cross between a Cougarpoint PCH DP control register and a Sandybridge eDP control register.
Your silicon people worry me.
Quoted 5 lines
drivers/gpu/drm/i915/i915_reg.h +5
-0+/* IVB */ +#define EDP_LINK_TRAIN_400MV_0DB_IVB (0x24 <<22) +#define EDP_LINK_TRAIN_400MV_3_5DB_IVB (0x2a <<22) +#define EDP_LINK_TRAIN_400MV_6DB_IVB (0x2f <<22) +#define EDP_LINK_TRAIN_600MV_0DB_IVB (0x30 <<22)
drivers/gpu/drm/i915/i915_reg.h line 3464
Quoted 10 lines
drivers/gpu/drm/i915/i915_reg.h +10
-0+#define EDP_LINK_TRAIN_600MV_3_5DB_IVB (0x36 <<22) +#define EDP_LINK_TRAIN_800MV_0DB_IVB (0x38 <<22) +#define EDP_LINK_TRAIN_800MV_3_5DB_IVB (0x33 <<22) + +/* legacy values */ +#define EDP_LINK_TRAIN_500MV_0DB_IVB (0x00 <<22) +#define EDP_LINK_TRAIN_1000MV_0DB_IVB (0x20 <<22) +#define EDP_LINK_TRAIN_500MV_3_5DB_IVB (0x02 <<22) +#define EDP_LINK_TRAIN_1000MV_3_5DB_IVB (0x22 <<22) +#define EDP_LINK_TRAIN_1000MV_6DB_IVB (0x23 <<22)
I don't even. Unless you're looking at some other version of the DP spec than me, I was pretty sure those weren't legal voltage values. And 3.5dB preemph on 1000mV gives you 1500mV at the peak, which is definitely outside the spec.
- ajax
Quoted 1 line · Adam Jackson
Your silicon people worry me.
In any case, the changes are mostly to move bits around so that there are two bits for pipe select
Quoted 4 lines
I don't even. Unless you're looking at some other version of the DP spec than me, I was pretty sure those weren't legal voltage values. And 3.5dB preemph on 1000mV gives you 1500mV at the peak, which is definitely outside the spec.
I'm just writing down what's in the spec. I don't use these values, just the useful ones above.
You don't happen to have any hardware to test this with, do you?
Signature · 1 line
[email protected]
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Keith Packard
Quoted 1 line · Adam Jackson
Your silicon people worry me.
In any case, the changes are mostly to move bits around so that there are two bits for pipe select
Yeah, the patch looks like it could be correct, just shaking my head.
Quoted 9 lines
Quoted 4 lines
I don't even. Unless you're looking at some other version of the DP spec than me, I was pretty sure those weren't legal voltage values. And 3.5dB preemph on 1000mV gives you 1500mV at the peak, which is definitely outside the spec.
I'm just writing down what's in the spec. I don't use these values, just the useful ones above.
You don't happen to have any hardware to test this with, do you?
Not at the moment. I'll see if I can dig something up though.
- ajax