]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/i915/gvt: Add runtime_pm get/put to proctect MMIO accessing
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 2 Jun 2017 07:34:23 +0000 (15:34 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 8 Jun 2017 05:59:18 +0000 (13:59 +0800)
commit9b7bd65ecdf347b33c37d73b610fd85774b12e87
tree91cf7e6617b027c2f1eae2d1f571bc35fb683457
parent89009b7746fa66634061a7e76f881b7ea344d26d
drm/i915/gvt: Add runtime_pm get/put to proctect MMIO accessing

In some cases, GVT-g is accessing MMIO without holding runtime_pm
and this patch can add the inline API for doing the runtime_pm get/put
to make sure when accessing HW MMIO the i915 HW is really powered on.

Suggested-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/handlers.c