* Re: [PATCH 5/5] mm/hotplug: export try_online_node [not found] ` <f1bad6f784efdd26508b858db46f0192a349c7a1.camel@d-silva.org> @ 2019-06-17 7:15 ` Christoph Hellwig 2019-06-17 8:00 ` Alastair D'Silva 0 siblings, 1 reply; 3+ messages in thread From: Christoph Hellwig @ 2019-06-17 7:15 UTC (permalink / raw) To: Alastair D'Silva Cc: Peter Zijlstra, Andrew Morton, David Hildenbrand, Oscar Salvador, Michal Hocko, Pavel Tatashin, Wei Yang, Arun KS, Qian Cai, Thomas Gleixner, Ingo Molnar, Josh Poimboeuf, Jiri Kosina, Mukesh Ojha, Mike Rapoport, Baoquan He, Logan Gunthorpe, linux-mm, linux-kernel, linux-nvdimm On Mon, Jun 17, 2019 at 05:05:30PM +1000, Alastair D'Silva wrote: > On Mon, 2019-06-17 at 08:59 +0200, Peter Zijlstra wrote: > > On Mon, Jun 17, 2019 at 02:36:31PM +1000, Alastair D'Silva wrote: > > > From: Alastair D'Silva <alastair@d-silva.org> > > > > > > If an external driver module supplies physical memory and needs to > > > expose > > > > Why would you ever want to allow a module to do such a thing? > > > > I'm working on a driver for Storage Class Memory, connected via an > OpenCAPI link. > > The memory is only usable once the card says it's OK to access it. And all that should go through our pmem APIs, not not directly poke into mm internals. And if you still need core patches send them along with the actual driver. ^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 5/5] mm/hotplug: export try_online_node 2019-06-17 7:15 ` [PATCH 5/5] mm/hotplug: export try_online_node Christoph Hellwig @ 2019-06-17 8:00 ` Alastair D'Silva 2019-06-17 13:14 ` 'Christoph Hellwig' 0 siblings, 1 reply; 3+ messages in thread From: Alastair D'Silva @ 2019-06-17 8:00 UTC (permalink / raw) To: 'Christoph Hellwig' Cc: 'Oscar Salvador', 'Michal Hocko', 'Pavel Tatashin', 'Baoquan He', 'David Hildenbrand', 'Peter Zijlstra', 'Jiri Kosina', 'Mukesh Ojha', 'Ingo Molnar', linux-kernel, 'Wei Yang', linux-mm, 'Mike Rapoport', 'Arun KS', 'Josh Poimboeuf', 'Qian Cai', 'Andrew Morton', 'Thomas Gleixner', linux-nvdimm > -----Original Message----- > From: Christoph Hellwig <hch@infradead.org> > Sent: Monday, 17 June 2019 5:15 PM > To: Alastair D'Silva <alastair@d-silva.org> > Cc: Peter Zijlstra <peterz@infradead.org>; Andrew Morton <akpm@linux- > foundation.org>; David Hildenbrand <david@redhat.com>; Oscar Salvador > <osalvador@suse.com>; Michal Hocko <mhocko@suse.com>; Pavel Tatashin > <pasha.tatashin@soleen.com>; Wei Yang <richard.weiyang@gmail.com>; > Arun KS <arunks@codeaurora.org>; Qian Cai <cai@lca.pw>; Thomas Gleixner > <tglx@linutronix.de>; Ingo Molnar <mingo@kernel.org>; Josh Poimboeuf > <jpoimboe@redhat.com>; Jiri Kosina <jkosina@suse.cz>; Mukesh Ojha > <mojha@codeaurora.org>; Mike Rapoport <rppt@linux.vnet.ibm.com>; > Baoquan He <bhe@redhat.com>; Logan Gunthorpe > <logang@deltatee.com>; linux-mm@kvack.org; linux- > kernel@vger.kernel.org; linux-nvdimm@lists.01.org > Subject: Re: [PATCH 5/5] mm/hotplug: export try_online_node > > On Mon, Jun 17, 2019 at 05:05:30PM +1000, Alastair D'Silva wrote: > > On Mon, 2019-06-17 at 08:59 +0200, Peter Zijlstra wrote: > > > On Mon, Jun 17, 2019 at 02:36:31PM +1000, Alastair D'Silva wrote: > > > > From: Alastair D'Silva <alastair@d-silva.org> > > > > > > > > If an external driver module supplies physical memory and needs to > > > > expose > > > > > > Why would you ever want to allow a module to do such a thing? > > > > > > > I'm working on a driver for Storage Class Memory, connected via an > > OpenCAPI link. > > > > The memory is only usable once the card says it's OK to access it. > > And all that should go through our pmem APIs, not not directly poke into mm > internals. And if you still need core patches send them along with the actual > driver. I tried that, but I was getting crashes as the NUMA data structures for that node were not initialised. Calling this was required to prevent uninitialized accesses in the pmem library. -- Alastair D'Silva mob: 0423 762 819 skype: alastair_dsilva msn: alastair@d-silva.org blog: http://alastair.d-silva.org Twitter: @EvilDeece _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 5/5] mm/hotplug: export try_online_node 2019-06-17 8:00 ` Alastair D'Silva @ 2019-06-17 13:14 ` 'Christoph Hellwig' 0 siblings, 0 replies; 3+ messages in thread From: 'Christoph Hellwig' @ 2019-06-17 13:14 UTC (permalink / raw) To: Alastair D'Silva Cc: 'Christoph Hellwig', 'Peter Zijlstra', 'Andrew Morton', 'David Hildenbrand', 'Oscar Salvador', 'Michal Hocko', 'Pavel Tatashin', 'Wei Yang', 'Arun KS', 'Qian Cai', 'Thomas Gleixner', 'Ingo Molnar', 'Josh Poimboeuf', 'Jiri Kosina', 'Mukesh Ojha', 'Mike Rapoport', 'Baoquan He', 'Logan Gunthorpe', linux-mm, linux-kernel, linux-nvdimm On Mon, Jun 17, 2019 at 06:00:00PM +1000, Alastair D'Silva wrote: > > And all that should go through our pmem APIs, not not directly poke into > mm > > internals. And if you still need core patches send them along with the > actual > > driver. > > I tried that, but I was getting crashes as the NUMA data structures for that > node were not initialised. > > Calling this was required to prevent uninitialized accesses in the pmem > library. Please send your driver to the linux-nvdimm and linux-mm lists so that it can be carefully reviewed. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-17 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20190617043635.13201-1-alastair@au1.ibm.com>
[not found] ` <20190617043635.13201-6-alastair@au1.ibm.com>
[not found] ` <20190617065921.GV3436@hirez.programming.kicks-ass.net>
[not found] ` <f1bad6f784efdd26508b858db46f0192a349c7a1.camel@d-silva.org>
2019-06-17 7:15 ` [PATCH 5/5] mm/hotplug: export try_online_node Christoph Hellwig
2019-06-17 8:00 ` Alastair D'Silva
2019-06-17 13:14 ` 'Christoph Hellwig'
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox