lkml.org 
[lkml]   [2019]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 6/8] drm/i915/gvt: Apply g2h adjustment to buffer start gma for dmabuf
Date
From: Yulei Zhang <yulei.zhang@intel.com>

Adjust the buffer start gma in dmabuf for display in host domain.

Signed-off-by: Yulei Zhang <yulei.zhang@intel.com>
---
drivers/gpu/drm/i915/gvt/dmabuf.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
index 51ed99a37803..e96c655c40bc 100644
--- a/drivers/gpu/drm/i915/gvt/dmabuf.c
+++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
@@ -293,6 +293,9 @@ static int vgpu_get_plane_info(struct drm_device *dev,
return -EFAULT;
}

+ /* Apply g2h adjust to buffer start gma for display */
+ intel_gvt_ggtt_gmadr_g2h(vgpu, info->start, &info->start);
+
return 0;
}

--
2.17.1
\
 
 \ /
  Last update: 2019-02-19 08:52    [W:0.075 / U:14.280 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site