On 9/27/21 9:33 AM, Tian, Kevin wrote:
From: Tian, Kevin
Sent: Monday, September 27, 2021 9:30 AM
From: Tian, Kevin
Sent: Monday, September 27, 2021 9:12 AM
From: Lu Baolu
Sent: Sunday, September 26, 2021 7:46 PM
An iommu domain could be allocated and mapped before it's attached to
any
devi
> From: Tian, Kevin
> Sent: Monday, September 27, 2021 9:30 AM
>
> > From: Tian, Kevin
> > Sent: Monday, September 27, 2021 9:12 AM
> >
> > > From: Lu Baolu
> > > Sent: Sunday, September 26, 2021 7:46 PM
> > >
> > > An iommu domain could be allocated and mapped before it's attached to
> > > any
>
> From: Lu Baolu
> Sent: Sunday, September 26, 2021 7:46 PM
>
> The IOMMU VT-d implementation uses the first level for GPA->HPA
> translation
> by default. Although both the first level and the second level could handle
> the DMA translation, they're different in some way. For example, the second
> From: Tian, Kevin
> Sent: Monday, September 27, 2021 9:12 AM
>
> > From: Lu Baolu
> > Sent: Sunday, September 26, 2021 7:46 PM
> >
> > An iommu domain could be allocated and mapped before it's attached to
> > any
> > device. This requires that in scalable mode, when the domain is allocated,
> >
> From: Lu Baolu
> Sent: Sunday, September 26, 2021 7:46 PM
>
> An iommu domain could be allocated and mapped before it's attached to
> any
> device. This requires that in scalable mode, when the domain is allocated,
> the format (FL or SL) of the page table must be determined. In order to
> achi
> From: Lu Baolu
> Sent: Sunday, September 26, 2021 7:46 PM
>
> The iommu_domain data structure already has the "type" field to keep the
> type of a domain. It's unnecessary to have the
> DOMAIN_FLAG_STATIC_IDENTITY
> flag in the vt-d implementation. This cleans it up with no functionality
> chan
When a thread sends commands to the SMMU, it needs to allocate some
space to write its commands in a ring buffer.
The allocation algorithms works as follows: until enough free spaced is
available in the queue, repeat the following outer loop. First, try to
acquire an exclusive lock to read the con
'smmu->asids' is a bitmap. So use 'devm_kzalloc()' to simplify code,
improve the semantic of the code and avoid some open-coded arithmetic in
allocator arguments.
Signed-off-by: Christophe JAILLET
---
drivers/iommu/tegra-smmu.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --gi
The iommu_domain data structure already has the "type" field to keep the
type of a domain. It's unnecessary to have the DOMAIN_FLAG_STATIC_IDENTITY
flag in the vt-d implementation. This cleans it up with no functionality
change.
Signed-off-by: Lu Baolu
---
include/linux/intel-iommu.h | 3 ---
dr
The IOMMU VT-d implementation uses the first level for GPA->HPA translation
by default. Although both the first level and the second level could handle
the DMA translation, they're different in some way. For example, the second
level translation has separate controls for the Access/Dirty page track
An iommu domain could be allocated and mapped before it's attached to any
device. This requires that in scalable mode, when the domain is allocated,
the format (FL or SL) of the page table must be determined. In order to
achieve this, the platform should support consistent SL or FL capabilities
on
v1:
https://lore.kernel.org/linux-iommu/20210924022931.780963-1-baolu...@linux.intel.com/
Change log:
v1->v2:
- Split the cleanup into a separated patch
- Add a patch to check sanity of capabilities
- Consider capabilities when determining FL or SL
Best regards,
Baolu
Lu Baolu (3):
iommu/vt
12 matches
Mail list logo