summaryrefslogtreecommitdiff
path: root/drivers/media/pci/ttpci/av7110_ca.c
diff options
context:
space:
mode:
authorJeffrey Hugo <quic_jhugo@quicinc.com>2022-07-25 19:33:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-29 18:06:53 +0300
commitaeb918b915a7d5cf1b08fee1f488a63f90d8cd4a (patch)
tree2b4147e079dce998db4f39414015dfae7a99d22c /drivers/media/pci/ttpci/av7110_ca.c
parent3b57d50775f3e970186ca78b0548c56ab458087a (diff)
downloadlinux-aeb918b915a7d5cf1b08fee1f488a63f90d8cd4a.tar.xz
PCI: hv: Reuse existing IRTE allocation in compose_msi_msg()
commit b4b77778ecc5bfbd4e77de1b2fd5c1dd3c655f1f upstream. Currently if compose_msi_msg() is called multiple times, it will free any previous IRTE allocation, and generate a new allocation. While nothing prevents this from occurring, it is extraneous when Linux could just reuse the existing allocation and avoid a bunch of overhead. However, when future IRTE allocations operate on blocks of MSIs instead of a single line, freeing the allocation will impact all of the lines. This could cause an issue where an allocation of N MSIs occurs, then some of the lines are retargeted, and finally the allocation is freed/reallocated. The freeing of the allocation removes all of the configuration for the entire block, which requires all the lines to be retargeted, which might not happen since some lines might already be unmasked/active. 4.14 backport - driver location change to host/pci-hyperv.c Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com> Reviewed-by: Dexuan Cui <decui@microsoft.com> Tested-by: Dexuan Cui <decui@microsoft.com> Tested-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/1652282582-21595-1-git-send-email-quic_jhugo@quicinc.com Signed-off-by: Wei Liu <wei.liu@kernel.org> Signed-off-by: Carl Vanderlip <quic_carlv@quicinc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/pci/ttpci/av7110_ca.c')
0 files changed, 0 insertions, 0 deletions