)]}' { "commit": "56993b4e147e9f2ba91ac15ef9ae5ee0626a6850", "tree": "5e6698f1f9c8caf0eddab295708256643708e69a", "parents": [ "1d9cfee7535c213038a615f112c900c2d0ba8f54" ], "author": { "name": "Anshuman Khandual", "email": "anshuman.khandual@arm.com", "time": "Thu Aug 06 23:23:24 2020 -0700" }, "committer": { "name": "Linus Torvalds", "email": "torvalds@linux-foundation.org", "time": "Fri Aug 07 11:33:27 2020 -0700" }, "message": "mm/sparsemem: enable vmem_altmap support in vmemmap_alloc_block_buf()\n\nThere are many instances where vmemap allocation is often switched between\nregular memory and device memory just based on whether altmap is available\nor not. vmemmap_alloc_block_buf() is used in various platforms to\nallocate vmemmap mappings. Lets also enable it to handle altmap based\ndevice memory allocation along with existing regular memory allocations.\nThis will help in avoiding the altmap based allocation switch in many\nplaces. To summarize there are two different methods to call\nvmemmap_alloc_block_buf().\n\nvmemmap_alloc_block_buf(size, node, NULL) /* Allocate from system RAM */\nvmemmap_alloc_block_buf(size, node, altmap) /* Allocate from altmap */\n\nThis converts altmap_alloc_block_buf() into a static function, drops it\u0027s\nentry from the header and updates Documentation/vm/memory-model.rst.\n\nSuggested-by: Robin Murphy \u003crobin.murphy@arm.com\u003e\nSigned-off-by: Anshuman Khandual \u003canshuman.khandual@arm.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nTested-by: Jia He \u003cjustin.he@arm.com\u003e\nReviewed-by: Catalin Marinas \u003ccatalin.marinas@arm.com\u003e\nCc: Jonathan Corbet \u003ccorbet@lwn.net\u003e\nCc: Will Deacon \u003cwill@kernel.org\u003e\nCc: Benjamin Herrenschmidt \u003cbenh@kernel.crashing.org\u003e\nCc: Paul Mackerras \u003cpaulus@samba.org\u003e\nCc: Michael Ellerman \u003cmpe@ellerman.id.au\u003e\nCc: Dave Hansen \u003cdave.hansen@linux.intel.com\u003e\nCc: Andy Lutomirski \u003cluto@kernel.org\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nCc: Thomas Gleixner \u003ctglx@linutronix.de\u003e\nCc: Ingo Molnar \u003cmingo@redhat.com\u003e\nCc: Borislav Petkov \u003cbp@alien8.de\u003e\nCc: \"H. Peter Anvin\" \u003chpa@zytor.com\u003e\nCc: Dan Williams \u003cdan.j.williams@intel.com\u003e\nCc: David Hildenbrand \u003cdavid@redhat.com\u003e\nCc: Fenghua Yu \u003cfenghua.yu@intel.com\u003e\nCc: Hsin-Yi Wang \u003chsinyi@chromium.org\u003e\nCc: \"Kirill A. Shutemov\" \u003ckirill.shutemov@linux.intel.com\u003e\nCc: Mark Rutland \u003cmark.rutland@arm.com\u003e\nCc: \"Matthew Wilcox (Oracle)\" \u003cwilly@infradead.org\u003e\nCc: Michal Hocko \u003cmhocko@suse.com\u003e\nCc: Mike Rapoport \u003crppt@linux.ibm.com\u003e\nCc: Palmer Dabbelt \u003cpalmer@dabbelt.com\u003e\nCc: Paul Walmsley \u003cpaul.walmsley@sifive.com\u003e\nCc: Pavel Tatashin \u003cpasha.tatashin@soleen.com\u003e\nCc: Steve Capper \u003csteve.capper@arm.com\u003e\nCc: Tony Luck \u003ctony.luck@intel.com\u003e\nCc: Yu Zhao \u003cyuzhao@google.com\u003e\nLink: http://lkml.kernel.org/r/1594004178-8861-3-git-send-email-anshuman.khandual@arm.com\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "cc65bc85d260f38c0ccd5bcffad65e149f706c1c", "old_mode": 33188, "old_path": "Documentation/vm/memory-model.rst", "new_id": "2b898a27b3465ef4cd4e5a2a14c00b616214046f", "new_mode": 33188, "new_path": "Documentation/vm/memory-model.rst" }, { "type": "modify", "old_id": "a32ddd021fe9844b8b8f2d8f401e457abee8900a", "old_mode": 33188, "old_path": "arch/arm64/mm/mmu.c", "new_id": "f3d9ff323c8f6225b9baa2dda881a2911759b436", "new_mode": 33188, "new_path": "arch/arm64/mm/mmu.c" }, { "type": "modify", "old_id": "bc73abf0bc25ea7ccce0a651fd4eb080b78843fe", "old_mode": 33188, "old_path": "arch/powerpc/mm/init_64.c", "new_id": "3fd504d72c5e63d340bdd099d02c54a311fa7f77", "new_mode": 33188, "new_path": "arch/powerpc/mm/init_64.c" }, { "type": "modify", "old_id": "1acc5627b21c229ad4eab08a427ef428adc020fa", "old_mode": 33188, "old_path": "arch/x86/mm/init_64.c", "new_id": "53e1d4f4ed9ded8aeb7acf18e0c6e5b7d22815b1", "new_mode": 33188, "new_path": "arch/x86/mm/init_64.c" }, { "type": "modify", "old_id": "a7ff98738126b121e979429136cb1d90a321c0c7", "old_mode": 33188, "old_path": "include/linux/mm.h", "new_id": "98e35df8d88e3d28b232854616ba1b6208faea5f", "new_mode": 33188, "new_path": "include/linux/mm.h" }, { "type": "modify", "old_id": "ceed10dec31e87d40f6a23b45c8f2d91213cd696", "old_mode": 33188, "old_path": "mm/sparse-vmemmap.c", "new_id": "41eeac67723bcf5c9dad7a508fec1e68abf5ef04", "new_mode": 33188, "new_path": "mm/sparse-vmemmap.c" } ] }