|
@@ -1502,7 +1502,7 @@ nouveau_ttm_tt_populate(struct ttm_tt *ttm)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_SWIOTLB
|
|
|
|
|
|
+#if IS_ENABLED(CONFIG_SWIOTLB) && IS_ENABLED(CONFIG_X86)
|
|
if (swiotlb_nr_tbl()) {
|
|
if (swiotlb_nr_tbl()) {
|
|
return ttm_dma_populate((void *)ttm, dev->dev);
|
|
return ttm_dma_populate((void *)ttm, dev->dev);
|
|
}
|
|
}
|
|
@@ -1570,7 +1570,7 @@ nouveau_ttm_tt_unpopulate(struct ttm_tt *ttm)
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_SWIOTLB
|
|
|
|
|
|
+#if IS_ENABLED(CONFIG_SWIOTLB) && IS_ENABLED(CONFIG_X86)
|
|
if (swiotlb_nr_tbl()) {
|
|
if (swiotlb_nr_tbl()) {
|
|
ttm_dma_unpopulate((void *)ttm, dev->dev);
|
|
ttm_dma_unpopulate((void *)ttm, dev->dev);
|
|
return;
|
|
return;
|