From: yuanjiey <yuanjie.yang@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: robin.clark@oss.qualcomm.com, lumag@kernel.org,
abhinav.kumar@linux.dev, sean@poorly.run,
marijn.suijten@somainline.org, airlied@gmail.com,
simona@ffwll.ch, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
quic_mkrishn@quicinc.com, jonathan@marek.ca,
quic_khsieh@quicinc.com, neil.armstrong@linaro.org,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, tingwei.zhang@oss.qualcomm.com,
aiqun.yu@oss.qualcomm.com, yongxing.mou@oss.qualcomm.com
Subject: Re: [PATCH 04/12] drm/msm/mdss: Add support for Kaanapali
Date: Fri, 24 Oct 2025 11:05:50 +0800 [thread overview]
Message-ID: <aPrtDoW7QlNSH12X@yuanjiey.ap.qualcomm.com> (raw)
In-Reply-To: <7yrjpxx2uqb7ox6yk55hsdj2cgexvcoqjjutmhnjokciy7pnl4@a3zdvmn7wmto>
On Thu, Oct 23, 2025 at 03:01:14PM +0300, Dmitry Baryshkov wrote:
> On Thu, Oct 23, 2025 at 03:53:53PM +0800, yuanjie yang wrote:
> > From: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
> >
> > Add mdss support for the Qualcomm Kaanapali platform.
> >
> > Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
> > Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com>
> > ---
> > drivers/gpu/drm/msm/msm_mdss.c | 22 ++++++++++++++++++++++
> > include/linux/soc/qcom/ubwc.h | 1 +
> > 2 files changed, 23 insertions(+)
>
> Where can I find the UBWC config for Kaanapali?
https://lore.kernel.org/all/20250930-kaana-gpu-support-v1-1-73530b0700ed@oss.qualcomm.com/
I see UBWC config is in gpu patch list, so I don't push UBWC config patch in my patch list.
so I should wait gpu patch applied and rebase this patch ?
Thanks,
Yuanjie
> >
> > diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
> > index 2d0e3e784c04..665751d2b999 100644
> > --- a/drivers/gpu/drm/msm/msm_mdss.c
> > +++ b/drivers/gpu/drm/msm/msm_mdss.c
> > @@ -243,6 +243,24 @@ static void msm_mdss_setup_ubwc_dec_50(struct msm_mdss *msm_mdss)
> > writel_relaxed(1, msm_mdss->mmio + REG_MDSS_UBWC_PREDICTION_MODE);
> > }
> >
> > +static void msm_mdss_setup_ubwc_dec_60(struct msm_mdss *msm_mdss)
> > +{
> > + const struct qcom_ubwc_cfg_data *data = msm_mdss->mdss_data;
> > + u32 value = MDSS_UBWC_STATIC_UBWC_SWIZZLE(data->ubwc_swizzle) |
> > + MDSS_UBWC_STATIC_HIGHEST_BANK_BIT(data->highest_bank_bit);
> > +
> > + if (data->ubwc_bank_spread)
> > + value |= MDSS_UBWC_STATIC_UBWC_BANK_SPREAD;
> > +
> > + if (data->macrotile_mode)
> > + value |= MDSS_UBWC_STATIC_MACROTILE_MODE;
> > +
> > + writel_relaxed(value, msm_mdss->mmio + REG_MDSS_UBWC_STATIC);
> > +
> > + writel_relaxed(5, msm_mdss->mmio + REG_MDSS_UBWC_CTRL_2);
> > + writel_relaxed(1, msm_mdss->mmio + REG_MDSS_UBWC_PREDICTION_MODE);
> > +}
> > +
> > static int msm_mdss_enable(struct msm_mdss *msm_mdss)
> > {
> > int ret, i;
> > @@ -296,6 +314,9 @@ static int msm_mdss_enable(struct msm_mdss *msm_mdss)
> > case UBWC_5_0:
> > msm_mdss_setup_ubwc_dec_50(msm_mdss);
> > break;
> > + case UBWC_6_0:
> > + msm_mdss_setup_ubwc_dec_60(msm_mdss);
> > + break;
> > default:
> > dev_err(msm_mdss->dev, "Unsupported UBWC decoder version %x\n",
> > msm_mdss->mdss_data->ubwc_dec_version);
> > @@ -552,6 +573,7 @@ static const struct msm_mdss_data data_153k6 = {
> > };
> >
> > static const struct of_device_id mdss_dt_match[] = {
> > + { .compatible = "qcom,kaanapali-mdss", .data = &data_57k },
> > { .compatible = "qcom,mdss", .data = &data_153k6 },
> > { .compatible = "qcom,msm8998-mdss", .data = &data_76k8 },
> > { .compatible = "qcom,qcm2290-mdss", .data = &data_76k8 },
> > diff --git a/include/linux/soc/qcom/ubwc.h b/include/linux/soc/qcom/ubwc.h
> > index 1ed8b1b16bc9..0a4edfe3d96d 100644
> > --- a/include/linux/soc/qcom/ubwc.h
> > +++ b/include/linux/soc/qcom/ubwc.h
> > @@ -52,6 +52,7 @@ struct qcom_ubwc_cfg_data {
> > #define UBWC_4_0 0x40000000
> > #define UBWC_4_3 0x40030000
> > #define UBWC_5_0 0x50000000
> > +#define UBWC_6_0 0x60000000
>
> This should be tied with the ubwc config changes as this chunk goes into
> a different subsystem.
>
> >
> > #if IS_ENABLED(CONFIG_QCOM_UBWC_CONFIG)
> > const struct qcom_ubwc_cfg_data *qcom_ubwc_config_get_data(void);
> > --
> > 2.34.1
> >
>
> --
> With best wishes
> Dmitry
next prev parent reply other threads:[~2025-10-24 3:06 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-23 7:53 [PATCH 00/12] drm/msm: Add support for Kaanapali yuanjie yang
2025-10-23 7:53 ` [PATCH 01/12] drm/msm/dsi/phy: " yuanjie yang
2025-10-23 11:48 ` Dmitry Baryshkov
2025-10-23 12:02 ` Konrad Dybcio
2025-10-24 3:27 ` yuanjiey
2025-10-27 12:48 ` Konrad Dybcio
2025-10-27 13:14 ` Dmitry Baryshkov
2025-10-27 13:20 ` Konrad Dybcio
2025-10-27 13:29 ` Dmitry Baryshkov
2025-10-29 3:19 ` yuanjiey
2025-10-29 9:48 ` Konrad Dybcio
2025-10-30 18:01 ` Dmitry Baryshkov
2025-10-31 2:46 ` yuanjiey
2025-10-23 7:53 ` [PATCH 02/12] drm/msm/dpu: Add support for Kaanapali DPU yuanjie yang
2025-10-23 11:56 ` Dmitry Baryshkov
2025-10-24 2:53 ` yuanjiey
2025-10-23 7:53 ` [PATCH 03/12] drm/msm/dpu: Compatible with Kaanapali interrupt register yuanjie yang
2025-10-23 11:59 ` Dmitry Baryshkov
2025-10-24 2:59 ` yuanjiey
2025-10-27 13:21 ` Dmitry Baryshkov
2025-10-29 2:49 ` yuanjiey
2025-10-30 18:02 ` Dmitry Baryshkov
2025-10-31 2:50 ` yuanjiey
2025-10-31 17:41 ` Dmitry Baryshkov
2025-10-28 6:07 ` Jessica Zhang
2025-10-29 2:05 ` yuanjiey
2025-10-23 7:53 ` [PATCH 04/12] drm/msm/mdss: Add support for Kaanapali yuanjie yang
2025-10-23 12:01 ` Dmitry Baryshkov
2025-10-24 3:05 ` yuanjiey [this message]
2025-10-23 7:53 ` [PATCH 05/12] drm/msm/dsi: " yuanjie yang
2025-10-23 12:01 ` Dmitry Baryshkov
2025-10-23 8:06 ` [PATCH 06/12] drm/msm/dpu: Add Kaanapali SSPP sub-block support yuanjie yang
2025-10-23 8:06 ` [PATCH 07/12] drm/panel: Set sufficient voltage for panel nt37801 yuanjie yang
2025-10-23 8:22 ` Konrad Dybcio
2025-10-23 8:57 ` yuanjiey
2025-10-23 12:14 ` Dmitry Baryshkov
2025-10-24 6:00 ` yuanjiey
2025-10-27 12:22 ` Dmitry Baryshkov
2025-10-29 1:58 ` yuanjiey
2025-10-29 12:20 ` Dmitry Baryshkov
2025-10-30 2:08 ` yuanjiey
2025-10-30 17:57 ` Dmitry Baryshkov
2025-10-31 2:21 ` yuanjiey
2025-10-31 15:43 ` Dmitry Baryshkov
2025-10-23 8:06 ` [PATCH 08/12] arm64: defconfig: Enable NT37801 DSI panel driver yuanjie yang
2025-10-23 8:22 ` Konrad Dybcio
2025-10-23 9:02 ` yuanjiey
2025-10-28 3:51 ` Bjorn Andersson
2025-10-29 2:37 ` yuanjiey
2025-10-29 13:05 ` Krzysztof Kozlowski
2025-10-30 2:33 ` yuanjiey
2025-10-30 5:37 ` Krzysztof Kozlowski
2025-10-30 7:07 ` yuanjiey
2025-10-30 10:43 ` Krzysztof Kozlowski
2025-10-31 2:28 ` yuanjiey
2025-10-31 17:44 ` Dmitry Baryshkov
2025-10-30 18:05 ` Dmitry Baryshkov
2025-10-23 8:06 ` [PATCH 09/12] dt-bindings: display/msm: qcom,kaanapali-dpu: Add Kaanapali yuanjie yang
2025-10-26 22:34 ` Rob Herring (Arm)
2025-10-23 8:06 ` [PATCH 10/12] dt-bindings: display/msm: dsi-phy-7nm: Add Kaanapali DSi PHY yuanjie yang
2025-10-23 12:16 ` Dmitry Baryshkov
2025-10-24 6:10 ` yuanjiey
2025-10-27 13:30 ` Dmitry Baryshkov
2025-10-29 2:00 ` yuanjiey
2025-10-23 8:06 ` [PATCH 11/12] dt-bindings: display/msm: dsi-controller-main: Add Kaanapali yuanjie yang
2025-10-23 12:16 ` Dmitry Baryshkov
2025-10-24 6:08 ` yuanjiey
2025-10-23 12:14 ` [PATCH 06/12] drm/msm/dpu: Add Kaanapali SSPP sub-block support Dmitry Baryshkov
2025-10-24 5:49 ` yuanjiey
2025-10-23 8:17 ` [PATCH 12/12] dt-bindings: display/msm: qcom,kaanapali-mdss: Add Kaanapali yuanjie yang
2025-10-23 9:34 ` Rob Herring (Arm)
2025-10-23 9:36 ` Konrad Dybcio
2025-10-23 9:52 ` yuanjiey
2025-10-23 12:17 ` Dmitry Baryshkov
2025-10-24 6:16 ` yuanjiey
2025-10-23 11:46 ` [PATCH 00/12] drm/msm: Add support for Kaanapali Dmitry Baryshkov
2025-10-24 2:32 ` yuanjiey
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=aPrtDoW7QlNSH12X@yuanjiey.ap.qualcomm.com \
--to=yuanjie.yang@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=aiqun.yu@oss.qualcomm.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jonathan@marek.ca \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_khsieh@quicinc.com \
--cc=quic_mkrishn@quicinc.com \
--cc=robh@kernel.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=tingwei.zhang@oss.qualcomm.com \
--cc=tzimmermann@suse.de \
--cc=yongxing.mou@oss.qualcomm.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