diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-10-05 20:51:18 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2021-10-05 23:54:18 +0200 |
commit | eb3a99bc183e36922b9e8314620e4e64964bcaf0 (patch) | |
tree | 9f810d6d91e43a3e3dd05ba6b0c9b450b96be5bc /target/linux/bcm27xx/patches-5.4/950-0104-drm-vc4-Skip-SET_CURSOR_INFO-when-the-cursor-content.patch | |
parent | 81ba544f88e6fd3252fb2f7dd9103c4bd9f83bfb (diff) | |
download | upstream-eb3a99bc183e36922b9e8314620e4e64964bcaf0.tar.gz upstream-eb3a99bc183e36922b9e8314620e4e64964bcaf0.tar.bz2 upstream-eb3a99bc183e36922b9e8314620e4e64964bcaf0.zip |
bcm27xx: remove obsolete kernel 5.4
With the upgrade to kernel 5.10 per default the old version is no
longer required to be in tree.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.4/950-0104-drm-vc4-Skip-SET_CURSOR_INFO-when-the-cursor-content.patch')
-rw-r--r-- | target/linux/bcm27xx/patches-5.4/950-0104-drm-vc4-Skip-SET_CURSOR_INFO-when-the-cursor-content.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/target/linux/bcm27xx/patches-5.4/950-0104-drm-vc4-Skip-SET_CURSOR_INFO-when-the-cursor-content.patch b/target/linux/bcm27xx/patches-5.4/950-0104-drm-vc4-Skip-SET_CURSOR_INFO-when-the-cursor-content.patch deleted file mode 100644 index ec73eed9f7..0000000000 --- a/target/linux/bcm27xx/patches-5.4/950-0104-drm-vc4-Skip-SET_CURSOR_INFO-when-the-cursor-content.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 7682cc9fdcf765f85a4c91b603840c4db06cb45b Mon Sep 17 00:00:00 2001 -From: Eric Anholt <eric@anholt.net> -Date: Mon, 5 Feb 2018 18:02:30 +0000 -Subject: [PATCH] drm/vc4: Skip SET_CURSOR_INFO when the cursor - contents didn't change. - -Signed-off-by: Eric Anholt <eric@anholt.net> ---- - drivers/gpu/drm/vc4/vc4_firmware_kms.c | 30 +++++++++++++++++--------- - 1 file changed, 20 insertions(+), 10 deletions(-) - ---- a/drivers/gpu/drm/vc4/vc4_firmware_kms.c -+++ b/drivers/gpu/drm/vc4/vc4_firmware_kms.c -@@ -204,10 +204,6 @@ static void vc4_cursor_plane_atomic_upda - state->crtc_y, - 0 - }; -- u32 packet_info[] = { state->crtc_w, state->crtc_h, -- 0, /* unused */ -- bo->paddr + fb->offsets[0], -- 0, 0, /* hotx, hoty */}; - WARN_ON_ONCE(fb->pitches[0] != state->crtc_w * 4); - - DRM_DEBUG_ATOMIC("[PLANE:%d:%s] update %dx%d cursor at %d,%d (0x%08x/%d)", -@@ -232,12 +228,26 @@ static void vc4_cursor_plane_atomic_upda - if (ret || packet_state[0] != 0) - DRM_ERROR("Failed to set cursor state: 0x%08x\n", packet_state[0]); - -- ret = rpi_firmware_property(vc4->firmware, -- RPI_FIRMWARE_SET_CURSOR_INFO, -- &packet_info, -- sizeof(packet_info)); -- if (ret || packet_info[0] != 0) -- DRM_ERROR("Failed to set cursor info: 0x%08x\n", packet_info[0]); -+ /* Note: When the cursor contents change, the modesetting -+ * driver calls drm_mode_cursor_univeral() with -+ * DRM_MODE_CURSOR_BO, which means a new fb will be allocated. -+ */ -+ if (!old_state || -+ state->crtc_w != old_state->crtc_w || -+ state->crtc_h != old_state->crtc_h || -+ fb != old_state->fb) { -+ u32 packet_info[] = { state->crtc_w, state->crtc_h, -+ 0, /* unused */ -+ bo->paddr + fb->offsets[0], -+ 0, 0, /* hotx, hoty */}; -+ -+ ret = rpi_firmware_property(vc4->firmware, -+ RPI_FIRMWARE_SET_CURSOR_INFO, -+ &packet_info, -+ sizeof(packet_info)); -+ if (ret || packet_info[0] != 0) -+ DRM_ERROR("Failed to set cursor info: 0x%08x\n", packet_info[0]); -+ } - } - - static void vc4_cursor_plane_atomic_disable(struct drm_plane *plane, |