** Description changed:

  We identified a problem that is causing slow logging to the console for
  customers.
  
  The following commit resolves this issue as well as other cache relates 
issues:
  325073ae3485 ("video: hyperv_fb: Fix the cache type when mapping the VRAM")
+ 
+ (marcelo.cerri: it's actually commit id
+ 5f1251a48c17b54939d7477305e39679a565382c in the mainline kernel)
  
  Patch details from it's commit message:
  
  x86 Hyper-V used to essentially always overwrite the effective cache type
  of guest memory accesses to WB. This was problematic in cases where there
  is a physical device assigned to the VM, since that often requires that
  the VM should have control over cache types. Thus, on newer Hyper-V since
  2018, Hyper-V always honors the VM's cache type, but unexpectedly Linux VM
  users start to complain that Linux VM's VRAM becomes very slow, and it
  turns out that Linux VM should not map the VRAM uncacheable by ioremap().
  Fix this slowness issue by using ioremap_cache().
  
  With this change, the VRAM on new Hyper-V is as fast as regular RAM, so
  it's no longer necessary to use the hacks we added to mitigate the
  slowness, i.e. we no longer need to allocate physical memory and use
  it to back up the VRAM in Generation-1 VM, and we also no longer need to
  allocate physical memory to back up the framebuffer in a Generation-2 VM
  and copy the framebuffer to the real VRAM. A further big change will
  address these for v5.11.
  
- 
  Microsoft would like to request this patch in all supported releases.

** Also affects: linux-azure (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: linux-azure (Ubuntu Groovy)
   Importance: Undecided
       Status: New

** Also affects: linux-azure (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Changed in: linux-azure (Ubuntu)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

** Changed in: linux-azure (Ubuntu Focal)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

** Changed in: linux-azure (Ubuntu Groovy)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

** Also affects: linux-azure-4.15 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: linux-azure-4.15 (Ubuntu)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

** Changed in: linux-azure (Ubuntu Bionic)
       Status: New => Invalid

** Changed in: linux-azure-4.15 (Ubuntu Focal)
       Status: New => Invalid

** Changed in: linux-azure-4.15 (Ubuntu Groovy)
       Status: New => Invalid

** Changed in: linux-azure-4.15 (Ubuntu Bionic)
     Assignee: (unassigned) => Marcelo Cerri (mhcerri)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1908569

Title:
  video: hyperv_fb: Fix the cache type when mapping the VRAM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1908569/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to