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

2016-03-22 Thread Andrew Donnellan
ot;hugepage". 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..

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

2016-03-20 Thread Andrew Donnellan
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)IBM Australia Limited

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

2016-03-20 Thread Andrew Donnellan
) 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 Donnellan <andrew.donnel...@au1.i

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

2016-03-19 Thread Andrew Donnellan
space access") Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- 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/

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

2016-03-14 Thread Andrew Donnellan
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 Softwar

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 <rus...@russell.cc> 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.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engi

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 Donnellan

Re: [PATCH] cxl: Remove dead code

2016-03-09 Thread Andrew Donnellan
he cxl PowerVM series. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Austr

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

2016-03-08 Thread Andrew Donnellan
easily get back to any private data structures they may use. Signed-off-by: Michael Neuling <mi...@neuling.org> Signed-off-by: Ian Munsie <imun...@au1.ibm.com> Reviewed-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Looks good to me. Reviewed-by: Andrew Donnellan <a

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

2016-03-08 Thread Andrew Donnellan
eneric cxl driver will never use this event, the ABI of the event is up to each individual AFU driver. Signed-off-by: Ian Munsie <imun...@au1.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.don

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

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

2016-03-03 Thread Andrew Donnellan
ux.vnet.ibm.com> Looks good to me. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

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

2016-02-24 Thread Andrew Donnellan
, but the cxl driver is not detecting it. Fix is to use the proper timebase-to-time conversion. Signed-off-by: Frederic Barrat <fbar...@linux.vnet.ibm.com> Cc: <sta...@vger.kernel.org> # 4.3+ Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan

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 Development

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

2016-02-17 Thread Andrew Donnellan
a14906 ("powerpc/powernv: new function to access OPAL msglog") Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/platforms/powernv/opal-msglog.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal-msglog.c b/

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

2016-02-16 Thread Andrew Donnellan
Shan <gws...@linux.vnet.ibm.com> Reviewed-by: Daniel Axtens <d...@axtens.net> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874

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

2016-02-16 Thread Andrew Donnellan
.vnet.ibm.com> This looks good to me. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

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

2016-02-16 Thread Andrew Donnellan
icit names of the arguments to the callbacks in "struct pci_controller_ops" so that the code looks consistent. Signed-off-by: Gavin Shan <gws...@linux.vnet.ibm.com> Reviewed-by: Daniel Axtens <d...@axtens.net> Reviewed-by: Andrew Donnellan <andrew.donnel..

Re: [PATCH] powerpc/lib/sstep.c - Fix emulation fall-through

2016-02-15 Thread Andrew Donnellan
onably convinced this is an appropriate fix: Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

Re: [PATCH] powerpc/eeh: Remove duplicated check in eeh_dump_pe_log()

2016-02-15 Thread Andrew Donnellan
really care. -- 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] powerpc/eeh: Remove duplicated check in eeh_dump_pe_log()

2016-02-14 Thread Andrew Donnellan
-by: Gavin Shan <gws...@linux.vnet.ibm.com> eeh_dump_pe_log() isn't called anywhere outside of eeh_slot_error_detail(), so this should have no functional change. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engi

Re: [PATCH v2 2/4] powerpc/powernv: Fix stale PE primary bus

2016-02-11 Thread Andrew Donnellan
. This fixes the issue by correcting the PE's primary bus when it's oneline at plugging time, in pnv_pci_dma_bus_setup() which is to be called by pcibios_fixup_bus(). Reported-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> Reported-by: Pradipta Ghosh <pradg...@in.ibm.com> Signed-off-by: Gav

[PATCH V3 1/2] powerpc/powernv: new function to access OPAL msglog

2016-02-10 Thread Andrew Donnellan
to an arbitrary buffer. Separate the initialisation code into generic memcons init and sysfs file creation. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- Changes V2->V3: - incorporate comments from Joel Stanley - opal_msglog_sysfs_init() now bails out if opal_memcons

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

2016-02-10 Thread Andrew Donnellan
interface. */ + opal_msglog_sysfs_init(); This will succeed, leaving you with a sysfs file attached to a broken driver. V3 on its way... -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Austral

[PATCH V3 2/2] powerpc/xmon: add command to dump OPAL msglog

2016-02-10 Thread Andrew Donnellan
Add the 'do' command to dump the OPAL msglog in xmon. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/xmon/xmon.c | 60 1 file changed, 60 insertions(+) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerp

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

2016-02-08 Thread Andrew Donnellan
to an arbitrary buffer. Separate the initialisation code into generic memcons init and sysfs file creation. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- Changes V1->V2: - Incorporate comments from mpe - Move the memcons pointer out of the bin_attribute struct - Decoupl

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

2016-02-08 Thread Andrew Donnellan
, because the structs in question are static and so the private pointer will be NULL, but that's a bit fragile. I think the solution is simply to create a: static struct memcons *opal_memcons; And use that in opal_msglog_copy() and so on. Will respin. -- Andrew Donnellan Software

[PATCH V2 2/2] powerpc/xmon: add command to dump OPAL msglog

