mbox series

[next,0/2] iommu/tegra241-cmdqv: Fix two bugs in __tegra241_cmdqv_probe

Message ID cover.1725503154.git.nicolinc@nvidia.com
Headers show
Series iommu/tegra241-cmdqv: Fix two bugs in __tegra241_cmdqv_probe | expand

Message

Nicolin Chen Sept. 5, 2024, 2:40 a.m. UTC
Found two more bugs today. And here are the fixes.

Based on Will's for-joerg/arm-smmu/updates branch.

Available on Github:
https://github.com/nicolinc/iommufd/commits/vcmdq_in_kernel-fix

Cc: Matt Ochs <mochs@nvidia.com>

Thanks
Nicolin

Nicolin Chen (2):
  iommu/tegra241-cmdqv: Drop static at local variable
  iommu/tegra241-cmdqv: Do not allocate vcmdq until
    dma_set_mask_and_coherent

 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c   |  9 +-
 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h   |  1 +
 .../iommu/arm/arm-smmu-v3/tegra241-cmdqv.c    | 85 ++++++++++++-------
 3 files changed, 61 insertions(+), 34 deletions(-)

Comments

Will Deacon Sept. 5, 2024, 4:18 p.m. UTC | #1
On Wed, 04 Sep 2024 19:40:41 -0700, Nicolin Chen wrote:
> Found two more bugs today. And here are the fixes.
> 
> Based on Will's for-joerg/arm-smmu/updates branch.
> 
> Available on Github:
> https://github.com/nicolinc/iommufd/commits/vcmdq_in_kernel-fix
> 
> [...]

Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/2] iommu/tegra241-cmdqv: Drop static at local variable
      https://git.kernel.org/will/c/2408b81f817b
[2/2] iommu/tegra241-cmdqv: Do not allocate vcmdq until dma_set_mask_and_coherent
      https://git.kernel.org/will/c/483e0bd8883a

Cheers,