video: fbdev: hyperv_fb: Allow resolutions with size > 64 MB for Gen1
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Wed, 27 Apr 2022 13:47:53 +0000 (06:47 -0700)
committerHelge Deller <deller@gmx.de>
Thu, 19 May 2022 09:05:31 +0000 (11:05 +0200)
commitc4b4d7047f16a8d138ce76da65faefb7165736f2
tree90693e3c19b45a5ce1eb98846a2a51d642a03ee9
parent42226c989789d8da4af1de0c31070c96726d990c
video: fbdev: hyperv_fb: Allow resolutions with size > 64 MB for Gen1

This patch fixes a bug where GEN1 VMs doesn't allow resolutions greater
than 64 MB size (eg 7680x4320). Unnecessary PCI check limits Gen1 VRAM
to legacy PCI BAR size only (ie 64MB). Thus any, resolution requesting
greater then 64MB (eg 7680x4320) would fail. MMIO region assigning this
memory shouldn't be limited by PCI bar size.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/hyperv_fb.c