Re: [PATCH v3 1/7] mm/memory_hotplug: Drop the flags field from struct mhp_restrictions

2020-02-28 Thread Dan Williams
On Fri, Feb 21, 2020 at 10:25 AM Logan Gunthorpe wrote: > > This variable is not used anywhere and should therefore be removed > from the structure. > > Signed-off-by: Logan Gunthorpe > Reviewed-by: David Hildenbrand Reviewed-by: Dan Williams

Re: [PATCH] libnvdimm/bus: return the outvar 'cmd_rc' error code in __nd_ioctl()

2020-02-28 Thread Dan Williams
On Tue, Feb 18, 2020 at 1:03 PM Dan Williams wrote: > > On Tue, Feb 18, 2020 at 1:00 PM Jeff Moyer wrote: > > > > Vaibhav Jain writes: > > > > > Presently the error code returned via out variable 'cmd_rc' from the > > > nvdimm-bus controller function is ignored when called from > > >

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-02-28 Thread Jason Yan
在 2020/2/29 12:28, Scott Wood 写道: On Fri, 2020-02-28 at 14:47 +0800, Jason Yan wrote: 在 2020/2/28 13:53, Scott Wood 写道: On Wed, 2020-02-26 at 16:18 +0800, Jason Yan wrote: Hi Daniel, 在 2020/2/26 15:16, Daniel Axtens 写道: Maybe replacing the REG format string in KASLR mode would be

[RFC PATCH v1] powerpc/prom_init: disable XIVE in Secure VM.

2020-02-28 Thread Ram Pai
XIVE is not correctly enabled for Secure VM in the KVM Hypervisor yet. Hence Secure VM, must always default to XICS interrupt controller. If XIVE is requested through kernel command line option "xive=on", override and turn it off. If XIVE is the only supported platform interrupt controller;

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-02-28 Thread Scott Wood
On Fri, 2020-02-28 at 14:47 +0800, Jason Yan wrote: > > 在 2020/2/28 13:53, Scott Wood 写道: > > On Wed, 2020-02-26 at 16:18 +0800, Jason Yan wrote: > > > Hi Daniel, > > > > > > 在 2020/2/26 15:16, Daniel Axtens 写道: > > > > Maybe replacing the REG format string in KASLR mode would be > > > >

Re: [PATCH v4 00/11] Add the multiple PF support for DWC and Layerscape

2020-02-28 Thread Lorenzo Pieralisi
On Tue, Sep 24, 2019 at 10:18:38AM +0800, Xiaowei Bao wrote: > Add the PCIe EP multiple PF support for DWC and Layerscape, add > the doorbell MSIX function for DWC, use list to manage the PF of > one PCIe controller, and refactor the Layerscape EP driver due to > some platforms difference. > >

Re: [PATCH] selftests: pidfd: Add pidfd_fdinfo_test in .gitignore

2020-02-28 Thread Christian Brauner
On Fri, Feb 28, 2020 at 01:18:44AM +0100, Christian Brauner wrote: > On February 28, 2020 1:00:08 AM GMT+01:00, Christophe Leroy > wrote: > >The commit identified below added pidfd_fdinfo_test > >but failed to add it to .gitignore > > > >Fixes: 2def297ec7fb ("pidfd: add tests for NSpid info in

[PATCHv2 2/2] pSeries/papr_scm: buffer pmem's bound addr in dt for kexec kernel

2020-02-28 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

[PATCHv2 1/2] powerpc/of: split out new_property() for reusing

2020-02-28 Thread Pingfan Liu
Splitting out new_property() for coming reusing and moving it to of_helpers.c. Also do some coding style cleanup. Signed-off-by: Pingfan Liu To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Hari Bathini Cc: Aneesh Kumar K.V Cc: Oliver

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

2020-02-28 Thread Pingfan Liu
On Fri, Feb 28, 2020 at 2:52 PM Christophe Leroy wrote: > > > > 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

Re: [PATCH] mm/debug: Add tests validating arch page table helpers for core features

2020-02-28 Thread Anshuman Khandual
On 02/27/2020 04:12 PM, Christophe Leroy wrote: > > > Le 27/02/2020 à 11:33, Anshuman Khandual a écrit : >> This adds new tests validating arch page table helpers for these following >> core memory features. These tests create and test specific mapping types at >> various page table levels.

Re: [PATCH v4 08/11] PCI: layerscape: Modify the MSIX to the doorbell mode

2020-02-28 Thread Kishon Vijay Abraham I
Hi Xiaowei, On 24/09/19 7:48 am, Xiaowei Bao wrote: > dw_pcie_ep_raise_msix_irq was never called in the exisitng driver > before, because the ls1046a platform don't support the MSIX feature > and msix_capable was always set to false. > Now that add the ls1088a platform with MSIX support, but the

RE: [PATCH v4 00/11] Add the multiple PF support for DWC and Layerscape

2020-02-28 Thread Xiaowei Bao
> -Original Message- > From: Lorenzo Pieralisi > Sent: 2020年2月28日 19:30 > To: Xiaowei Bao > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > Li ; kis...@ti.com; M.h. Lian > ; Mingkai Hu ; Roy Zang > ; jingooh...@gmail.com; > gustavo.pimen...@synopsys.com;

RE: [PATCH v4 08/11] PCI: layerscape: Modify the MSIX to the doorbell mode

2020-02-28 Thread Xiaowei Bao
> -Original Message- > From: Kishon Vijay Abraham I > Sent: 2020年2月28日 19:41 > To: Xiaowei Bao ; robh...@kernel.org; > mark.rutl...@arm.com; shawn...@kernel.org; Leo Li > ; lorenzo.pieral...@arm.com; M.h. Lian > ; Mingkai Hu ; Roy Zang > ; jingooh...@gmail.com; >

Re: [PATCH] macintosh: therm_windtunnel: fix regression when instantiating devices

2020-02-28 Thread Wolfram Sang
> I think that would be best, it's more I2C related than powerpc arch > stuff that I could review. It is more DT handling than I2C, but I am happy to take this patch. signature.asc Description: PGP signature

Re: [PATCH] macintosh: therm_windtunnel: fix regression when instantiating devices

2020-02-28 Thread Wolfram Sang
On Tue, Feb 25, 2020 at 03:12:29PM +0100, Wolfram Sang wrote: > Removing attach_adapter from this driver caused a regression for at > least some machines. Those machines had the sensors described in their > DT, too, so they didn't need manual creation of the sensor devices. The > old code worked,

[PATCH v3 0/5] libnvdimm: Cross-arch compatible namespace alignment

2020-02-28 Thread Dan Williams
Changes since v2 [1]: - Fix up a missing space in flags_show() (Jeff) - Prompted by Jeff saying that v2 only worked for him if memremap_compat_align() returned PAGE_SIZE (which defeats the purpose) I developed a new ndctl unit test that runs through the possible legacy configurations that

[PATCH v3 1/5] mm/memremap_pages: Introduce memremap_compat_align()

2020-02-28 Thread Dan Williams
The "sub-section memory hotplug" facility allows memremap_pages() users like libnvdimm to compensate for hardware platforms like x86 that have a section size larger than their hardware memory mapping granularity. The compensation that sub-section support affords is being tolerant of physical

[PATCH v3 2/5] libnvdimm/pfn: Prevent raw mode fallback if pfn-infoblock valid

2020-02-28 Thread Dan Williams
The EOPNOTSUPP return code from the pmem driver indicates that the namespace has a configuration that may be valid, but the current kernel does not support it. Expand this to all of the nd_pfn_validate() error conditions after the infoblock has been verified as self consistent. This prevents

[PATCH v3 3/5] libnvdimm/namespace: Enforce memremap_compat_align()

2020-02-28 Thread Dan Williams
The pmem driver on PowerPC crashes with the following signature when instantiating misaligned namespaces that map their capacity via memremap_pages(). BUG: Unable to handle kernel data access at 0xc00100040600 Faulting instruction address: 0xc0090790 NIP [c0090790]

[PATCH v3 4/5] libnvdimm/region: Introduce NDD_LABELING

2020-02-28 Thread Dan Williams
The NDD_ALIASING flag is used to indicate where pmem capacity might alias with blk capacity and require labeling. It is also used to indicate whether the DIMM supports labeling. Separate this latter capability into its own flag so that the NDD_ALIASING flag is scoped to true aliased

[PATCH v3 5/5] libnvdimm/region: Introduce an 'align' attribute

2020-02-28 Thread Dan Williams
The align attribute applies an alignment constraint for namespace creation in a region. Whereas the 'align' attribute of a namespace applied alignment padding via an info block, the 'align' attribute applies alignment constraints to the free space allocation. The default for 'align' is the

Re: [PATCH] selftests: powerpc: Add tlbie_test in .gitignore

2020-02-28 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a "Fixes:" tag fixing commit: 93cad5f78995 ("selftests/powerpc: Add test case for tlbie vs mtpidr ordering issue"). The bot has tested the following trees: v5.5.6, v5.4.22, v4.19.106, v4.14.171. v5.5.6: Failed

Re: [PATCH v3 10/27] powerpc: Add driver for OpenCAPI Persistent Memory

2020-02-28 Thread Frederic Barrat
Le 21/02/2020 à 04:27, Alastair D'Silva a écrit : From: Alastair D'Silva This driver exposes LPC memory on OpenCAPI pmem cards as an NVDIMM, allowing the existing nvram infrastructure to be used. Namespace metadata is stored on the media itself, so scm_reserve_metadata() maps 1 section's