Skip to content

i915/gvt/dmabuf: some plane 'size' fixes

Uri Lublin intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i915/gvt/dmabuf: vgpu_get_plane_info: validate_range with size in bytesdrivers/gpu/drm/i915/gvt/dmabuf.c+2 -10 replies
2/3i915/gvt/dmabuf: fix comment about 'size' fielddrivers/gpu/drm/i915/gvt/dmabuf.h+1 -10 replies
3/3i915/gvt/dmabuf: update_fb_info: convert size correctlydrivers/gpu/drm/i915/gvt/dmabuf.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] i915/gvt/dmabuf: some plane 'size' fixes

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(-)
Signature · 6 lines
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx