mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 10:50:53 +07:00
offb: Fix bug in calculating requested vram size
We used to try to request 8 times more vram than needed, which would fail if the card has a too small BAR (observed with qemu & kvm). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: stable@kernel.org
This commit is contained in:
parent
eba3d97db8
commit
c055fe0797
@ -381,7 +381,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
|
||||
int pitch, unsigned long address,
|
||||
int foreign_endian, struct device_node *dp)
|
||||
{
|
||||
unsigned long res_size = pitch * height * (depth + 7) / 8;
|
||||
unsigned long res_size = pitch * height;
|
||||
struct offb_par *par = &default_par;
|
||||
unsigned long res_start = address;
|
||||
struct fb_fix_screeninfo *fix;
|
||||
|
Loading…
Reference in New Issue
Block a user