search for: uuid_initializing

Displaying 4 results from an estimated 4 matches for "uuid_initializing".

2020 Mar 02
0
[virtio-dev] [PATCH v2 4/4] drm/virtio: Support virtgpu exported resources
...o/virtgpu_drv.h > index af9403e1cf78..4be84de73d86 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_drv.h > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h > @@ -49,6 +49,11 @@ > #define DRIVER_MINOR 1 > #define DRIVER_PATCHLEVEL 0 > > +#define UUID_NOT_INITIALIZED 0 > +#define UUID_INITIALIZING 1 > +#define UUID_INITIALIZED 2 > +#define UUID_INITIALIZATION_FAILED 3 > + > struct virtio_gpu_object_params { > uint32_t format; > uint32_t width; > @@ -75,6 +80,9 @@ struct virtio_gpu_object { > > bool dumb; > bool created; > + &g...
2020 May 13
0
[PATCH v3 4/4] drm/virtio: Support virtgpu exported resources
...rtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h > index af9403e1cf78..fab65f0f5a4d 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_drv.h > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h > @@ -49,6 +49,10 @@ > #define DRIVER_MINOR 1 > #define DRIVER_PATCHLEVEL 0 > > +#define UUID_INITIALIZING 0 > +#define UUID_INITIALIZED 1 > +#define UUID_INITIALIZATION_FAILED 2 > + > struct virtio_gpu_object_params { > uint32_t format; > uint32_t width; > @@ -75,6 +79,9 @@ struct virtio_gpu_object { > > bool dumb; > bool created; > + > + int uuid_state; &...
2020 Mar 04
0
[PATCH v2 4/4] drm/virtio: Support virtgpu exported resources
Hi, > + if (vgdev->has_resource_assign_uuid) { > + spin_lock(&vgdev->resource_export_lock); > + if (bo->uuid_state == UUID_NOT_INITIALIZED) { > + bo->uuid_state = UUID_INITIALIZING; > + needs_init = true; > + } > + spin_unlock(&vgdev->resource_export_lock); > + > + if (needs_init) { > + ret = virtio_gpu_cmd_resource_assign_uuid(vgdev, bo); You can submit a fenced command, then wait on the fence here. Removes the need for UUID_INITIALIZING. A...
2020 Aug 18
0
[PATCH v6 0/3] Support virtio cross-device resources
...irtio/virtgpu_vq.c:1118: + uint32_t resp_type = le32_to_cpu(resp->hdr.type); -:256: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #256: FILE: drivers/gpu/drm/virtio/virtgpu_vq.c:1124: + if (resp_type == VIRTIO_GPU_RESP_OK_RESOURCE_UUID && + obj->uuid_state == UUID_INITIALIZING) { -:286: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #286: FILE: drivers/gpu/drm/virtio/virtgpu_vq.c:1154: + cmd_p = virtio_gpu_alloc_cmd_resp(vgdev, + virtio_gpu_cmd_resource_uuid_cb, &vbuf, sizeof(*cmd_p), total: 0 errors, 0 warnings, 4 checks, 250 lines checked +...