summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishant Prajapati <nishantpjpt@google.com>2022-10-11 14:44:59 +0530
committerTodd Poynor <toddpoynor@google.com>2022-11-14 22:55:41 +0000
commit64dff03f321d3f5186ee2c275a15478375d166b7 (patch)
treec2339b9e5cf9e4906f4e0bf35528d57fd3bf153f
parent304fdaa8288eb7d862031c8f33986d94bf70be1e (diff)
downloadabrolhos-android-gs-lynx-5.10-android13-d4.tar.gz
Add pre-allocated iommu domains per contexts. Bug: 251639928 Signed-off-by: Nishant Prajapati <nishantpjpt@google.com> Change-Id: Ia43d80e12cc046dc67c9f5cf49d6773eb3fcaa06 (cherry picked from commit 3778a777b969d38a2e2443c64d84e36bbe14e47f)
-rw-r--r--drivers/edgetpu/abrolhos/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/edgetpu/abrolhos/config.h b/drivers/edgetpu/abrolhos/config.h
index 57d6170..9cb5ffc 100644
--- a/drivers/edgetpu/abrolhos/config.h
+++ b/drivers/edgetpu/abrolhos/config.h
@@ -20,6 +20,9 @@
/* Reserved VCID that uses the extra partition. */
#define EDGETPU_VCID_EXTRA_PARTITION 0
+/* Pre-allocate 1 IOMMU domain per VCID */
+#define EDGETPU_NUM_PREALLOCATED_DOMAINS EDGETPU_NUM_VCIDS
+
/* Is a "mobile" style device. */
#define EDGETPU_FEATURE_MOBILE
#define EDGETPU_HAS_WAKELOCK