* [PATCH] drm/i915: Adjust BXT HDMI port clock limits
@ 2015-07-06 11:44 ville.syrjala
2015-07-08 9:37 ` Kannan, Vandana
` (2 more replies)
0 siblings, 3 replies; 12+ messages in thread
From: ville.syrjala @ 2015-07-06 11:44 UTC (permalink / raw)
To: intel-gfx
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Since
commit e62925567c7926e78bc8ca976cde5c28ea265a49
Author: Vandana Kannan <vandana.kannan@intel.com>
Date: Wed Jul 1 17:02:57 2015 +0530
drm/i915/bxt: BUNs related to port PLL
BXT DPLL can now generate frequencies in the 216-223 MHz range.
Adjust the HDMI port clock checks to account for the reduced range
of invalid frequencies.
Cc: Vandana Kannan <vandana.kannan@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/intel_hdmi.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index c7e912b..70bad5b 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -1174,9 +1174,12 @@ hdmi_port_clock_valid(struct intel_hdmi *hdmi,
if (clock > hdmi_port_clock_limit(hdmi, respect_dvi_limit))
return MODE_CLOCK_HIGH;
- /* CHV/BXT DPLL can't generate 216-240 MHz */
- if ((IS_CHERRYVIEW(dev) || IS_BROXTON(dev)) &&
- clock > 216000 && clock < 240000)
+ /* BXT DPLL can't generate 223-240 MHz */
+ if (IS_BROXTON(dev) && clock > 223333 && clock < 240000)
+ return MODE_CLOCK_RANGE;
+
+ /* CHV DPLL can't generate 216-240 MHz */
+ if (IS_CHERRYVIEW(dev) && clock > 216000 && clock < 240000)
return MODE_CLOCK_RANGE;
return MODE_OK;
--
2.3.6
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-06 11:44 [PATCH] drm/i915: Adjust BXT HDMI port clock limits ville.syrjala
@ 2015-07-08 9:37 ` Kannan, Vandana
2015-07-10 13:11 ` Imre Deak
2015-07-10 13:09 ` Imre Deak
2015-07-10 20:22 ` shuang.he
2 siblings, 1 reply; 12+ messages in thread
From: Kannan, Vandana @ 2015-07-08 9:37 UTC (permalink / raw)
To: ville.syrjala, intel-gfx
On 7/6/2015 5:14 PM, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Since
> commit e62925567c7926e78bc8ca976cde5c28ea265a49
> Author: Vandana Kannan <vandana.kannan@intel.com>
> Date: Wed Jul 1 17:02:57 2015 +0530
>
> drm/i915/bxt: BUNs related to port PLL
>
> BXT DPLL can now generate frequencies in the 216-223 MHz range.
> Adjust the HDMI port clock checks to account for the reduced range
> of invalid frequencies.
>
> Cc: Vandana Kannan <vandana.kannan@intel.com>
> Cc: Imre Deak <imre.deak@intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index c7e912b..70bad5b 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1174,9 +1174,12 @@ hdmi_port_clock_valid(struct intel_hdmi *hdmi,
> if (clock > hdmi_port_clock_limit(hdmi, respect_dvi_limit))
> return MODE_CLOCK_HIGH;
>
> - /* CHV/BXT DPLL can't generate 216-240 MHz */
> - if ((IS_CHERRYVIEW(dev) || IS_BROXTON(dev)) &&
> - clock > 216000 && clock < 240000)
> + /* BXT DPLL can't generate 223-240 MHz */
> + if (IS_BROXTON(dev) && clock > 223333 && clock < 240000)
> + return MODE_CLOCK_RANGE;
> +
BSpec needs an update based on this ?
It shows
"
HDMI/DVI link rates: 0.2 to 3.0 GHz Non-SSC*
*2.17 - 2.4 GHz not supported
"
- Vandana
> + /* CHV DPLL can't generate 216-240 MHz */
> + if (IS_CHERRYVIEW(dev) && clock > 216000 && clock < 240000)
> return MODE_CLOCK_RANGE;
>
> return MODE_OK;
>
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-06 11:44 [PATCH] drm/i915: Adjust BXT HDMI port clock limits ville.syrjala
2015-07-08 9:37 ` Kannan, Vandana
@ 2015-07-10 13:09 ` Imre Deak
2015-07-10 13:18 ` Damien Lespiau
2015-07-13 9:10 ` Daniel Vetter
2015-07-10 20:22 ` shuang.he
2 siblings, 2 replies; 12+ messages in thread
From: Imre Deak @ 2015-07-10 13:09 UTC (permalink / raw)
To: ville.syrjala; +Cc: intel-gfx
On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Since
> commit e62925567c7926e78bc8ca976cde5c28ea265a49
> Author: Vandana Kannan <vandana.kannan@intel.com>
> Date: Wed Jul 1 17:02:57 2015 +0530
>
> drm/i915/bxt: BUNs related to port PLL
>
> BXT DPLL can now generate frequencies in the 216-223 MHz range.
> Adjust the HDMI port clock checks to account for the reduced range
> of invalid frequencies.
>
> Cc: Vandana Kannan <vandana.kannan@intel.com>
> Cc: Imre Deak <imre.deak@intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Ville wrote a tool for CHV that calculates the valid frequencies based
on the algorithm in the kernel. With the help of that I verified that
this matches the list of target frequencies bxt_find_best_dpll() will
accept, so:
Reviewed-by: Imre Deak <imre.deak@intel.com>
> ---
> drivers/gpu/drm/i915/intel_hdmi.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index c7e912b..70bad5b 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1174,9 +1174,12 @@ hdmi_port_clock_valid(struct intel_hdmi *hdmi,
> if (clock > hdmi_port_clock_limit(hdmi, respect_dvi_limit))
> return MODE_CLOCK_HIGH;
>
> - /* CHV/BXT DPLL can't generate 216-240 MHz */
> - if ((IS_CHERRYVIEW(dev) || IS_BROXTON(dev)) &&
> - clock > 216000 && clock < 240000)
> + /* BXT DPLL can't generate 223-240 MHz */
> + if (IS_BROXTON(dev) && clock > 223333 && clock < 240000)
> + return MODE_CLOCK_RANGE;
> +
> + /* CHV DPLL can't generate 216-240 MHz */
> + if (IS_CHERRYVIEW(dev) && clock > 216000 && clock < 240000)
> return MODE_CLOCK_RANGE;
>
> return MODE_OK;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-08 9:37 ` Kannan, Vandana
@ 2015-07-10 13:11 ` Imre Deak
0 siblings, 0 replies; 12+ messages in thread
From: Imre Deak @ 2015-07-10 13:11 UTC (permalink / raw)
To: Kannan, Vandana; +Cc: intel-gfx
On ke, 2015-07-08 at 15:07 +0530, Kannan, Vandana wrote:
>
> On 7/6/2015 5:14 PM, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Since
> > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > Author: Vandana Kannan <vandana.kannan@intel.com>
> > Date: Wed Jul 1 17:02:57 2015 +0530
> >
> > drm/i915/bxt: BUNs related to port PLL
> >
> > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > Adjust the HDMI port clock checks to account for the reduced range
> > of invalid frequencies.
> >
> > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > Cc: Imre Deak <imre.deak@intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_hdmi.c | 9 ++++++---
> > 1 file changed, 6 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> > index c7e912b..70bad5b 100644
> > --- a/drivers/gpu/drm/i915/intel_hdmi.c
> > +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> > @@ -1174,9 +1174,12 @@ hdmi_port_clock_valid(struct intel_hdmi *hdmi,
> > if (clock > hdmi_port_clock_limit(hdmi, respect_dvi_limit))
> > return MODE_CLOCK_HIGH;
> >
> > - /* CHV/BXT DPLL can't generate 216-240 MHz */
> > - if ((IS_CHERRYVIEW(dev) || IS_BROXTON(dev)) &&
> > - clock > 216000 && clock < 240000)
> > + /* BXT DPLL can't generate 223-240 MHz */
> > + if (IS_BROXTON(dev) && clock > 223333 && clock < 240000)
> > + return MODE_CLOCK_RANGE;
> > +
> BSpec needs an update based on this ?
> It shows
> "
> HDMI/DVI link rates: 0.2 to 3.0 GHz Non-SSC*
>
> *2.17 - 2.4 GHz not supported
> "
Yes, this needs updating. Could you file a change request for it?
--Imre
>
> - Vandana
> > + /* CHV DPLL can't generate 216-240 MHz */
> > + if (IS_CHERRYVIEW(dev) && clock > 216000 && clock < 240000)
> > return MODE_CLOCK_RANGE;
> >
> > return MODE_OK;
> >
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-10 13:09 ` Imre Deak
@ 2015-07-10 13:18 ` Damien Lespiau
2015-07-10 13:21 ` Ville Syrjälä
2015-07-13 9:10 ` Daniel Vetter
1 sibling, 1 reply; 12+ messages in thread
From: Damien Lespiau @ 2015-07-10 13:18 UTC (permalink / raw)
To: Imre Deak; +Cc: intel-gfx
On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Since
> > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > Author: Vandana Kannan <vandana.kannan@intel.com>
> > Date: Wed Jul 1 17:02:57 2015 +0530
> >
> > drm/i915/bxt: BUNs related to port PLL
> >
> > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > Adjust the HDMI port clock checks to account for the reduced range
> > of invalid frequencies.
> >
> > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > Cc: Imre Deak <imre.deak@intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Ville wrote a tool for CHV that calculates the valid frequencies based
> on the algorithm in the kernel. With the help of that I verified that
> this matches the list of target frequencies bxt_find_best_dpll() will
> accept, so:
Could we have that tool in i-g-t?
--
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-10 13:18 ` Damien Lespiau
@ 2015-07-10 13:21 ` Ville Syrjälä
2015-07-10 13:27 ` Damien Lespiau
0 siblings, 1 reply; 12+ messages in thread
From: Ville Syrjälä @ 2015-07-10 13:21 UTC (permalink / raw)
To: Damien Lespiau; +Cc: intel-gfx
On Fri, Jul 10, 2015 at 02:18:57PM +0100, Damien Lespiau wrote:
> On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> > On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > >
> > > Since
> > > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > > Author: Vandana Kannan <vandana.kannan@intel.com>
> > > Date: Wed Jul 1 17:02:57 2015 +0530
> > >
> > > drm/i915/bxt: BUNs related to port PLL
> > >
> > > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > > Adjust the HDMI port clock checks to account for the reduced range
> > > of invalid frequencies.
> > >
> > > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > > Cc: Imre Deak <imre.deak@intel.com>
> > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Ville wrote a tool for CHV that calculates the valid frequencies based
> > on the algorithm in the kernel. With the help of that I verified that
> > this matches the list of target frequencies bxt_find_best_dpll() will
> > accept, so:
>
> Could we have that tool in i-g-t?
We could lift all the .find_dpll routines from the kernel into i-g-t.
The only real concern is that we'll forget to update the i-g-t copies
when changing the kernel. But I guess it would still be easier to just
update them slightly when noticing that rather than having to lift them
from the kernel all over again.
--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-10 13:21 ` Ville Syrjälä
@ 2015-07-10 13:27 ` Damien Lespiau
2015-07-13 9:05 ` Daniel Vetter
0 siblings, 1 reply; 12+ messages in thread
From: Damien Lespiau @ 2015-07-10 13:27 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: intel-gfx
On Fri, Jul 10, 2015 at 04:21:27PM +0300, Ville Syrjälä wrote:
> On Fri, Jul 10, 2015 at 02:18:57PM +0100, Damien Lespiau wrote:
> > On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> > > On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > >
> > > > Since
> > > > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > > > Author: Vandana Kannan <vandana.kannan@intel.com>
> > > > Date: Wed Jul 1 17:02:57 2015 +0530
> > > >
> > > > drm/i915/bxt: BUNs related to port PLL
> > > >
> > > > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > > > Adjust the HDMI port clock checks to account for the reduced range
> > > > of invalid frequencies.
> > > >
> > > > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > > > Cc: Imre Deak <imre.deak@intel.com>
> > > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > >
> > > Ville wrote a tool for CHV that calculates the valid frequencies based
> > > on the algorithm in the kernel. With the help of that I verified that
> > > this matches the list of target frequencies bxt_find_best_dpll() will
> > > accept, so:
> >
> > Could we have that tool in i-g-t?
>
> We could lift all the .find_dpll routines from the kernel into i-g-t.
> The only real concern is that we'll forget to update the i-g-t copies
> when changing the kernel. But I guess it would still be easier to just
> update them slightly when noticing that rather than having to lift them
> from the kernel all over again.
Right, while not ideal, I think having something in i-g-t, even if it
diverges slightly (but then we can remind the patch author to update the
i-g-t tool during review) is still better than not having that code
around at all.
--
Damien
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-06 11:44 [PATCH] drm/i915: Adjust BXT HDMI port clock limits ville.syrjala
2015-07-08 9:37 ` Kannan, Vandana
2015-07-10 13:09 ` Imre Deak
@ 2015-07-10 20:22 ` shuang.he
2 siblings, 0 replies; 12+ messages in thread
From: shuang.he @ 2015-07-10 20:22 UTC (permalink / raw)
To: shuang.he, julianx.dumez, christophe.sureau, lei.a.liu, intel-gfx,
ville.syrjala
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6726
-------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
ILK 303/303 303/303
SNB +3 309/316 312/316
IVB 343/343 343/343
BYT 285/285 285/285
HSW +13 367/381 380/381
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
*SNB igt@kms_mmio_vs_cs_flip@setcrtc_vs_cs_flip DMESG_WARN(1) PASS(1)
*SNB igt@kms_mmio_vs_cs_flip@setplane_vs_cs_flip DMESG_WARN(1) PASS(1)
*SNB igt@pm_rpm@cursor DMESG_WARN(1) PASS(1)
*SNB igt@pm_rpm@cursor-dpms DMESG_FAIL(1) FAIL(1)
*HSW igt@kms_mmio_vs_cs_flip@setplane_vs_cs_flip DMESG_WARN(1) PASS(1)
*HSW igt@pm_lpsp@non-edp DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@debugfs-read DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@gem-idle DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@gem-mmap-gtt DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@gem-pread DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@i2c DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@modeset-non-lpsp DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@modeset-non-lpsp-stress-no-wait DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@pci-d3-state DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@reg-read-ioctl DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@rte DMESG_WARN(1) PASS(1)
*HSW igt@pm_rpm@sysfs-read DMESG_WARN(1) PASS(1)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-10 13:27 ` Damien Lespiau
@ 2015-07-13 9:05 ` Daniel Vetter
2015-07-13 17:32 ` Bish, Jim
0 siblings, 1 reply; 12+ messages in thread
From: Daniel Vetter @ 2015-07-13 9:05 UTC (permalink / raw)
To: Damien Lespiau; +Cc: intel-gfx
On Fri, Jul 10, 2015 at 02:27:48PM +0100, Damien Lespiau wrote:
> On Fri, Jul 10, 2015 at 04:21:27PM +0300, Ville Syrjälä wrote:
> > On Fri, Jul 10, 2015 at 02:18:57PM +0100, Damien Lespiau wrote:
> > > On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> > > > On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > >
> > > > > Since
> > > > > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > > > > Author: Vandana Kannan <vandana.kannan@intel.com>
> > > > > Date: Wed Jul 1 17:02:57 2015 +0530
> > > > >
> > > > > drm/i915/bxt: BUNs related to port PLL
> > > > >
> > > > > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > > > > Adjust the HDMI port clock checks to account for the reduced range
> > > > > of invalid frequencies.
> > > > >
> > > > > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > > > > Cc: Imre Deak <imre.deak@intel.com>
> > > > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > >
> > > > Ville wrote a tool for CHV that calculates the valid frequencies based
> > > > on the algorithm in the kernel. With the help of that I verified that
> > > > this matches the list of target frequencies bxt_find_best_dpll() will
> > > > accept, so:
> > >
> > > Could we have that tool in i-g-t?
> >
> > We could lift all the .find_dpll routines from the kernel into i-g-t.
> > The only real concern is that we'll forget to update the i-g-t copies
> > when changing the kernel. But I guess it would still be easier to just
> > update them slightly when noticing that rather than having to lift them
> > from the kernel all over again.
>
> Right, while not ideal, I think having something in i-g-t, even if it
> diverges slightly (but then we can remind the patch author to update the
> i-g-t tool during review) is still better than not having that code
> around at all.
Another way to check this would be to inject EDIDs with hand-rolled
timings that increment in small steps. Then we can try modesets on all the
unfiltered ones vs. just manually adding it with addmode. If any mode gets
filtered inconsistently in the mode list parsing compared to modeset code
that would be a bug.
Unfortunately the hdmi injection stuff isn't ready yet. I'll create a jira
for this idea.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-10 13:09 ` Imre Deak
2015-07-10 13:18 ` Damien Lespiau
@ 2015-07-13 9:10 ` Daniel Vetter
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Vetter @ 2015-07-13 9:10 UTC (permalink / raw)
To: Imre Deak; +Cc: intel-gfx
On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> >
> > Since
> > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > Author: Vandana Kannan <vandana.kannan@intel.com>
> > Date: Wed Jul 1 17:02:57 2015 +0530
> >
> > drm/i915/bxt: BUNs related to port PLL
> >
> > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > Adjust the HDMI port clock checks to account for the reduced range
> > of invalid frequencies.
> >
> > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > Cc: Imre Deak <imre.deak@intel.com>
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Ville wrote a tool for CHV that calculates the valid frequencies based
> on the algorithm in the kernel. With the help of that I verified that
> this matches the list of target frequencies bxt_find_best_dpll() will
> accept, so:
> Reviewed-by: Imre Deak <imre.deak@intel.com>
Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-13 9:05 ` Daniel Vetter
@ 2015-07-13 17:32 ` Bish, Jim
2015-07-14 7:53 ` Daniel Vetter
0 siblings, 1 reply; 12+ messages in thread
From: Bish, Jim @ 2015-07-13 17:32 UTC (permalink / raw)
To: daniel@ffwll.ch; +Cc: intel-gfx@lists.freedesktop.org
On Mon, 2015-07-13 at 11:05 +0200, Daniel Vetter wrote:
> On Fri, Jul 10, 2015 at 02:27:48PM +0100, Damien Lespiau wrote:
> > On Fri, Jul 10, 2015 at 04:21:27PM +0300, Ville Syrjälä wrote:
> > > On Fri, Jul 10, 2015 at 02:18:57PM +0100, Damien Lespiau wrote:
> > > > On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> > > > > On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > > > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > > >
> > > > > > Since
> > > > > > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > > > > > Author: Vandana Kannan <vandana.kannan@intel.com>
> > > > > > Date: Wed Jul 1 17:02:57 2015 +0530
> > > > > >
> > > > > > drm/i915/bxt: BUNs related to port PLL
> > > > > >
> > > > > > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > > > > > Adjust the HDMI port clock checks to account for the reduced range
> > > > > > of invalid frequencies.
> > > > > >
> > > > > > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > > > > > Cc: Imre Deak <imre.deak@intel.com>
> > > > > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > >
> > > > > Ville wrote a tool for CHV that calculates the valid frequencies based
> > > > > on the algorithm in the kernel. With the help of that I verified that
> > > > > this matches the list of target frequencies bxt_find_best_dpll() will
> > > > > accept, so:
> > > >
> > > > Could we have that tool in i-g-t?
> > >
> > > We could lift all the .find_dpll routines from the kernel into i-g-t.
> > > The only real concern is that we'll forget to update the i-g-t copies
> > > when changing the kernel. But I guess it would still be easier to just
> > > update them slightly when noticing that rather than having to lift them
> > > from the kernel all over again.
> >
> > Right, while not ideal, I think having something in i-g-t, even if it
> > diverges slightly (but then we can remind the patch author to update the
> > i-g-t tool during review) is still better than not having that code
> > around at all.
>
> Another way to check this would be to inject EDIDs with hand-rolled
> timings that increment in small steps. Then we can try modesets on all the
> unfiltered ones vs. just manually adding it with addmode. If any mode gets
> filtered inconsistently in the mode list parsing compared to modeset code
> that would be a bug.
>
> Unfortunately the hdmi injection stuff isn't ready yet. I'll create a jira
> for this idea.
> -Daniel
if you have dr. HDMI device you can set custom EDID in slots 6 and 7 -
works great for this type of exercise with no additional necessary to
try out.
Jim
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] drm/i915: Adjust BXT HDMI port clock limits
2015-07-13 17:32 ` Bish, Jim
@ 2015-07-14 7:53 ` Daniel Vetter
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Vetter @ 2015-07-14 7:53 UTC (permalink / raw)
To: Bish, Jim; +Cc: intel-gfx@lists.freedesktop.org
On Mon, Jul 13, 2015 at 05:32:14PM +0000, Bish, Jim wrote:
> On Mon, 2015-07-13 at 11:05 +0200, Daniel Vetter wrote:
> > On Fri, Jul 10, 2015 at 02:27:48PM +0100, Damien Lespiau wrote:
> > > On Fri, Jul 10, 2015 at 04:21:27PM +0300, Ville Syrjälä wrote:
> > > > On Fri, Jul 10, 2015 at 02:18:57PM +0100, Damien Lespiau wrote:
> > > > > On Fri, Jul 10, 2015 at 04:09:42PM +0300, Imre Deak wrote:
> > > > > > On ma, 2015-07-06 at 14:44 +0300, ville.syrjala@linux.intel.com wrote:
> > > > > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > > > >
> > > > > > > Since
> > > > > > > commit e62925567c7926e78bc8ca976cde5c28ea265a49
> > > > > > > Author: Vandana Kannan <vandana.kannan@intel.com>
> > > > > > > Date: Wed Jul 1 17:02:57 2015 +0530
> > > > > > >
> > > > > > > drm/i915/bxt: BUNs related to port PLL
> > > > > > >
> > > > > > > BXT DPLL can now generate frequencies in the 216-223 MHz range.
> > > > > > > Adjust the HDMI port clock checks to account for the reduced range
> > > > > > > of invalid frequencies.
> > > > > > >
> > > > > > > Cc: Vandana Kannan <vandana.kannan@intel.com>
> > > > > > > Cc: Imre Deak <imre.deak@intel.com>
> > > > > > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > > >
> > > > > > Ville wrote a tool for CHV that calculates the valid frequencies based
> > > > > > on the algorithm in the kernel. With the help of that I verified that
> > > > > > this matches the list of target frequencies bxt_find_best_dpll() will
> > > > > > accept, so:
> > > > >
> > > > > Could we have that tool in i-g-t?
> > > >
> > > > We could lift all the .find_dpll routines from the kernel into i-g-t.
> > > > The only real concern is that we'll forget to update the i-g-t copies
> > > > when changing the kernel. But I guess it would still be easier to just
> > > > update them slightly when noticing that rather than having to lift them
> > > > from the kernel all over again.
> > >
> > > Right, while not ideal, I think having something in i-g-t, even if it
> > > diverges slightly (but then we can remind the patch author to update the
> > > i-g-t tool during review) is still better than not having that code
> > > around at all.
> >
> > Another way to check this would be to inject EDIDs with hand-rolled
> > timings that increment in small steps. Then we can try modesets on all the
> > unfiltered ones vs. just manually adding it with addmode. If any mode gets
> > filtered inconsistently in the mode list parsing compared to modeset code
> > that would be a bug.
> >
> > Unfortunately the hdmi injection stuff isn't ready yet. I'll create a jira
> > for this idea.
> > -Daniel
>
> if you have dr. HDMI device you can set custom EDID in slots 6 and 7 -
> works great for this type of exercise with no additional necessary to
> try out.
The idea is to be able to run the testsuite with bare-bones machines and
no need to send each developer a special piece of hw for each type of
output. I know that there are tons of hw solutions for these testing
problems, they don't seem to scale well enough.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2015-07-14 7:50 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06 11:44 [PATCH] drm/i915: Adjust BXT HDMI port clock limits ville.syrjala
2015-07-08 9:37 ` Kannan, Vandana
2015-07-10 13:11 ` Imre Deak
2015-07-10 13:09 ` Imre Deak
2015-07-10 13:18 ` Damien Lespiau
2015-07-10 13:21 ` Ville Syrjälä
2015-07-10 13:27 ` Damien Lespiau
2015-07-13 9:05 ` Daniel Vetter
2015-07-13 17:32 ` Bish, Jim
2015-07-14 7:53 ` Daniel Vetter
2015-07-13 9:10 ` Daniel Vetter
2015-07-10 20:22 ` shuang.he
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox