My apologies, I accidentally mangled the version history. It should actually read: v2: * Rebase and resolve merge conflicts with the AFBC patch. v3: * Moved 10-bit support detection to mtk_disk_ovl.c v4: * Moved formats to mtk_disp_ovl.c and mtk_disp_rdma.c v5: * Minor style adjustments per checkpatch.pl v6: * Refactor patch into patch series. * Add formats directly to private data. On Tue, Jan 31, 2023 at 3:08 PM Justin Green <greenjustin@xxxxxxxxxxxx> wrote: > > This patch series adds support for 10-bit overlays to the Mediatek DRM driver. > Specifically, we add support for AR30 and BA30 overlays on MT8195 devices and > lay the groundwork for supporting more 10-bit formats on more devices. > > 1. Refactor plane initialization logic to allow individual DDP components to > provide their supported pixel formats. > > 2. Add AR30 and BA30 support to the MT8195 overlay driver. > > > Version history: > v6: > * Refactor patch into patch series. > * Add formats directly to private data. > > v5: > * Removed some dead defines. > * Refactored mtk_ovl_set_afbc(). > > v4: > * Move modifier validation to format_mod_supported function. > * Add modifiers to drm_universal_plane_init() call. > * Make comparisons to DRM_FORMAT_MOD_LINEAR explicit rather than relying on > DRM_FORMAT_LINEAR being equal to 0. > * Gate AFBC control bit writes on device compatibility. > > v3: > * Replaced pitch bitshift math with union based approach. > * Refactored overlay register writes to shared code between non-AFBC and > AFBC. > * Minor code cleanups. > > v2: > * Marked mtk_ovl_set_afbc as static. > * Reflowed some lines to fit column limit. > > > Justin Green (2): > drm/mediatek: Refactor pixel format logic > drm/mediatek: Add support for AR30 and BA30 overlays > > drivers/gpu/drm/mediatek/mtk_disp_drv.h | 4 + > drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 89 +++++++++++++++++++++ > drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 38 +++++++++ > drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 4 + > drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 20 +++++ > drivers/gpu/drm/mediatek/mtk_drm_plane.c | 24 ++---- > drivers/gpu/drm/mediatek/mtk_drm_plane.h | 3 +- > 8 files changed, 168 insertions(+), 18 deletions(-) > > -- > 2.39.1.456.gfc5497dd1b-goog >