1. 08 6月, 2017 1 次提交
    • W
      drm/i915/gvt: add RING_INSTDONE and SC_INSTDONE mmio handler in GVT-g · 23ce0592
      Weinan Li 提交于
      kernel hangcheck needs to check RING_INSTDONE and SC_INSTDONE registers'
      state to know if hardware is still running. In GVT-g environment, we need
      to emulate these registers changing for all the guests although they are
      not render owner. Here we return the physical state for all the guests,
      then if INSTDONE is changing guest can know hardware is still running
      although its workload is pending.
      
      Read INSTDONE isn't one correct way to know if guest trigger gfx reset,
      especially with Linux guest, it will read ACTH first, then check INSTDONE
      and SUBSLICE registers to check if hardware is still running, at last
      trigger gfx reset when it finds all the registers is frozen. In Windows
      guest, read INSTDONE usually happens when OS detect TDR.
      
      With the difference between Windows and Linux guest, "disable_warn_untrack"
      may let debug log run into wrong state(Linux guest trigger hangcheck
      with no ACTHD changed, then check INSTDONE), but actually there is no TDR
      happened.
      
      The new policy is always WARN with untrack MMIO r/w. Bad effect is many
      noisy untrack mmio warning logs exist when real TDR happen. Even so you can
      control the log output or not by setting the debug mask bit.
      
      v2: remove log in instdone_mmio_read
      Suggested-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: NWeinan Li <weinan.z.li@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      23ce0592
  2. 30 3月, 2017 1 次提交
  3. 29 3月, 2017 2 次提交
  4. 20 3月, 2017 1 次提交
  5. 17 3月, 2017 2 次提交
    • 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
    • Z
      drm/i915/gvt: handle force-nonpriv registers, cmd parser part · 4938ca90
      Zhao Yan 提交于
      this patch adds force non-priv registers check in LRI cmds handler
      
      v4:
      transform is_force_nonpriv_mmio() from macro to inline fuction to eliminate
      checkpatch warning
      
      v3:
      per zhenyu's comment, fix some style warnings
      
      v2:
      per zhenyu's comment, refine the code to remove cascaded ifs
      Signed-off-by: NZhao Yan <yan.y.zhao@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      4938ca90
  6. 02 3月, 2017 1 次提交
  7. 01 3月, 2017 3 次提交
  8. 24 2月, 2017 2 次提交
  9. 23 2月, 2017 6 次提交
  10. 17 2月, 2017 2 次提交
    • Z
      drm/i915/gvt: handle fence reg access during GPU reset · d1be371d
      Zhao, Xinda 提交于
      Lots of reduntant log info will be printed out during GPU reset,
      including accessing untracked mmio register and fence register,
      variable disable_warn_untrack is added previously to handle the
      situation, but the accessing of fence register is ignored in the
      previously patch, so add it back.
      
      Besides, set the variable disable_warn_untrack to the defalut value
      after GPU reset is finished.
      Signed-off-by: NZhao, Xinda <xinda.zhao@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      d1be371d
    • M
      drm/i915/gvt: introduced failsafe mode into vgpu · fd64be63
      Min He 提交于
      New failsafe mode is introduced, when we detect guest not supporting
      GVT-g.
      In failsafe mode, we will ignore all the MMIO and cfg space read/write
      from guest.
      
      This patch can fix the issue that when guest kernel or graphics driver
      version is too low, there will be a lot of kernel traces in host.
      
      V5: rebased onto latest gvt-staging
      V4: changed coding style by Zhenyu and Ping's advice
      V3: modified coding style and error messages according to Zhenyu's comment
      V2: 1) implemented MMIO/GTT/WP pages read/write logic; 2) used a unified
      function to enter failsafe mode
      Signed-off-by: NMin He <min.he@intel.com>
      Signed-off-by: NPei Zhang <pei.zhang@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      fd64be63
  11. 13 1月, 2017 2 次提交
  12. 09 1月, 2017 3 次提交
  13. 22 11月, 2016 1 次提交
  14. 17 11月, 2016 1 次提交
  15. 14 11月, 2016 2 次提交
  16. 07 11月, 2016 4 次提交
  17. 27 10月, 2016 2 次提交
  18. 26 10月, 2016 2 次提交
  19. 20 10月, 2016 2 次提交