projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f8cc7a
)
virtio-gpu api: fix 64/32 compat issue with blob implementation
author
Alistair Delva
<adelva@google.com>
Tue, 29 Sep 2020 21:53:33 +0000
(14:53 -0700)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 30 Sep 2020 06:31:08 +0000
(08:31 +0200)
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>
Link:
http://patchwork.freedesktop.org/patch/msgid/20200929215333.1241-1-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/uapi/linux/virtio_gpu.h
patch
|
blob
|
history
diff --git
a/include/uapi/linux/virtio_gpu.h
b/include/uapi/linux/virtio_gpu.h
index fa2ae4a1da5f99c897e1ba811c90eabc6ec90127..0ec6b610402cb65e7ccc36338f86ccdd353b3b6d 100644
(file)
--- 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
*/