On my RX 560 (Polaris11, DCE 11.2) with LibreELEC 12.2.1 (kernel 6.16.12) and a Samsung QN85BA,
enabling "HDR display" in Kodi turned the whole picture green, OSD included.
Cause: older amdgpu kernels are missing the BT.2020 colour tables for DCE GPUs (Polaris and older),
so HDR sent as YCbCr comes out green. It's fixed upstream by kernel commit 51e6668ab4ba
("drm/amd/display: add missing CSC entries for BT.2020 for DCE IPs") plus a later fix to its matrices,
so newer kernels (e.g. the LibreELEC 13 builds) should be fine. 12.2 doesn't have it.
Workaround for 12.2: make the driver think the TV can't take YCbCr, so it sends RGB (which works).
1. Dump the TV's EDID: cat /sys/class/drm/card0-HDMI-A-1/edid > /storage/hdr-fix/edid-original.bin
2. In the CTA-861 extension block (second 128 bytes), change byte 3 from 0xf0 to 0xc0
(clears the YCbCr 4:4:4/4:2:2 flags), then fix that block's checksum (last byte).
Save as /storage/hdr-fix/edid-rgb.bin
3. /storage/.config/autostart.sh:
D=/sys/kernel/debug/dri/0/HDMI-A-1
[ -f /storage/hdr-fix/edid-rgb.bin ] && [ -e $D/edid_override ] && cat /storage/hdr-fix/edid-rgb.bin > $D/edid_override && echo 1 > $D/trigger_hotplug
4. Reboot. With Samsung "Input Signal Plus" on for that HDMI port I get HDR10 at 12-bit BT2020_RGB with correct colours.
Notes: dump the EDID again after changing TV settings like Input Signal Plus (it changes the EDID).
Use printf reset (not echo) when writing reset to edid_override. Remove the workaround once you're on a kernel with the fix.