1. 10 7月, 2018 1 次提交
  2. 05 7月, 2018 4 次提交
  3. 04 7月, 2018 4 次提交
  4. 03 7月, 2018 4 次提交
  5. 02 7月, 2018 5 次提交
    • X
      drm/i915/gvt: changed DDI mode emulation type · a4cae23c
      Xiaolin Zhang 提交于
      changed gvt display transcode DDI mode from DP_SST to
      DVI to address below calltrace issue during guest booting
      up which is caused by zero dotclock initial value with DP_SST
      mode. transcode DVI mode emulation also align with native with DP
      connection.
      
      [drm:drm_calc_timestamping_constants]
      ERROR crtc 41: Can't calculate constants, dotclock = 0!
      
      WARNING: at drivers/gpu/drm/drm_vblank.c:620
      drm_calc_vbltimestamp_from_scanoutpos
      
      Call Trace:
      ? drm_calc_timestamping_constants+0x144/0x150 [drm]
      drm_get_last_vbltimestamp+0x54/0x90 [drm]
      drm_reset_vblank_timestamp+0x59/0xd0 [drm]
      drm_crtc_vblank_on+0x7b/0xd0 [drm]
      intel_modeset_setup_hw_state+0xb67/0xfd0 [i915]
      ? gen2_read32+0x110/0x110 [i915]
      ? drm_modeset_lock+0x30/0xa0 [drm]
      intel_modeset_init+0x794/0x19d0 [i915]
      ? intel_setup_gmbus+0x232/0x2e0 [i915]
      i915_driver_load+0xb4a/0xf40 [i915]
      Signed-off-by: NXiaolin Zhang <xiaolin.zhang@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      a4cae23c
    • Z
      drm/i915/gvt: fix a bug of partially write ggtt enties · 510fe10b
      Zhao Yan 提交于
      when guest writes ggtt entries, it could write 8 bytes a time if
      gtt_entry_size is 8. But, qemu could split the 8 bytes into 2 consecutive
      4-byte writes.
      
      If each 4-byte partial write could trigger a host ggtt write, it is very
      possible that a wrong combination is written to the host ggtt. E.g.
      the higher 4 bytes is the old value, but the lower 4 bytes is the new
      value, and this 8-byte combination is wrong but written to the ggtt, thus
      causing bugs.
      
      To handle this condition, we just record the first 4-byte write, then wait
      until the second 4-byte write comes and write the combined 64-bit data to
      host ggtt table.
      
      To save memory space and to spot partial write as early as possible, we
      don't keep this information for every ggtt index. Instread, we just record
      the last ggtt write position, and assume the two 4-byte writes come in
      consecutively for each vgpu.
      
      This assumption is right based on the characteristic of ggtt entry which
      stores memory address. When gtt_entry_size is 8, the guest memory physical
      address should be 64 bits, so any sane guest driver should write 8-byte
      long data at a time, so 2 consecutive 4-byte writes at the same ggtt index
      should be trapped in gvt.
      
      v2:
      when incomplete ggtt entry write is located, e.g.
          1. guest only writes 4 bytes at a ggtt offset and no long writes the
             rest 4 bytes.
          2. guest writes 4 bytes of a ggtt offset, then write at other ggtt
             offsets, then return back to write the left 4 bytes of the first
             ggtt offset.
      add error handling logic to remap host entry to scratch page, and mark
      guest virtual ggtt entry as not present.  (zhenyu wang)
      Signed-off-by: NZhao Yan <yan.y.zhao@intel.com>
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      510fe10b
    • T
      drm/exynos: Replace drm_dev_unref with drm_dev_put · aab109b3
      Thomas Zimmermann 提交于
      This patch unifies the naming of DRM functions for reference counting
      of struct drm_device. The resulting code is more aligned with the rest
      of the Linux kernel interfaces.
      Signed-off-by: NThomas Zimmermann <tdz@users.sourceforge.net>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      aab109b3
    • T
      drm/exynos: Replace drm_gem_object_unreference_unlocked with put function · af7d9101
      Thomas Zimmermann 提交于
      This patch unifies the naming of DRM functions for reference counting
      of struct drm_gem_object. The resulting code is more aligned with the
      rest of the Linux kernel interfaces.
      Signed-off-by: NThomas Zimmermann <tdz@users.sourceforge.net>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      af7d9101
    • T
      drm/exynos: Replace drm_framebuffer_{un/reference} with put,get functions · fa7743b1
      Thomas Zimmermann 提交于
      This patch unifies the naming of DRM functions for reference counting
      of struct drm_framebuffer. The resulting code is more aligned with the
      rest of the Linux kernel interfaces.
      Signed-off-by: NThomas Zimmermann <tdz@users.sourceforge.net>
      Signed-off-by: NInki Dae <inki.dae@samsung.com>
      fa7743b1
  6. 29 6月, 2018 19 次提交
  7. 28 6月, 2018 3 次提交