<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Thierry<br>
<br>
When I'm preparing v3 series, I meet some trobules from your
comment, wish you could give some advise? ;)<br>
<br>
<div class="moz-cite-prefix">在 2015/8/10 18:00, Thierry Reding 写道:<br>
</div>
<blockquote cite="mid:20150810100055.GB7850@ulmo.nvidia.com"
type="cite">
<pre wrap="">On Sat, Aug 08, 2015 at 11:54:38AM +0800, Yakir Yang wrote:
[...]
</pre>
<blockquote type="cite">
<pre wrap=""> edp: edp@ff970000 {
</pre>
</blockquote>
<pre wrap="">[...]
</pre>
<blockquote type="cite">
<pre wrap=""> samsung,color-space = <0>;
samsung,dynamic-range = <0>;
samsung,ycbcr-coeff = <0>;
</pre>
</blockquote>
<pre wrap="">
I think these should also come from EDID, though I'm not sure if we
store this in internal data structures yet.
</pre>
<blockquote type="cite">
<pre wrap=""> samsung,color-depth = <1>;
</pre>
</blockquote>
<pre wrap="">
This is probably drm_display_info.bpc.
</pre>
</blockquote>
"samsung,color_space" and "samsung,color-depth" <br>
<br>
The drm_display_info's color_formats and bpc indicate the monitor
display ability, but<br>
the edp driver could not take it as input video format directly.<br>
<br>
For example, with my DP TV I would found "RGB444 & YCRCB422
& & YCRCB444"<br>
support in drm_display_info.color_formats and 16bit bpc support, but
RK3288 crtc<br>
driver could only output RGB & ITU formats, so finally
analogix_dp-rockchip driver<br>
config crtc to RGBaaa 10bpc mode.<br>
<br>
In this sutiation, the analogix_dp core driver would pazzled by the
drm_display_info,<br>
can't chose the right color_space and bpc.<br>
<br>
And this is the place that confused me, wish you could give some
ideas about this one :-)<br>
-------------------------------------------------------------------------------------------------<br>
<br>
Besides, The dynamic_range and ycbcr_coeff haven't been record in
drm_display_info, but<br>
I though we can parse it by the video code.<br>
<br>
The dynamic_range would have two values "CEA range" and "VESA
range", so I though if<br>
the currect mode have a no-zero vic (drm_match_cea_mode()) then
config it to "CEA range",<br>
otherwhise config it to "VESA range".<br>
<br>
YCbCr Coefficients would have two values "ITU709" and "ITU601". I
see dw_hdmi driver have<br>
been set the colorimetry to ITU_601 when vic is 6/7/21/22/2/3/17/18,
I thouht we can stole this<br>
to analogix_dp driver.<br>
<span style="font-family:
;font-size:9pt;color:rgb(0,0,0);font-style:normal;font-variant:normal;"><br>
/* dynamic_range & colorimetry */<br>
vic = drm_match_cea_mode(mode);<br>
if ((vic == 6) || (vic == 7) || (vic == 21) || (vic == 22)
||<br>
(vic == 2) || (vic == 3) || (vic == 17) || (vic ==
18)) {<br>
video_info->dynamic_range = CEA;<br>
video_info->ycbcr_coeff = COLOR_YCBCR601;<br>
} else if (vic) {<br>
video_info->dynamic_range = CEA;<br>
video_info->ycbcr_coeff = COLOR_YCBCR709;<br>
} else {<br>
video_info->dynamic_range = VESA;<br>
video_info->ycbcr_coeff = COLOR_YCBCR709;<br>
}<br>
</span><br>
I'm not sure whether this is right, also wish you could give some
suggests ;)<br>
<br>
<br>
<blockquote cite="mid:20150810100055.GB7850@ulmo.nvidia.com"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap=""> samsung,link-rate = <0x0a>;
samsung,lane-count = <1>;
</pre>
</blockquote>
<pre wrap="">
And these should really be derived from values in the DPCD and adjusted
(if necessary) during link training.
Why would you ever want to hard-code the above?
</pre>
</blockquote>
<br>
And I though we should keep those DT properties now. I try to remove
those DT<br>
property, so analogix dp driver would always use the max link_rate
and lane_count<br>
which read from dpcd. For my 2K DP TV, link rate would reach to
5.4Gbps, lane cout<br>
would reach 4 lances, if so analogix dp driver could not light my DP
TV up any more.<br>
<br>
After that I found that RK3288 eDP TRM have indicated some limites
about those<br>
that RK3288 only support 4 physical lanes of 2.7/1.62 Gbps/lane,
which means 5.4Gbps<br>
link rate is too high for RK3288.<br>
<br>
So I think we could treate them as hardware max values, is it okay?<br>
<br>
Thanks,<br>
- Yakir<br>
</body>
</html>