]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: expose vGPU context hw id
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 1 Aug 2017 05:09:47 +0000 (13:09 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Aug 2017 02:26:11 +0000 (10:26 +0800)
commit89d126fe9eff6c9401bd7555eb1e97ad535a4191
tree19ed3655df4c8224833fc53dbc274d037c4a864e
parent96caab15d7151603d67e187a74607da8cbda4c10
drm/i915/gvt: expose vGPU context hw id

This exposes vGPU context hw id in mdev sysfs which is used to
do vGPU based profiling. Retrieved vGPU context hw id can be set
through i915 perf ioctl to set profiling for target vGPU.

Cc: Jiao Pengyuan <pengyuan.jiao@intel.com>
Cc: Niu Bing <bing.niu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c