2016-02-08 Thread Andrew Donnellan
Add the 'do' command to dump the OPAL msglog in xmon. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/xmon/xmon.c | 60 1 file changed, 60 insertions(+) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerp

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

2016-02-08 Thread Andrew Donnellan
that. 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 https

[PATCH] powerpc/eeh: fix incorrect function name in comment

2016-02-07 Thread Andrew Donnellan
The comment block above pcibios_set_pcie_reset_state() incorrectly refers to pcibios_set_pcie_slot_reset(). Fix the comment accordingly. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/kernel/eeh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH 2/2] powerpc/eeh: Reworked eeh_pe_bus_get()

2016-02-07 Thread Andrew Donnellan
tely a lot nicer to read and doesn't appear to have any functional changes. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

Re: [PATCH] Fix kgdb on little endian ppc64le

2016-02-01 Thread Andrew Donnellan
irtual instance with KDB enabled. After the patch, I am able to get the "go" command to work as expected Signed-off-by: Balbir Singh <bsinghar...@gmail.com> Should this be Cc'd to stable? -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Aus

Re: [PATCH] Fix fall-through from case 30 (rld*) to case 31

2016-01-26 Thread Andrew Donnellan
for that in emulate_step(), raise some kind of nice big warning at the very least) - make analyse_instr() return -1 on invalid instructions, which emulate_step() will immediately propagate, then make sure that whoever calls emulate_step() handles that appropriately Andrew -- Andrew Donnellan

[PATCH] powerpc/xmon: fix typo in usage message

2016-01-26 Thread Andrew Donnellan
Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/xmon/xmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index 07a8508..d5c8a15 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerp

Re: [PATCH] Fix fall-through from case 30 (rld*) to case 31

2016-01-26 Thread Andrew Donnellan
ame as any other instruction that isn't executed directly in the analyse_instr() stage. Is there anywhere else in the sstep code that deals well with malformed instructions? -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra

Re: [PATCH 03/13] irq_poll: fold irq_poll_sched_prep into irq_poll_sched

2016-01-19 Thread Andrew Donnellan
On 20/01/16 18:02, Andrew Donnellan wrote: I'm hitting an issue on a ppc64le box running linux-next, which according to git bisect is caused by this patch. Whoops, that should be linuxppc*-dev*@lists.ozlabs.org in the Cc. Andrew -- Andrew Donnellan Software Engineer, OzLabs

[PATCH 1/2] powerpc/powernv: new function to access OPAL msglog

2016-01-19 Thread Andrew Donnellan
to an arbitrary buffer. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/include/asm/opal.h | 2 ++ arch/powerpc/platforms/powernv/opal-msglog.c | 15 +++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/inclu

[PATCH 2/2] powerpc/xmon: add command to dump OPAL msglog

2016-01-19 Thread Andrew Donnellan
Add the 'do' command to dump the OPAL msglog in xmon. Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/xmon/xmon.c | 60 1 file changed, 60 insertions(+) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerp

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

2016-01-19 Thread Andrew Donnellan
existing drivers (cxlflash) to start using it. Signed-off-by: Frederic Barrat <fbar...@linux.vnet.ibm.com> Looks fine to me. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.co

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 <geliangt...@163.com> Good simplification. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs a

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

2016-01-13 Thread Andrew Donnellan
t Thanks for the changes. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

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

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 <rus...@russell.cc> Looks fine to me. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andr

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 <d...@axtens.net> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...

