]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/solomon: Fix page start when updating rectangle in page addressing mode
authorFrancesco Lavra <flavra@baylibre.com>
Tue, 10 Feb 2026 18:09:32 +0000 (19:09 +0100)
committerJavier Martinez Canillas <javierm@redhat.com>
Thu, 26 Feb 2026 12:42:09 +0000 (13:42 +0100)
commit36d9579fed6c9429aa172f77bd28c58696ce8e2b
treea1243537513b93921a09b6a6e1aa8bc5a26163b2
parent75c151ceaacf5ca8f2f34ebf863d88002fb12587
drm/solomon: Fix page start when updating rectangle in page addressing mode

In page addressing mode, the pixel values of a dirty rectangle must be sent
to the display controller one page at a time. The range of pages
corresponding to a given rectangle is being incorrectly calculated as if
the Y value of the top left coordinate of the rectangle was 0. This can
result in rectangle updates being displayed on wrong parts of the screen.

Fix the above issue by consolidating the start page calculation in a single
place at the beginning of the update_rect function, and using the
calculated value for all addressing modes.

Fixes: b0daaa5cfaa5 ("drm/ssd130x: Support page addressing mode")
Signed-off-by: Francesco Lavra <flavra@baylibre.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20260210180932.736502-1-flavra@baylibre.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/solomon/ssd130x.c