From: Vasant Hegde <vasant.hegde@amd.com>
To: <iommu@lists.linux.dev>, <joro@8bytes.org>
Cc: <suravee.suthikulpanit@amd.com>, Vasant Hegde <vasant.hegde@amd.com>
Subject: [PATCH 3/6] iommu/amd: Remove unused APERTURE_* macros
Date: Thu, 18 Jan 2024 09:01:02 +0000 [thread overview]
Message-ID: <20240118090105.5864-4-vasant.hegde@amd.com> (raw)
In-Reply-To: <20240118090105.5864-1-vasant.hegde@amd.com>
These macros are not used after commit 518d9b450387 ("iommu/amd: Remove
special mapping code for dma_ops path").
No functional change intended.
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
---
drivers/iommu/amd/amd_iommu_types.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h
index 722120f95647..9bef7aa54992 100644
--- a/drivers/iommu/amd/amd_iommu_types.h
+++ b/drivers/iommu/amd/amd_iommu_types.h
@@ -519,13 +519,6 @@ extern struct kmem_cache *amd_iommu_irq_cache;
#define for_each_pdom_dev_data_safe(pdom_dev_data, next, pdom) \
list_for_each_entry_safe((pdom_dev_data), (next), &pdom->dev_data_list, list)
-#define APERTURE_RANGE_SHIFT 27 /* 128 MB */
-#define APERTURE_RANGE_SIZE (1ULL << APERTURE_RANGE_SHIFT)
-#define APERTURE_RANGE_PAGES (APERTURE_RANGE_SIZE >> PAGE_SHIFT)
-#define APERTURE_MAX_RANGES 32 /* allows 4GB of DMA address space */
-#define APERTURE_RANGE_INDEX(a) ((a) >> APERTURE_RANGE_SHIFT)
-#define APERTURE_PAGE_INDEX(a) (((a) >> 21) & 0x3fULL)
-
struct amd_iommu;
struct iommu_domain;
--
2.31.1
next prev parent reply other threads:[~2024-01-18 9:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-18 9:00 [PATCH 0/6] iommu/amd: Misc cleanup Vasant Hegde
2024-01-18 9:01 ` [PATCH 1/6] iommu/amd: Remove unused PPR_* macros Vasant Hegde
2024-01-18 9:01 ` [PATCH 2/6] iommu/amd: Remove unused IOVA_* macro Vasant Hegde
2024-01-18 9:01 ` Vasant Hegde [this message]
2024-01-18 9:01 ` [PATCH 4/6] iommu/amd: Remove duplicate function declarations from amd_iommu.h Vasant Hegde
2024-01-18 9:01 ` [PATCH 5/6] iommu/amd: Remove redundant error check in amd_iommu_probe_device() Vasant Hegde
2024-01-18 9:01 ` [PATCH 6/6] iommu/amd: Remove EXPORT_SYMBOL for perf counter related functions Vasant Hegde
2024-01-19 19:37 ` [PATCH 0/6] iommu/amd: Misc cleanup Alejandro Jimenez
2024-01-22 3:49 ` Vasant Hegde
2024-02-06 12:58 ` Jason Gunthorpe
2024-02-09 10:41 ` Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240118090105.5864-4-vasant.hegde@amd.com \
--to=vasant.hegde@amd.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=suravee.suthikulpanit@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox