[PATCH] powerpc/powernv: move dma_get_required_mask from pnv_phb to pci_controller_ops

2015-08-06 Thread Andrew Donnellan
da case, that points to pnv_pci_ioda_dma_get_required_mask() (platforms/powernv/pci-ioda.c) In the p5ioc2 case, the call chain remains the same - dma_get_required_mask() does not find either a ppc_md call or pci_controller_ops call, so it calls __dma_get_required_mask(). Signed-off-by: And

[PATCH] cxl: Allow release of contexts which have been OPENED but not STARTED

2015-08-17 Thread Andrew Donnellan
it's currently using the hardware). Cc: sta...@vger.kernel.org Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan Signed-off-by: Daniel Axtens --- drivers/misc/cxl/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [PATCH] cxl: Allow release of contexts which have been OPENED but not STARTED

2015-08-18 Thread Andrew Donnellan
the current code. Sounds reasonable, I'll submit a V2. Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linu

[PATCH V2] cxl: Allow release of contexts which have been OPENED but not STARTED

2015-08-18 Thread Andrew Donnellan
api.c @@ -59,7 +59,7 @@ EXPORT_SYMBOL_GPL(cxl_get_phys_dev); int cxl_release_context(struct cxl_context *ctx) { - if (ctx->status != CLOSED) + if (ctx->status >= STARTED) return -EBUSY; put_device(&ctx->afu->dev); -- Andrew Donnellan Softwar

Re: [PATCH v8 03/45] powerpc/pci: Cleanup on struct pci_controller_ops

2016-02-16 Thread Andrew Donnellan
explicit names of the arguments to the callbacks in "struct pci_controller_ops" so that the code looks consistent. Signed-off-by: Gavin Shan Reviewed-by: Daniel Axtens Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.c

Re: [PATCH v8 33/45] powerpc/powernv: Simplify pnv_eeh_reset()

2016-02-16 Thread Andrew Donnellan
good to me. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Li

Re: [PATCH v8 04/45] powerpc/powernv: Cleanup on pci_controller_ops instances

2016-02-16 Thread Andrew Donnellan
Shan Reviewed-by: Daniel Axtens Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

[PATCH] powerpc/powernv: don't create OPAL msglog sysfs entry if memcons init fails

2016-02-17 Thread Andrew Donnellan
ot;powerpc/powernv: new function to access OPAL msglog") Signed-off-by: Andrew Donnellan --- arch/powerpc/platforms/powernv/opal-msglog.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal-msglog.c b/arch/powerpc/platforms/powernv/opal-msglog.c index 5

Re: [V2,1/2] powerpc/powernv: new function to access OPAL msglog

2016-02-17 Thread Andrew Donnellan
On 17/02/16 23:41, Michael Ellerman wrote: I see you've posted a v3 since I merged this, please send an incremental patch with the changes. http://patchwork.ozlabs.org/patch/584416/ -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Develo

Re: [PATCH] cxl: Fix PSL timebase synchronization detection

2016-02-24 Thread Andrew Donnellan
the cxl driver is not detecting it. Fix is to use the proper timebase-to-time conversion. Signed-off-by: Frederic Barrat Cc: # 4.3+ Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2

Re: [PATCH] cxl: Ignore probes for virtual afu pci devices

2016-03-03 Thread Andrew Donnellan
space. The error message logged are of the form : cxl-pci 0004:00:00.0: ABORTING: CXL VSEC not found! cxl-pci 0004:00:00.0: cxl_init_adapter failed: -19 Cc: Ian Munsie Cc: Frederic Barrat Signed-off-by: Vaibhav Jain Looks good to me. Reviewed-by: Andrew Donnellan -- Andrew Donnellan

Re: powerpc/eeh: eeh_pci_enable(): fix checking of post-request state

2016-03-07 Thread Andrew Donnellan
On 09/02/16 10:57, Andrew Donnellan wrote: It is a fix - I'm a bit hazy on the details now but IIRC, Daniel Axtens and I encountered this when doing some cxl debugging, though I think we decided not to tag this for stable since it was a secondary issue to the primary bug we were looking fo

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-08 Thread Andrew Donnellan
will never use this event, the ABI of the event is up to each individual AFU driver. Signed-off-by: Ian Munsie Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

Re: [PATCH v3 2/2] cxl: add set/get private data to context struct

2016-03-08 Thread Andrew Donnellan
private data structures they may use. Signed-off-by: Michael Neuling Signed-off-by: Ian Munsie Reviewed-by: Matthew R. Ochs Looks good to me. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra

Re: [PATCH] cxl: Remove dead code

2016-03-09 Thread Andrew Donnellan
ed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlab

Re: [PATCH v3 1/2] cxl: Add mechanism for delivering AFU driver specific events

2016-03-10 Thread Andrew Donnellan
On 10/03/16 12:18, Ian Munsie wrote: On a related matter, we should send a patch to remove some of the leftover config options that were added to smooth the merging of cxlflash in the first place (CXL_KERNEL_API, CXL_EEH). I'm happy to do that after this series is merged. -- Andrew Donn

Re: [PATCH] powernv/hmi: Use the "unknown" checkstop type as a fallback

2016-03-14 Thread Andrew Donnellan
as unknown. Signed-off-by: Russell Currey Indeed it looks like there isn't a fallback case. Would it be useful to print xstop_type in the unknown case? Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Develo

Re: [PATCH] powernv/hmi: Use the "unknown" checkstop type as a fallback

2016-03-14 Thread Andrew Donnellan
wn your machine you should be looking at the OPAL firmware log anyway, which would contain details if there was something "new". That's fair, would primarily help debugging in the rather corner case of new skiboot, old kernel, and no access to the OPAL log... -- Andrew Donnellan

[PATCH] cxl: fix setting of _PAGE_USER bit when handling page faults

2016-03-19 Thread Andrew Donnellan
s for userspace access") Signed-off-by: Andrew Donnellan --- Found by Coverity Scan. Currently, this should only affect cxlflash. --- drivers/misc/cxl/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cxl/fault.c b/drivers/misc/cxl/fault.c index 9a8

[PATCH] powerpc/rtas: fix array overrun in ppc_rtas() syscall

2016-03-20 Thread Andrew Donnellan
RTAS calls) to see if there's been a hardware error. Change the nargs/nret check to ensure nargs is <= 15, allowing room for the status code. Users shouldn't be calling with nret == 0, but there's no real harm if they do, so we don't stop them. Signed-off-by: Andrew Donn

Re: [PATCH] cxl: fix setting of _PAGE_USER bit when handling page faults

2016-03-20 Thread Andrew Donnellan
63))) Should it be the top two bits? benh told me that the top bit should be enough - anything above 0x8000* should be kernel space. -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IB

Re: [PATCH] arch: powerpc: mm: fixed spelling error.

2016-03-22 Thread Andrew Donnellan
e". We also use "huge page", but "hugepage" is more common. Therefore I wouldn't call it a spelling error, just an internal term :) Andrew -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited ___

Re: [PATCH V2 01/68] powerpc/cxl: Use REGION_ID instead of opencoding

2016-04-10 Thread Andrew Donnellan
On 09/04/16 16:12, Aneesh Kumar K.V wrote: Also note that the `~` operation is wrong. Cc: Frederic Barrat Cc: Andrew Donnellan Acked-by: Ian Munsie Signed-off-by: Aneesh Kumar K.V Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1

Re: cxl: fix setting of _PAGE_USER bit when handling page faults

2016-04-10 Thread Andrew Donnellan
On 29/03/16 00:42, Aneesh Kumar K.V wrote: I noticed this when doing radix support and have a variant posted at https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-March/141036.html I'm happy for this to be fixed in your radix series. -- Andrew Donnellan OzLabs, ADL Can

Re: [PATCH 2/2] powerpc/drivers: Add driver for operator panel on FSP machines

2016-04-10 Thread Andrew Donnellan
where blank space is required. The device may only be accessed by a single process at a time. Signed-off-by: Suraj Jitindar Singh I reviewed an earlier version of this patch internally and Suraj has fixed a bunch of issues which I raised. I'm not hugely experienced with this, but all t

[PATCH] cxl: static-ify variables to fix sparse warnings

2016-04-17 Thread Andrew Donnellan
Make a couple more variables static. Found by sparse. Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/cxl/flash.c b/drivers/misc/cxl/flash.c index 68dd0b7..c63d61e 100644 --- a/drivers/misc/cxl

Re: [PATCH] cxl: Add a kernel thread to check the coherent platform function's state

2016-04-18 Thread Andrew Donnellan
(void *)afu, CXL_KTHREAD); + if (IS_ERR(afu->guest->kthread_tsk)) { + pr_devel("cannot start state kthread\n"); + afu->guest->kthread_tsk = NULL; } - return 0; +} + +void stop_state_thread(struct cxl_afu

Re: [PATCH 1/2] cxl: Keep IRQ mappings on context teardown

2016-04-21 Thread Andrew Donnellan
t load. A fix to the generic code is being investigated also. Signed-off-by: Michael Neuling cc: sta...@vger.kernel.org # 3.8 Tested on top of 4.6-rc3 using the genwqe-echo test utility[0]. Tested-by: Andrew Donnellan [0] https://github.com/ibm-genwqe/genwqe-user/blob/master/tools/gen

Re: [PATCH 2/2] cxl: Poll for outstanding IRQs when detaching a context

2016-04-21 Thread Andrew Donnellan
. This polls the PSL to ensure that the PSL is clear of IRQs for the detached context, before removing the context from the idr. Signed-off-by: Michael Neuling Tested on top of 4.6-rc3 using the genwqe-echo test utility[0]. Tested-by: Andrew Donnellan [0] https://github.com/ibm-genwqe/genwqe

[PATCH] powerpc/eeh: fix misleading indentation

2016-04-25 Thread Andrew Donnellan
Found by smatch. Signed-off-by: Andrew Donnellan --- arch/powerpc/kernel/eeh_pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/eeh_pe.c b/arch/powerpc/kernel/eeh_pe.c index eea48d8..f0520da 100644 --- a/arch/powerpc/kernel/eeh_pe.c +++ b/arch/powerpc

[PATCH] powerpc/mpic: handle subsys_system_register() failure

2016-04-26 Thread Andrew Donnellan
mpic_init_sys() currently doesn't check whether subsys_system_register() succeeded or not. Check the return code of subsys_system_register() and clean up if there's an error. Signed-off-by: Andrew Donnellan --- Found by Coverity Scan. Build-tested only. --- arch/powerpc/sysdev/

Re: [PATCH kernel] powerpc/powernv: Fix debug macro

2016-04-28 Thread Andrew Donnellan
On 29/04/16 14:56, Alexey Kardashevskiy wrote: When cfg_dbg() is enabled (i.e. mapped to printk()), gcc produces errors as the __func__ parameter is missing (pnv_pci_cfg_read() has one); this adds the missing parameter. Signed-off-by: Alexey Kardashevskiy Reviewed-by: Andrew Donnellan

[PATCH] cxl: abort cxl_pci_enable_device_hook() if PCI channel is offline

2015-09-03 Thread Andrew Donnellan
ntext. Check the CXL card's link status before setting DMA options or initialising a default context. If the link is down, print a warning and return immediately. Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/vphb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/driver

Re: [PATCH] cxl: abort cxl_pci_enable_device_hook() if PCI channel is offline

2015-09-06 Thread Andrew Donnellan
d single statements in conditionals to avoid mistakes like this, but CodingStyle disagrees...) Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___

[PATCH] cxl: abort cxl_pci_enable_device_hook() if PCI channel is offline

