1. 27 1月, 2020 1 次提交
  2. 22 11月, 2019 1 次提交
    • W
      video: hyperv: hyperv_fb: Support deferred IO for Hyper-V frame buffer driver · d21987d7
      Wei Hu 提交于
      Without deferred IO support, hyperv_fb driver informs the host to refresh
      the entire guest frame buffer at fixed rate, e.g. at 20Hz, no matter there
      is screen update or not. This patch supports deferred IO for screens in
      graphics mode and also enables the frame buffer on-demand refresh. The
      highest refresh rate is still set at 20Hz.
      
      Currently Hyper-V only takes a physical address from guest as the starting
      address of frame buffer. This implies the guest must allocate contiguous
      physical memory for frame buffer. In addition, Hyper-V Gen 2 VMs only
      accept address from MMIO region as frame buffer address. Due to these
      limitations on Hyper-V host, we keep a shadow copy of frame buffer
      in the guest. This means one more copy of the dirty rectangle inside
      guest when doing the on-demand refresh. This can be optimized in the
      future with help from host. For now the host performance gain from deferred
      IO outweighs the shadow copy impact in the guest.
      Signed-off-by: NWei Hu <weh@microsoft.com>
      Reviewed-by: NDexuan Cui <decui@microsoft.com>
      Reviewed-by: NMichael Kelley <mikelley@microsoft.com>
      Signed-off-by: NSasha Levin <sashal@kernel.org>
      d21987d7
  3. 04 9月, 2019 1 次提交
  4. 31 7月, 2019 1 次提交
  5. 21 6月, 2019 1 次提交
  6. 15 6月, 2019 2 次提交
  7. 07 6月, 2019 7 次提交
  8. 21 5月, 2019 1 次提交
  9. 12 4月, 2019 1 次提交
  10. 03 4月, 2019 1 次提交
  11. 01 4月, 2019 3 次提交
  12. 22 1月, 2019 1 次提交
    • F
      powerpc, fbdev: Use NV_CMODE and NV_VMODE only when CONFIG_PPC32 && CONFIG_PPC_PMAC && CONFIG_NVRAM · 066ac5c3
      Finn Thain 提交于
      This patch addresses inconsistencies in Mac framebuffer drivers and their
      use of Kconfig symbols relating to NVRAM, so PPC64 can use CONFIG_NVRAM.
      
      The defined(CONFIG_NVRAM) condition is replaced with the weaker
      IS_REACHABLE(CONFIG_NVRAM) condition, like atari_scsi.
      
      Macintosh framebuffer drivers use default settings for color mode and
      video mode that are found in NVRAM. On PCI Macs, MacOS stores display
      settings in the Name Registry (NR) partition in NVRAM*. On NuBus Macs,
      there is no NR partition and MacOS stores display mode settings in PRAM**.
      
      Early-model Macs are the ones most likely to benefit from these settings,
      since they are more likely to have a fixed-frequency monitor connected to
      the built-in framebuffer device. Moreover, a single NV_CMODE value and
      a single NV_VMODE value provide for only one display.
      
      The NV_CMODE and NV_VMODE constants are apparently offsets into the NR
      partition for Old World machines. This also suggests that these defaults
      are not useful on later models. The NR partition seems to be optional on
      New World machines. CONFIG_NVRAM cannot be enabled on PPC64 at present.
      
      It is safe to say that NVRAM support in PowerMac fbdev drivers is only
      applicable to CONFIG_PPC32 so make this condition explicit. This means
      matroxfb driver won't crash on PPC64 when CONFIG_NVRAM becomes available
      there.
      
      For imsttfb, add the missing CONFIG_NVRAM test to prevent a build failure,
      since PPC64 does not implement nvram_read_byte(). Also add a missing
      machine_is(powermac) check. Change the inconsistent dependency on
      CONFIG_PPC and the matching #ifdef tests to CONFIG_PPC_PMAC.
      
      For valkyriefb, to improve clarity and consistency with the other PowerMac
      fbdev drivers, test for CONFIG_PPC_PMAC instead of !CONFIG_MAC. Remove a
      bogus comment regarding PRAM.
      
      * See GetPreferredConfiguration and SavePreferredConfiguration in
      "Designing PCI Cards and Drivers for Power Macintosh Computers".
      
      ** See SetDefaultMode and GetDefaultMode in "Designing Cards and Drivers
      for the Macintosh Family".
      Signed-off-by: NFinn Thain <fthain@telegraphics.com.au>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      066ac5c3
  13. 21 12月, 2018 2 次提交
  14. 24 10月, 2018 2 次提交
  15. 08 10月, 2018 2 次提交
  16. 15 5月, 2018 1 次提交
  17. 14 5月, 2018 3 次提交
  18. 25 4月, 2018 1 次提交
  19. 28 3月, 2018 1 次提交
  20. 26 3月, 2018 1 次提交
  21. 13 3月, 2018 1 次提交
  22. 02 2月, 2018 1 次提交
  23. 30 12月, 2017 1 次提交
  24. 05 12月, 2017 1 次提交
  25. 10 11月, 2017 1 次提交
  26. 21 8月, 2017 1 次提交