From: Val Packett <val@packett.cool>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Xilin Wu <sophon@radxa.com>,
Jessica Zhang <jessica.zhang@oss.qualcomm.com>,
Rob Clark <robdclark@gmail.com>,
Dmitry Baryshkov <lumag@kernel.org>, Sean Paul <sean@poorly.run>,
Marijn Suijten <marijn.suijten@somainline.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Neil Armstrong <neil.armstrong@linaro.org>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: Re: [PATCH v2] drm/msm/dpu: Filter modes based on adjusted mode clock
Date: Sat, 17 Jan 2026 18:46:09 -0300 [thread overview]
Message-ID: <a5efb372-1a2a-4262-abc8-49bbeffa6961@packett.cool> (raw)
In-Reply-To: <iqst4yq3z5jlpr6f3r7fqbkzaxtn5ugene2j7tcvaa6jy2jwdi@k5zgxvqgxymi>
On 1/15/26 6:08 PM, Dmitry Baryshkov wrote:
> On Mon, Jan 12, 2026 at 04:54:28AM -0300, Val Packett wrote:
>> On 1/12/26 3:31 AM, Xilin Wu wrote:
>>> On 5/7/2025 9:38 AM, Jessica Zhang wrote:
>>>> Filter out modes that have a clock rate greater than the max core clock
>>>> rate when adjusted for the perf clock factor
>>>>
>>>> This is especially important for chipsets such as QCS615 that have lower
>>>> limits for the MDP max core clock.
>>>>
>>>> Since the core CRTC clock is at least the mode clock (adjusted for the
>>>> perf clock factor) [1], the modes supported by the driver should be less
>>>> than the max core clock rate.
>>>>
>>>> [1] https://elixir.bootlin.com/linux/v6.12.4/source/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c#L83
>>>>
>>>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>>> Signed-off-by: Jessica Zhang <jessica.zhang@oss.qualcomm.com>
>>>> ---
>>> Hi. This patch effectively filters out the 3840x2160@120Hz mode on
>>> SC8280XP CRD. The calculated adjusted_mode_clk is 623700, which slightly
>>> exceeds the supported max core clock of 600000.
>>>
>>> However, 4K 120Hz works flawlessly with the limit removed on this
>>> platform. I even tried connecting two 4K 120Hz displays, and they can
>>> work properly simultaneously. Is it possible to bring back support for
>>> this mode, or adjust the limits?
>> hm, interestingly on X1E80100 we didn't hit *that* limit,
>> the adjusted_mode_clk (576318) was only above what disp_cc_mdss_mdp_clk was
> Hmm, what is your modeline then? Xilin's mode params looks sane and
> standard enough.
as mentioned in
https://gitlab.freedesktop.org/drm/msm/-/issues/38#note_3216051:
"3840x2160": 120 1097750 3840 3888 3920 4000 2160 2166 2176 2287 0x40 0x9
## 1097750 / 2 = 548875; 548875 * 1.05 = 576318.75
vs.
"3840x2160": 120 1188000 3840 4016 4104 4400 2160 2168 2178 2250 0x40 0x5
## 1188000 / 2 = 594000; 594000 * 1.05 = 623700
Yeah, what's interesting is that both are just slightly above the max
disp_cc_mdss_mdp_clk_src on the respective platforms. 576318 is only
slightly above 575000, and 623700 is only slightly above 608000. So it's
actually the *same* limit, just that the numbers are different per
platform (sorry for any confusion).
Sooo.. what *is* the deal with the 105% inefficiency factor, is it
possible to find out where it came from and why it's hardcoded to that
number everywhere?
Can we add a loop that reduces it until the result fits into the max
clk? Or should the factor be ignored for this calculation maybe?
~val
prev parent reply other threads:[~2026-01-17 21:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 1:38 Jessica Zhang
2025-10-20 14:05 ` neil.armstrong
2025-10-20 14:15 ` Konrad Dybcio
2025-10-20 14:16 ` Neil Armstrong
2025-10-28 8:42 ` neil.armstrong
2025-10-28 19:52 ` Dmitry Baryshkov
2025-10-29 9:40 ` Neil Armstrong
2025-10-29 12:30 ` Dmitry Baryshkov
2025-10-29 12:49 ` Neil Armstrong
2025-10-29 12:55 ` Dmitry Baryshkov
2025-10-29 13:18 ` Neil Armstrong
2026-01-12 8:32 ` Dmitry Baryshkov
2026-01-12 6:31 ` Xilin Wu
2026-01-12 7:54 ` Val Packett
2026-01-12 8:45 ` Xilin Wu
2026-01-15 21:08 ` Dmitry Baryshkov
2026-01-17 21:46 ` Val Packett [this message]
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=a5efb372-1a2a-4262-abc8-49bbeffa6961@packett.cool \
--to=val@packett.cool \
--cc=airlied@gmail.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=jessica.zhang@oss.qualcomm.com \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=sean@poorly.run \
--cc=simona@ffwll.ch \
--cc=sophon@radxa.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
all inboxes | Powered by JetHome®