From: Zhou Zhu <zzhu3@marvell.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: MMP display subsystem questions
Date: Mon, 24 Jun 2013 07:27:01 +0000 [thread overview]
Message-ID: <51C7F4C5.9040903@marvell.com> (raw)
In-Reply-To: <CAMLZHHQFtXWx0weG3uh14Nm3euqbSqyztBEQHEQFBzjFxWGTZA@mail.gmail.com>
Daniel,
Thank you for reviewing our patches.
Please see my comments.
On 06/22/2013 12:14 AM, Daniel Drake wrote:
>>> 4. Which overlay to use - according to my investigation above, this
>>> doesn't actually have any meaningful effect on the driver.
>>
>> As overlay enabled in patch above now, this config is required to make fb
>> show on some overlay and other interface(v4l2, private interface) to use
>> others.
>
> I don't understand this, but it might be easier to understand once you
> have documented what an overlay is and how it relates to a path. How
> is v4l2 going to interact with this driver? What private interfaces
> are you referring to?
>
> Or can we just auto-instantiate one framebuffer per path with good defaults?
Actually besides fb, v4l2 and an IOCTL based interface to support what
fb/v4l2 not provided are also added. The v4l2 or private interface could
also directly use same interface defined in include/video/mmp_disp.h to
get path/overlay and manipulate the hardware.
Patches for these interfaces would be submitted later and documentation
would also be added.
>
>> Also there still might be some settings in fb for some further settings like
>> vsync usage or yres_virtual size in coming patches.
>
> Wouldn't such information be represented in the modes supported by the panel?
These settings are software related rather than what hw supports.
Vsync settings include whether fb wait vsync interrupt to sync buffers
when pan display or whether send uevent in vsync (which is a mechanism
for Android).
For yres_virtual size which is related with pre-reserved fb buffer size
and some buffer sync mechanism.
As these settings are pure fb related so we just not place it in panel.
>
> A couple more questions:
>
> 1. What is the invert_pixclock setting in the mmp_mode structure? This
> causes a currently unused bit to be set in fb_videomode->vmode to be
> set (seems dangerous). And then nothing acts upon this bit, as far as
> I can see.
This bit is a legacy settings that for some panels that require inverted
pixel clock. However, as panels we are using now don't require such
feature and even we forget it by mistake, we could make a patch to
remove it and related code soon later.
Thank you for pointing out this:)
>
> 2. What about pix_fmt_out? Why is pixel format dumped into the mode
> specifier? If there is a supported panel that really can support
> different pixel formats, I would expect it to support all the pixel
> formats for all the resolution. This also seems unused within the
> driver.
We added it due to 2 reasons:
1. It impacts output timing settings inside controller for dsi case (we
have already in-home patches and would be submitted later). So it's
required to indicate that timing need to be changed.
2. It's still possible that for some panel that could support different
resolution and pixel formats, but it might not support all pixel formats
for all resolutions.
Also this variable is not used for dumb panel as it's already covered in
dumb mode in link config - dumb mode includes not only 16bpp or 24bpp
but also whether low 16 bits or high 16 bits used in 24 bits' lines. For
coming DSI panel, it's required and would be used.
>
> Thanks
> Daniel
>
--
Thanks, -Zhou
WARNING: multiple messages have this Message-ID (diff)
From: zzhu3@marvell.com (Zhou Zhu)
To: linux-arm-kernel@lists.infradead.org
Subject: MMP display subsystem questions
Date: Mon, 24 Jun 2013 15:27:01 +0800 [thread overview]
Message-ID: <51C7F4C5.9040903@marvell.com> (raw)
In-Reply-To: <CAMLZHHQFtXWx0weG3uh14Nm3euqbSqyztBEQHEQFBzjFxWGTZA@mail.gmail.com>
Daniel,
Thank you for reviewing our patches.
Please see my comments.
On 06/22/2013 12:14 AM, Daniel Drake wrote:
>>> 4. Which overlay to use - according to my investigation above, this
>>> doesn't actually have any meaningful effect on the driver.
>>
>> As overlay enabled in patch above now, this config is required to make fb
>> show on some overlay and other interface(v4l2, private interface) to use
>> others.
>
> I don't understand this, but it might be easier to understand once you
> have documented what an overlay is and how it relates to a path. How
> is v4l2 going to interact with this driver? What private interfaces
> are you referring to?
>
> Or can we just auto-instantiate one framebuffer per path with good defaults?
Actually besides fb, v4l2 and an IOCTL based interface to support what
fb/v4l2 not provided are also added. The v4l2 or private interface could
also directly use same interface defined in include/video/mmp_disp.h to
get path/overlay and manipulate the hardware.
Patches for these interfaces would be submitted later and documentation
would also be added.
>
>> Also there still might be some settings in fb for some further settings like
>> vsync usage or yres_virtual size in coming patches.
>
> Wouldn't such information be represented in the modes supported by the panel?
These settings are software related rather than what hw supports.
Vsync settings include whether fb wait vsync interrupt to sync buffers
when pan display or whether send uevent in vsync (which is a mechanism
for Android).
For yres_virtual size which is related with pre-reserved fb buffer size
and some buffer sync mechanism.
As these settings are pure fb related so we just not place it in panel.
>
> A couple more questions:
>
> 1. What is the invert_pixclock setting in the mmp_mode structure? This
> causes a currently unused bit to be set in fb_videomode->vmode to be
> set (seems dangerous). And then nothing acts upon this bit, as far as
> I can see.
This bit is a legacy settings that for some panels that require inverted
pixel clock. However, as panels we are using now don't require such
feature and even we forget it by mistake, we could make a patch to
remove it and related code soon later.
Thank you for pointing out this:)
>
> 2. What about pix_fmt_out? Why is pixel format dumped into the mode
> specifier? If there is a supported panel that really can support
> different pixel formats, I would expect it to support all the pixel
> formats for all the resolution. This also seems unused within the
> driver.
We added it due to 2 reasons:
1. It impacts output timing settings inside controller for dsi case (we
have already in-home patches and would be submitted later). So it's
required to indicate that timing need to be changed.
2. It's still possible that for some panel that could support different
resolution and pixel formats, but it might not support all pixel formats
for all resolutions.
Also this variable is not used for dumb panel as it's already covered in
dumb mode in link config - dumb mode includes not only 16bpp or 24bpp
but also whether low 16 bits or high 16 bits used in 24 bits' lines. For
coming DSI panel, it's required and would be used.
>
> Thanks
> Daniel
>
--
Thanks, -Zhou
next prev parent reply other threads:[~2013-06-24 7:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 17:26 MMP display subsystem questions Daniel Drake
2013-06-19 17:26 ` Daniel Drake
2013-06-21 2:41 ` Zhou Zhu
2013-06-21 2:41 ` Zhou Zhu
2013-06-21 16:14 ` Daniel Drake
2013-06-21 16:14 ` Daniel Drake
2013-06-24 7:27 ` Zhou Zhu [this message]
2013-06-24 7:27 ` Zhou Zhu
2013-06-24 14:48 ` Daniel Drake
2013-06-24 14:48 ` Daniel Drake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51C7F4C5.9040903@marvell.com \
--to=zzhu3@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.