2015-09-06 Thread Andrew Donnellan
ntext. Check the CXL card's link status before setting DMA options or initialising a default context. If the link is down, print a warning and return immediately. Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/vphb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/driver

[PATCH v2] cxl: abort cxl_pci_enable_device_hook() if PCI channel is offline

2015-09-06 Thread Andrew Donnellan
ntext. Check the CXL card's link status before setting DMA options or initialising a default context. If the link is down, print a warning and return immediately. Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/vphb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/driver

Re: [PATCH v2] cxl: abort cxl_pci_enable_device_hook() if PCI channel is offline

2015-09-06 Thread Andrew Donnellan
nsert braces so that "return false" is within if block -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linux

[PATCH] powerpc/pci: export pcibios_free_controller()

2015-09-09 Thread Andrew Donnellan
Export pcibios_free_controller(), so it can be used by the cxl module to free virtual PHBs. Signed-off-by: Andrew Donnellan --- arch/powerpc/kernel/pci-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index a1d0632

Re: [PATCH] powerpc/powernv: Panic on unhandled Machine Check

2015-09-23 Thread Andrew Donnellan
) but would simply die() and OOPS. It doesn't make sense to be staggering on if we've just tried to reboot: we should panic(). Explicitly panic() on unrecovered MCEs on PowerNV. Update the comments appropriately. This fixes some hangs following EEH events on cxlflash setups. Signed-off-by

Re: [PATCH v3 29/32] MAINTAINERS: Add cxlflash driver

2015-09-24 Thread Andrew Donnellan
On 25/09/15 05:44, Matthew R. Ochs wrote: Add stanza for cxlflash SCSI driver. Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b

Re: [PATCH v4 30/32] cxlflash: Fix to avoid corrupting adapter fops

2015-09-28 Thread Andrew Donnellan
s not require an embedded fops. Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Li

Re: [PATCH v4 26/32] cxlflash: Correct spelling, grammar, and alignment mistakes

2015-09-28 Thread Andrew Donnellan
issues. Update some comments for clarity and consistency. Remove extra lines and a few unneeded variables/statements. Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs

Re: [PATCH v4 29/32] cxlflash: Fix to double the delay each time

2015-09-28 Thread Andrew Donnellan
Reviewed-by: Brian King Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev

Re: [PATCH v4 31/32] cxlflash: Correct trace string

2015-09-28 Thread Andrew Donnellan
Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

Re: [PATCH v4 24/32] cxlflash: Fix MMIO and endianness errors

2015-09-28 Thread Andrew Donnellan
clean. Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia

Re: [PATCH v4 11/32] cxlflash: Refine host/device attributes

2015-09-28 Thread Andrew Donnellan
Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King The commit message could explain the patch a bit better. Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

Re: [PATCH v4 23/32] cxlflash: Fix function prolog parameters and return codes

2015-09-28 Thread Andrew Donnellan
and return codes. Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan See further comments below. --- a/drivers/scsi/cxlflash/main.c +++ b/drivers/scsi/cxlflash/main.c @@ -401,8 +401,7 @@ static void wait_resp(struct afu *afu

Re: [PATCH v4 12/32] cxlflash: Fix to avoid spamming the kernel log

2015-09-28 Thread Andrew Donnellan
changes were made: - pr_debug to pr_devel - pr_debug to pr_debug_ratelimited - pr_err to dev_err - pr_debug to dev_dbg Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan Changes mostly look fine, further comments below

Re: [PATCH v4 02/32] cxlflash: Replace magic numbers with literals

2015-09-28 Thread Andrew Donnellan
-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

[PATCH 1/3] cxl: fix leak of IRQ names in cxl_free_afu_irqs()

2015-09-29 Thread Andrew Donnellan
-static to allow this. Reported-by: Matthew R. Ochs Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan Signed-off-by: Ian Munsie --- drivers/misc/cxl/api.c | 1 + drivers/misc/cxl/cxl.h | 1 + drivers/misc/cxl/irq.c | 2 +- 3 files changed

[PATCH 2/3] cxl: fix leak of ctx->irq_bitmap when releasing context via kernel API

2015-09-29 Thread Andrew Donnellan
kernel API (cxl_release_context()) or the userspace API (afu_release()). Reported-by: Matthew R. Ochs Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/context.c | 3 +++ drivers/misc/cxl/irq.c | 2 -- 2 files change

[PATCH 3/3] cxl: fix leak of ctx->mapping when releasing kernel API contexts

2015-09-29 Thread Andrew Donnellan
t;cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/file.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/misc/cxl/file.c b/drivers/misc/cxl/file.c index a30bf28..fcda6b0 100644 --- a/drivers/misc/cxl/file.c

Re: [PATCH v5 33/34] cxlflash: Fix to avoid leaving dangling interrupt resources

2015-10-05 Thread Andrew Donnellan
Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https

Re: [PATCH v2 5/8] powerpc/pseries: Cleanup on pseries_eeh_get_state()

2015-10-07 Thread Andrew Donnellan
"result" to simplify the code. Signed-off-by: Gavin Shan Much easier to follow! Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Austral

Re: [PATCH v2 7/8] powerpc/powernv: Remove pnv_eeh_cap_start()

2015-10-07 Thread Andrew Donnellan
Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https

Re: [PATCH v2 8/8] powerpc/powernv: Simplify pnv_eeh_set_option()

2015-10-07 Thread Andrew Donnellan
On 08/10/15 14:58, Gavin Shan wrote: This simplifies pnv_eeh_set_option() to avoid unnecessary nested if statements, to improve readability. No functional changes. Signed-off-by: Gavin Shan Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs

[PATCH] cxl: Free virtual PHB when removing

2015-10-12 Thread Andrew Donnellan
ff-by: Daniel Axtens Signed-off-by: Andrew Donnellan --- This patch depends on "powerpc/pci: export pcibios_free_controller()" [0]. [0] https://patchwork.ozlabs.org/patch/516142/ --- drivers/misc/cxl/vphb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/cxl/vphb.c b/d

Re: [PATCH v6 37/37] cxlflash: Fix to avoid bypassing context cleanup

2015-10-21 Thread Andrew Donnellan
ff-by: Matthew R. Ochs Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev ma

Re: [PATCH v6 36/37] cxlflash: Fix to avoid lock instrumentation rejection

2015-10-22 Thread Andrew Donnellan
tmf_slock during probe. Signed-off-by: Matthew R. Ochs Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

Re: [PATCH v6 16/37] cxlflash: Fix async interrupt bypass logic

2015-10-22 Thread Andrew Donnellan
evaluation for an unset bit. Signed-off-by: Matthew R. Ochs Signed-off-by: Manoj N. Kumar Reviewed-by: Brian King Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work

Re: [PATCH v6 35/37] cxlflash: Fix to avoid corrupting port selection mask

2015-10-22 Thread Andrew Donnellan
On 22/10/15 07:16, Matthew R. Ochs wrote: The port selection mask of a LUN can be corrupted when the manage LUN ioctl (DK_CXLFLASH_MANAGE_LUN) is issued more than once for any device. > ... Signed-off-by: Matthew R. Ochs Reviewed-by: Andrew Donnellan -- Andrew Donnel

[PATCH] powerpc/eeh: eeh_pci_enable(): fix checking of post-request state

2015-10-22 Thread Andrew Donnellan
. Fix the check so that a wait_state() return value of 0 won't be considered successful for the EEH_OPT_THAW_MMIO or EEH_OPT_THAW_DMA cases. Cc: Gavin Shan Signed-off-by: Andrew Donnellan --- arch/powerpc/kernel/eeh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a

Re: [PATCH V10 01/12] PCI/IOV: Rename and export virtfn_add/virtfn_remove

2015-10-26 Thread Andrew Donnellan
d,remove}() and exports them so that they can be used in PCI hotplug during EEH recovery. [gwshan: changelog] Signed-off-by: Wei Yang Reviewed-by: Gavin Shan Acked-by: Bjorn Helgaas Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm

Re: [PATCH V10 02/12] PCI: Add pcibios_bus_add_device() weak function

2015-10-26 Thread Andrew Donnellan
On 26/10/15 14:15, Wei Yang wrote: This patch adds a weak function pcibios_bus_add_device() for arch dependent code could do proper setup. For example, powerpc could setup EEH related resources. Signed-off-by: Wei Yang Acked-by: Bjorn Helgaas Reviewed-by: Andrew Donnellan -- Andrew

Re: [PATCH V10 03/12] powerpc/pci: Cache VF index in pci_dn

2015-10-26 Thread Andrew Donnellan
Acked-by: Gavin Shan Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev ma

[PATCH] cxl: sparse: add __iomem annotations in vphb.c

2015-10-27 Thread Andrew Donnellan
Axtens Signed-off-by: Andrew Donnellan --- This patch is a respin of https://patchwork.ozlabs.org/patch/504976/, incorporating comments from mpe. As with the old patch, this patch doesn't make any changes to the return type of cxl_pcie_cfg_addr() and casts to an __iomem type when we use

Re: [PATCH] cxl: Fix reference count on struct pid when attaching

2015-10-29 Thread Andrew Donnellan
reference count is only decremented once on detach, thus the struct pid of the task attaching is never freed. The fix is to simply remove the call to get_pid(). Signed-off-by: Frederic Barrat Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel

Re: [PATCH] cxl: sparse: add __iomem annotations in vphb.c

2015-11-01 Thread Andrew Donnellan
On 31/10/15 00:07, Arnd Bergmann wrote: On Wednesday 28 October 2015 14:29:39 Andrew Donnellan wrote: --- a/drivers/misc/cxl/vphb.c +++ b/drivers/misc/cxl/vphb.c @@ -128,7 +128,7 @@ static int cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, return

Re: [PATCH] cxl: Fix struct pid leak when attaching a process through user API

2015-11-03 Thread Andrew Donnellan
: # 3.18+ Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc

Re: [PATCH] cxl: Fix struct pid leak when attaching a process through kernel API

2015-11-03 Thread Andrew Donnellan
+ Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-dev

[PATCH] cxl: use correct operator when writing pcie config space values

2015-11-03 Thread Andrew Donnellan
Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/vphb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cxl/vphb.c b/drivers/misc/cxl/vphb.c index 94b5208..9be09bb 100644 --- a/driver

Re: [PATCH] cxl: sparse: add __iomem annotations in vphb.c

2015-11-03 Thread Andrew Donnellan
>cfg_addr + (addr & ~0x3ull); *shift = (addr & 0x3) * 8; Which hopefully still gives you the right result! :) Will check. Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

Re: [PATCH] cxl: use correct operator when writing pcie config space values

2015-11-05 Thread Andrew Donnellan
On 06/11/15 10:05, Daniel Axtens wrote: Given that there are no current users of this function, does this need to go to stable? Does it actually fix a real (as opposed to theoretical) bug? I tagged it for stable on mpe's request - I'm not fussed either way. Andrew -- Andrew

Re: [PATCH] cxl: Delete an unnecessary check before the function call "kfree"

2015-11-08 Thread Andrew Donnellan
. Signed-off-by: Markus Elfring Thanks for picking this up - will remember in my future patches. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia

Re: [PATCH] cxl: use correct operator when writing pcie config space values

2015-11-08 Thread Andrew Donnellan
s such I'd like to continue with the patch as is, I'm happy to drop the stable Cc though. Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)I

Re: [PATCH] powerpc: Remove unused function trace_syscall()

2015-11-18 Thread Andrew Donnellan
On 19/11/15 14:26, Rashmica Gupta wrote: This function has been unused since commit 14cf11af6cf6 ("powerpc: Merge enough to start building in arch/powerpc."), so remove it. Signed-off-by: Rashmica Gupta Reviewed-by: Andrew Donnellan -- Andrew Donnellan Softwar

