summaryrefslogtreecommitdiff
path: root/sound/soc/sof/intel/apl.c
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2021-04-08 12:10:47 +0300
committerMichael S. Tsirkin <mst@redhat.com>2021-04-09 19:08:28 +0300
commitbc04d93ea30a0a8eb2a2648b848cef35d1f6f798 (patch)
treef8a021c94b2f473770d42f4909198875c588db3e /sound/soc/sof/intel/apl.c
parent4b454a82418dd76d8c0590bb3f7a99a63ea57dc5 (diff)
downloadlinux-bc04d93ea30a0a8eb2a2648b848cef35d1f6f798.tar.xz
vdpa/mlx5: Fix suspend/resume index restoration
When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether since qemu will clear them if required, e.g. when the VM went through a reboot. Moreover, since the hw available and used indices should always be identical on query and should be restored to the same value same value for virtqueues that complete in order, we set the single value provided by set_vq_state(). In get_vq_state() we return the value of hardware used index. Fixes: b35ccebe3ef7 ("vdpa/mlx5: Restore the hardware used index after change map") Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Eli Cohen <elic@nvidia.com> Link: https://lore.kernel.org/r/20210408091047.4269-6-elic@nvidia.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'sound/soc/sof/intel/apl.c')
0 files changed, 0 insertions, 0 deletions