From: Abhinav Kumar <quic_abhinavk@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
Connor Abbott <cwabbott0@gmail.com>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: <linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<dri-devel@lists.freedesktop.org>,
<freedreno@lists.freedesktop.org>
Subject: Re: [PATCH v2 1/3] drm/msm/mdss: define bitfields for the UBWC_STATIC register
Date: Mon, 25 Nov 2024 18:03:52 -0800 [thread overview]
Message-ID: <784a7813-b024-452e-8d7e-8cbaea761bcd@quicinc.com> (raw)
In-Reply-To: <20241123-msm-mdss-ubwc-v2-1-41344bc6ef9c@linaro.org>
On 11/22/2024 9:44 PM, Dmitry Baryshkov wrote:
> Rather than hand-coding UBWC_STATIC value calculation, define
> corresponding bitfields and use them to setup the register value.
>
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> drivers/gpu/drm/msm/msm_mdss.c | 38 +++++++++++++++-----------
> drivers/gpu/drm/msm/msm_mdss.h | 3 +-
> drivers/gpu/drm/msm/registers/display/mdss.xml | 11 +++++++-
> 3 files changed, 34 insertions(+), 18 deletions(-)
>
<snip>
>
> diff --git a/drivers/gpu/drm/msm/registers/display/mdss.xml b/drivers/gpu/drm/msm/registers/display/mdss.xml
> index ac85caf1575c7908bcf68f0249da38dccf4f07b6..b6f93984928522a35a782cbad9de006eac225725 100644
> --- a/drivers/gpu/drm/msm/registers/display/mdss.xml
> +++ b/drivers/gpu/drm/msm/registers/display/mdss.xml
> @@ -21,7 +21,16 @@ xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd">
>
> <reg32 offset="0x00058" name="UBWC_DEC_HW_VERSION"/>
>
> - <reg32 offset="0x00144" name="UBWC_STATIC"/>
> + <reg32 offset="0x00144" name="UBWC_STATIC">
> + <bitfield name="UBWC_SWIZZLE" low="0" high="2"/>
> + <bitfield name="UBWC_BANK_SPREAD" pos="3"/>
> + <!-- high=5 for UBWC < 4.0 -->
> + <bitfield name="HIGHEST_BANK_BIT" low="4" high="6"/>
> + <bitfield name="UBWC_MIN_ACC_LEN" pos="8"/>
MIN_ACC_LEN OR MALSIZE has 2 bits , bits 8 and 9.
But bit 9 is unused today. Hence we were using it as a 1 or 0 today.
Its unused on all the chipsets I checked. Do you want to continue using
the same way or correct this?
next prev parent reply other threads:[~2024-11-26 2:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 5:44 [PATCH v2 0/3] drm/msm/mdss: rework UBWC registers programming Dmitry Baryshkov
2024-11-23 5:44 ` [PATCH v2 1/3] drm/msm/mdss: define bitfields for the UBWC_STATIC register Dmitry Baryshkov
2024-11-26 2:03 ` Abhinav Kumar [this message]
2024-11-26 12:17 ` Dmitry Baryshkov
2024-11-23 5:44 ` [PATCH v2 2/3] drm/msm/mdss: reuse defined bitfields for UBWC 2.0 Dmitry Baryshkov
2024-11-26 2:17 ` Abhinav Kumar
2024-11-23 5:44 ` [PATCH v2 3/3] drm/msm/mdss: use boolean values for macrotile_mode Dmitry Baryshkov
2024-11-26 2:19 ` 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=784a7813-b024-452e-8d7e-8cbaea761bcd@quicinc.com \
--to=quic_abhinavk@quicinc.com \
--cc=airlied@gmail.com \
--cc=cwabbott0@gmail.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
/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