summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-11-26 15:21:27 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-11-26 15:21:27 +0000
commit613d92a3cce73f8b061961e6fc2af66555ebdfd9 (patch)
tree7c0e12e9ae9828f28e5c7dfce64036a2ea06ae54 /sys/arch
parent77677693895288fc073b7d4257caeb10e3769718 (diff)
The IORT table usually only contains single mappings. While on the LX2K there
is a non-single mapping for the networking subsystem, we don't yet have support for it and apparently Linux has trouble with it as well. So for now we can remove the code, because it uses an uninitialized variable and there's no easy way to fix it without re-thinking the concept. The code got there in the first place because it's a copy of the same pattern in our other IOMMU code. ok jsg@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/dev/acpiiort.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/arch/arm64/dev/acpiiort.c b/sys/arch/arm64/dev/acpiiort.c
index 7bee4dac83e..93626c915c0 100644
--- a/sys/arch/arm64/dev/acpiiort.c
+++ b/sys/arch/arm64/dev/acpiiort.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiiort.c,v 1.4 2021/06/25 17:41:22 patrick Exp $ */
+/* $OpenBSD: acpiiort.c,v 1.5 2021/11/26 15:21:26 patrick Exp $ */
/*
* Copyright (c) 2021 Patrick Wildt <patrick@blueri.se>
*
@@ -169,13 +169,6 @@ acpiiort_device_map(struct aml_node *root, bus_dma_tag_t dmat)
rid = map[i].output_base;
break;
}
-
- /* Mapping encodes number of IDs in the range minus one. */
- if (map[i].input_base <= rid &&
- rid <= map[i].input_base + map[i].number_of_ids) {
- rid = map[i].output_base + (rid - map[i].input_base);
- break;
- }
}
/* No mapping found? Even weirder. */