drm/virtio: align blob resources to page sizes
Subsystems (3)
Chia-I Wu
reviewerPATCH 1/1 drm/virtio: align blob resources to page sizes
They trigger the BUG_ON() in drm_gem_private_object_init otherwise.
Signed-off-by Chia-I Wu <[email protected]>
Cc Gurchetan Singh <[email protected]>
Cc Gerd Hoffmann <[email protected]>
--- drivers/gpu/drm/virtio/virtgpu_vram.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/virtio/virtgpu_vram.c +2 -0
@@ -134,6 +134,8 @@ int virtio_gpu_vram_create(struct virtio_gpu_device *vgdev, obj = &vram->base.base.base; obj->funcs = &virtio_gpu_vram_funcs; + + params->size =PAGE_ALIGN (params->size);drm_gem_private_object_init (vgdev->ddev, obj, params->size);/* Create fake offset */
Signature · 6 lines
2.29.2.684.gfbc64c5ab5-goog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Chia-I Wu
They trigger the
BUG_ON()indrm_gem_private_object_initotherwise.Signed-off-by Chia-I Wu <[email protected]>Cc Gurchetan Singh <[email protected]>Cc Gerd Hoffmann <[email protected]>
Pushed to drm-misc-next.
thanks,
Gerd
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel