]> git.baikalelectronics.ru Git - kernel.git/commit
drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Sat, 21 May 2022 14:23:39 +0000 (07:23 -0700)
committerDeepak Rawat <drawat.floss@gmail.com>
Mon, 30 May 2022 22:25:36 +0000 (15:25 -0700)
commit715176e95d708a40867086876a14e005e7b0a8c6
tree9e2437d64611a5fc786364fc32140ca57b1be639
parentceb5702b0f8cf2117cbedc2bc8e4a90d5598230d
drm/hyperv : Removing the restruction of VRAM allocation with PCI bar size

There were two different approaches getting used in this driver to
allocate vram:
1. VRAM allocation from PCI region for Gen1
2. VRAM alloaction from MMIO region for Gen2
First approach limilts the vram to PCI BAR size, which is 64 MB in most
legacy systems. This limits the maximum resolution to be restricted to
64 MB size, and with recent conclusion on fbdev issue its concluded to have
similar allocation strategy for both Gen1 and Gen2. This patch unifies
the Gen1 and Gen2 vram allocation strategy.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Deepak Rawat <drawat.floss@gmail.com>
Signed-off-by: Deepak Rawat <drawat.floss@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1653143019-20032-1-git-send-email-ssengar@linux.microsoft.com
drivers/gpu/drm/hyperv/hyperv_drm_drv.c