summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
authorSai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>2019-06-12 08:28:50 +0800
committerJoerg Roedel <jroedel@suse.de>2019-06-12 10:36:59 +0200
commit16c9e29e12e8edbdf437001f46cf3f557aca80e8 (patch)
tree328574b994ee4a7718c1806e78a162559f5a632a /drivers/iommu/intel-iommu.c
parentd5692d4af08cde48ee98968aeb62077e2f6c50d5 (diff)
iommu/vt-d: Cleanup after delegating DMA domain to generic iommu
[No functional changes] 1. Starting with commit df4f3c603aeb ("iommu/vt-d: Remove static identity map code") there are no callers for iommu_prepare_rmrr_dev() but the implementation of the function still exists, so remove it. Also, as a ripple effect remove get_domain_for_dev() and iommu_prepare_identity_map() because they aren't being used either. 2. Remove extra new line in couple of places. Signed-off-by: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r--drivers/iommu/intel-iommu.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 9761ac366e3f..8c6ed39dec01 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -929,7 +929,6 @@ static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain,
return pte;
}
-
/* return address's pte at specific level */
static struct dma_pte *dma_pfn_level_pte(struct dmar_domain *domain,
unsigned long pfn,
@@ -1598,7 +1597,6 @@ static void iommu_disable_translation(struct intel_iommu *iommu)
raw_spin_unlock_irqrestore(&iommu->register_lock, flag);
}
-
static int iommu_init_domains(struct intel_iommu *iommu)
{
u32 ndomains, nlongs;
@@ -1636,8 +1634,6 @@ static int iommu_init_domains(struct intel_iommu *iommu)
return -ENOMEM;
}
-
-
/*
* If Caching mode is set, then invalid translations are tagged
* with domain-id 0, hence we need to pre-allocate it. We also
@@ -2664,29 +2660,6 @@ static struct dmar_domain *set_domain_for_dev(struct device *dev,
return domain;
}
-static struct dmar_domain *get_domain_for_dev(struct device *dev, int gaw)
-{
- struct dmar_domain *domain, *tmp;
-
- domain = find_domain(dev);
- if (domain)
- goto out;
-
- domain = find_or_alloc_domain(dev, gaw);
- if (!domain)
- goto out;
-
- tmp = set_domain_for_dev(dev, domain);
- if (!tmp || domain != tmp) {
- domain_exit(domain);
- domain = tmp;
- }
-
-out:
-
- return domain;
-}
-
static int iommu_domain_identity_map(struct dmar_domain *domain,
unsigned long long start,
unsigned long long end)
@@ -2751,33 +2724,6 @@ static int domain_prepare_identity_map(struct device *dev,
return iommu_domain_identity_map(domain, start, end);
}
-static int iommu_prepare_identity_map(struct device *dev,
- unsigned long long start,
- unsigned long long end)
-{
- struct dmar_domain *domain;
- int ret;
-
- domain = get_domain_for_dev(dev, DEFAULT_DOMAIN_ADDRESS_WIDTH);
- if (!domain)
- return -ENOMEM;
-
- ret = domain_prepare_identity_map(dev, domain, start, end);
- if (ret)
- domain_exit(domain);
-
- return ret;
-}
-
-static inline int iommu_prepare_rmrr_dev(struct dmar_rmrr_unit *rmrr,
- struct device *dev)
-{
- if (dev->archdata.iommu == DUMMY_DEVICE_DOMAIN_INFO)
- return 0;
- return iommu_prepare_identity_map(dev, rmrr->base_address,
- rmrr->end_address);
-}
-
static int md_domain_init(struct dmar_domain *domain, int guest_width);
static int __init si_domain_init(int hw)
@@ -4094,7 +4040,6 @@ static void __init init_iommu_pm_ops(void)
static inline void init_iommu_pm_ops(void) {}
#endif /* CONFIG_PM */
-
int __init dmar_parse_one_rmrr(struct acpi_dmar_header *header, void *arg)
{
struct acpi_dmar_reserved_memory *rmrr;
ffice-5-3-4 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2020-09-30update translations for 7.0.2 rc2libreoffice-7-0-2Christian Lohmaier54-536/+452
2020-09-28update translations for 7.0.2 rc2Christian Lohmaier414-6164/+7035
2020-09-16Branch libreoffice-7-0-2Xisco Fauli0-0/+0
2020-09-07update translations for 7-0Christian Lohmaier802-12590/+13102
2020-08-27update translations for 7.0.1 rc2Christian Lohmaier233-6499/+5825
2020-08-17update translations for 7.0Christian Lohmaier1084-19897/+20469
2020-07-29update translations for 7.0.0 rc3Christian Lohmaier625-13022/+12070
2020-07-22Updated Slovenian translationAndras Timar8-40/+35
2020-07-15update translations for 7.0.0 rc2Christian Lohmaier228-1806/+1801
2020-07-13update translations for master/7.0Christian Lohmaier1958-22572/+27504
2020-07-06Updated Slovenian translationAndras Timar16-223/+286
2020-07-02update translations for 7.0.0 rc1Christian Lohmaier1936-205855/+232356
2020-06-30Updated Slovenian translationAndras Timar28-1611/+1691
2020-06-26Updated Slovenian translationAndras Timar24-880/+2263
2020-06-24update translations for master/7.0 and add ckb (Central Kurdish) filesChristian Lohmaier1523-61009/+396362
2020-06-17Updated Slovenian translationAndras Timar15-610/+641
2020-06-17update translations for 7.0 beta2Christian Lohmaier1578-119859/+150051
2020-06-03Updated Slovenian translationAndras Timar35-5096/+5555
2020-05-27Branch libreoffice-7-0Christian Lohmaier0-0/+0
2020-05-27update translations for 7.0.0 beta1libreoffice-7-0-branch-pointChristian Lohmaier