]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
iommu/tegra: smmu: retrieve AS props from domain
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 16 Sep 2014 11:45:05 +0000 (17:15 +0530)
committerSri Krishna Chowdary <schowdary@nvidia.com>
Mon, 22 Sep 2014 05:30:56 +0000 (22:30 -0700)
commit0af97732e53d56f851eb7b65c44c9ea6d762716a
treeaa50c58f2fbb478b785d2a50b682648c7547a854
parent07df333ac3e6156d7041919eee538caf5d4b6d3d
iommu/tegra: smmu: retrieve AS props from domain

The address space properties were attached to each device,
this does not confirm to upstream iommus bindings and this
approach is not extendible to devices which still rely on fixup
tables.

Retrieve the asprop info from DT during probe and store it in
a list. Since, the number of domains are just 5, traversing the list,
although O(n) does not slowdown the initialization much.

Also, add support to retrieve swgids from iommus= as per upstream bindings.
At this point, we still support the downstream way of handling things but
it will be removed a little bit later.

Bug 200032393
Bug 200020468

Change-Id: I3c75207110e6aa79296d1fd7a45046f065e6a759
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/495653
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
drivers/iommu/tegra-smmu.c