diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-08-21 10:54:34 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-08-21 19:07:07 +0200 |
commit | 8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch) | |
tree | 1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0624-drm-vc4-FKMS-Change-of-Broadcast-RGB-mode-needs-a-mo.patch | |
parent | 33b6885975ce376ff075362b7f0890326043111b (diff) | |
download | upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.gz upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.bz2 upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.zip |
bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted
patches, wireless patches and defconfig patches.
bcm2708: boot tested on RPi B+ v1.2
bcm2709: boot tested on RPi 4B v1.1 4G
bcm2711: boot tested on RPi 4B v1.1 4G
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0624-drm-vc4-FKMS-Change-of-Broadcast-RGB-mode-needs-a-mo.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.10/950-0624-drm-vc4-FKMS-Change-of-Broadcast-RGB-mode-needs-a-mo.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0624-drm-vc4-FKMS-Change-of-Broadcast-RGB-mode-needs-a-mo.patch b/target/linux/bcm27xx/patches-5.10/950-0624-drm-vc4-FKMS-Change-of-Broadcast-RGB-mode-needs-a-mo.patch new file mode 100644 index 0000000000..6487b5a728 --- /dev/null +++ b/target/linux/bcm27xx/patches-5.10/950-0624-drm-vc4-FKMS-Change-of-Broadcast-RGB-mode-needs-a-mo.patch @@ -0,0 +1,62 @@ +From caa5d5dac396f5bfaef8bd65c1c39f4ff03a504a Mon Sep 17 00:00:00 2001 +From: Dave Stevenson <dave.stevenson@raspberrypi.com> +Date: Fri, 21 May 2021 11:15:04 +0100 +Subject: [PATCH] drm/vc4: FKMS: Change of Broadcast RGB mode needs a + mode change + +The Broadcast RGB (aka HDMI limited/full range) property is only +notified to the firmware on mode change, so this needs to be +signalled when set. + +https://github.com/raspberrypi/firmware/issues/1580 + +Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> +--- + drivers/gpu/drm/vc4/vc4_firmware_kms.c | 29 ++++++++++++++++++++++++++ + 1 file changed, 29 insertions(+) + +--- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c ++++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c +@@ -1549,6 +1549,34 @@ int vc4_connector_atomic_set_property(st + return -EINVAL; + } + ++int vc4_connector_atomic_check(struct drm_connector *connector, ++ struct drm_atomic_state *state) ++{ ++ struct drm_connector_state *old_state = ++ drm_atomic_get_old_connector_state(state, connector); ++ struct vc4_fkms_connector_state *vc4_old_state = ++ to_vc4_fkms_connector_state(old_state); ++ struct drm_connector_state *new_state = ++ drm_atomic_get_new_connector_state(state, connector); ++ struct vc4_fkms_connector_state *vc4_new_state = ++ to_vc4_fkms_connector_state(new_state); ++ struct drm_crtc *crtc = new_state->crtc; ++ ++ if (!crtc) ++ return 0; ++ ++ if (vc4_old_state->broadcast_rgb != vc4_new_state->broadcast_rgb) { ++ struct drm_crtc_state *crtc_state; ++ ++ crtc_state = drm_atomic_get_crtc_state(state, crtc); ++ if (IS_ERR(crtc_state)) ++ return PTR_ERR(crtc_state); ++ ++ crtc_state->mode_changed = true; ++ } ++ return 0; ++} ++ + static void vc4_hdmi_connector_reset(struct drm_connector *connector) + { + drm_atomic_helper_connector_reset(connector); +@@ -1569,6 +1597,7 @@ static const struct drm_connector_funcs + static const struct drm_connector_helper_funcs vc4_fkms_connector_helper_funcs = { + .get_modes = vc4_fkms_connector_get_modes, + .best_encoder = vc4_fkms_connector_best_encoder, ++ .atomic_check = vc4_connector_atomic_check, + }; + + static const struct drm_connector_helper_funcs vc4_fkms_lcd_conn_helper_funcs = { |