Skip to content

iommu/amd: Don't use atomic64_t for domain->pt_root

Joerg Roedel linux-iommu lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changed to v1 from the cover letter

- Addressed review comments from Qian.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iommu/amd: Add helper functions to update domain->pt_rootdrivers/iommu/amd/iommu.c+20 -110 replies
2/2iommu/amd: Use 'unsigned long' for domain->pt_rootdrivers/iommu/amd/amd_iommu_types.h drivers/iommu/amd/iommu.c+14 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] iommu/amd: Don't use atomic64_t for domain->pt_root

From: Joerg Roedel <[email protected]>

Hi,

a previous discussion pointed out that using atomic64_t for that purpose is a bit of overkill. This patch-set replaces it with unsigned long and introduces some helpers first to make the change more easy.

Qian, can you please test these patches in your environment? You can trigger any race-condition there pretty reliably :)

Other than that, please review and test.

Regards,

Joerg

Changed to v1:

- Addressed review comments from Qian.

Joerg Roedel (2):
iommu/amd: Add helper functions to update domain->pt_root iommu/amd: Use 'unsigned long' for domain->pt_root

 drivers/iommu/amd/amd_iommu_types.h |  2 +-
 drivers/iommu/amd/iommu.c           | 44 +++++++++++++++++++++--------
 2 files changed, 33 insertions(+), 13 deletions(-)
Signature · 6 lines
2.27.0

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu