From: Jani Nikula <jani.nikula@intel.com>
To: dri-devel@lists.freedesktop.org
Cc: Maxime Ripard <maxime.ripard@bootlin.com>,
intel-gfx@lists.freedesktop.org,
Vandita Kulkarni <vandita.kulkarni@intel.com>,
Sean Paul <seanpaul@chromium.org>,
Vinay Simha BN <simhavcs@gmail.com>,
Thierry Reding <treding@nvidia.com>
Subject: Re: [PATCH v2 1/5] drm/dsi: clean up DSI data type definitions
Date: Thu, 07 Nov 2019 15:21:03 +0200 [thread overview]
Message-ID: <87sgmz6cw0.fsf@intel.com> (raw)
In-Reply-To: <87y2wv7n1b.fsf@intel.com>
On Mon, 04 Nov 2019, Jani Nikula <jani.nikula@intel.com> wrote:
> Hi all, I'd really appreciate some (non-Intel) acks or reviews on this
> series. Don't feel comfortable merging it otherwise. It should be fairly
> straightforward stuff as long as you have some DSI specs handy.
Thanks for the reviews. I've pushed the patches to a new topic branch
drm-intel/topic/drm-mipi-dsi-dsc-updates per feedback from Sean and
Daniel. I'll be needing these dependencies in i915 sooner than a
roundtrip through drm-misc->drm-next->drm-intel would be convenient.
I'll send a pull request to drm-misc soonish, and will also pull to
drm-intel after the merge to drm-misc.
Please holler if you have any issues with this.
BR,
Jani.
>
> BR,
> Jani.
>
>
> On Mon, 28 Oct 2019, Jani Nikula <jani.nikula@intel.com> wrote:
>> Rename picture parameter set (it's a long packet, not a long write) and
>> compression mode (it's not a DCS command) enumerations according to the
>> DSI specification. Order the types according to the spec. Use tabs
>> instead of spaces for indentation. Use all lower case for hex.
>>
>> Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> drivers/gpu/drm/drm_mipi_dsi.c | 4 ++--
>> include/video/mipi_display.h | 10 +++++-----
>> 2 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c
>> index bd2498bbd74a..f237d80828c3 100644
>> --- a/drivers/gpu/drm/drm_mipi_dsi.c
>> +++ b/drivers/gpu/drm/drm_mipi_dsi.c
>> @@ -373,6 +373,7 @@ bool mipi_dsi_packet_format_is_short(u8 type)
>> case MIPI_DSI_V_SYNC_END:
>> case MIPI_DSI_H_SYNC_START:
>> case MIPI_DSI_H_SYNC_END:
>> + case MIPI_DSI_COMPRESSION_MODE:
>> case MIPI_DSI_END_OF_TRANSMISSION:
>> case MIPI_DSI_COLOR_MODE_OFF:
>> case MIPI_DSI_COLOR_MODE_ON:
>> @@ -387,7 +388,6 @@ bool mipi_dsi_packet_format_is_short(u8 type)
>> case MIPI_DSI_DCS_SHORT_WRITE:
>> case MIPI_DSI_DCS_SHORT_WRITE_PARAM:
>> case MIPI_DSI_DCS_READ:
>> - case MIPI_DSI_DCS_COMPRESSION_MODE:
>> case MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE:
>> return true;
>> }
>> @@ -406,11 +406,11 @@ EXPORT_SYMBOL(mipi_dsi_packet_format_is_short);
>> bool mipi_dsi_packet_format_is_long(u8 type)
>> {
>> switch (type) {
>> - case MIPI_DSI_PPS_LONG_WRITE:
>> case MIPI_DSI_NULL_PACKET:
>> case MIPI_DSI_BLANKING_PACKET:
>> case MIPI_DSI_GENERIC_LONG_WRITE:
>> case MIPI_DSI_DCS_LONG_WRITE:
>> + case MIPI_DSI_PICTURE_PARAMETER_SET:
>> case MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20:
>> case MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24:
>> case MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16:
>> diff --git a/include/video/mipi_display.h b/include/video/mipi_display.h
>> index cba57a678daf..79fd71cf4934 100644
>> --- a/include/video/mipi_display.h
>> +++ b/include/video/mipi_display.h
>> @@ -17,6 +17,9 @@ enum {
>> MIPI_DSI_H_SYNC_START = 0x21,
>> MIPI_DSI_H_SYNC_END = 0x31,
>>
>> + MIPI_DSI_COMPRESSION_MODE = 0x07,
>> + MIPI_DSI_END_OF_TRANSMISSION = 0x08,
>> +
>> MIPI_DSI_COLOR_MODE_OFF = 0x02,
>> MIPI_DSI_COLOR_MODE_ON = 0x12,
>> MIPI_DSI_SHUTDOWN_PERIPHERAL = 0x22,
>> @@ -35,18 +38,15 @@ enum {
>>
>> MIPI_DSI_DCS_READ = 0x06,
>>
>> - MIPI_DSI_DCS_COMPRESSION_MODE = 0x07,
>> - MIPI_DSI_PPS_LONG_WRITE = 0x0A,
>> -
>> MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE = 0x37,
>>
>> - MIPI_DSI_END_OF_TRANSMISSION = 0x08,
>> -
>> MIPI_DSI_NULL_PACKET = 0x09,
>> MIPI_DSI_BLANKING_PACKET = 0x19,
>> MIPI_DSI_GENERIC_LONG_WRITE = 0x29,
>> MIPI_DSI_DCS_LONG_WRITE = 0x39,
>>
>> + MIPI_DSI_PICTURE_PARAMETER_SET = 0x0a,
>> +
>> MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 = 0x0c,
>> MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 = 0x1c,
>> MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 = 0x2c,
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@intel.com>
To: dri-devel@lists.freedesktop.org
Cc: Andrzej Hajda <a.hajda@samsung.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
intel-gfx@lists.freedesktop.org,
Sean Paul <seanpaul@chromium.org>,
Vinay Simha BN <simhavcs@gmail.com>,
Thierry Reding <treding@nvidia.com>
Subject: Re: [Intel-gfx] [PATCH v2 1/5] drm/dsi: clean up DSI data type definitions
Date: Thu, 07 Nov 2019 15:21:03 +0200 [thread overview]
Message-ID: <87sgmz6cw0.fsf@intel.com> (raw)
Message-ID: <20191107132103.6Kn3gmmjwdvnOWIa9WfE8ttWaKovDxVmHkPS9X4mgmE@z> (raw)
In-Reply-To: <87y2wv7n1b.fsf@intel.com>
On Mon, 04 Nov 2019, Jani Nikula <jani.nikula@intel.com> wrote:
> Hi all, I'd really appreciate some (non-Intel) acks or reviews on this
> series. Don't feel comfortable merging it otherwise. It should be fairly
> straightforward stuff as long as you have some DSI specs handy.
Thanks for the reviews. I've pushed the patches to a new topic branch
drm-intel/topic/drm-mipi-dsi-dsc-updates per feedback from Sean and
Daniel. I'll be needing these dependencies in i915 sooner than a
roundtrip through drm-misc->drm-next->drm-intel would be convenient.
I'll send a pull request to drm-misc soonish, and will also pull to
drm-intel after the merge to drm-misc.
Please holler if you have any issues with this.
BR,
Jani.
>
> BR,
> Jani.
>
>
> On Mon, 28 Oct 2019, Jani Nikula <jani.nikula@intel.com> wrote:
>> Rename picture parameter set (it's a long packet, not a long write) and
>> compression mode (it's not a DCS command) enumerations according to the
>> DSI specification. Order the types according to the spec. Use tabs
>> instead of spaces for indentation. Use all lower case for hex.
>>
>> Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>> ---
>> drivers/gpu/drm/drm_mipi_dsi.c | 4 ++--
>> include/video/mipi_display.h | 10 +++++-----
>> 2 files changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c
>> index bd2498bbd74a..f237d80828c3 100644
>> --- a/drivers/gpu/drm/drm_mipi_dsi.c
>> +++ b/drivers/gpu/drm/drm_mipi_dsi.c
>> @@ -373,6 +373,7 @@ bool mipi_dsi_packet_format_is_short(u8 type)
>> case MIPI_DSI_V_SYNC_END:
>> case MIPI_DSI_H_SYNC_START:
>> case MIPI_DSI_H_SYNC_END:
>> + case MIPI_DSI_COMPRESSION_MODE:
>> case MIPI_DSI_END_OF_TRANSMISSION:
>> case MIPI_DSI_COLOR_MODE_OFF:
>> case MIPI_DSI_COLOR_MODE_ON:
>> @@ -387,7 +388,6 @@ bool mipi_dsi_packet_format_is_short(u8 type)
>> case MIPI_DSI_DCS_SHORT_WRITE:
>> case MIPI_DSI_DCS_SHORT_WRITE_PARAM:
>> case MIPI_DSI_DCS_READ:
>> - case MIPI_DSI_DCS_COMPRESSION_MODE:
>> case MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE:
>> return true;
>> }
>> @@ -406,11 +406,11 @@ EXPORT_SYMBOL(mipi_dsi_packet_format_is_short);
>> bool mipi_dsi_packet_format_is_long(u8 type)
>> {
>> switch (type) {
>> - case MIPI_DSI_PPS_LONG_WRITE:
>> case MIPI_DSI_NULL_PACKET:
>> case MIPI_DSI_BLANKING_PACKET:
>> case MIPI_DSI_GENERIC_LONG_WRITE:
>> case MIPI_DSI_DCS_LONG_WRITE:
>> + case MIPI_DSI_PICTURE_PARAMETER_SET:
>> case MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20:
>> case MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24:
>> case MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16:
>> diff --git a/include/video/mipi_display.h b/include/video/mipi_display.h
>> index cba57a678daf..79fd71cf4934 100644
>> --- a/include/video/mipi_display.h
>> +++ b/include/video/mipi_display.h
>> @@ -17,6 +17,9 @@ enum {
>> MIPI_DSI_H_SYNC_START = 0x21,
>> MIPI_DSI_H_SYNC_END = 0x31,
>>
>> + MIPI_DSI_COMPRESSION_MODE = 0x07,
>> + MIPI_DSI_END_OF_TRANSMISSION = 0x08,
>> +
>> MIPI_DSI_COLOR_MODE_OFF = 0x02,
>> MIPI_DSI_COLOR_MODE_ON = 0x12,
>> MIPI_DSI_SHUTDOWN_PERIPHERAL = 0x22,
>> @@ -35,18 +38,15 @@ enum {
>>
>> MIPI_DSI_DCS_READ = 0x06,
>>
>> - MIPI_DSI_DCS_COMPRESSION_MODE = 0x07,
>> - MIPI_DSI_PPS_LONG_WRITE = 0x0A,
>> -
>> MIPI_DSI_SET_MAXIMUM_RETURN_PACKET_SIZE = 0x37,
>>
>> - MIPI_DSI_END_OF_TRANSMISSION = 0x08,
>> -
>> MIPI_DSI_NULL_PACKET = 0x09,
>> MIPI_DSI_BLANKING_PACKET = 0x19,
>> MIPI_DSI_GENERIC_LONG_WRITE = 0x29,
>> MIPI_DSI_DCS_LONG_WRITE = 0x39,
>>
>> + MIPI_DSI_PICTURE_PARAMETER_SET = 0x0a,
>> +
>> MIPI_DSI_LOOSELY_PACKED_PIXEL_STREAM_YCBCR20 = 0x0c,
>> MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR24 = 0x1c,
>> MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16 = 0x2c,
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-11-07 13:21 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-28 15:00 [PATCH v2 1/5] drm/dsi: clean up DSI data type definitions Jani Nikula
2019-10-28 15:00 ` [Intel-gfx] " Jani Nikula
2019-10-28 15:00 ` [PATCH v2 2/5] drm/dsi: add missing DSI data types Jani Nikula
2019-10-28 15:00 ` [Intel-gfx] " Jani Nikula
2019-10-30 8:28 ` Kulkarni, Vandita
2019-10-30 8:28 ` [Intel-gfx] " Kulkarni, Vandita
2019-11-04 15:24 ` Thierry Reding
2019-11-04 15:24 ` [Intel-gfx] " Thierry Reding
2019-10-28 15:00 ` [PATCH v2 3/5] drm/dsi: add missing DSI DCS commands Jani Nikula
2019-10-28 15:00 ` [Intel-gfx] " Jani Nikula
2019-11-04 15:29 ` Thierry Reding
2019-11-04 15:29 ` [Intel-gfx] " Thierry Reding
2019-11-05 9:18 ` Thierry Reding
2019-11-05 9:18 ` Thierry Reding
2019-11-05 14:06 ` Jani Nikula
2019-11-05 14:06 ` [Intel-gfx] " Jani Nikula
2019-10-28 15:00 ` [PATCH v2 4/5] drm/dsi: rename MIPI_DCS_SET_PARTIAL_AREA to MIPI_DCS_SET_PARTIAL_ROWS Jani Nikula
2019-10-28 15:00 ` [Intel-gfx] " Jani Nikula
2019-11-05 9:42 ` Thierry Reding
2019-11-05 9:42 ` Thierry Reding
2019-10-28 15:00 ` [PATCH v2 5/5] drm/dsi: add helpers for DSI compression mode and PPS packets Jani Nikula
2019-10-28 15:00 ` [Intel-gfx] " Jani Nikula
2019-11-05 9:55 ` Thierry Reding
2019-11-05 9:55 ` [Intel-gfx] " Thierry Reding
2019-10-28 19:17 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [v2,1/5] drm/dsi: clean up DSI data type definitions Patchwork
2019-10-28 19:17 ` [Intel-gfx] " Patchwork
2019-10-28 19:37 ` ✓ Fi.CI.BAT: success " Patchwork
2019-10-28 19:37 ` [Intel-gfx] " Patchwork
2019-10-29 14:04 ` ✓ Fi.CI.IGT: " Patchwork
2019-10-29 14:04 ` [Intel-gfx] " Patchwork
2019-11-04 14:07 ` [PATCH v2 1/5] " Jani Nikula
2019-11-04 14:07 ` [Intel-gfx] " Jani Nikula
2019-11-07 13:21 ` Jani Nikula [this message]
2019-11-07 13:21 ` Jani Nikula
2019-11-04 15:20 ` Thierry Reding
2019-11-04 15:20 ` [Intel-gfx] " Thierry Reding
2019-11-05 9:18 ` Jani Nikula
2019-11-05 9:18 ` Jani Nikula
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=87sgmz6cw0.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=maxime.ripard@bootlin.com \
--cc=seanpaul@chromium.org \
--cc=simhavcs@gmail.com \
--cc=treding@nvidia.com \
--cc=vandita.kulkarni@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox