artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdb44d2
)
drm/amdgpu: avoid reading vf2pf info size from FB
author
jsg
<jsg@openbsd.org>
Mon, 9 Sep 2024 08:42:39 +0000
(08:42 +0000)
committer
jsg
<jsg@openbsd.org>
Mon, 9 Sep 2024 08:42:39 +0000
(08:42 +0000)
From Zhigang Luo
30e60db4296c75f0d7a09c9beedcdab2e044cc2c
in linux-6.6.y/6.6.50
3bcc0ee14768d886cedff65da72d83d375a31a56
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.c
index
2be313e
..
abc7bdc
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_virt.c
@@
-616,7
+616,7
@@
static int amdgpu_virt_write_vf2pf_data(struct amdgpu_device *adev)
vf2pf_info->dummy_page_addr = (uint64_t)adev->dummy_page_addr;
vf2pf_info->checksum =
amd_sriov_msg_checksum(
- vf2pf_info,
vf2pf_info->header.size
, 0, 0);
+ vf2pf_info,
sizeof(*vf2pf_info)
, 0, 0);
return 0;
}