[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dri-devel
Subject:    Re: [RESEND PATCH v6 17/20] drm/mediatek: Support MT8188 Padding in display driver
From:       Shawn Sung (宋孝謙) <Shawn.Sung () mediatek ! com>
Date:       2023-09-28 3:39:34
Message-ID: f28018229a5c0c232535da929e9d27cb7f649b7e.camel () mediatek ! com
[Download RAW message or body]

[Attachment #2 (text/html)]

<pre>
Hi&#32;CK,

On&#32;Thu,&#32;2023-09-28&#32;at&#32;03:05&#32;+0000,&#32;CK&#32;Hu&#32;(&#32993;&#20426;&#20809;)&#32;wrote:
 &gt;&#32;Hi,&#32;Hsiao-chien:
&gt;&#32;
&gt;&#32;On&#32;Mon,&#32;2023-09-11&#32;at&#32;15:42&#32;+0800,&#32;Hsiao&#32;Chien&#32;Sung&#32;wrote:
 &gt;&#32;&gt;&#32;Padding&#32;is&#32;a&#32;new&#32;display&#32;module&#32;on&#32;MT8188,&#32;it&#32;provides&#32;ability
 &gt;&#32;&gt;&#32;to&#32;add&#32;pixels&#32;to&#32;width&#32;and&#32;height&#32;of&#32;a&#32;layer&#32;with&#32;specified&#32;colors.
 &gt;&#32;&gt;&#32;
&gt;&#32;&gt;&#32;Due&#32;to&#32;hardware&#32;design,&#32;Mixer&#32;in&#32;VDOSYS1&#32;requires&#32;width&#32;of&#32;a&#32;layer
 &gt;&#32;&gt;&#32;to&#32;be&#32;2-pixel-align,&#32;or&#32;4-pixel-align&#32;when&#32;ETHDR&#32;is&#32;enabled,
 &gt;&#32;&gt;&#32;we&#32;need&#32;Padding&#32;to&#32;deal&#32;with&#32;odd&#32;width.
 &gt;&#32;&gt;&#32;
&gt;&#32;&gt;&#32;Please&#32;notice&#32;that&#32;even&#32;if&#32;the&#32;Padding&#32;is&#32;in&#32;bypass&#32;mode,
 &gt;&#32;&gt;&#32;settings&#32;in&#32;register&#32;must&#32;be&#32;cleared&#32;to&#32;0,
 &gt;&#32;&gt;&#32;or&#32;undefined&#32;behaviors&#32;could&#32;happen.
&gt;&#32;
&gt;&#32;You&#32;just&#32;set&#32;padding&#32;to&#32;bypass&#32;mode&#32;and&#32;not&#32;clear&#32;settings&#32;to&#32;0.&#32;Any
 &gt;&#32;thing&#32;wrong&#63;
&gt;&#32;

Since&#32;the&#32;deafult&#32;value&#32;of&#32;all&#32;the&#32;registers&#32;in&#32;Padding&#32;is&#32;zero,&#32;and
 we&#32;are&#32;not&#32;using&#32;Padding&#32;currently,&#32;it&#39;s&#32;fine&#32;if&#32;we&#32;just&#32;set&#32;padding&#32;to
 bypass&#32;mode&#32;witout&#32;clearing&#32;other&#32;registers.

The&#32;comment&#32;is&#32;just&#32;a&#32;reminder&#32;in&#32;case&#32;we&#32;forget&#32;it&#32;in&#32;the&#32;future.


Regards,
Hsiao&#32;Chien&#32;Sung

</pre><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice \
******************** The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!
</pre><!--}-->


[Attachment #3 (text/plain)]

Hi CK,

On Thu, 2023-09-28 at 03:05 +0000, CK Hu (胡俊光) wrote:
> Hi, Hsiao-chien:
> 
> On Mon, 2023-09-11 at 15:42 +0800, Hsiao Chien Sung wrote:
> > Padding is a new display module on MT8188, it provides ability
> > to add pixels to width and height of a layer with specified colors.
> > 
> > Due to hardware design, Mixer in VDOSYS1 requires width of a layer
> > to be 2-pixel-align, or 4-pixel-align when ETHDR is enabled,
> > we need Padding to deal with odd width.
> > 
> > Please notice that even if the Padding is in bypass mode,
> > settings in register must be cleared to 0,
> > or undefined behaviors could happen.
> 
> You just set padding to bypass mode and not clear settings to 0. Any
> thing wrong?
> 

Since the deafult value of all the registers in Padding is zero, and
we are not using Padding currently, it's fine if we just set padding to
bypass mode witout clearing other registers.

The comment is just a reminder in case we forget it in the future.

Regards,
Hsiao Chien Sung


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic