Skip to content

RFC drm/i915/color: 3D LUT fixes

Matthew Schwartz dri-devel intel-gfx intel-xe lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915/color: only let the owning plane program the 3D LUTdrivers/gpu/drm/i915/display/intel_color.c drivers/gpu/drm/i915/display/intel_color.h drivers/gpu/drm/i915/display/intel_color_pipeline.c+13 -100 replies
2/2drm/i915/color: load the 3D LUT in the order the hardware indexes itdrivers/gpu/drm/i915/display/intel_color.c drivers/gpu/drm/i915/display/intel_color.h drivers/gpu/drm/i915/display/intel_color_pipeline.c+18 -40 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChaitanya Kumar Borah
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/2] drm/i915/color: 3D LUT fixes

Two fixes for the 3D LUT support that came with the plane color pipeline. I ran into both while bringing up the pipe-bound 3D LUT on Lunar Lake for gamescope, using out-of-tree patches that expose it through the CRTC color pipeline proposed in [1].

Patch 1 stops planes that do not own the 3D LUT from rewriting LUT_3D_CTL. On Lunar Lake an enable bit set by hand is cleared by the next plane update. Reading the code, the same write from any non-primary plane on Xe3p_LPD disables the LUT the primary plane enabled.

Patch 2 writes the table in the order the hardware reads it. The colorop blob has red as the fastest axis and the hardware has blue. I measured this on Lunar Lake only, with the LUT bound to the pipe, by writing LUT_3D_INDEX and LUT_3D_DATA from userspace and decoding the pipe CRC of solid color frames. I have no Nova Lake hardware, so the plane-bound case is unchecked. If the plane binding indexes the table differently this patch is wrong for it, and I would appreciate a pointer to what Bspec says about the entry order.

[1] https://lore.kernel.org/all/[email protected]/

Matthew Schwartz (2):
drm/i915/color: only let the owning plane program the 3D LUT drm/i915/color: load the 3D LUT in the order the hardware indexes it

 drivers/gpu/drm/i915/display/intel_color.c    | 28 ++++++++++++++++---
 drivers/gpu/drm/i915/display/intel_color.h    |  5 ++++
 .../drm/i915/display/intel_color_pipeline.c   | 12 ++------
 3 files changed, 31 insertions(+), 14 deletions(-)

base-commit: fb078d17b966f7a24720b6e3a5de06d43c2e184a

Signature · 1 line
2.56.1