drm/i915/glk: CDCLK calculation changes for glk
Subsystems (2)
PATCH 1/1 drm/i915/glk: CDCLK calculation changes for glk
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption for some scenarios.
v2: Rebased to new CDLCK code framework
--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_cdclk.c +2 -2
@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))return 316800 ; -else if (max_pixclk >2 *79200 ) +else if (max_pixclk >DIV_ROUND_UP (2 *79200 *99 ,100 ))return 158400 ;else return 79200 ;
Signature · 6 lines
1.9.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/glk: CDCLK calculation changes for glk (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/glk: CDCLK calculation changes for glk (rev2)
URL : https://patchwork.freedesktop.org/series/19226/
State : failure
== Summary ==
Series 19226v2 drm/i915/glk: CDCLK calculation changes for glk
https://patchwork.freedesktop.org/api/1.0/series/19226/revisions/2/mbox/
Test kms_pipe_crc_basic:
Subgroup nonblocking-crc-pipe-a:
pass -> DMESG-FAIL (fi-snb-2520m)
Subgroup nonblocking-crc-pipe-a-frame-sequence:
pass -> DMESG-FAIL (fi-snb-2520m)
Subgroup nonblocking-crc-pipe-b:
pass -> DMESG-FAIL (fi-snb-2520m)
Subgroup nonblocking-crc-pipe-b-frame-sequence:
pass -> DMESG-FAIL (fi-snb-2520m)
Subgroup read-crc-pipe-a:
pass -> INCOMPLETE (fi-snb-2520m)fi-bdw-5557u total:252 pass:238 dwarn:3 dfail:0 fail:0 skip:11 fi-bsw-n3050 total:252 pass:210 dwarn:3 dfail:0 fail:0 skip:39 fi-bxt-j4205 total:252 pass:230 dwarn:3 dfail:0 fail:0 skip:19 fi-bxt-t5700 total:83 pass:70 dwarn:0 dfail:0 fail:0 skip:12 fi-byt-j1900 total:252 pass:222 dwarn:3 dfail:0 fail:0 skip:27 fi-byt-n2820 total:252 pass:218 dwarn:3 dfail:0 fail:0 skip:31 fi-hsw-4770 total:252 pass:233 dwarn:3 dfail:0 fail:0 skip:16 fi-hsw-4770r total:252 pass:233 dwarn:3 dfail:0 fail:0 skip:16 fi-ilk-650 total:252 pass:199 dwarn:3 dfail:0 fail:0 skip:50 fi-ivb-3520m total:252 pass:231 dwarn:3 dfail:0 fail:0 skip:18 fi-ivb-3770 total:252 pass:231 dwarn:3 dfail:0 fail:0 skip:18 fi-kbl-7500u total:252 pass:231 dwarn:3 dfail:0 fail:0 skip:18 fi-skl-6260u total:252 pass:239 dwarn:3 dfail:0 fail:0 skip:10 fi-skl-6700hq total:252 pass:232 dwarn:3 dfail:0 fail:0 skip:17 fi-skl-6700k total:252 pass:230 dwarn:4 dfail:0 fail:0 skip:18 fi-skl-6770hq total:252 pass:239 dwarn:3 dfail:0 fail:0 skip:10 fi-snb-2520m total:203 pass:177 dwarn:0 dfail:4 fail:0 skip:21 fi-snb-2600 total:252 pass:220 dwarn:3 dfail:0 fail:0 skip:29
5bec901e7ea94b6e656c8b0813c45c90d37a5673 drm-tip: 2017y-02m-16d-04h-31m-41s UTC integration manifest edf4ea9 drm/i915/glk: CDCLK calculation changes for glk
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3838/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/glk: CDCLK calculation changes for glk (rev2)
In reply to Madhav Chauhan== Series Details ==
== Series Details ==
Series: drm/i915/glk: CDCLK calculation changes for glk (rev2)
URL : https://patchwork.freedesktop.org/series/19226/
State : success
== Summary ==
Series 19226v2 drm/i915/glk: CDCLK calculation changes for glk
https://patchwork.freedesktop.org/api/1.0/series/19226/revisions/2/mbox/
fi-bdw-5557u total:252 pass:241 dwarn:0 dfail:0 fail:0 skip:11 fi-bsw-n3050 total:252 pass:213 dwarn:0 dfail:0 fail:0 skip:39 fi-bxt-j4205 total:252 pass:233 dwarn:0 dfail:0 fail:0 skip:19 fi-bxt-t5700 total:83 pass:70 dwarn:0 dfail:0 fail:0 skip:12 fi-byt-j1900 total:252 pass:225 dwarn:0 dfail:0 fail:0 skip:27 fi-byt-n2820 total:252 pass:221 dwarn:0 dfail:0 fail:0 skip:31 fi-hsw-4770 total:252 pass:236 dwarn:0 dfail:0 fail:0 skip:16 fi-hsw-4770r total:252 pass:236 dwarn:0 dfail:0 fail:0 skip:16 fi-ilk-650 total:252 pass:202 dwarn:0 dfail:0 fail:0 skip:50 fi-ivb-3520m total:252 pass:234 dwarn:0 dfail:0 fail:0 skip:18 fi-ivb-3770 total:252 pass:234 dwarn:0 dfail:0 fail:0 skip:18 fi-kbl-7500u total:252 pass:234 dwarn:0 dfail:0 fail:0 skip:18 fi-skl-6260u total:252 pass:242 dwarn:0 dfail:0 fail:0 skip:10 fi-skl-6700hq total:252 pass:235 dwarn:0 dfail:0 fail:0 skip:17 fi-skl-6700k total:252 pass:230 dwarn:4 dfail:0 fail:0 skip:18 fi-skl-6770hq total:252 pass:242 dwarn:0 dfail:0 fail:0 skip:10 fi-snb-2520m total:252 pass:224 dwarn:0 dfail:0 fail:0 skip:28 fi-snb-2600 total:252 pass:223 dwarn:0 dfail:0 fail:0 skip:29
89a932d98b6e1733011019c9872583a9c7c8fda3 drm-tip: 2017y-02m-16d-10h-06m-42s UTC integration manifest 1c4c55c drm/i915/glk: CDCLK calculation changes for glk
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3848/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 17 lines · Madhav Chauhan
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption for some scenarios.
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1074
Quoted 5 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))
Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works, right?
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
BR,
Jani.
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 33 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, February 16, 2017 9:03 PM
To: Chauhan, Madhav <[email protected]>; intel- [email protected]
Cc: Conselvan De Oliveira, Ander <[email protected]>; Shankar, Uma <[email protected]>; Mukherjee, Indranil <[email protected]>; Sharma, Shashank <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 19 lines · Madhav Chauhan
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption for some scenarios.
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1074
Quoted 3 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works, right?
Why do we need to ensure that ?? Can you please elaborate more on this? Here we are finding one of the defined CDCLK value for a pixel clock
Quoted 3 lines
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
Will add the following comment, if that's fine, will send the rebased patch:
"For GLK platform, only 99% of the defined CDCLK value can be achieved
So calculate pixel clock on that basis"
Regards,
Madhav
Quoted 4 lines
BR,
Jani.
Quoted 9 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1079
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 33 lines · Madhav
Quoted 33 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, February 16, 2017 9:03 PM
To: Chauhan, Madhav <[email protected]>; intel- [email protected]
Cc: Conselvan De Oliveira, Ander <[email protected]>; Shankar, Uma <[email protected]>; Mukherjee, Indranil <[email protected]>; Sharma, Shashank <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 19 lines · Madhav Chauhan
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption for some scenarios.
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)
Quoted 8 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1074
Quoted 3 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works, right?
Why do we need to ensure that ?? Can you please elaborate more on this? Here we are finding one of the defined CDCLK value for a pixel clock
I probably had some great idea a month ago when I wrote that, but I can no longer remember what it was. :(
BR,
Jani.
Quoted 22 lines
Quoted 3 lines
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
Will add the following comment, if that's fine, will send the rebased patch:
"For GLK platform, only 99% of the defined CDCLK value can be achieved
So calculate pixel clock on that basis"Regards,
MadhavQuoted 13 lines
BR,
Jani.drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1079
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;--
Jani Nikula, Intel Open Source Technology Center
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 41 lines · Jani Nikula
Quoted 40 lines · Madhav
Quoted 39 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, February 16, 2017 9:03 PM
To: Chauhan, Madhav <[email protected]>; intel- [email protected]
Cc: Conselvan De Oliveira, Ander <[email protected]>; Shankar, Uma <[email protected]>; Mukherjee, Indranil <[email protected]>; Sharma, Shashank <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 18 lines · Madhav Chauhan
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption for some scenarios.
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1073
Quoted 4 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works, right?
Quoted 5 lines
Quoted 2 lines
Why do we need to ensure that ?? Can you please elaborate more on this? Here we are finding one of the defined CDCLK value for a pixel clock
I probably had some great idea a month ago when I wrote that, but I can no longer remember what it was. :(
I'm not sure if that is what you meant, but if the hardware can't handle it, intel_compute_max_dotclk() needs to take the 99% limitation into account too. I.e., max dot clock would be .99 * 2 * 316800 = 627264.
Ander
Quoted 30 lines
BR,
Jani.Quoted 23 lines
Quoted 3 lines
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
Will add the following comment, if that's fine, will send the rebased patch:
"For GLK platform, only 99% of the defined CDCLK value can be achieved
So calculate pixel clock on that basis"Regards,
MadhavQuoted 13 lines
BR,
Jani.drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1079
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 45 lines · Ander Conselvan De Oliveira
Quoted 44 lines · Jani Nikula
Quoted 42 lines · Madhav
Quoted 33 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, February 16, 2017 9:03 PM
To: Chauhan, Madhav <[email protected]>; intel- [email protected]
Cc: Conselvan De Oliveira, Ander <[email protected]>; Shankar, Uma <[email protected]>; Mukherjee, Indranil <[email protected]>; Sharma, Shashank <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 19 lines · Madhav Chauhan
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption for some scenarios.
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1074
Quoted 3 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works, right?
Why do we need to ensure that ?? Can you please elaborate more on this? Here we are finding one of the defined CDCLK value for a pixel clock
Quoted 6 lines
Quoted 2 lines
I probably had some great idea a month ago when I wrote that, but I can no longer remember what it was. :(
I'm not sure if that is what you meant, but if the hardware can't handle it,
intel_compute_max_dotclk()needs to take the 99% limitation into account too. I.e., max dot clock would be .99 * 2 * 316800 = 627264.
Yes, thank you!
Jani.
Quoted 37 lines
Ander
Quoted 30 lines
BR,
Jani.Quoted 23 lines
Quoted 3 lines
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
Will add the following comment, if that's fine, will send the rebased patch:
"For GLK platform, only 99% of the defined CDCLK value can be achieved
So calculate pixel clock on that basis"Regards,
MadhavQuoted 13 lines
BR,
Jani.drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1079
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;--
Jani Nikula, Intel Open Source Technology Center_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 66 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, March 16, 2017 7:00 PM
To: Ander Conselvan De Oliveira <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 2 lines · Ander Conselvan De Oliveira
Quoted 1 line · Jani Nikula
On Thu, 16 Mar 2017, "Chauhan, Madhav"
Quoted 14 lines · <[email protected]> wrote:
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, February 16, 2017 9:03 PM
To: Chauhan, Madhav <[email protected]>; intel- [email protected]
Cc: Conselvan De Oliveira, Ander <[email protected]>;
Shankar, Uma <[email protected]>; Mukherjee, Indranil <[email protected]>; Sharma, Shashank <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Thu, 16 Feb 2017, Madhav Chauhan
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption
for some scenarios.
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1074
Quoted 3 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works,
right?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Why do we need to ensure that ?? Can you please elaborate more on
this?
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
Here we are finding one of the defined CDCLK value for a pixel clock
I probably had some great idea a month ago when I wrote that, but I can no longer remember what it was. :(
Quoted 7 lines
Quoted 3 lines
I'm not sure if that is what you meant, but if the hardware can't handle it,
intel_compute_max_dotclk()needs to take the 99% limitation into accounttoo.
Quoted 1 line
I.e., max dot clock would be .99 * 2 * 316800 = 627264.
Yes, thank you!
Ok. Will include this change as well along with additional comments for explaining 99% usage of cdclk inside glk_calc_cdclk. Thanks for review.
Quoted 37 lines
Jani.
Quoted 13 lines
Ander
Quoted 10 lines
BR,
Jani.Quoted 5 lines
Quoted 3 lines
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
Will add the following comment, if that's fine, will send the rebased
patch:
Quoted 20 lines
Quoted 20 lines
Quoted 18 lines
"For GLK platform, only 99% of the defined CDCLK value can be achieved
So calculate pixel clock on that basis"Regards,
MadhavQuoted 13 lines
BR,
Jani.drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int max_pixclk) · line 1079
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;--
Jani Nikula, Intel Open Source Technology Center
Quoted 7 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 85 lines
-----Original Message-----
From: Chauhan, Madhav
Sent: Friday, March 17, 2017 7:11 PM
To: Nikula, Jani <[email protected]>; Ander Conselvan De Oliveira <[email protected]>; [email protected]
Subject: RE: [Intel-gfx] [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 77 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, March 16, 2017 7:00 PM
To: Ander Conselvan De Oliveira <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 2 lines · Ander Conselvan De Oliveira
Quoted 1 line · Jani Nikula
On Thu, 16 Mar 2017, "Chauhan, Madhav"
Quoted 14 lines · <[email protected]> wrote:
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
-----Original Message-----
From: Nikula, Jani
Sent: Thursday, February 16, 2017 9:03 PM
To: Chauhan, Madhav <[email protected]>; intel- [email protected]
Cc: Conselvan De Oliveira, Ander <[email protected]>;
Shankar, Uma <[email protected]>; Mukherjee, Indranil <[email protected]>; Sharma, Shashank <[email protected]>; Chauhan, Madhav <[email protected]>; [email protected]
Subject: Re: [PATCH] drm/i915/glk: CDCLK calculation changes for glkQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Thu, 16 Feb 2017, Madhav Chauhan
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines · wrote:
As per BSPEC, valid cdclk values for glk are 79.2, 158.4, 316.8 Mhz. Practically we can achive only 99% of these cdclk values(HW team checking on this). So cdclk should be calculated for the given pixclk as per that otherwise it may lead to screen corruption
for some scenarios.
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
v2: Rebased to new CDLCK code framework
Signed-off-by Madhav Chauhan <[email protected]>--- drivers/gpu/drm/i915/intel_cdclk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_cdclk.c +0
-0@@ -1071,9 +1071,9 @@ static int bxt_calc_cdclk(int max_pixclk)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int · line 1074
Quoted 3 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1static int glk_calc_cdclk (int max_pixclk) { -if (max_pixclk >2 *158400 ) +if (max_pixclk >DIV_ROUND_UP (2 *158400 *99 ,100 ))Where do we ensure we don't use pixel clock 312841..316800? Clearly we shouldn't use that because we can't guarantee it works,
right?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Why do we need to ensure that ?? Can you please elaborate more on
this?
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
Here we are finding one of the defined CDCLK value for a pixel clock
I probably had some great idea a month ago when I wrote that, but I can no longer remember what it was. :(
I'm not sure if that is what you meant, but if the hardware can't handle it,
intel_compute_max_dotclk()needs to take the 99% limitation into accounttoo.
Quoted 1 line
I.e., max dot clock would be .99 * 2 * 316800 = 627264.
Yes, thank you!
Tested this change on drm-tip. Found that 1-2 times MIPI didn't come up (might be some error during testing) after that it works fine every time.
Could this change have some sort of impact on MIPI functionality?? Looked at code, found nothing from that front.
Quoted 17 lines
Ok. Will include this change as well along with additional comments for explaining 99% usage of cdclk inside
glk_calc_cdclk.
Thanks for review.Quoted 12 lines
Jani.
Quoted 9 lines
Ander
Quoted 6 lines
BR,
Jani.Quoted 1 line
Quoted 1 line
Quoted 34 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Before we get the spec update to confirm what to do, I think we need a comment here explaining what's going on.
Will add the following comment, if that's fine, will send the rebased
patch:
Quoted 1 line
Quoted 1 line
Quoted 1 line
"For GLK platform, only 99% of the defined CDCLK value can be
achieved
Quoted 26 lines
Quoted 19 lines
Quoted 8 lines
Quoted 8 lines
So calculate pixel clock on that basis"
Regards,
MadhavQuoted 4 lines
BR,
Jani.Quoted 11 lines
Quoted 9 lines
Quoted 9 lines
drivers/gpu/drm/i915/intel_cdclk.c static int bxt_calc_cdclk(int · line 1079
Quoted 6 lines
drivers/gpu/drm/i915/intel_cdclk.c +1
-1return 316800 ; - else if (max_pixclk > 2 * 79200) + else if (max_pixclk > DIV_ROUND_UP(2 * 79200 * 99, 100))return 158400 ; else return 79200;--
Jani Nikula, Intel Open Source Technology CenterQuoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx