1. 30 Mar, 2018 2 commits
    • Changbin Du's avatar
      drm/i915/gvt: Cancel dma map when resetting ggtt entries · f4c43db3
      Changbin Du authored
      Ditto, don't forget ggtt entries during reset.
      Signed-off-by: default avatarChangbin Du <changbin.du@intel.com>
      Signed-off-by: Zhenyu Wang's avatarZhenyu Wang <zhenyuw@linux.intel.com>
    • Changbin Du's avatar
      drm/i915/gvt: Missed to cancel dma map for ggtt entries · 7598e870
      Changbin Du authored
      We have canceled dma map for ppgtt entries. Also we need to do it for
      ggtt entries when them are invalidated.
      This can fix task hung issue as:
      [13517.791767] INFO: task gvt_service_thr:1081 blocked for more than 120 seconds.
      [13517.792584] Not tainted 4.14.15+ #3
      [13517.793417] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
      [13517.794267] gvt_service_thr D 0 1081 2 0x80000000
      [13517.795132] Call Trace:
      [13517.795996] ? __schedule+0x493/0x77b
      [13517.796859] schedule+0x79/0x82
      [13517.797740] schedule_preempt_disabled+0x5/0x6
      [13517.798614] __mutex_lock.isra.0+0x2b5/0x445
      [13517.799504] ? __switch_to_asm+0x24/0x60
      [13517.800381] ? intel_gvt_cleanup+0x10/0x10
      [13517.801261] ? intel_gvt_schedule+0x19/0x2b9
      [13517.802107] intel_gvt_schedule+0x19/0x2b9
      [13517.802954] ? intel_gvt_cleanup+0x10/0x10
      [13517.803824] gvt_service_thread+0xe3/0x10d
      [13517.804704] ? wait_woken+0x68/0x68
      [13517.805588] kthread+0x118/0x120
      [13517.806478] ? kthread_create_on_node+0x3a/0x3a
      [13517.807381] ? call_usermodehelper_exec_async+0x113/0x11a
      [13517.808307] ret_from_fork+0x35/0x40
      v3: split out ggtt reset case.
      v2: also unmap ggtt during reset.
      Signed-off-by: default avatarChangbin Du <changbin.du@intel.com>
      Signed-off-by: Zhenyu Wang's avatarZhenyu Wang <zhenyuw@linux.intel.com>
  2. 19 Mar, 2018 2 commits
  3. 06 Mar, 2018 16 commits
  4. 01 Feb, 2018 1 commit
  5. 04 Jan, 2018 1 commit
  6. 22 Dec, 2017 2 commits
  7. 28 Nov, 2017 1 commit
  8. 16 Nov, 2017 9 commits
  9. 14 Sep, 2017 1 commit
  10. 08 Sep, 2017 1 commit
  11. 15 Aug, 2017 1 commit
    • tina zhang's avatar
      drm/i915/gvt: Fix guest i915 full ppgtt blocking issue · 6b3816d6
      tina zhang authored
      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.
      - Update full 48bit ppgtt definition
      Cc: Tina Zhang <tina.zhang@intel.com>
      Signed-off-by: tina zhang's avatarTina Zhang <tina.zhang@intel.com>
      Signed-off-by: Zhenyu Wang's avatarZhenyu Wang <zhenyuw@linux.intel.com>
  12. 10 Aug, 2017 2 commits
  13. 11 Jul, 2017 1 commit