1. 06 3月, 2018 6 次提交
  2. 01 2月, 2018 1 次提交
  3. 04 1月, 2018 1 次提交
  4. 22 12月, 2017 2 次提交
  5. 28 11月, 2017 1 次提交
  6. 16 11月, 2017 9 次提交
  7. 14 9月, 2017 1 次提交
  8. 08 9月, 2017 1 次提交
  9. 15 8月, 2017 1 次提交
    • T
      drm/i915/gvt: Fix guest i915 full ppgtt blocking issue · 6b3816d6
      Tina Zhang 提交于
      Guest i915 full ppgtt functionality was blocking by an issue, which would
      lead to gpu hardware hang. Guest i915 driver may update the ppgtt table
      just before this workload is going to be submitted to the hardware by
      device model. This case wasn't handled well by device model before, due
      to the small time window between removing old ppgtt entry and adding the
      new one. Errors occur when the workload is executed by hardware during
      that small time window. This patch is to remove this time window by adding
      the new ppgtt entry first and then remove the old one.
      
      Changes in v2:
      - Move VGT_CAPS_FULL_PPGTT introduction to patch 2/4. (Joonas)
      
      Changes since v2:
      - Divide the whole patch set into two separate patch series, with one
        patch in i915 side to check guest i915 full ppgtt capability and enable
        it when this capability is supported by the device model, and the other
        one in gvt side which fixs the blocking issue and enables the device
        model to provide the capability to guest. And this patch focuses on gvt
        side. (Joonas)
      - Change the title from "reorder the shadow ppgtt update process by adding
        entry first" to "Fix guest i915 full ppgtt blocking issue". (Tina)
      
      Changes since v3:
      - Rebase to the latest branch.
      
      Changes since v4:
      - Tested by Tina Zhang.
      
      Changes since v5:
      - Rebase to the latest branch.
      
      v6:
      - Update full 48bit ppgtt definition
      
      Cc: Tina Zhang <tina.zhang@intel.com>
      Signed-off-by: NTina Zhang <tina.zhang@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      6b3816d6
  10. 10 8月, 2017 2 次提交
  11. 11 7月, 2017 1 次提交
  12. 08 6月, 2017 1 次提交
  13. 13 4月, 2017 1 次提交
    • Z
      drm/i915/gvt: Fix PTE write flush for taking runtime pm properly · 5ad59bf0
      Zhenyu Wang 提交于
      Make sure to take runtime pm when write PTE flush which ensure to
      write to hw properly. This fixes warning during mdev/vgpu creation
      which will do ggtt reset.
      
      ------------[ cut here ]------------
      WARNING: CPU: 1 PID: 9375 at drivers/gpu/drm/i915/intel_drv.h:1748 fwtable_write32+0x1c2/0x1e0 [i915]
       RPM wakelock ref not held during HW access
      Call Trace:
        ? dump_stack+0x5c/0x81
        ? __warn+0xbe/0xe0
        ? warn_slowpath_fmt+0x5a/0x80
        ? wake_up_klogd+0x37/0x40
        ? vprintk_emit+0x2ef/0x370
        ? fwtable_write32+0x1c2/0x1e0 [i915]
        ? gtt_set_entry64+0xbb/0xd0 [i915]
        ? intel_vgpu_reset_ggtt+0x88/0xf0 [i915]
        ? intel_vgpu_init_gtt+0xa5/0x4f0 [i915]
        ? intel_gvt_create_vgpu+0x1b5/0x250 [i915]
        ? kobject_put+0x1b/0x50
        ? intel_vgpu_create+0x4e/0x130 [kvmgt]
        ? mdev_device_create+0x186/0x2a0 [mdev]
        ? create_store+0xba/0xe0 [mdev]
        ? create_store+0xba/0xe0 [mdev]
        ? kernfs_fop_write+0x109/0x1a0
        ? kernfs_fop_write+0x109/0x1a0
        ? __vfs_write+0x33/0x160
        ? __fput+0x161/0x1d0
        ? vfs_write+0xb0/0x190
        ? SyS_write+0x52/0xc0
        ? exit_to_usermode_loop+0x7a/0xa0
        ? entry_SYSCALL_64_fastpath+0x1e/0xad
      
      v2: remove unrelated oops info
      
      v3: change to take runtime pm for ggtt reset instead of get/put for
          each pte write flush
      
      Fixes: d650ac06 ("drm/i915/gvt: reset the GGTT entry when vGPU created")
      Cc: Ping Gao <ping.a.gao@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      5ad59bf0
  14. 29 3月, 2017 1 次提交
  15. 21 3月, 2017 1 次提交
  16. 17 3月, 2017 1 次提交
    • T
      drm/i915/gvt: replace the gvt_err with gvt_vgpu_err · 695fbc08
      Tina Zhang 提交于
      gvt_err should be used only for the very few critical error message
      during host i915 drvier initialization. This patch
      1. removes the redundant gvt_err;
      2. creates a new gvt_vgpu_err to show errors caused by vgpu;
      3. replaces the most gvt_err with gvt_vgpu_err;
      4. leaves very few gvt_err for dumping gvt error during host gvt
         initialization.
      
      v2. change name to gvt_vgpu_err and add vgpu id to the message. (Kevin)
          add gpu id to gvt_vgpu_err. (Zhi)
      v3. remove gpu id from gvt_vgpu_err caller. (Zhi)
      v4. add vgpu check to the gvt_vgpu_err macro. (Zhiyuan)
      v5. add comments for v3 and v4.
      v6. split the big patch into two, with this patch only for checking
          gvt_vgpu_err. (Zhenyu)
      v7. rebase to staging branch
      v8. rebase to fix branch
      Signed-off-by: NTina Zhang <tina.zhang@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      695fbc08
  17. 23 2月, 2017 2 次提交
  18. 09 2月, 2017 1 次提交
  19. 13 1月, 2017 1 次提交
  20. 09 1月, 2017 2 次提交
  21. 26 12月, 2016 1 次提交
  22. 10 11月, 2016 1 次提交
  23. 07 11月, 2016 1 次提交
    • P
      drm/i915/gvt: implement scratch page table tree for shadow PPGTT · 3b6411c2
      Ping Gao 提交于
      All the unused entries in the page table tree(PML4E->PDPE->PDE->PTE)
      should point to scratch page table/scratch page to avoid page walk error
      due to the page prefetching.
      When removing an entry in shadow PPGTT,  it need map to scratch page
      also, the older implementation use single scratch page to assign to all
      level entries, it doesn't align the page walk behavior when removed
      entry is in PML, PDP, PD.  To avoid potential page walk error this patch
      implement a scratch page tree to replace the single scratch page.
      
      v2: more details in commit message address Kevin's comments.
      Signed-off-by: NPing Gao <ping.a.gao@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      3b6411c2