Re: [PATCH 3/3] pseries/scm: buffer pmem's bound addr in dt for kexec kernel

2020-02-27 Thread Christophe Leroy
Le 28/02/2020 à 06:53, Pingfan Liu a écrit : At present, plpar_hcall(H_SCM_BIND_MEM, ...) takes a very long time, so if dumping to fsdax, it will take a very long time. Take a closer look, during the papr_scm initialization, the only configuration is through drc_pmem_bind()-> plpar_hcall(H_SCM

Re: [PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Christophe Leroy
Le 28/02/2020 à 06:53, Pingfan Liu a écrit : Since new_property() is used in several calling sites, splitting it out for reusing. To ease the review, although the split out part has coding style issue, keeping it untouched and fixed in next patch. The moved function fits in one screen. I don

Re: [PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Pingfan Liu
On Fri, Feb 28, 2020 at 2:03 PM Andrew Donnellan wrote: > > On 28/2/20 4:53 pm, Pingfan Liu wrote: > > Since new_property() is used in several calling sites, splitting it out for > > reusing. > > > > To ease the review, although the split out part has coding style issue, > > keeping it untouched a

Re: [PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Andrew Donnellan
On 28/2/20 4:53 pm, Pingfan Liu wrote: Since new_property() is used in several calling sites, splitting it out for reusing. To ease the review, although the split out part has coding style issue, keeping it untouched and fixed in next patch. Signed-off-by: Pingfan Liu To: linuxppc-...@lists.oz

[PATCH 2/3] powerpc/of: coding style cleanup

2020-02-27 Thread Pingfan Liu
Signed-off-by: Pingfan Liu To: linuxppc-...@lists.ozlabs.org Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Hari Bathini Cc: Aneesh Kumar K.V Cc: Oliver O'Halloran Cc: Dan Williams Cc: kexec@lists.infradead.org --- arch/powerpc/kernel/of_property.c | 8 +--- 1 f

[PATCH 3/3] pseries/scm: buffer pmem's bound addr in dt for kexec kernel

2020-02-27 Thread Pingfan Liu
At present, plpar_hcall(H_SCM_BIND_MEM, ...) takes a very long time, so if dumping to fsdax, it will take a very long time. Take a closer look, during the papr_scm initialization, the only configuration is through drc_pmem_bind()-> plpar_hcall(H_SCM_BIND_MEM, ...), which helps to set up the bound

[PATCH 1/3] powerpc/of: split out new_property() for reusing

2020-02-27 Thread Pingfan Liu
Since new_property() is used in several calling sites, splitting it out for reusing. To ease the review, although the split out part has coding style issue, keeping it untouched and fixed in next patch. Signed-off-by: Pingfan Liu To: linuxppc-...@lists.ozlabs.org Cc: Benjamin Herrenschmidt Cc:

Re: [RFC PATCH 09/11] kallsyms: hide layout and expose seed

2020-02-27 Thread Baoquan He
On 02/27/20 at 08:02am, Kees Cook wrote: > On Thu, Feb 27, 2020 at 10:42:53AM +0800, Baoquan He wrote: > > On 02/06/20 at 09:51am, Kristen Carlson Accardi wrote: > > > On Thu, 2020-02-06 at 04:32 -0800, Kees Cook wrote: > > > > > > In the past, making kallsyms entirely unreadable seemed to break >

Re: [RFC PATCH 09/11] kallsyms: hide layout and expose seed

2020-02-27 Thread Kees Cook
On Thu, Feb 27, 2020 at 10:42:53AM +0800, Baoquan He wrote: > On 02/06/20 at 09:51am, Kristen Carlson Accardi wrote: > > On Thu, 2020-02-06 at 04:32 -0800, Kees Cook wrote: > > > > In the past, making kallsyms entirely unreadable seemed to break > > > weird > > > stuff in userspace. How about havi

Re: more barriers: Re: [PATCH 1/2] printk: add lockless buffer

2020-02-27 Thread John Ogness
On 2020-02-21, Petr Mladek wrote: > If I get it correctly, the used cmpxchg_relaxed() variants does not > provide full barriers. They are just able to prevent parallel > manipulation of the modified variable. Correct. I purposely avoided the full barriers of a successful cmpxchg() so that we cou