1. 30 3月, 2018 2 次提交
    • C
      drm/i915/gvt: Cancel dma map when resetting ggtt entries · f4c43db3
      Changbin Du 提交于
      Ditto, don't forget ggtt entries during reset.
      Signed-off-by: NChangbin Du <changbin.du@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      f4c43db3
    • C
      drm/i915/gvt: Missed to cancel dma map for ggtt entries · 7598e870
      Changbin Du 提交于
      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: NChangbin Du <changbin.du@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      7598e870
  2. 19 3月, 2018 2 次提交
  3. 06 3月, 2018 16 次提交
  4. 01 2月, 2018 1 次提交
  5. 04 1月, 2018 1 次提交
  6. 22 12月, 2017 2 次提交
  7. 28 11月, 2017 1 次提交
  8. 16 11月, 2017 9 次提交
  9. 14 9月, 2017 1 次提交
  10. 08 9月, 2017 1 次提交
  11. 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
  12. 10 8月, 2017 2 次提交
  13. 11 7月, 2017 1 次提交