]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Merge remote-tracking branch 'imx-drm/imx-drm/next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Apr 2021 03:34:43 +0000 (13:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Apr 2021 03:34:43 +0000 (13:34 +1000)
# Conflicts:
# drivers/gpu/drm/imx/ipuv3-plane.c

1  2 
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/imx-ldb.c
drivers/gpu/drm/imx/ipuv3-plane.c

Simple merge
Simple merge
index fa5009705365e2f690696af651e7eab5aef695d2,26f2cc8321015210f5985323fb28151095fcfacc..9c81cf708edc395b3f8f081ad3bf07d3a18929d8
@@@ -590,8 -618,8 +625,8 @@@ static void ipu_plane_atomic_update(str
        if (ipu_state->use_pre) {
                axi_id = ipu_chan_assign_axi_id(ipu_plane->dma);
                ipu_prg_channel_configure(ipu_plane->ipu_ch, axi_id,
-                                         drm_rect_width(&new_state->src) >> 16,
 -                                        ipu_src_rect_width(state),
 -                                        drm_rect_height(&state->src) >> 16,
++                                        ipu_src_rect_width(new_state),
 +                                        drm_rect_height(&new_state->src) >> 16,
                                          fb->pitches[0], fb->format->format,
                                          fb->modifier, &eba);
        }
                break;
        }
  
-       ipu_dmfc_config_wait4eot(ipu_plane->dmfc, drm_rect_width(dst));
+       ipu_dmfc_config_wait4eot(ipu_plane->dmfc, ALIGN(drm_rect_width(dst), 8));
  
-       width = drm_rect_width(&new_state->src) >> 16;
 -      width = ipu_src_rect_width(state);
 -      height = drm_rect_height(&state->src) >> 16;
++      width = ipu_src_rect_width(new_state);
 +      height = drm_rect_height(&new_state->src) >> 16;
        info = drm_format_info(fb->format->format);
        ipu_calculate_bursts(width, info->cpp[0], fb->pitches[0],
                             &burstsize, &num_bursts);
  
                ipu_cpmem_zero(ipu_plane->alpha_ch);
                ipu_cpmem_set_resolution(ipu_plane->alpha_ch,
-                                        drm_rect_width(&new_state->src) >> 16,
 -                                       ipu_src_rect_width(state),
 -                                       drm_rect_height(&state->src) >> 16);
++                                       ipu_src_rect_width(new_state),
 +                                       drm_rect_height(&new_state->src) >> 16);
                ipu_cpmem_set_format_passthrough(ipu_plane->alpha_ch, 8);
                ipu_cpmem_set_high_priority(ipu_plane->alpha_ch);
                ipu_idmac_set_double_buffer(ipu_plane->alpha_ch, 1);