File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1144,6 +1144,19 @@ noinline void __init arc_ioc_setup(void)
1144
1144
{
1145
1145
unsigned int ioc_base , mem_sz ;
1146
1146
1147
+ /*
1148
+ * As for today we don't support both IOC and ZONE_HIGHMEM enabled
1149
+ * simultaneously. This happens because as of today IOC aperture covers
1150
+ * only ZONE_NORMAL (low mem) and any dma transactions outside this
1151
+ * region won't be HW coherent.
1152
+ * If we want to use both IOC and ZONE_HIGHMEM we can use
1153
+ * bounce_buffer to handle dma transactions to HIGHMEM.
1154
+ * Also it is possible to modify dma_direct cache ops or increase IOC
1155
+ * aperture size if we are planning to use HIGHMEM without PAE.
1156
+ */
1157
+ if (IS_ENABLED (CONFIG_HIGHMEM ))
1158
+ panic ("IOC and HIGHMEM can't be used simultaneously" );
1159
+
1147
1160
/* Flush + invalidate + disable L1 dcache */
1148
1161
__dc_disable ();
1149
1162
You can’t perform that action at this time.
0 commit comments