]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7fcec19a1caf261aec6f65e8b7f86bd582ef3c60
tree90693e3c19b45a5ce1eb98846a2a51d642a03ee9
parent06e6170e0ae33ea1ff98f01501371e23c4eee66a
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