[PATCH] video: fbconsole: implement non-fullscreen fbconsole

2023-04-05 Thread Philipp Zabel
Let fbconsole cover only part of the screen. Configurable via margin.{left,top,right,bottom} device parameters. Signed-off-by: Philipp Zabel --- drivers/video/fbconsole.c | 115 +- 1 file changed, 101 insertions(+), 14 deletions(-) diff --git a/drivers/video/

[PATCH v2 2/3] graphic_utils: add optional damage tracking

2023-04-05 Thread Philipp Zabel
Annotate framebuffer updates with damage rectangles so drivers may implement partial updates for displays with an integrated framebuffer. This can speed up fbconsole. Signed-off-by: Philipp Zabel --- v2: call fb_damage() in graphic_utils instead of fbconsole --- lib/gui/graphic_utils.c | 16

[PATCH v2 3/3] video: mipi_dbi: add damage tracking and partial updates

2023-04-05 Thread Philipp Zabel
Track framebuffer damage with a simple rectangle that can be used to issue partial updates during fb_flush. This speeds up fbconsole. Signed-off-by: Philipp Zabel --- v2: make rect parameter to fb_damage const --- drivers/video/mipi_dbi.c | 83 -- drivers/vi

[PATCH v2 1/3] video: fb: add optional damage tracking

2023-04-05 Thread Philipp Zabel
Add an optional fb_damage operation that drivers may use to accumulate damage on the framebuffer until fb_flush is called. The accumulated damage can be used to support partial updates for displays with an integrated framebuffer. Signed-off-by: Philipp Zabel --- v2: make rect parameter to fb_dama

Re: [PATCH 2/3] video: fbconsole: add optional damage tracking

2023-04-05 Thread Philipp Zabel
On Mi, 2023-04-05 at 13:13 +0200, Sascha Hauer wrote: > On Mon, Apr 03, 2023 at 02:18:43PM +0200, Philipp Zabel wrote: [...] > > + gu_screen_blit_area(priv->sc, rect.x1, rect.y1, > >   priv->font->width, priv->font->height); > > + fb_damage(priv->fb, &rect); > > Does it make

Re: [PATCH 1/3] video: fb: add optional damage tracking

2023-04-05 Thread Philipp Zabel
On Di, 2023-04-04 at 14:24 +0200, Ahmad Fatoum wrote: > On 03.04.23 14:18, Philipp Zabel wrote: > > Add an optional fb_damage operation that drivers may use to accumulate > > damage on the framebuffer until fb_flush is called. The accumulated > > damage can be used to support partial updates for di

Re: [PATCH 2/3] video: fbconsole: add optional damage tracking

2023-04-05 Thread Sascha Hauer
On Mon, Apr 03, 2023 at 02:18:43PM +0200, Philipp Zabel wrote: > Annotate framebuffer updates with damage rectangles so drivers may > implement partial updates for displays with an integrated framebuffer. > > Signed-off-by: Philipp Zabel > --- > drivers/video/fbconsole.c | 32 +++

[PATCH] fastboot: avoid console_countdown_abort for getvar request

2023-04-05 Thread Marco Felsch
Don't abort the console countdown in case of 'fastboot getvar' requests. Most the time the host just want to query information but don't want to abort the boot. Therefore skip the abort in case of getvar requests and abort it in all other cases. Suggested-by: Ahmad Fatoum Signed-off-by: Marco Fel