Re: [PATCH V2] powerpc/powernv: Add a kmsg_dumper that flushes console output on panic

2015-11-26 Thread Andrew Donnellan
still miss messages printed in panic() after the dumpers are called, i.e. the "end kernel panic" message. Signed-off-by: Russell Currey The code looks reasonable. With the changes I've mentioned above: Reviewed-by: Andrew Donnellan -- Andrew Donnellan So

Re: [PATCH 1/4] powerpc/powernv: panic() on OPAL < V3

2015-11-26 Thread Andrew Donnellan
building a mainline kernel today and expecting it to boot on such hardware is zero. Signed-off-by: Stewart Smith Comment below. Reviewed-by: Andrew Donnellan --- arch/powerpc/platforms/powernv/opal.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/powerpc

Re: [PATCH 2/4] powerpc/powernv: Remove OPALv2 firmware define and references

2015-11-26 Thread Andrew Donnellan
o run mainline kernels. So, start to remove references to OPALv2. Signed-off-by: Stewart Smith Was going to comment that you should've removed the OPAL v1 line in cpuinfo, but it seems you do that in the next patch. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Softwar

Re: [PATCH 3/4] powerpc/powernv: remove FW_FEATURE_OPAL and just use FW_FEATURE_OPALv3

2015-11-26 Thread Andrew Donnellan
PALv3 exclusively. Signed-off-by: Stewart Smith I haven't checked for any outstanding references you've missed here, but I'm going to assume it compiles... Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Austr

Re: [PATCH 4/4] powerpc/powernv: remove logic for pre-OPALv3 firmware

2015-11-26 Thread Andrew Donnellan
On 27/11/15 15:45, Stewart Smith wrote: There was already a check for OPALv3, so we just remove the if/else check and go for it. OPAL pre-v3 no longer exists. Anywhere. Signed-off-by: Stewart Smith Nothing obviously wrong that stood out to me. Reviewed-by: Andrew Donnellan -- Andrew

Re: [PATCH 1/4] powerpc/powernv: panic() on OPAL < V3

2015-11-26 Thread Andrew Donnellan
On 27/11/15 16:43, Stewart Smith wrote: Considering you need kernel support for any new POWER processor, and we're not about to do an OPALv4 on POWER8 or earlier - we're going to be safe :) Not a huge problem then :) -- Andrew Donnellan Software Engineer, OzLabs and

Re: [PATCH 1/4] powerpc/powernv: panic() on OPAL < V3

2015-11-29 Thread Andrew Donnellan
On 27/11/15 16:36, Andrew Donnellan wrote: Reviewed-by: Andrew Donnellan And withdrawing my Reviewed-by: because apparently I'm not capable of spotting missing semicolons, please move the semicolon from patch 2 to this patch... Andrew -- Andrew Donnellan Software Eng

Re: [PATCH 0/3] selftests/powerpc: Transactional Memory

2015-11-30 Thread Andrew Donnellan
too.) Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

[PATCH] Revert "powerpc/eeh: Don't unfreeze PHB PE after reset"

2015-12-02 Thread Andrew Donnellan
don't fully understand why this is happening, and we also haven't tested whether this occurs for other cxl devices. In the meantime, though, revert the commit, especially as it was intended to be a non-functional change. Signed-off-by: Andrew Donnellan --- This issue was identified by

[PATCH v2] Revert "powerpc/eeh: Don't unfreeze PHB PE after reset"

2015-12-07 Thread Andrew Donnellan
n in CAPI support. In the meantime, revert the commit, especially as it was intended to be a non-functional change. Cc: Gavin Shan Cc: Ian Munsie Cc: Daniel Axtens Signed-off-by: Andrew Donnellan --- Changes from V1: - Updated commit message to incorporate comments from Daniel Axtens We would

Re: [PATCH] cxl: sparse: add __iomem annotations in vphb.c

