mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
a34255b795
Removed upstreamed: bcm27xx/patches-5.15/950-0446-drm-vc4-Fix-timings-for-VEC-modes.patch[1] Manually rebased: patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch All other patches automatically rebased 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.75&id=2810061452f9b748b096ad023d318690ca519aa3 Build system: x86_64 Build-tested: bcm2711/RPi4B, mt7622/RT3200 Run-tested: bcm2711/RPi4B, mt7622/RT3200 Signed-off-by: John Audia <therealgraysky@proton.me>
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 6c276e5d2c0ee362e4b860845401e095773fad7f Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Thu, 13 Jan 2022 11:30:42 +0000
|
|
Subject: [PATCH] drm/vc4: Disable Gamma control on HVS5 due to issues
|
|
writing the table
|
|
|
|
Still under investigation, but the conditions under which the HVS
|
|
will accept values written to the gamma PWL are not straightforward.
|
|
|
|
Disable gamma on HVS5 again until it can be resolved to avoid
|
|
gamma being enabled with an incorrect table.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_crtc.c | 8 +-------
|
|
1 file changed, 1 insertion(+), 7 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_crtc.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_crtc.c
|
|
@@ -1166,15 +1166,9 @@ int vc4_crtc_init(struct drm_device *drm
|
|
|
|
if (!vc4->hvs->hvs5) {
|
|
drm_mode_crtc_set_gamma_size(crtc, ARRAY_SIZE(vc4_crtc->lut_r));
|
|
- } else {
|
|
- /* This is a lie for hvs5 which uses a 16 point PWL, but it
|
|
- * allows for something smarter than just 16 linearly spaced
|
|
- * segments. Conversion is done in vc5_hvs_update_gamma_lut.
|
|
- */
|
|
- drm_mode_crtc_set_gamma_size(crtc, 256);
|
|
+ drm_crtc_enable_color_mgmt(crtc, 0, false, crtc->gamma_size);
|
|
}
|
|
|
|
- drm_crtc_enable_color_mgmt(crtc, 0, false, crtc->gamma_size);
|
|
|
|
if (!vc4->hvs->hvs5) {
|
|
/* We support CTM, but only for one CRTC at a time. It's therefore
|