Skip to content

DRM_COLOROP_3D_LUT_DMA colorop tests

Harry Wentland igt-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10lib/drm-uapi: sync drm_mode.h DMA 3D LUT colorop uAPIinclude/drm-uapi/drm_mode.h+79 -00 replies
2/10lib/igt_kms: add DMA 3D LUT colorop propertieslib/igt_kms.c lib/igt_kms.h+7 -10 replies
3/10tests/kms_colorop: share writeback and pixel helperstests/kms_colorop.c tests/kms_colorop_helper.c tests/kms_colorop_helper.h+150 -1420 replies
4/10tests/kms_colorop: add a DMA 3D LUT colorop testtests/kms_colorop.c tests/kms_colorop_helper.c tests/kms_colorop_helper.h+146 -00 replies
5/10tests/kms_colorop_dma: add negative DMA 3D LUT teststests/intel-ci/i915.blocklist.txt tests/intel-ci/xe.blocklist.txt tests/kms_colorop_dma.c +1 more+302 -00 replies
6/10tests/kms_colorop_dma: test implicit fencing of DMA 3D LUT framebufferstests/kms_colorop_dma.c+288 -00 replies
7/10tests/kms_colorop_dma: test scanout and DMA 3D LUT implicit fences togethertests/kms_colorop_dma.c+99 -210 replies
8/10tests/kms_colorop_dma: test a merged in-fence covering DMA 3D LUT producerstests/kms_colorop_dma.c+62 -100 replies
9/10tests/kms_colorop_dma: exercise DMA 3D LUT framebuffer transitionstests/kms_colorop_dma.c+231 -10 replies
10/10tests/kms_colorop_dma: test DMA 3D LUT framebuffer removaltests/kms_colorop_dma.c+163 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 00/10] DRM_COLOROP_3D_LUT_DMA colorop tests

Loading a DRM_COLOROP_3D_LUT on AMD HW takes a long time because the driver has to load the entire 3D LUT via register writes.

Starting with DCN 4 the HW has the ability to load a 3D LUT via DMA, which only requires an address update for programming the 3D LUT.

I posted a kernel series to add support for this functionality via a new DRM_COLOROP_3D_LUT_DMA type. Users of the DRM_COLOROP_3D_LUT_DMA will parse the supported formats via the LUT_3D_FORMATS blob property, select the desired format via LUT_3D_FORMAT property, and pass the 3D LUT buffer as a drm_framebuffer via FB_ID on the colorop.

In addition to the naive testing of the new DRM_COLOROP_3D_LUT_DMA this series also introduces a kms_colorop_dma test suite that covers various fence and buffer management tests.

Anyone wanting to give this a spin on Navi 4 will need to use the 3d-fl-fixes kernel branch and the 3d-fl-workaround IGT branch.

### Branches

kernel: https://gitlab.freedesktop.org/hwentland/linux/-/commits/3d-fl
kernel w/ fixes: https://gitlab.freedesktop.org/hwentland/linux/-/commits/3d-fl-fixes
IGT: https://gitlab.freedesktop.org/hwentland/igt-gpu-tools/-/tree/3d-fl
IGT Navi 4 w/a: https://gitlab.freedesktop.org/hwentland/igt-gpu-tools/-/tree/3d-fl-workaround
kwin: https://invent.kde.org/hwentlan/kwin/-/commits/3d-fl

Cc Melissa Wen <[email protected]>
Cc Autumn Ashton <[email protected]>
Cc Xaver Hugl <[email protected]>

Harry Wentland (10):
lib/drm-uapi: sync drm_mode.h DMA 3D LUT colorop uAPI lib/igt_kms: add DMA 3D LUT colorop properties tests/kms_colorop: share writeback and pixel helpers tests/kms_colorop: add a DMA 3D LUT colorop test tests/kms_colorop_dma: add negative DMA 3D LUT tests tests/kms_colorop_dma: test implicit fencing of DMA 3D LUT
framebuffers
tests/kms_colorop_dma: test scanout and DMA 3D LUT implicit fences
together
tests/kms_colorop_dma: test a merged in-fence covering DMA 3D LUT
producers
tests/kms_colorop_dma: exercise DMA 3D LUT framebuffer transitions tests/kms_colorop_dma: test DMA 3D LUT framebuffer removal

 include/drm-uapi/drm_mode.h       |   79 +++
 lib/igt_kms.c                     |    5 +-
 lib/igt_kms.h                     |    3 +
 tests/intel-ci/i915.blocklist.txt |    1 +
 tests/intel-ci/xe.blocklist.txt   |    1 +
 tests/kms_colorop.c               |  146 +---
 tests/kms_colorop_dma.c           | 1103 +++++++++++++++++++++++++++++
 tests/kms_colorop_helper.c        |  279 ++++++++
 tests/kms_colorop_helper.h        |   13 +
 tests/meson.build                 |    2 +
 10 files changed, 1489 insertions(+), 143 deletions(-)
 create mode 100644 tests/kms_colorop_dma.c

--
2.56.0