forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commiteee0793
arm64/mm: enable vmem_altmap support for vmemmap mappings
Device memory ranges when getting hot added into ZONE_DEVICE, mightrequire their vmemmap mapping's backing memory to be allocated from theirown range instead of consuming system memory. This prevents large systemmemory usage for potentially large device memory ranges. Device drivercommunicates this request via vmem_altmap structure. Architecture needsto take this request into account while creating and tearing down vemmmapmappings.This enables vmem_altmap support in vmemmap_populate() and vmemmap_free()which includes vmemmap_populate_basepages() used for ARM64_16K_PAGES andARM64_64K_PAGES configs.Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Tested-by: Jia He <justin.he@arm.com>Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>Cc: Will Deacon <will@kernel.org>Cc: Mark Rutland <mark.rutland@arm.com>Cc: Steve Capper <steve.capper@arm.com>Cc: David Hildenbrand <david@redhat.com>Cc: Yu Zhao <yuzhao@google.com>Cc: Hsin-Yi Wang <hsinyi@chromium.org>Cc: Thomas Gleixner <tglx@linutronix.de>Cc: Andy Lutomirski <luto@kernel.org>Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>Cc: Borislav Petkov <bp@alien8.de>Cc: Dan Williams <dan.j.williams@intel.com>Cc: Dave Hansen <dave.hansen@linux.intel.com>Cc: Fenghua Yu <fenghua.yu@intel.com>Cc: "H. Peter Anvin" <hpa@zytor.com>Cc: Ingo Molnar <mingo@redhat.com>Cc: Jonathan Corbet <corbet@lwn.net>Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>Cc: Michael Ellerman <mpe@ellerman.id.au>Cc: Michal Hocko <mhocko@suse.com>Cc: Mike Rapoport <rppt@linux.ibm.com>Cc: Palmer Dabbelt <palmer@dabbelt.com>Cc: Paul Mackerras <paulus@samba.org>Cc: Paul Walmsley <paul.walmsley@sifive.com>Cc: Pavel Tatashin <pasha.tatashin@soleen.com>Cc: Peter Zijlstra <peterz@infradead.org>Cc: Robin Murphy <robin.murphy@arm.com>Cc: Tony Luck <tony.luck@intel.com>Link:http://lkml.kernel.org/r/1594004178-8861-4-git-send-email-anshuman.khandual@arm.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent56993b4 commiteee0793
1 file changed
+38
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
| 765 | + | |
765 | 766 | | |
766 | | - | |
767 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
771 | 776 | | |
772 | | - | |
| 777 | + | |
773 | 778 | | |
774 | 779 | | |
775 | 780 | | |
| |||
792 | 797 | | |
793 | 798 | | |
794 | 799 | | |
795 | | - | |
| 800 | + | |
| 801 | + | |
796 | 802 | | |
797 | 803 | | |
798 | 804 | | |
| |||
806 | 812 | | |
807 | 813 | | |
808 | 814 | | |
809 | | - | |
| 815 | + | |
| 816 | + | |
810 | 817 | | |
811 | 818 | | |
812 | 819 | | |
813 | 820 | | |
814 | | - | |
| 821 | + | |
| 822 | + | |
815 | 823 | | |
816 | 824 | | |
817 | 825 | | |
| |||
834 | 842 | | |
835 | 843 | | |
836 | 844 | | |
837 | | - | |
| 845 | + | |
838 | 846 | | |
839 | 847 | | |
840 | 848 | | |
841 | | - | |
| 849 | + | |
842 | 850 | | |
843 | 851 | | |
844 | 852 | | |
845 | 853 | | |
846 | | - | |
| 854 | + | |
| 855 | + | |
847 | 856 | | |
848 | 857 | | |
849 | 858 | | |
| |||
866 | 875 | | |
867 | 876 | | |
868 | 877 | | |
869 | | - | |
| 878 | + | |
870 | 879 | | |
871 | 880 | | |
872 | 881 | | |
873 | | - | |
| 882 | + | |
874 | 883 | | |
875 | 884 | | |
876 | 885 | | |
877 | 886 | | |
878 | | - | |
| 887 | + | |
| 888 | + | |
879 | 889 | | |
880 | 890 | | |
881 | 891 | | |
| |||
888 | 898 | | |
889 | 899 | | |
890 | 900 | | |
891 | | - | |
| 901 | + | |
892 | 902 | | |
893 | 903 | | |
894 | 904 | | |
895 | 905 | | |
896 | | - | |
| 906 | + | |
897 | 907 | | |
898 | 908 | | |
899 | 909 | | |
900 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
901 | 919 | | |
902 | 920 | | |
903 | 921 | | |
| |||
906 | 924 | | |
907 | 925 | | |
908 | 926 | | |
909 | | - | |
| 927 | + | |
910 | 928 | | |
911 | 929 | | |
912 | 930 | | |
| |||
1070 | 1088 | | |
1071 | 1089 | | |
1072 | 1090 | | |
1073 | | - | |
| 1091 | + | |
1074 | 1092 | | |
1075 | 1093 | | |
1076 | 1094 | | |
| |||
1102 | 1120 | | |
1103 | 1121 | | |
1104 | 1122 | | |
1105 | | - | |
| 1123 | + | |
1106 | 1124 | | |
1107 | 1125 | | |
1108 | 1126 | | |
| |||
1120 | 1138 | | |
1121 | 1139 | | |
1122 | 1140 | | |
1123 | | - | |
| 1141 | + | |
1124 | 1142 | | |
1125 | 1143 | | |
1126 | 1144 | | |
| |||
1411 | 1429 | | |
1412 | 1430 | | |
1413 | 1431 | | |
1414 | | - | |
| 1432 | + | |
1415 | 1433 | | |
1416 | 1434 | | |
1417 | 1435 | | |
| |||
0 commit comments
Comments
(0)