Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/mdp5: drop workarounds specific to MDP5 1.0

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

+1 -7
+1 -7
drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c
··· 118 118 u32 width, bool hdecim) 119 119 { 120 120 const struct drm_format_info *info = drm_format_info(format->pixel_format); 121 - struct mdp5_kms *mdp5_kms = get_kms(smp); 122 - int rev = mdp5_cfg_get_hw_rev(mdp5_kms->cfg); 123 121 int i, hsub, nplanes, nlines; 124 122 uint32_t blkcfg = 0; 125 123 ··· 131 133 * U and V components (splits them from Y if necessary) and packs 132 134 * them together, writes to SMP using a single client. 133 135 */ 134 - if ((rev > 0) && (format->chroma_sample > CHROMA_FULL)) { 136 + if (format->chroma_sample > CHROMA_FULL) { 135 137 nplanes = 2; 136 138 137 139 /* if decimation is enabled, HW decimates less on the ··· 148 150 fetch_stride = width * cpp / (i ? hsub : 1); 149 151 150 152 n = DIV_ROUND_UP(fetch_stride * nlines, smp->blk_size); 151 - 152 - /* for hw rev v1.00 */ 153 - if (rev == 0) 154 - n = roundup_pow_of_two(n); 155 153 156 154 blkcfg |= (n << (8 * i)); 157 155 }