* [PATCH] Revert "drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2"
@ 2013-09-14 0:27 Jesse Barnes
2013-09-14 0:29 ` Jesse Barnes
2013-09-25 7:36 ` [PATCH] drm/i915: Fix VLV eDP timing Chon Ming Lee
0 siblings, 2 replies; 7+ messages in thread
From: Jesse Barnes @ 2013-09-14 0:27 UTC (permalink / raw)
To: intel-gfx
This reverts commit 65ce4bf5a15fcd4d15898be47795d0550eb2325c.
---
drivers/gpu/drm/i915/intel_display.c | 20 +++++++++++++++++---
drivers/gpu/drm/i915/intel_dp.c | 10 +---------
2 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 3c0e0cf..1d14ad3 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -336,6 +336,19 @@ static const intel_limit_t intel_limits_vlv_hdmi = {
.p2_slow = 2, .p2_fast = 20 },
};
+static const intel_limit_t intel_limits_vlv_dp = {
+ .dot = { .min = 25000, .max = 270000 },
+ .vco = { .min = 4000000, .max = 6000000 },
+ .n = { .min = 1, .max = 7 },
+ .m = { .min = 22, .max = 450 },
+ .m1 = { .min = 2, .max = 3 },
+ .m2 = { .min = 11, .max = 156 },
+ .p = { .min = 10, .max = 30 },
+ .p1 = { .min = 1, .max = 3 },
+ .p2 = { .dot_limit = 270000,
+ .p2_slow = 2, .p2_fast = 20 },
+};
+
static const intel_limit_t *intel_ironlake_limit(struct drm_crtc *crtc,
int refclk)
{
@@ -398,8 +411,10 @@ static const intel_limit_t *intel_limit(struct drm_crtc *crtc, int refclk)
} else if (IS_VALLEYVIEW(dev)) {
if (intel_pipe_has_type(crtc, INTEL_OUTPUT_ANALOG))
limit = &intel_limits_vlv_dac;
- else
+ else if (intel_pipe_has_type(crtc, INTEL_OUTPUT_HDMI))
limit = &intel_limits_vlv_hdmi;
+ else
+ limit = &intel_limits_vlv_dp;
} else if (!IS_GEN2(dev)) {
if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS))
limit = &intel_limits_i9xx_lvds;
@@ -4871,7 +4886,7 @@ static int i9xx_crtc_mode_set(struct drm_crtc *crtc,
refclk = i9xx_get_refclk(crtc, num_connectors);
- if (!is_dsi && !intel_crtc->config.clock_set) {
+ if (!is_dsi) {
/*
* Returns a set of divisors for the desired target clock with
* the given refclk, or FALSE. The returned values represent
@@ -4898,7 +4913,6 @@ static int i9xx_crtc_mode_set(struct drm_crtc *crtc,
* by using the FP0/FP1. In such case we will disable the LVDS
* downclock feature.
*/
- limit = intel_limit(crtc, refclk);
has_reduced_clock =
dev_priv->display.find_dpll(limit, crtc,
dev_priv->lvds_downclock,
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 1bb549a..f5000d4 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -57,13 +57,6 @@ static const struct dp_link_dpll pch_dpll[] = {
{ .p1 = 1, .p2 = 10, .n = 2, .m1 = 14, .m2 = 8 } }
};
-static const struct dp_link_dpll vlv_dpll[] = {
- { DP_LINK_BW_1_62,
- { .p1 = 3, .p2 = 2, .n = 5, .m1 = 5, .m2 = 3 } },
- { DP_LINK_BW_2_7,
- { .p1 = 2, .p2 = 2, .n = 1, .m1 = 2, .m2 = 27 } }
-};
-
/**
* is_edp - is the given port attached to an eDP panel (either CPU or PCH)
* @intel_dp: DP struct
@@ -736,8 +729,7 @@ intel_dp_set_clock(struct intel_encoder *encoder,
divisor = pch_dpll;
count = ARRAY_SIZE(pch_dpll);
} else if (IS_VALLEYVIEW(dev)) {
- divisor = vlv_dpll;
- count = ARRAY_SIZE(vlv_dpll);
+ /* FIXME: Need to figure out optimized DP clocks for vlv. */
}
if (divisor && count) {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert "drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2"
2013-09-14 0:27 [PATCH] Revert "drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2" Jesse Barnes
@ 2013-09-14 0:29 ` Jesse Barnes
2013-09-14 11:28 ` Daniel Vetter
2013-09-25 7:36 ` [PATCH] drm/i915: Fix VLV eDP timing Chon Ming Lee
1 sibling, 1 reply; 7+ messages in thread
From: Jesse Barnes @ 2013-09-14 0:29 UTC (permalink / raw)
To: Jesse Barnes; +Cc: intel-gfx
On Fri, 13 Sep 2013 17:27:54 -0700
Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> This reverts commit 65ce4bf5a15fcd4d15898be47795d0550eb2325c.
Found this was breaking eDP for me with -nightly as of today on Baley
Bay boards.
Chris, can you verify this on your system too? I'm working on getting
a new one with eDP support to test more.
Thanks,
Jesse
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Revert "drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2"
2013-09-14 0:29 ` Jesse Barnes
@ 2013-09-14 11:28 ` Daniel Vetter
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2013-09-14 11:28 UTC (permalink / raw)
To: Jesse Barnes; +Cc: intel-gfx
On Sat, Sep 14, 2013 at 2:29 AM, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Fri, 13 Sep 2013 17:27:54 -0700
> Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
>
>> This reverts commit 65ce4bf5a15fcd4d15898be47795d0550eb2325c.
>
> Found this was breaking eDP for me with -nightly as of today on Baley
> Bay boards.
>
> Chris, can you verify this on your system too? I'm working on getting
> a new one with eDP support to test more.
Checking with my calculator the pll settings for the 1.62 clock are
wrong. Can you try to just fix them?
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] drm/i915: Fix VLV eDP timing
2013-09-14 0:27 [PATCH] Revert "drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2" Jesse Barnes
2013-09-14 0:29 ` Jesse Barnes
@ 2013-09-25 7:36 ` Chon Ming Lee
2013-09-25 7:47 ` [PATCH] drm/i915: Fix VLV eDP timing v2 Chon Ming Lee
2013-09-25 8:00 ` [PATCH] drm/i915: Fix VLV eDP timing Daniel Vetter
1 sibling, 2 replies; 7+ messages in thread
From: Chon Ming Lee @ 2013-09-25 7:36 UTC (permalink / raw)
To: intel-gfx
Fix the typo in previous commit for DP 1.62 divisor.
drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2
Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
---
drivers/gpu/drm/i915/intel_dp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 5e1de35..a8ceccf 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -59,7 +59,7 @@ static const struct dp_link_dpll pch_dpll[] = {
static const struct dp_link_dpll vlv_dpll[] = {
{ DP_LINK_BW_1_62,
- { .p1 = 3, .p2 = 2, .n = 5, .m1 = 5, .m2 = 3 } },
+ { .p1 = 3, .p2 = 2, .n = 5, .m1 = 5, .m2 = 81 } },
{ DP_LINK_BW_2_7,
{ .p1 = 2, .p2 = 2, .n = 1, .m1 = 2, .m2 = 27 } }
};
--
1.7.7.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] drm/i915: Fix VLV eDP timing v2
2013-09-25 7:36 ` [PATCH] drm/i915: Fix VLV eDP timing Chon Ming Lee
@ 2013-09-25 7:47 ` Chon Ming Lee
2013-09-25 8:20 ` Daniel Vetter
2013-09-25 8:00 ` [PATCH] drm/i915: Fix VLV eDP timing Daniel Vetter
1 sibling, 1 reply; 7+ messages in thread
From: Chon Ming Lee @ 2013-09-25 7:47 UTC (permalink / raw)
To: intel-gfx
Fix the typo in previous commit for DP 1.62 divisor.
drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2
v2: sigh, the m1 div is 3.
Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
---
drivers/gpu/drm/i915/intel_dp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 5e1de35..a5e4e61 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -59,7 +59,7 @@ static const struct dp_link_dpll pch_dpll[] = {
static const struct dp_link_dpll vlv_dpll[] = {
{ DP_LINK_BW_1_62,
- { .p1 = 3, .p2 = 2, .n = 5, .m1 = 5, .m2 = 3 } },
+ { .p1 = 3, .p2 = 2, .n = 5, .m1 = 3, .m2 = 81 } },
{ DP_LINK_BW_2_7,
{ .p1 = 2, .p2 = 2, .n = 1, .m1 = 2, .m2 = 27 } }
};
--
1.7.7.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: Fix VLV eDP timing
2013-09-25 7:36 ` [PATCH] drm/i915: Fix VLV eDP timing Chon Ming Lee
2013-09-25 7:47 ` [PATCH] drm/i915: Fix VLV eDP timing v2 Chon Ming Lee
@ 2013-09-25 8:00 ` Daniel Vetter
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2013-09-25 8:00 UTC (permalink / raw)
To: Chon Ming Lee; +Cc: intel-gfx
On Wed, Sep 25, 2013 at 03:36:52PM +0800, Chon Ming Lee wrote:
> Fix the typo in previous commit for DP 1.62 divisor.
>
> drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2
>
> Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
Ville just submitted the same patch so I guess this is right ;-)
Merged to dinq, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/i915: Fix VLV eDP timing v2
2013-09-25 7:47 ` [PATCH] drm/i915: Fix VLV eDP timing v2 Chon Ming Lee
@ 2013-09-25 8:20 ` Daniel Vetter
0 siblings, 0 replies; 7+ messages in thread
From: Daniel Vetter @ 2013-09-25 8:20 UTC (permalink / raw)
To: Chon Ming Lee; +Cc: intel-gfx
On Wed, Sep 25, 2013 at 03:47:51PM +0800, Chon Ming Lee wrote:
> Fix the typo in previous commit for DP 1.62 divisor.
> drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2
>
> v2: sigh, the m1 div is 3.
>
> Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com>
Ok, I'll try this one ...
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-25 8:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-14 0:27 [PATCH] Revert "drm/i915: Move Valleyview DP DPLL divisor calc to intel_dp_set_clock v2" Jesse Barnes
2013-09-14 0:29 ` Jesse Barnes
2013-09-14 11:28 ` Daniel Vetter
2013-09-25 7:36 ` [PATCH] drm/i915: Fix VLV eDP timing Chon Ming Lee
2013-09-25 7:47 ` [PATCH] drm/i915: Fix VLV eDP timing v2 Chon Ming Lee
2013-09-25 8:20 ` Daniel Vetter
2013-09-25 8:00 ` [PATCH] drm/i915: Fix VLV eDP timing Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox