[PATCH v8 1/6] drm/i915/gvt: Separate cmd scan from request allocation

Zhenyu Wang zhenyuw at linux.intel.com
Wed Aug 23 02:41:15 UTC 2017


On 2017.08.18 15:41:06 +0800, fred gao wrote:
> Currently i915 request structure and shadow ring buffer are allocated
> before command scan, so it will have to restore to previous states once
> any error happens afterwards in the long dispatch_workload path.
> 
> This patch is to introduce a reserved ring buffer created at the beginning
> of vGPU initialization. Workload will be coped to this reserved buffer and
> be scanned first, the i915 request and shadow ring buffer are only
> allocated after the result of scan is successful.
> 
> To balance the memory usage and buffer alloc time, the coming bigger ring
> buffer will be reallocated and kept until more bigger buffer is coming.
> 
> v2:
> - use kmalloc for the smaller ring buffer, realloc if required. (Zhenyu)
> 
> v3:
> - remove the dynamically allocated ring buffer. (Zhenyu)
> 
> v4:
> - code style polish.
> - kfree previous allocated buffer once kmalloc failed. (Zhenyu)
> 

applied this latest series, pls be careful about send version next time.

thanks

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170823/9dcec70c/attachment.sig>


More information about the intel-gvt-dev mailing list