]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:15 +0000 (18:36 +0200)
commitf384ae98ecc585dab375726cc7032eb2ef85356e
tree5ff4e696a52a4896334b05504a575108da4a6ab2
parentd9f194252736aad9c275a96b5013877f7e0cda03
video: fbdev: hyperv_fb: Allow resolutions with size > 64 MB for Gen1

[ Upstream commit 41f07b7bd8c257741d867df257c1730e7f331ecf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/hyperv_fb.c