Skip to content

iommu/tegra241-cmdqv: Fix initialization and uAPI related to HYP_OWN

Nicolin Chen linux-arm-kernel linux-iommu linux-tegra lkml 1 version Applied

Status from this message: Applied to iommu (arm/smmu/updates), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2iommu/tegra241-cmdqv: Set supports_cmd op in tegra241_vcmdq_hw_init()drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c+4 -32 replies
2/2iommu/tegra241-cmdqv: Update uAPI to clarify HYP_OWN requirementinclude/uapi/linux/iommufd.h+5 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchShameer KolothumJason GunthorpeEric Auger
1/2T-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] iommu/tegra241-cmdqv: Fix initialization and uAPI related to HYP_OWN

Hi,

Eric and Shameer found a bug in kernel driver that supports_cmd is set in an incorrect order related to the hyp_own finalization. This results in a unnecessary command filter in the host environment that sends unsupported (non-invalidation) commands to the SMMU CMDQ.

Also, Eric pointed it out that the requirement of VMM wiring HYP_OWN to 0 is unclear.

Thus, I am sending this small series to address these issues.

Nicolin Chen (2):
iommu/tegra241-cmdqv: Set supports_cmd op in tegra241_vcmdq_hw_init() iommu/tegra241-cmdqv: Update uAPI to clarify HYP_OWN requirement

 include/uapi/linux/iommufd.h                   | 5 +++++
 drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c | 7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0