2015-12-07 Thread Andrew Donnellan
Finally looking at this patch again for the first time in a couple of months... On 04/11/15 17:17, Andrew Donnellan wrote: On 03/11/15 20:09, Michael Ellerman wrote: Part of your problem is you're storing afu->crs_len which is not __iomem in cfg_data which is, and so that's leadi

Re: [PATCH 6/6] cxlflash: Enable device id for future IBM CXL adapter

2015-12-13 Thread Andrew Donnellan
Without the card-specific code, how does the driver behave if the new card is plugged in? Andrew -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

Re: [PATCH v2 3/6] cxlflash: Removed driver date print

2015-12-14 Thread Andrew Donnellan
On 15/12/15 08:06, Uma Krishnan wrote: Having a date for the driver requires it to be updated quite often. Removing the date which is not necessary. Also made use of the existing symbol to print the driver name. Signed-off-by: Uma Krishnan Reviewed-by: Andrew Donnellan -- Andrew Donnellan

Re: [RFC] powerpc: Enable UBSAN support

2015-12-14 Thread Andrew Donnellan
as found in linux-next, along with the SANITIZE_ALL typo fix, on a big-endian BML system, with gcc 5.2.1. It successfully picked up one of the shift input issues that Daniel found, so therefore... Tested-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.do

Re: [PATCH v2 4/6] cxlflash: Fix to resolve cmd leak after host reset

2015-12-14 Thread Andrew Donnellan
onable. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-

Re: [PATCH v2 6/6] cxlflash: Enable device id for future IBM CXL adapter

2015-12-14 Thread Andrew Donnellan
e of later code changes, all looks good. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited _

[PATCH] powerpc: fix style of self-test config prompts

2015-12-20 Thread Andrew Donnellan
A few of the config prompts for powerpc self-tests have periods at the end, which is inconsistent with the rest of the prompts. Remove the periods. Signed-off-by: Andrew Donnellan --- arch/powerpc/Kconfig.debug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch

[PATCH] powerpc/opal: fix minor off-by-one error in opal_mce_check_early_recovery()

2015-12-20 Thread Andrew Donnellan
Fix off-by-one error in opal_mce_check_early_recovery() when checking whether the NIP falls within OPAL space. Signed-off-by: Andrew Donnellan --- Only very slightly more correct, but I'm fairly sure it's more correct... --- arch/powerpc/platforms/powernv/opal.c | 2 +- 1 file

Re: [PATCH 1/2] powerpc: sparse: static-ify some things

2016-01-05 Thread Andrew Donnellan
On 06/01/16 11:45, Daniel Axtens wrote: As sparse suggests, these should be made static. Signed-off-by: Daniel Axtens Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874

Re: [PATCH] powerpc/powernv: Fix OPAL_CONSOLE_FLUSH prototype and usages

2016-01-12 Thread Andrew Donnellan
has been updated and its usage in the OPAL kmsg dumper has been modified to support its new behaviour as an incremental flush. Signed-off-by: Russell Currey Looks fine to me. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com

Re: [PATCH] powerpc/powernv: Remove support for p5ioc2

2016-01-12 Thread Andrew Donnellan
unsigned inttotal_pe; unsigned intreserved_pe; Given this leaves struct ioda as the only member of the union, do we want to get rid of the union? -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Aust

Re: [PATCH 2/5] misc: cxl: use kobj_to_dev()

2016-01-13 Thread Andrew Donnellan
On 14/01/16 02:30, Geliang Tang wrote: Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang Good simplification. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra

Re: [PATCH V2] powerpc/powernv: Remove support for p5ioc2

2016-01-13 Thread Andrew Donnellan
ges. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited ___ Linuxppc-dev mailing list Linuxppc-d

Re: [PATCH] cxl: Add cxl_read_adapter_vpd() to the kernel API

2016-01-19 Thread Andrew Donnellan
allow existing drivers (cxlflash) to start using it. Signed-off-by: Frederic Barrat Looks fine to me. Reviewed-by: Andrew Donnellan -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

  1   2   3   4   5   6   7   8   9   10   >