Revert "drm/virtio: implement context init: advertise feature to userspace"

This reverts commit 78aa20fa43.

It causes a crash in cuttlefish when using the virtio gpu driver.

Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Nicholas Verne <nverne@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Icfeade9b434e2c5419b3fbb68e7327699bbdcb71
This commit is contained in:
Greg Kroah-Hartman
2021-11-13 13:56:30 +01:00
parent 6a9c0ec079
commit 172272a5e9

View File

@@ -286,12 +286,6 @@ static int virtio_gpu_getparam_ioctl(struct drm_device *dev, void *data,
case VIRTGPU_PARAM_CROSS_DEVICE:
value = vgdev->has_resource_assign_uuid ? 1 : 0;
break;
case VIRTGPU_PARAM_CONTEXT_INIT:
value = vgdev->has_context_init ? 1 : 0;
break;
case VIRTGPU_PARAM_SUPPORTED_CAPSET_IDs:
value = vgdev->capset_id_mask;
break;
default:
return -EINVAL;
}