[PATCH] drm/i915/gvt: remove redundant ring id check which cause significant CPU misprediction
Zhenyu Wang
zhenyuw at linux.intel.com
Wed Apr 12 06:00:16 UTC 2017
On 2017.04.06 10:55:55 +0800, changbin.du at intel.com wrote:
> From: Changbin Du <changbin.du at intel.com>
>
> From perf data, found a significant overhead at ring id check in the
> function get_opcode. This inline function is frequently used.
>
> Since Intel static predictor will predict the branch to fall through
> so the prediction most fail. This is wasting CPU pipeline resource.
> We do not need check the engine id everywhere, it should be reliable.
>
> Signed-off-by: Changbin Du <changbin.du at intel.com>
> ---
applied, 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: 163 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170412/1319de5d/attachment.sig>
More information about the intel-gvt-dev
mailing list