Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] i915/gvt/dmabuf: some plane 'size' fixes
@ 2019-04-14 14:44 Uri Lublin
  2019-04-14 14:44 ` [PATCH 1/3] i915/gvt/dmabuf: vgpu_get_plane_info: validate_range with size in bytes Uri Lublin
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Uri Lublin @ 2019-04-14 14:44 UTC (permalink / raw)
  To: intel-gvt-dev; +Cc: intel-gfx, Snir Sheriber

We started looking at the kvmgt driver code when we noticed
the 'size' calculation in qemu-kvm is wrong.
The first fix we had is now already committed upstream
(7f1a93b1f1d1d2603a49a9e4226259db9272f305).
    
There is a mismatch between the comment for 'size' field
of struct intel_vgpu_fb_info and the code. 
The comment says the plane size is kept in bytes, while
the code keeps it in pages.
These patches fix this problem as well as some related
inconsistencies.

Uri Lublin (3):
  i915/gvt/dmabuf: vgpu_get_plane_info: validate_range with size in
    bytes
  i915/gvt/dmabuf: fix comment about 'size' field
  i915/gvt/dmabuf: update_fb_info: convert size correctly

 drivers/gpu/drm/i915/gvt/dmabuf.c | 5 +++--
 drivers/gpu/drm/i915/gvt/dmabuf.h | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-15  9:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-14 14:44 [PATCH 0/3] i915/gvt/dmabuf: some plane 'size' fixes Uri Lublin
2019-04-14 14:44 ` [PATCH 1/3] i915/gvt/dmabuf: vgpu_get_plane_info: validate_range with size in bytes Uri Lublin
2019-04-14 14:44 ` [PATCH 2/3] i915/gvt/dmabuf: fix comment about 'size' field Uri Lublin
2019-04-14 14:44 ` [PATCH 3/3] i915/gvt/dmabuf: update_fb_info: convert size correctly Uri Lublin
2019-04-14 15:13 ` ✓ Fi.CI.BAT: success for i915/gvt/dmabuf: some plane 'size' fixes Patchwork
2019-04-14 16:38 ` ✓ Fi.CI.IGT: " Patchwork
2019-04-15  2:14 ` [PATCH 0/3] " Zhenyu Wang
2019-04-15  9:55   ` Uri Lublin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox