aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-06-05 10:15:37 +0200
committerJan Beulich <jbeulich@suse.com>2013-06-05 10:15:37 +0200
commit50fa233019351cbc47dc7b3bb63dd1a50fbd8a49 (patch)
treeb33fbfb07049002e2189de535cdf8666e2e479d4
parent13e00caf1a01a4eb99f2269be6ce12a3a4703178 (diff)
downloadxen-50fa233019351cbc47dc7b3bb63dd1a50fbd8a49.tar.gz
xen-50fa233019351cbc47dc7b3bb63dd1a50fbd8a49.tar.bz2
xen-50fa233019351cbc47dc7b3bb63dd1a50fbd8a49.zip
Revert "AMD/iommu: SR56x0 Erratum 64 - Reset all head & tail pointers"
This reverts commit 22de18bb89e776f77256653901a590aad9fc0a52. The code this patch added is redundant with already present code in set_iommu_{command_buffer,event_log}_control(). Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> master commit: e430510e5cbbfcdc1077739292def633e70fedea master date: 2013-06-05 10:05:49 +0200
-rw-r--r--xen/drivers/passthrough/amd/iommu_init.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/xen/drivers/passthrough/amd/iommu_init.c b/xen/drivers/passthrough/amd/iommu_init.c
index adf220b3c6..fcb7e87f5f 100644
--- a/xen/drivers/passthrough/amd/iommu_init.c
+++ b/xen/drivers/passthrough/amd/iommu_init.c
@@ -119,11 +119,6 @@ static void register_iommu_cmd_buffer_in_mmio_space(struct amd_iommu *iommu)
IOMMU_CMD_BUFFER_LENGTH_MASK,
IOMMU_CMD_BUFFER_LENGTH_SHIFT, &entry);
writel(entry, iommu->mmio_base+IOMMU_CMD_BUFFER_BASE_HIGH_OFFSET);
-
- /* Reset head/tail pointer. SR56x0 Erratum 64 means this might not happen
- * automatically for us. */
- writel(0, iommu->mmio_base + IOMMU_CMD_BUFFER_HEAD_OFFSET);
- writel(0, iommu->mmio_base + IOMMU_CMD_BUFFER_TAIL_OFFSET);
}
static void register_iommu_event_log_in_mmio_space(struct amd_iommu *iommu)
@@ -151,11 +146,6 @@ static void register_iommu_event_log_in_mmio_space(struct amd_iommu *iommu)
IOMMU_EVENT_LOG_LENGTH_MASK,
IOMMU_EVENT_LOG_LENGTH_SHIFT, &entry);
writel(entry, iommu->mmio_base+IOMMU_EVENT_LOG_BASE_HIGH_OFFSET);
-
- /* Reset head/tail pointer. SR56x0 Erratum 64 means this might not happen
- * automatically for us. */
- writel(0, iommu->mmio_base + IOMMU_EVENT_LOG_HEAD_OFFSET);
- writel(0, iommu->mmio_base + IOMMU_EVENT_LOG_TAIL_OFFSET);
}
static void set_iommu_translation_control(struct amd_iommu *iommu,