* [PATCH] virtio-gpu api: fix 64/32 compat issue with blob implementation
@ 2020-09-29 21:53 Gurchetan Singh
2020-09-30 6:46 ` Gerd Hoffmann
0 siblings, 1 reply; 2+ messages in thread
From: Gurchetan Singh @ 2020-09-29 21:53 UTC (permalink / raw)
To: dri-devel; +Cc: Alistair Delva, kraxel
From: Alistair Delva <adelva@google.com>
We encountered this issue when booting blob with a 32-bit kernel.
The implementation doesn't match v6 of the virtio-spec change, so fix
this.
Fixes: ff886cbdcc44 ("virtio-gpu api: blob resources")
Signed-off-by: Alistair Delva <adelva@google.com>
---
include/uapi/linux/virtio_gpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h
index fa2ae4a1da5f9..0ec6b610402cb 100644
--- a/include/uapi/linux/virtio_gpu.h
+++ b/include/uapi/linux/virtio_gpu.h
@@ -388,9 +388,9 @@ struct virtio_gpu_resource_create_blob {
/* zero is invalid blob mem */
__le32 blob_mem;
__le32 blob_flags;
+ __le32 nr_entries;
__le64 blob_id;
__le64 size;
- __le32 nr_entries;
/*
* sizeof(nr_entries * virtio_gpu_mem_entry) bytes follow
*/
--
2.26.2
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] virtio-gpu api: fix 64/32 compat issue with blob implementation
2020-09-29 21:53 [PATCH] virtio-gpu api: fix 64/32 compat issue with blob implementation Gurchetan Singh
@ 2020-09-30 6:46 ` Gerd Hoffmann
0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2020-09-30 6:46 UTC (permalink / raw)
To: Gurchetan Singh; +Cc: Alistair Delva, dri-devel
On Tue, Sep 29, 2020 at 02:53:33PM -0700, Gurchetan Singh wrote:
> From: Alistair Delva <adelva@google.com>
>
> We encountered this issue when booting blob with a 32-bit kernel.
> The implementation doesn't match v6 of the virtio-spec change, so fix
> this.
>
> Fixes: ff886cbdcc44 ("virtio-gpu api: blob resources")
> Signed-off-by: Alistair Delva <adelva@google.com>
Pushed to drm-misc-next.
thanks,
Gerd
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-30 6:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 21:53 [PATCH] virtio-gpu api: fix 64/32 compat issue with blob implementation Gurchetan Singh
2020-09-30 6:46 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).