Commit bb0e391
Christoph Hellwig
dma-mapping: fix vmap and mmap of noncontiougs allocations
Commit b5c58b2 ("dma-mapping: direct calls for dma-iommu") switched
to use direct calls to dma-iommu, but missed the dma_vmap_noncontiguous,
dma_vunmap_noncontiguous and dma_mmap_noncontiguous behavior keyed off the
presence of the alloc_noncontiguous method.
Fix this by removing the now unused alloc_noncontiguous and
free_noncontiguous methods and moving the vmapping and mmaping of the
noncontiguous allocations into the iommu code, as it is the only provider
of actually noncontiguous allocations.
Fixes: b5c58b2 ("dma-mapping: direct calls for dma-iommu")
Reported-by: Xi Ruoyao <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Tested-by: Xi Ruoyao <[email protected]>1 parent 8826498 commit bb0e391
File tree
4 files changed
+49
-46
lines changed- drivers/iommu
- include/linux
- kernel/dma
4 files changed
+49
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1041 | 1056 | | |
1042 | 1057 | | |
1043 | 1058 | | |
| |||
1066 | 1081 | | |
1067 | 1082 | | |
1068 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1069 | 1102 | | |
1070 | 1103 | | |
1071 | 1104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| |||
206 | 201 | | |
207 | 202 | | |
208 | 203 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 204 | | |
224 | 205 | | |
225 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | 753 | | |
755 | 754 | | |
756 | 755 | | |
757 | 756 | | |
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
761 | | - | |
762 | | - | |
763 | | - | |
| 760 | + | |
764 | 761 | | |
765 | 762 | | |
766 | 763 | | |
| |||
786 | 783 | | |
787 | 784 | | |
788 | 785 | | |
789 | | - | |
790 | | - | |
791 | 786 | | |
792 | 787 | | |
793 | | - | |
794 | | - | |
795 | | - | |
| 788 | + | |
| 789 | + | |
796 | 790 | | |
797 | 791 | | |
798 | 792 | | |
| |||
802 | 796 | | |
803 | 797 | | |
804 | 798 | | |
805 | | - | |
806 | | - | |
807 | 799 | | |
808 | | - | |
809 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
810 | 803 | | |
811 | 804 | | |
812 | 805 | | |
813 | 806 | | |
814 | 807 | | |
815 | 808 | | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
| 809 | + | |
| 810 | + | |
820 | 811 | | |
821 | 812 | | |
822 | 813 | | |
823 | 814 | | |
824 | 815 | | |
825 | 816 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
| 817 | + | |
| 818 | + | |
836 | 819 | | |
837 | 820 | | |
838 | 821 | | |
| |||
0 commit comments