Re: [PATCH 1/6] cxlflash: Reset command ioasc

2018-01-03 Thread Andrew Donnellan
On 04/01/18 09:54, Uma Krishnan wrote: In the event of a command failure, cxlflash returns the failure to the upper layers to process. After processing the error, when the command is queued again, the private command structure will not be zeroed and the ioasc could be stale. Per the SISLite

Re: [PATCH v3 1/1] powerpc/pseries: Make RAS IRQ explicitly dependent on DLPAR WQ

2018-01-03 Thread David Gibson
On Wed, Jan 03, 2018 at 07:12:52PM -0200, Jose Ricardo Ziviani wrote: > The hotplug engine uses its own workqueue to handle IRQ requests, the > problem is that such workqueue is initialized after init_ras_IRQ, which > will cause a kernel panic if any hotplug interruption is issued in that > period

[PATCH 6/6] cxlflash: Staging to support future accelerators

2018-01-03 Thread Uma Krishnan
From: "Matthew R. Ochs" As staging to support future accelerator transports, add a shim layer such that the underlying services the cxlflash driver requires can be conditional upon the accelerator infrastructure. Signed-off-by: Matthew R. Ochs

[PATCH 5/6] cxlflash: Adapter context init can return error

2018-01-03 Thread Uma Krishnan
Adapter context creation can return either NULL or an error pointer. Updating the check condition to reflect this. Signed-off-by: Uma Krishnan --- drivers/scsi/cxlflash/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/6] cxlflash: Remove embedded CXL work structures

2018-01-03 Thread Uma Krishnan
From: "Matthew R. Ochs" The CXL-specific work structure used to request the number of interrupts currently resides as a nested member of both the context information and hardware queue structures. It is used to cache values (specifically the number of interrupts)

[PATCH 3/6] cxlflash: Explicitly cache number of interrupts per context

2018-01-03 Thread Uma Krishnan
From: "Matthew R. Ochs" The number of interrupts a user requests during a context attach is presently stored within the CXL work ioctl structure that is nested alongside the per context metadata. Keeping this data in a structure that is tied to a particular hardware

[PATCH 2/6] cxlflash: Update cxl-specific arguments to generic cookie

2018-01-03 Thread Uma Krishnan
Convert cxl-specific pointers to generic cookies to facilitate future enhancements. Signed-off-by: Uma Krishnan --- drivers/scsi/cxlflash/common.h| 4 ++-- drivers/scsi/cxlflash/main.c | 38 +++---

[PATCH 1/6] cxlflash: Reset command ioasc

2018-01-03 Thread Uma Krishnan
In the event of a command failure, cxlflash returns the failure to the upper layers to process. After processing the error, when the command is queued again, the private command structure will not be zeroed and the ioasc could be stale. Per the SISLite specification, the AFU only sets the ioasc in

[PATCH 0/6] cxlflash: Miscellaneous patches

2018-01-03 Thread Uma Krishnan
This patch series contains miscellaneous fixes. The first patch fixes a bug while the rest improve the code structure and prepare the code for future enhancements. This series is intended for 4.16 and is bisectable. Matthew R. Ochs (3): cxlflash: Explicitly cache number of interrupts per

[PATCH v3 1/1] powerpc/pseries: Make RAS IRQ explicitly dependent on DLPAR WQ

2018-01-03 Thread Jose Ricardo Ziviani
The hotplug engine uses its own workqueue to handle IRQ requests, the problem is that such workqueue is initialized after init_ras_IRQ, which will cause a kernel panic if any hotplug interruption is issued in that period of time. This patch makes RAS IRQ registration explicitly dependent on DLPAR

[PATCH v3 0/1] Make RAS IRQ explicitly dependent on DLPAR workqueue

2018-01-03 Thread Jose Ricardo Ziviani
This patch replaces "[PATCH v2 0/1] Increase dlpar initcall priority" 1. Testing without this patch, using QEMU: [0.022800] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes) [0.022865] NET: Registered protocol family 1 [0.023435] Unpacking initramfs... (qemu) object_add

[PATCH v3 5/7] powerpc/kernel: Add EEH notify resume sysfs

2018-01-03 Thread Bryant G. Ly
Introduce a method for notify resume to be called from sysfs. In this patch one can now call notify resume from sysfs when is supported by platform. Signed-off-by: Bryant G. Ly Signed-off-by: Juan J. Alvarez ---

[PATCH v3 6/7] pseries/pci: Associate PEs to VFs in configure SR-IOV

2018-01-03 Thread Bryant G. Ly
After initial validation of SR-IOV resources, firmware will associate PEs to the dynamic VFs created within this call. This patch adds the association of PEs to the PF array of PE numbers indexed by VF. Signed-off-by: Bryant G. Ly Signed-off-by: Juan J. Alvarez

[PATCH v3 1/7] platform/pseries: Update VF config space after EEH

2018-01-03 Thread Bryant G. Ly
Add EEH platform operations for pseries to update VF config space. With this change after EEH, the VF will have updated config space for pseries platform. Signed-off-by: Bryant G. Ly Signed-off-by: Juan J. Alvarez ---

