aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/pseries/iommu.c')
-rw-r--r--arch/powerpc/platforms/pseries/iommu.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
index a77bcaed80af..fa2906a103dd 100644
--- a/arch/powerpc/platforms/pseries/iommu.c
+++ b/arch/powerpc/platforms/pseries/iommu.c
@@ -622,3 +622,17 @@ void iommu_init_early_pSeries(void)
622 set_pci_dma_ops(&dma_iommu_ops); 622 set_pci_dma_ops(&dma_iommu_ops);
623} 623}
624 624
625static int __init disable_multitce(char *str)
626{
627 if (strcmp(str, "off") == 0 &&
628 firmware_has_feature(FW_FEATURE_LPAR) &&
629 firmware_has_feature(FW_FEATURE_MULTITCE)) {
630 printk(KERN_INFO "Disabling MULTITCE firmware feature\n");
631 ppc_md.tce_build = tce_build_pSeriesLP;
632 ppc_md.tce_free = tce_free_pSeriesLP;
633 powerpc_firmware_features &= ~FW_FEATURE_MULTITCE;
634 }
635 return 1;
636}
637
638__setup("multitce=", disable_multitce);