Re: [PATCH v2 00/38] cxlflash: OCXL transport support

2018-03-08 Thread Andrew Donnellan
.18, of course. Slowly getting through it, though as of next Friday I'll be disappearing from the face of the earth for 3 weeks and I'm not sure I'll be finished by then. Fred: could you take a look at this series if you have spare cycles? -- Andrew Donnellan OzLabs, ADL Canbe

Re: [PATCH v2 10/38] cxlflash: Setup AFU PASID

2018-03-08 Thread Andrew Donnellan
range is used. Signed-off-by: Uma Krishnan <ukri...@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2 09/38] cxlflash: Setup AFU acTag range

2018-03-08 Thread Andrew Donnellan
. Signed-off-by: Uma Krishnan <ukri...@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> diff --git a/drivers/scsi/cxlflash/ocxl_hw.h b/drivers/scsi/cxlflash/ocxl_hw.h index f6af247..9c675fa 10

Re: [PATCH v2 08/38] cxlflash: Read host AFU configuration

2018-03-08 Thread Andrew Donnellan
thew R. Ochs <mro...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2 07/38] cxlflash: Setup function acTag range

2018-03-08 Thread Andrew Donnellan
. For cxlflash devices only a single function per host is expected and thus the entire range is assigned. Signed-off-by: Uma Krishnan <ukri...@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.co

Re: [PATCH v2 06/38] cxlflash: Read host function configuration

2018-03-06 Thread Andrew Donnellan
atthew R. Ochs <mro...@linux.vnet.ibm.com> Nitpick below Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- drivers/scsi/cxlflash/ocxl_hw.c | 41 + drivers/scsi/cxlflash/ocxl_hw.h | 2 ++ 2 files changed, 43 insertions(+) di

Re: [PATCH v2 05/38] cxlflash: Hardware AFU for OCXL

2018-03-06 Thread Andrew Donnellan
and exit paths of the driver. Signed-off-by: Uma Krishnan <ukri...@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> One comment below Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- drivers/scsi/cxlflash/backend.h | 1 + drivers/scsi

Re: [PATCH v2 04/38] cxlflash: Introduce OCXL backend

2018-03-06 Thread Andrew Donnellan
Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> Per my response to the first version of this series, at some point we might want to make this not depend on OCXL in all cases, but I don't feel strongly on that. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -

Re: [PATCH 04/38] cxlflash: Introduce OpenCXL backend

2018-02-22 Thread Andrew Donnellan
kri...@linux.vnet.ibm.com> Is it necessary to depend on OCXL in all cases? IMHO it should be possible to build a cxl-only version without ocxl, though I don't feel very strongly on this. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 00/38] cxlflash: OpenCXL transport support

2018-02-22 Thread Andrew Donnellan
xl-specific stuff as I can get to, though I'm a bit busy with the OpenCAPI skiboot work and reviewing the libocxl userspace library at the moment. Andrew -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

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

2018-01-03 Thread Andrew Donnellan
;hwq_index = hwq_index; + cmd->sa.ioasc = 0; cmd->rcb.ctx_id = hwq->ctx_hndl; cmd->rcb.msi = SISL_MSI_RRQ_UPDATED; cmd->rcb.port_sel = CHAN2PORTMASK(scp->device->channel); -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'

2017-08-15 Thread Andrew Donnellan
On 16/08/17 06:18, Christophe JAILLET wrote: 'rc' is known to be 0 at this point. If 'create_context()' fails, returns -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET <christophe.jail...@wanadoo.fr> ENOMEM seems right here. Reviewed-by: Andrew Don

Re: [PATCH 10/17] cxlflash: Fence EEH during probe

2017-04-13 Thread Andrew Donnellan
onfusing given how the term is already used in the context of EEH :) Andrew -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 0/4] cxlflash: Enhancements, cleanup and fixes