[PATCH v3 7/7] pseries/setup: Add Initialization of VF Bars

2018-01-03 Thread Bryant G. Ly
When enabling SR-IOV in pseries platform, the VF bar properties for a PF are reported on the device node in the device tree. This patch adds the IOV Bar resources to Linux structures from the device tree for later use when configuring SR-IOV by PF driver. Signed-off-by: Bryant G. Ly

[PATCH v3 4/7] powerpc/kernel Add EEH operations to notify resume

2018-01-03 Thread Bryant G. Ly
When pseries SR-IOV is enabled and after a PF driver has resumed from EEH, platform has to be notified of the event so the child VFs can be allowed to resume their normal recovery path. This patch makes the EEH operation allow unfreeze platform dependent code and adds the call to pseries EEH

[PATCH v3 3/7] platforms/pseries: Set eeh_pe of EEH_PE_VF type

2018-01-03 Thread Bryant G. Ly
To correctly use EEH code one has to make sure that the EEH_PE_VF is set for dynamic created VFs. Therefore this patch allocates an eeh_pe of eeh type EEH_PE_VF and associates PE with parent. Signed-off-by: Bryant G. Ly Signed-off-by: Juan J. Alvarez

[PATCH v3 2/7] powerpc/kernel: Add uevents in EEH error/resume

2018-01-03 Thread Bryant G. Ly
Devices can go offline when EEH is reported. This patch adds a change to the kernel object and lets udev know of error. When device resumes a change is also set reporting device as online. Therefore, EEH events are better propagated to user space for devices in powerpc arch. Signed-off-by: Bryant

[PATCH v3 0/7] SR-IOV Enablement on PowerVM

2018-01-03 Thread Bryant G. Ly
This patch series will enable SR-IOV on PowerVM. A specific set of lids for PFW/PHYP is required. They are planned to release with 920 at the moment. For IBM internal testers let me know of a system you want to test on and we can put on the lids required or we can provide a system to run the

[PATCH] ps3_gelic_net: Delete an error message for a failed memory allocation in gelic_descr_prepare_rx()

2018-01-03 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 3 Jan 2018 14:50:59 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: powerpc/mm: restore SEGV_ACCERR for segv on mapped region

2018-01-03 Thread Michael Ellerman
On Mon, 2018-01-01 at 05:24:58 UTC, John Sperbeck wrote: > A recent refactoring of the powerpc page fault handler caused > access to protected memory regions to indicate SEGV_MAPERR instead > of the traditional SEGV_ACCERR in the si_code field of a user-space > signal handler. This can confuse

Re: [v3 PATCH 2/3] powernv-cpufreq: Fix pstate_to_idx() to handle non-continguous pstates

2018-01-03 Thread Balbir Singh
On Wed, Jan 3, 2018 at 11:07 PM, Rafael J. Wysocki wrote: > On Monday, December 18, 2017 9:38:20 AM CET Gautham R Shenoy wrote: >> Hi Balbir, >> >> On Sun, Dec 17, 2017 at 02:15:25PM +1100, Balbir Singh wrote: >> > On Wed, Dec 13, 2017 at 5:57 PM, Gautham R. Shenoy >> >

Re: [PATCH NEXT 1/4] powerpc/pasemi: Add PCI initialisation for Nemo board.

2018-01-03 Thread kbuild test robot
Hi Darren, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on powerpc/next] [also build test WARNING on v4.15-rc6 next-20180103] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day

Re: [v3 PATCH 2/3] powernv-cpufreq: Fix pstate_to_idx() to handle non-continguous pstates

2018-01-03 Thread Rafael J. Wysocki
On Monday, December 18, 2017 9:38:20 AM CET Gautham R Shenoy wrote: > Hi Balbir, > > On Sun, Dec 17, 2017 at 02:15:25PM +1100, Balbir Singh wrote: > > On Wed, Dec 13, 2017 at 5:57 PM, Gautham R. Shenoy > > wrote: > > > From: "Gautham R. Shenoy"

Re: [PATCH 2/2] backlight: Fix old-style function definition

2018-01-03 Thread Daniel Thompson
On Tue, Dec 26, 2017 at 03:12:41PM +0100, Mathieu Malaterre wrote: > Fix warning: > > drivers/macintosh/via-pmu-backlight.c: In function ‘pmu_backlight_init’: > drivers/macintosh/via-pmu-backlight.c:140:13: warning: old-style function > definition [-Wold-style-definition] > void __init

Re: [PATCH 16/67] powerpc: rename dma_direct_ to dma_nommu_

2018-01-03 Thread Julian Calaby
Hi All, On Wed, Jan 3, 2018 at 6:49 PM, Geert Uytterhoeven wrote: > Hi Michael, > > On Wed, Jan 3, 2018 at 7:24 AM, Michael Ellerman wrote: >> Geert Uytterhoeven writes: >> >>> On Tue, Jan 2, 2018 at 10:45 AM, Michael Ellerman