Skip to content

Commit e224e3a

Browse files
committed
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 parent 429ebd8 commit e224e3a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

drivers/gpu/drm/msm/disp/mdp5/mdp5_smp.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ uint32_t mdp5_smp_calculate(struct mdp5_smp *smp,
118118
u32 width, bool hdecim)
119119
{
120120
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);
123121
int i, hsub, nplanes, nlines;
124122
uint32_t blkcfg = 0;
125123

@@ -133,7 +131,7 @@ uint32_t mdp5_smp_calculate(struct mdp5_smp *smp,
133131
* U and V components (splits them from Y if necessary) and packs
134132
* them together, writes to SMP using a single client.
135133
*/
136-
if ((rev > 0) && (format->chroma_sample > CHROMA_FULL)) {
134+
if (format->chroma_sample > CHROMA_FULL) {
137135
nplanes = 2;
138136

139137
/* if decimation is enabled, HW decimates less on the
@@ -151,10 +149,6 @@ uint32_t mdp5_smp_calculate(struct mdp5_smp *smp,
151149

152150
n = DIV_ROUND_UP(fetch_stride * nlines, smp->blk_size);
153151

154-
/* for hw rev v1.00 */
155-
if (rev == 0)
156-
n = roundup_pow_of_two(n);
157-
158152
blkcfg |= (n << (8 * i));
159153
}
160154

0 commit comments

Comments
 (0)