]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm/mdp5: drop workarounds specific to MDP5 1.0
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 25 Mar 2026 03:06:06 +0000 (05:06 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 1 Apr 2026 15:02:18 +0000 (18:02 +0300)
With support for MSM8974v1 being removed from the driver, there is no
need to keep workarounds specific to that particular MDP5 revision. Drop
them, slightly simplifying the logic.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/713918/
Link: https://lore.kernel.org/r/20260325-mdp5-further-drop-mdp1-0-v1-1-5ccee47fd1aa@oss.qualcomm.com
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c

index 500b7dc895d05554e729f8608ce76ec021bcee1f..890d2f31510e47c7101f0a0a54fd314614c0594e 100644 (file)
@@ -118,8 +118,6 @@ uint32_t mdp5_smp_calculate(struct mdp5_smp *smp,
                u32 width, bool hdecim)
 {
        const struct drm_format_info *info = drm_format_info(format->pixel_format);
-       struct mdp5_kms *mdp5_kms = get_kms(smp);
-       int rev = mdp5_cfg_get_hw_rev(mdp5_kms->cfg);
        int i, hsub, nplanes, nlines;
        uint32_t blkcfg = 0;
 
@@ -133,7 +131,7 @@ uint32_t mdp5_smp_calculate(struct mdp5_smp *smp,
         * U and V components (splits them from Y if necessary) and packs
         * them together, writes to SMP using a single client.
         */
-       if ((rev > 0) && (format->chroma_sample > CHROMA_FULL)) {
+       if (format->chroma_sample > CHROMA_FULL) {
                nplanes = 2;
 
                /* if decimation is enabled, HW decimates less on the
@@ -151,10 +149,6 @@ uint32_t mdp5_smp_calculate(struct mdp5_smp *smp,
 
                n = DIV_ROUND_UP(fetch_stride * nlines, smp->blk_size);
 
-               /* for hw rev v1.00 */
-               if (rev == 0)
-                       n = roundup_pow_of_two(n);
-
                blkcfg |= (n << (8 * i));
        }