2017-01-09 Thread Andrew Donnellan
On 10/01/17 16:00, Martin K. Petersen wrote: The first three patches in the series were submitted by you but do not carry your Signed-off-by:... hmm, over in linuxppc-land I don't think we particularly enforce this. Thanks for the reminder! -- Andrew Donnellan OzLabs, ADL

Re: [PATCH 3/4] cxlflash: Cleanup prints

2017-01-08 Thread Andrew Donnellan
of ints to bools, which isn't strictly print-related. :) Signed-off-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> An impressive cleanup! Nothing bad which stands out to me. Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan OzLabs, ADL C

Re: [PATCH 2/6] cxlflash: Remove the device cleanly in the system shutdown path

2016-09-05 Thread Andrew Donnellan
be = cxlflash_probe, .remove = cxlflash_remove, - .shutdown = cxlflash_shutdown, + .shutdown = cxlflash_remove, What's the justification for using cxlflash_remove() as the shutdown hook, rather than just not having a shutdown hook at all? -- Andrew Donnellan OzLabs, ADL Canber

Re: [PATCH 1/2] cxlflash: Verify problem state area is mapped before notifying shutdown

2016-07-21 Thread Andrew Donnellan
ed. Fixes: 704c4b0ddc03 ("cxlflash: Shutdown notify support for CXL Flash cards") Signed-off-by: Uma Krishnan <ukri...@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au

Re: [PATCH v2] cxl: remove dead Kconfig options

2016-07-17 Thread Andrew Donnellan
On 18/07/16 14:52, Andrew Donnellan wrote: Remove the CXL_KERNEL_API and CXL_EEH Kconfig options, as they were only needed to coordinate the merging of the cxlflash driver. Also remove the stub implementation of cxl_perst_reloads_same_image() in cxlflash which is only used if CXL_EEH isn't

[PATCH v2] cxl: remove dead Kconfig options

2016-07-17 Thread Andrew Donnellan
<imun...@au1.ibm.com> Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> Acked-by: Ian Munsie <imun...@au1.ibm.com> Acked-by: Matthew R. Ochs <mro...@linux.vnet.ibm.com> --- Applies on top of powerpc#next, now that the Mellanox CX-4 patches have been applie

Re: [PATCH] cxl: remove dead Kconfig options

2016-07-13 Thread Andrew Donnellan
On 14/07/16 12:05, Andrew Donnellan wrote: Sorry for not stating explicitly - I'd like this taken through powerpc as the cxlflash change is incidental to the cxl changes. I'll also be submitting a v2 that applies on top of another cxl series that hasn't been merged yet. -- Andrew Donnellan

Re: [PATCH] cxl: remove dead Kconfig options

2016-07-13 Thread Andrew Donnellan
On 14/07/16 12:02, Martin K. Petersen wrote: "Andrew" == Andrew Donnellan <andrew.donnel...@au1.ibm.com> writes: Andrew> Remove the CXL_KERNEL_API and CXL_EEH Kconfig options, as they Andrew> were only needed to coordinate the merging of the cxlflash Andrew> dri

Re: [PATCH] cxl: remove dead Kconfig options

2016-07-08 Thread Andrew Donnellan
On 04/07/16 17:12, Andrew Donnellan wrote: Remove the CXL_KERNEL_API and CXL_EEH Kconfig options, as they were only needed to coordinate the merging of the cxlflash driver. Also remove the stub implementation of cxl_perst_reloads_same_image() in cxlflash which is only used if CXL_EEH isn't

[PATCH] cxl: remove dead Kconfig options

2016-07-04 Thread Andrew Donnellan
<imun...@au1.ibm.com> Signed-off-by: Andrew Donnellan <andrew.donnel...@au1.ibm.com> --- Applies on top of powerpc#next --- drivers/misc/cxl/Kconfig | 10 -- drivers/scsi/cxlflash/main.h | 4 2 files changed, 14 deletions(-) diff --git a/drivers/misc/cxl/Kconfig b/

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: [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 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

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 -- To unsubscribe from this list: send the line

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 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 -- To unsubscribe from this list: send the line

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