diff options
author | Helge Deller <deller@gmx.de> | 2022-10-14 10:13:55 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-10-14 10:45:12 +0200 |
commit | aca7c13d3bee81a968337a5515411409ae9d095d (patch) | |
tree | 092b9a88a62d0376f2fa4c83ffd30622f13998e0 /drivers/video | |
parent | 027c3d345e2a1ea61d6e4506a250eb392e6e7b18 (diff) | |
download | linux-aca7c13d3bee81a968337a5515411409ae9d095d.tar.bz2 |
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 <deller@gmx.de>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/stifb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c index 38a861e22c33..7753e586e65a 100644 --- a/drivers/video/fbdev/stifb.c +++ b/drivers/video/fbdev/stifb.c @@ -1298,7 +1298,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref) /* limit fbsize to max visible screen size */ if (fix->smem_len > yres*fix->line_length) - fix->smem_len = yres*fix->line_length; + fix->smem_len = ALIGN(yres*fix->line_length, 4*1024*1024); fix->accel = FB_ACCEL_NONE; |