[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 <andrew.donnel...@au1.ibm.com> --- arch/powerpc/Kconfig.debug | 6 +++--- 1 file changed, 3 insertions

[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 <andrew.donnel...@au1.ibm.com> --- Only very slightly more correct, but I'm fairly sure it's more correct... --- arch/powerpc/platforms/powernv/

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

2015-12-14 Thread Andrew Donnellan
Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- 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 l

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

2015-12-14 Thread Andrew Donnellan
om> Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Looks reasonable. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

Re: [RFC] powerpc: Enable UBSAN support

2015-12-14 Thread Andrew Donnellan
; I tested this patch 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.donnel...@au1.ibm.com> -

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

2015-12-14 Thread Andrew Donnellan
.vnet.ibm.com> Assuming that the final card won't break in a particularly nasty way in the absence of later code changes, all looks good. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Austral

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

2015-12-13 Thread Andrew Donnellan
ed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> 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 620

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 leading to s

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

2015-12-07 Thread Andrew Donnellan
e meantime, revert the commit, especially as it was intended to be a non-functional change. Cc: Gavin Shan <gws...@linux.vnet.ibm.com> Cc: Ian Munsie <imun...@au1.ibm.com> Cc: Daniel Axtens <d...@axtens.net> Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> ---

[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 <andrew.donnel...@au1.ibm.com> --- This

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

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 <andrew.donnel...@au1.ibm.com> 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 Don

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

2015-11-26 Thread Andrew Donnellan
mainline kernels. So, start to remove references to OPALv2. Signed-off-by: Stewart Smith <stew...@linux.vnet.ibm.com> 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.donn

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

2015-11-26 Thread Andrew Donnellan
exclusively. Signed-off-by: Stewart Smith <stew...@linux.vnet.ibm.com> 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.donnel...@au1.ibm.com> -- Andrew Donnellan Softw

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 <rus...@russell.cc> The code looks reasonable. With the changes I've mentioned above: Reviewed-by: Andrew Donnellan <andrew.do

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

2015-11-26 Thread Andrew Donnellan
viewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- 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 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 andrew.donnel

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 <stew...@linux.vnet.ibm.com> Comment below. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/platforms/powernv/opal.c | 5 + 1 fil

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 <rashm...@gmail.com> Reviewed-by: Andrew Donnellan <andrew.do

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

2015-11-08 Thread Andrew Donnellan
tected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfr...@users.sourceforge.net> Thanks for picking this up - will remember in my future patches. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, Oz

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

2015-11-08 Thread Andrew Donnellan
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)IBM Australia Limited

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 Donnellan

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

2015-11-03 Thread Andrew Donnellan
bar...@linux.vnet.ibm.com> Cc: <sta...@vger.kernel.org> # 4.3+ Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM

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

2015-11-03 Thread Andrew Donnellan
bar...@linux.vnet.ibm.com> Cc: <sta...@vger.kernel.org> # 3.18+ Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM

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

2015-11-03 Thread Andrew Donnellan
* 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)IBM Australia Limited _

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

2015-11-03 Thread Andrew Donnellan
c: sta...@vger.kernel.org Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- drivers/misc/cxl/vphb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/cxl/vphb.c b/drivers

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 reference count on struct pid when attaching

2015-10-29 Thread Andrew Donnellan
(). The 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 <frederic.bar...@fr.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andr

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

2015-10-27 Thread Andrew Donnellan
Axtens <d...@axtens.net> Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- 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_p

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

2015-10-26 Thread Andrew Donnellan
eiy...@linux.vnet.ibm.com> Acked-by: Gavin Shan <gws...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)

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

2015-10-26 Thread Andrew Donnellan
oogle.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited __

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

2015-10-26 Thread Andrew Donnellan
}() and exports them so that they can be used in PCI hotplug during EEH recovery. [gwshan: changelog] Signed-off-by: Wei Yang <weiy...@linux.vnet.ibm.com> Reviewed-by: Gavin Shan <gws...@linux.vnet.ibm.com> Acked-by: Bjorn Helgaas <bhelg...@google.com> Reviewed-by: Andrew Donnellan <

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

2015-10-23 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 <gws...@linux.vnet.ibm.com> Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- arch/powerpc/kernel/eeh.c | 2 +-

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

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

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 <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnell

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 <mro...@linux.vnet.ibm.com> Reviewed-by: Andrew

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

2015-10-21 Thread Andrew Donnellan
-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Austr

[PATCH] cxl: Free virtual PHB when removing

2015-10-12 Thread Andrew Donnellan
-by: Daniel Axtens <d...@axtens.net> Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- 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,

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 <gws...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com>

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 <gws...@linux.vnet.ibm.com> Much easier to follow! Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Developme

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

2015-10-07 Thread Andrew Donnellan
com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.ibm.com Australia Development Lab, Canberra +61 2 6201 8874 (work)IBM Australia Limited

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

2015-10-05 Thread Andrew Donnellan
com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- 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
to allow this. Reported-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> Signed-off-by: Ian Munsie <imun...@au1.ibm.com> --- drivers/misc/cxl/a

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

2015-09-29 Thread Andrew Donnellan
el API (cxl_release_context()) or the userspace API (afu_release()). Reported-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- drivers/misc/cxl/context

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

2015-09-29 Thread Andrew Donnellan
m.com> Fixes: 6f7f0b3df6d4 ("cxl: Add AFU virtual PHB and kernel API") Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- drivers/misc/cxl/file.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/misc/cxl/file.c b/drivers/misc/cx

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 <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> See further comments bel

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

2015-09-28 Thread Andrew Donnellan
ux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> Changes mostly look fine, further comments below. --- a/drivers/scsi/cxlflash/main.c +++ b/drivers/scsi/cxlflash/main.c @@ -58,8 +58,8 @@ static struct afu_cmd *cmd_checkout(struct afu *afu)

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

2015-09-28 Thread Andrew Donnellan
atthew R. Ochs <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLab

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

2015-09-28 Thread Andrew Donnellan
ed-off-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> The commit message could explain the patch a bit better. Andrew -- Andrew Donnellan Software Engine

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

2015-09-28 Thread Andrew Donnellan
clean. Signed-off-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan S

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

2015-09-28 Thread Andrew Donnellan
not require an embedded fops. Signed-off-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan Software Engineer, OzLabs andrew.donnel...@au1.

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

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

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

2015-09-28 Thread Andrew Donnellan
com> Signed-off-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan

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 <mro...@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <ma...@linux.vnet.ibm.com> Reviewed-by: Brian King <brk...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnel

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

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

[PATCH] powerpc/pci: export pcibios_free_controller()

2015-09-10 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 <andrew.donnel...@au1.ibm.com> --- arch/powerpc/kernel/pci-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/p

<    5   6   7   8   9   10   11   >