diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2024-05-10 13:19:19 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2024-06-18 18:52:49 +0200 |
commit | 8c405cdcccadc824cfdd189550cb0fcedacd8245 (patch) | |
tree | aa90918a4153c6894c2fd591d8906ea09fca49b7 /target/linux/bcm27xx/patches-6.6/950-0013-drm-Check-whether-the-gamma-lut-has-changed-before-u.patch | |
parent | e8067fa108c5dff4c85cd6978b3b2cb3a1719641 (diff) | |
download | openwrt-8c405cdcccadc824cfdd189550cb0fcedacd8245.tar.gz openwrt-8c405cdcccadc824cfdd189550cb0fcedacd8245.tar.bz2 openwrt-8c405cdcccadc824cfdd189550cb0fcedacd8245.zip |
bcm27xx: add 6.6 kernel patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.34..rpi-6.1.y
Some patches needed rebasing and, as usual, the applied and reverted, wireless
drivers, Github workflows, READMEs and defconfigs patches were removed.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-6.6/950-0013-drm-Check-whether-the-gamma-lut-has-changed-before-u.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-6.6/950-0013-drm-Check-whether-the-gamma-lut-has-changed-before-u.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-6.6/950-0013-drm-Check-whether-the-gamma-lut-has-changed-before-u.patch b/target/linux/bcm27xx/patches-6.6/950-0013-drm-Check-whether-the-gamma-lut-has-changed-before-u.patch new file mode 100644 index 0000000000..a5307a1487 --- /dev/null +++ b/target/linux/bcm27xx/patches-6.6/950-0013-drm-Check-whether-the-gamma-lut-has-changed-before-u.patch @@ -0,0 +1,30 @@ +From 8101479299dec8b984ee1cef2224d67c8ae9921f Mon Sep 17 00:00:00 2001 +From: Dave Stevenson <dave.stevenson@raspberrypi.com> +Date: Tue, 2 Nov 2021 16:01:36 +0000 +Subject: [PATCH 0013/1085] drm: Check whether the gamma lut has changed before + updating + +drm_crtc_legacy_gamma_set updates the gamma_lut blob unconditionally, +which leads to unnecessary reprogramming of hardware. + +Check whether the blob contents has actually changed before +signalling that it has been updated. + +Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> +--- + drivers/gpu/drm/drm_color_mgmt.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +--- a/drivers/gpu/drm/drm_color_mgmt.c ++++ b/drivers/gpu/drm/drm_color_mgmt.c +@@ -330,7 +330,9 @@ static int drm_crtc_legacy_gamma_set(str + replaced = drm_property_replace_blob(&crtc_state->degamma_lut, + use_gamma_lut ? NULL : blob); + replaced |= drm_property_replace_blob(&crtc_state->ctm, NULL); +- replaced |= drm_property_replace_blob(&crtc_state->gamma_lut, ++ if (!crtc_state->gamma_lut || !crtc_state->gamma_lut->data || ++ memcmp(crtc_state->gamma_lut->data, blob_data, blob->length)) ++ replaced |= drm_property_replace_blob(&crtc_state->gamma_lut, + use_gamma_lut ? blob : NULL); + crtc_state->color_mgmt_changed |= replaced; + |