Skip to content

Commit aca7c13

Browse files
committed
parisc: fbdev/stifb: Align graphics memory size to 4MB
Independend of the current graphics resolution, adjust the reported graphics card memory size to the next 4MB boundary. This fixes the fbtest program which expects a naturally aligned size. Signed-off-by: Helge Deller <[email protected]> Cc: <[email protected]>
1 parent 027c3d3 commit aca7c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/stifb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
12981298

12991299
/* limit fbsize to max visible screen size */
13001300
if (fix->smem_len > yres*fix->line_length)
1301-
fix->smem_len = yres*fix->line_length;
1301+
fix->smem_len = ALIGN(yres*fix->line_length, 4*1024*1024);
13021302

13031303
fix->accel = FB_ACCEL_NONE;
13041304

0 commit comments

Comments
 (0)