// SPDX-License-Identifier: GPL-2.0 /* Glue code to lib/swiotlb.c */ #include <linux/pci.h> #include <linux/cache.h> #include <linux/init.h> #include <linux/swiotlb.h> #include <linux/bootmem.h> #include <linux/dma-direct.h> #include <linux/mem_encrypt.h> #include <asm/iommu.h> #include <asm/swiotlb.h> #include <asm/dma.h> #include <asm/xen/swiotlb-xen.h> #include <asm/iommu_table.h> int swiotlb __read_mostly; /* * pci_swiotlb_detect_override - set swiotlb to 1 if necessary * * This returns non-zero if we are forced to use swiotlb (by the boot * option). */
int __init pci_swiotlb_detect_override(void) { if (swiotlb_force == SWIOTLB_FORCE) swiotlb = 1; return swiotlb; }Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Konrad Rzeszutek Wilk | 12 | 57.14% | 1 | 16.67% |
| Muli Ben-Yehuda | 4 | 19.05% | 1 | 16.67% |
| Geert Uytterhoeven | 3 | 14.29% | 2 | 33.33% |
| Jan Beulich | 1 | 4.76% | 1 | 16.67% |
| FUJITA Tomonori | 1 | 4.76% | 1 | 16.67% |
| Total | 21 | 100.00% | 6 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Tom Lendacky | 10 | 25.00% | 1 | 14.29% |
| Muli Ben-Yehuda | 8 | 20.00% | 1 | 14.29% |
| Konrad Rzeszutek Wilk | 8 | 20.00% | 1 | 14.29% |
| Jeremy Fitzhardinge | 5 | 12.50% | 1 | 14.29% |
| Andi Kleen | 5 | 12.50% | 1 | 14.29% |
| FUJITA Tomonori | 3 | 7.50% | 1 | 14.29% |
| Igor Mammedov | 1 | 2.50% | 1 | 14.29% |
| Total | 40 | 100.00% | 7 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Muli Ben-Yehuda | 12 | 50.00% | 1 | 20.00% |
| FUJITA Tomonori | 11 | 45.83% | 3 | 60.00% |
| Christoph Hellwig | 1 | 4.17% | 1 | 20.00% |
| Total | 24 | 100.00% | 5 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Konrad Rzeszutek Wilk | 29 | 96.67% | 1 | 50.00% |
| Christoph Hellwig | 1 | 3.33% | 1 | 50.00% |
| Total | 30 | 100.00% | 2 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Konrad Rzeszutek Wilk | 78 | 43.09% | 2 | 10.00% |
| Muli Ben-Yehuda | 47 | 25.97% | 1 | 5.00% |
| FUJITA Tomonori | 16 | 8.84% | 4 | 20.00% |
| Tom Lendacky | 14 | 7.73% | 1 | 5.00% |
| Jeremy Fitzhardinge | 11 | 6.08% | 2 | 10.00% |
| Andi Kleen | 5 | 2.76% | 1 | 5.00% |
| Christoph Hellwig | 3 | 1.66% | 3 | 15.00% |
| Geert Uytterhoeven | 3 | 1.66% | 2 | 10.00% |
| Paul Gortmaker | 1 | 0.55% | 1 | 5.00% |
| Igor Mammedov | 1 | 0.55% | 1 | 5.00% |
| Jan Beulich | 1 | 0.55% | 1 | 5.00% |
| Greg Kroah-Hartman | 1 | 0.55% | 1 | 5.00% |
| Total | 181 | 100.00% | 20 | 100.00% |