summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEvanshenf <archwse@gmail.com>2026-10-03 09:00:13 +0000
committerIcenowy Zheng <zhengxingda@iscas.ac.cn>2026-10-31 12:24:09 +0800
commitfa66daafbb6d5c984de2502809ff533ab66f6573 (patch)
treec285b27dc49881b5dbbba12ffc9e99cf6c97ec8e /include/linux
parent81383bd290a18f06ccf9b0bfb29e1a3ef73d9357 (diff)
drm/loongson: Fix framebuffer selection in async cursor updates
An asynchronous cursor update swaps the new framebuffer into the live plane state. However, the driver reads both old_fb and new_fb from the live state before this swap. When an enabled cursor changes buffers, the address-update condition is therefore false and the hardware continues scanning the previous buffer. Read new_fb from the new plane state before swapping the framebuffer references. This updates the hardware address when the framebuffer changes while retaining the existing behavior for cursor movement. Verified on a Loongson 3A5000 with LS7A2000 using 32x32 and 64x64 legacy cursor updates. Callback counters and read-only register observations confirmed the asynchronous path, the stale address before the change, and the new address afterward. Same-framebuffer movement and cursor disable/re-enable also passed, with the primary framebuffer and mode unchanged. AI assistance was used to investigate the existing report, prepare the fix and test tools, run the build and hardware comparison, and draft this message. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/r/202311152357.4KFS0M8f-lkp@intel.com/ Fixes: f39db26c5428 ("drm: Add kms driver for loongson display controller") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Evanshenf <archwse@gmail.com> Reviewed-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Reviewed-by: Qianhai Wu <wuqianhai@loongson.cn> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> Link: https://patch.msgid.link/20261003090006.4e29fdce9913-1-archwse@gmail.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions