]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Fix drm_WARN issue where vgpu ptr is unavailable
authorTina Zhang <tina.zhang@intel.com>
Tue, 25 Feb 2020 05:35:26 +0000 (13:35 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 25 Feb 2020 08:13:04 +0000 (16:13 +0800)
commita8bb49b64c4f4284fb36169bdd9fc6efd62eb26a
treeb3a2fc4ae8bd725537492526b537b7f162e697f6
parent12d5861973c70fb9a890d81d051de1cb1886eeee
drm/i915/gvt: Fix drm_WARN issue where vgpu ptr is unavailable

When vgpu ptr is unavailable, the drm_WARN* can hang the whole system
due to the drm pointer is NULL. This patch fixes this issue by using
WARN directly which won't care about the drm pointer.

Fixes: 12d5861973c70 ("drm/i915/gvt: Make WARN* drm specific where vgpu ptr is available")
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200225053527.8336-1-tina.zhang@intel.com
drivers/gpu/drm/i915/gvt/mmio_context.c