From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Marijn Suijten <marijn.suijten@somainline.org>,
<phone-devel@vger.kernel.org>, Rob Clark <robdclark@gmail.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Vinod Koul <vkoul@kernel.org>
Cc: <~postmarketos/upstreaming@lists.sr.ht>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@somainline.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Martin Botka <martin.botka@somainline.org>,
Jami Kettunen <jami.kettunen@somainline.org>,
Sean Paul <sean@poorly.run>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>,
Douglas Anderson <dianders@chromium.org>,
Vladimir Lypak <vladimir.lypak@gmail.com>,
<linux-arm-msm@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>,
<freedreno@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 00/10] drm/msm: Fix math issues in MSM DSC implementation
Date: Fri, 28 Oct 2022 11:33:21 -0700 [thread overview]
Message-ID: <99744fda-a3b8-f97a-294c-78e512d865bc@quicinc.com> (raw)
In-Reply-To: <20221026182824.876933-1-marijn.suijten@somainline.org>
Hi Marijn
On 10/26/2022 11:28 AM, Marijn Suijten wrote:
> Various removals of complex yet unnecessary math, fixing all uses of
> drm_dsc_config::bits_per_pixel to deal with the fact that this field
> includes four fractional bits, and finally making sure that
> range_bpg_offset contains values 6-bits wide to prevent overflows in
> drm_dsc_pps_payload_pack().
>
> Altogether this series is responsible for solving _all_ Display Stream
> Compression issues and artifacts on the Sony Tama (sdm845) Akatsuki
> smartphone (2880x1440p).
>
> Changes since v3:
> - Swap patch 7 and 8 to make sure msm_host is available inside
> dsi_populate_dsc_params();
> - Reword patch 6 (Migrate to drm_dsc_compute_rc_parameters()) to more
> clearly explain why the FIXME wasn't solved initially, but why it can
> (and should!) be resolved now.
>
> v3: https://lore.kernel.org/linux-arm-msm/20221009184824.457416-1-marijn.suijten@somainline.org/T/#u
>
> Changes since v2:
> - Generalize mux_word_size setting depending on bits_per_component;
> - Migrate DSI's DSC calculations to drm_dsc_compute_rc_parameters(),
> implicitly addressing existing math issues;
> - Disallow any bits_per_component other than 8, until hardcoded values
> are updated and tested to support such cases.
>
> v2: https://lore.kernel.org/linux-arm-msm/20221005181657.784375-1-marijn.suijten@somainline.org/T/#u
>
> Changes since v1:
>
> - Propagate r-b's, except (obviously) in patches that were (heavily)
> modified;
> - Remove accidental debug code in dsi_cmd_dma_add;
> - Move Range BPG Offset masking out of DCS PPS packing, back into the
> DSI driver when it is assigned to drm_dsc_config (this series is now
> strictly focusing on drm/msm again);
> - Replace modulo-check resulting in conditional increment with
> DIV_ROUND_UP;
> - Remove repeated calculation of slice_chunk_size;
> - Use u16 instead of int when handling bits_per_pixel;
> - Use DRM_DEV_ERROR instead of pr_err in DSI code;
> - Also remove redundant target_bpp_x16 variable.
>
> v1: https://lore.kernel.org/linux-arm-msm/20221001190807.358691-1-marijn.suijten@somainline.org/T/#u
>
> Marijn Suijten (10):
> drm/msm/dsi: Remove useless math in DSC calculations
> drm/msm/dsi: Remove repeated calculation of slice_per_intf
> drm/msm/dsi: Use DIV_ROUND_UP instead of conditional increment on
> modulo
> drm/msm/dsi: Reuse earlier computed dsc->slice_chunk_size
> drm/msm/dsi: Appropriately set dsc->mux_word_size based on bpc
> drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters()
> drm/msm/dsi: Account for DSC's bits_per_pixel having 4 fractional bits
> drm/msm/dsi: Disallow 8 BPC DSC configuration for alternative BPC
> values
> drm/msm/dpu1: Account for DSC's bits_per_pixel having 4 fractional
> bits
> drm/msm/dsi: Prevent signed BPG offsets from bleeding into adjacent
> bits
>
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 11 +-
> drivers/gpu/drm/msm/dsi/dsi_host.c | 121 ++++++---------------
> 2 files changed, 37 insertions(+), 95 deletions(-)
>
> --
> 2.38.1
>
To keep the -fixes cycle to have only critical fixes (others are
important too but are cleanups), I was thinking of absorbing patches
7,8,9 and 10 alone in the -fixes cycle and for patches 1-6, will go
through the 6.2 push.
Let me know if there are any concerns if we just take patches 7,8,9 and
10 separately.
Thanks
Abhinav
next prev parent reply other threads:[~2022-10-28 18:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 18:28 Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 01/10] drm/msm/dsi: Remove useless math in DSC calculations Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 02/10] drm/msm/dsi: Remove repeated calculation of slice_per_intf Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 03/10] drm/msm/dsi: Use DIV_ROUND_UP instead of conditional increment on modulo Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 04/10] drm/msm/dsi: Reuse earlier computed dsc->slice_chunk_size Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 05/10] drm/msm/dsi: Appropriately set dsc->mux_word_size based on bpc Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 06/10] drm/msm/dsi: Migrate to drm_dsc_compute_rc_parameters() Marijn Suijten
2022-10-26 19:41 ` Dmitry Baryshkov
2022-10-26 18:28 ` [PATCH v4 07/10] drm/msm/dsi: Account for DSC's bits_per_pixel having 4 fractional bits Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 08/10] drm/msm/dsi: Disallow 8 BPC DSC configuration for alternative BPC values Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 09/10] drm/msm/dpu1: Account for DSC's bits_per_pixel having 4 fractional bits Marijn Suijten
2022-10-26 18:28 ` [PATCH v4 10/10] drm/msm/dsi: Prevent signed BPG offsets from bleeding into adjacent bits Marijn Suijten
2022-10-28 18:33 ` Abhinav Kumar [this message]
2022-10-28 20:09 ` [PATCH v4 00/10] drm/msm: Fix math issues in MSM DSC implementation Marijn Suijten
2022-10-28 22:06 ` Abhinav Kumar
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=99744fda-a3b8-f97a-294c-78e512d865bc@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@somainline.org \
--cc=daniel@ffwll.ch \
--cc=dianders@chromium.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jami.kettunen@somainline.org \
--cc=konrad.dybcio@somainline.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=martin.botka@somainline.org \
--cc=phone-devel@vger.kernel.org \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=vkoul@kernel.org \
--cc=vladimir.lypak@gmail.com \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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
all inboxes | Powered by JetHome®