]> 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)
commit41f07b7bd8c257741d867df257c1730e7f331ecf
tree90693e3c19b45a5ce1eb98846a2a51d642a03ee9
parent5f5b2831b70551bf649e397c96f0601d15240ab7
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