linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 2/5] drm: add constant N value in helper file
@ 2020-06-09  3:40 Tanmay Shah
  2020-06-10  2:20 ` Stephen Boyd
  2020-06-11  9:25 ` Jani Nikula
  0 siblings, 2 replies; 4+ messages in thread
From: Tanmay Shah @ 2020-06-09  3:40 UTC (permalink / raw)
  To: linux-arm-msm, dri-devel
  Cc: swboyd, sam, seanpaul, freedreno, chandanu, robdclark, abhinavk,
	nganji, linux-clk, Vara Reddy, Tanmay Shah

From: Chandan Uddaraju <chandanu@codeaurora.org>

The constant N value (0x8000) is used by i915 DP
driver. Define this value in dp helper header file
to use in multiple Display Port drivers. Change
i915 driver accordingly.

Change in v6: Change commit message

Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Vara Reddy <varar@codeaurora.org>
Signed-off-by: Tanmay Shah <tanmay@codeaurora.org>
---
 drivers/gpu/drm/i915/display/intel_display.c | 2 +-
 include/drm/drm_dp_helper.h                  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
index 9ea1a39..4b2cfff 100644
--- a/drivers/gpu/drm/i915/display/intel_display.c
+++ b/drivers/gpu/drm/i915/display/intel_display.c
@@ -8085,7 +8085,7 @@ static void compute_m_n(unsigned int m, unsigned int n,
 	 * which the devices expect also in synchronous clock mode.
 	 */
 	if (constant_n)
-		*ret_n = 0x8000;
+		*ret_n = DP_LINK_CONSTANT_N_VALUE;
 	else
 		*ret_n = min_t(unsigned int, roundup_pow_of_two(n), DATA_LINK_N_MAX);
 
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 2035ac4..589132a 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -1134,6 +1134,7 @@
 #define DP_MST_PHYSICAL_PORT_0 0
 #define DP_MST_LOGICAL_PORT_0 8
 
+#define DP_LINK_CONSTANT_N_VALUE 0x8000
 #define DP_LINK_STATUS_SIZE	   6
 bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
 			  int lane_count);
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v6 2/5] drm: add constant N value in helper file
  2020-06-09  3:40 [PATCH v6 2/5] drm: add constant N value in helper file Tanmay Shah
@ 2020-06-10  2:20 ` Stephen Boyd
  2020-06-11 20:07   ` tanmay
  2020-06-11  9:25 ` Jani Nikula
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2020-06-10  2:20 UTC (permalink / raw)
  To: Tanmay Shah, dri-devel, linux-arm-msm
  Cc: sam, seanpaul, freedreno, chandanu, robdclark, abhinavk, nganji,
	linux-clk, Vara Reddy, Tanmay Shah

Quoting Tanmay Shah (2020-06-08 20:40:47)
> From: Chandan Uddaraju <chandanu@codeaurora.org>
> 
> The constant N value (0x8000) is used by i915 DP
> driver. Define this value in dp helper header file
> to use in multiple Display Port drivers. Change
> i915 driver accordingly.
> 
> Change in v6: Change commit message
> 
> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
> Signed-off-by: Vara Reddy <varar@codeaurora.org>
> Signed-off-by: Tanmay Shah <tanmay@codeaurora.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>

Can you resend this series as an actual patch series? None of the
patches have the proper In-Reply-To headers so it is hard to track the
thread.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v6 2/5] drm: add constant N value in helper file
  2020-06-09  3:40 [PATCH v6 2/5] drm: add constant N value in helper file Tanmay Shah
  2020-06-10  2:20 ` Stephen Boyd
@ 2020-06-11  9:25 ` Jani Nikula
  1 sibling, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2020-06-11  9:25 UTC (permalink / raw)
  To: Tanmay Shah, linux-arm-msm, dri-devel
  Cc: sam, abhinavk, swboyd, seanpaul, Tanmay Shah, Vara Reddy,
	freedreno, linux-clk, chandanu

On Mon, 08 Jun 2020, Tanmay Shah <tanmay@codeaurora.org> wrote:
> From: Chandan Uddaraju <chandanu@codeaurora.org>
>
> The constant N value (0x8000) is used by i915 DP
> driver. Define this value in dp helper header file
> to use in multiple Display Port drivers. Change
> i915 driver accordingly.
>
> Change in v6: Change commit message
>
> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
> Signed-off-by: Vara Reddy <varar@codeaurora.org>
> Signed-off-by: Tanmay Shah <tanmay@codeaurora.org>

Acked-by: Jani Nikula <jani.nikula@intel.com>

for merging via drm-misc if that helps you.


> ---
>  drivers/gpu/drm/i915/display/intel_display.c | 2 +-
>  include/drm/drm_dp_helper.h                  | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 9ea1a39..4b2cfff 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -8085,7 +8085,7 @@ static void compute_m_n(unsigned int m, unsigned int n,
>  	 * which the devices expect also in synchronous clock mode.
>  	 */
>  	if (constant_n)
> -		*ret_n = 0x8000;
> +		*ret_n = DP_LINK_CONSTANT_N_VALUE;
>  	else
>  		*ret_n = min_t(unsigned int, roundup_pow_of_two(n), DATA_LINK_N_MAX);
>  
> diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
> index 2035ac4..589132a 100644
> --- a/include/drm/drm_dp_helper.h
> +++ b/include/drm/drm_dp_helper.h
> @@ -1134,6 +1134,7 @@
>  #define DP_MST_PHYSICAL_PORT_0 0
>  #define DP_MST_LOGICAL_PORT_0 8
>  
> +#define DP_LINK_CONSTANT_N_VALUE 0x8000
>  #define DP_LINK_STATUS_SIZE	   6
>  bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
>  			  int lane_count);

-- 
Jani Nikula, Intel Open Source Graphics Center

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v6 2/5] drm: add constant N value in helper file
  2020-06-10  2:20 ` Stephen Boyd
@ 2020-06-11 20:07   ` tanmay
  0 siblings, 0 replies; 4+ messages in thread
From: tanmay @ 2020-06-11 20:07 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: dri-devel, linux-arm-msm, sam, seanpaul, freedreno, chandanu,
	robdclark, abhinavk, nganji, linux-clk, Vara Reddy

On 2020-06-09 19:20, Stephen Boyd wrote:
> Quoting Tanmay Shah (2020-06-08 20:40:47)
>> From: Chandan Uddaraju <chandanu@codeaurora.org>
>> 
>> The constant N value (0x8000) is used by i915 DP
>> driver. Define this value in dp helper header file
>> to use in multiple Display Port drivers. Change
>> i915 driver accordingly.
>> 
>> Change in v6: Change commit message
>> 
>> Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
>> Signed-off-by: Vara Reddy <varar@codeaurora.org>
>> Signed-off-by: Tanmay Shah <tanmay@codeaurora.org>
>> ---
> 
> Reviewed-by: Stephen Boyd <swboyd@chromium.org>
> 
> Can you resend this series as an actual patch series? None of the
> patches have the proper In-Reply-To headers so it is hard to track the
> thread.
Sure. Should I keep Message-ID of v5-patch-1 for in-reply-to header?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-11 20:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09  3:40 [PATCH v6 2/5] drm: add constant N value in helper file Tanmay Shah
2020-06-10  2:20 ` Stephen Boyd
2020-06-11 20:07   ` tanmay
2020-06-11  9:25 ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).