[PATCH v1 1/2] drm/i915/gvt: reorder the shadow ppgtt update process by adding entry first

Zhenyu Wang zhenyuw at linux.intel.com
Fri May 5 02:45:55 UTC 2017


On 2017.05.04 17:35:09 +0800, Tina Zhang wrote:
> Guest i915 driver may update the ppgtt table just before this workload
> is going to be submitted to the hardware by device model. This case
> wasn't handled well by device model before, due to the small time
> window between removing old ppgtt entry and adding the new one. Errors
> occur when the workload is executed by hardware during that small time
> window. This patch is to remove this time window by adding the new ppgtt
> entry first and then remove the old one.
>

Although the fix logic seems sane, but could you elaborate the race case?

-- 
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/20170505/7fad514b/attachment.sig>


More information about the intel-gvt-dev mailing list