Skip to content

Commit d5beb31

Browse files
committed
Merge tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
Pull Hyper-V fix from Wei Liu: "One patch from Dexuan to fix VRAM cache type in Hyper-V framebuffer driver" * tag 'hyperv-fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux: video: hyperv_fb: Fix the cache type when mapping the VRAM
2 parents 418baf2 + 5f1251a commit d5beb31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/video/fbdev/hyperv_fb.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,12 @@ static int hvfb_getmem(struct hv_device *hdev, struct fb_info *info)
10931093
goto err1;
10941094
}
10951095

1096-
fb_virt = ioremap(par->mem->start, screen_fb_size);
1096+
/*
1097+
* Map the VRAM cacheable for performance. This is also required for
1098+
* VM Connect to display properly for ARM64 Linux VM, as the host also
1099+
* maps the VRAM cacheable.
1100+
*/
1101+
fb_virt = ioremap_cache(par->mem->start, screen_fb_size);
10971102
if (!fb_virt)
10981103
goto err2;
10991104

0 commit comments

Comments
 (0)