Re: [RESEND-RFC v2 2/3] powerpc/eeh: Introduce function eeh_pe_reset_freeze_counter()

2017-03-02 Thread Andrew Donnellan
uick succession that the counter won't hit 5 in a real failure case. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [RESEND-RFC v2 2/3] powerpc/eeh: Introduce function eeh_pe_reset_freeze_counter()

2017-03-02 Thread Andrew Donnellan
d either way - I just don't get the logic of restoring the count. I agree with this logic. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 6/7] cxl: Isolate few psl8 specific calls

2017-03-02 Thread Andrew Donnellan
eturn -EINVAL; } + if (!cxl_compatible_caia_version(adapter)) { + dev_info(&dev->dev, "Ignoring card. PSL type is not supported " + "(caia version: %d)\n", adapter->caia_major); + return -ENODEV; +

Re: [PATCH 7/7] cxl: Add psl9 specific code

2017-03-02 Thread Andrew Donnellan
rint_flags(flags, "|", \ + { CXL_PSL9_DSISR_An_CO_MASK,"FR" }, \ +

Re: [PATCH 01/13] powerpc/powernv: Introduce new PHB type for opencapi links

2018-01-02 Thread Andrew Donnellan
o need the information in later patches. So rename existing PNV_PHB_NPU type to PNV_PHB_NPU_NVLINK and add a new type PNV_PHB_NPU_OCAPI. Signed-off-by: Frederic Barrat Signed-off-by: Andrew Donnellan --- arch/powerpc/platforms/powernv/npu-dma.c | 2 +- arch/powerpc/platforms/powernv/pci-i

Re: [PATCH 10/13] ocxl: Add Makefile and Kconfig

2018-01-02 Thread Andrew Donnellan
in.o pci.o config.o file.o pasid.o +ocxl-y += link.o context.o afu_irq.o sysfs.o trace.o +obj-$(CONFIG_OCXL) += ocxl.o + +# For tracepoints to include our trace.h from tracepoint infrastructure: +CFLAGS_trace.o := -I$(src) + +# ccflags-y += -DDEBUG -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 06/13] ocxl: Driver code for 'generic' opencapi devices

2018-01-02 Thread Andrew Donnellan
river currently doesn't handle memory attached to the opencapi device. Signed-off-by: Frederic Barrat Signed-off-by: Andrew Donnellan Signed-off-by: Alastair D'Silva A bunch of sparse warnings we should look at. (there's a few more that appear in later patches too) --- driver

Re: [PATCH 04/13] powerpc/powernv: Add platform-specific services for opencapi

2018-01-02 Thread Andrew Donnellan
dev_err(&dev->dev, + "Can't translation xsl interrupt for device\n"); Can't get? -- 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
md->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 V7] cxl: Add support for ASB_Notify on POWER9

2018-01-14 Thread Andrew Donnellan
. This patch assign a unique TIDR (thread id) for the current thread which will be used in the process element entry. Signed-off-by: Christophe Lombard Reviewed-by: Philippe Bergheaud Acked-by: Andrew Donnellan --- Changelog[v7] - Rebased to latest upstream. - Added boolean: "ne

Re: [PATCH 02/13] powerpc/powernv: Set correct configuration space size for opencapi devices

2018-01-21 Thread Andrew Donnellan
On 20/01/18 20:52, Michael Ellerman wrote:> On my Power8 PowerVM LPAR: Will fix... -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2 07/13] ocxl: Add AFU interrupt support

2018-01-25 Thread Andrew Donnellan
written! :D -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] ocxl: fix signed comparison with less than zero

2018-01-30 Thread Andrew Donnellan
< 0 Fixes: 5ef3166e8a32 ("ocxl: Driver code for 'generic' opencapi devices") Signed-off-by: Colin Ian King Thanks for picking this up! Acked-by: Andrew Donnellan --- drivers/misc/ocxl/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH] cxl: Remove function write_timebase_ctrl_psl9() for PSL9

2018-02-12 Thread Andrew Donnellan
_psl9() and its references from the code. Signed-off-by: Vaibhav Jain Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: Enable NORST bit in PSL_DEBUG register for PSL9

2018-02-12 Thread Andrew Donnellan
non-debug images doesn't have any impact. Signed-off-by: Vaibhav Jain Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2] cxl: Remove function write_timebase_ctrl_psl9() for PSL9

2018-02-14 Thread Andrew Donnellan
Acked-by: Andrew Donnellan On 15/02/18 17:19, Vaibhav Jain wrote: For PSL9 the contents of PSL_TB_CTLSTAT register have changed in PSL9 and all of the register is now readonly. Hence we don't need an sl_ops implementation for 'write_timebase_ctrl' for to populate this register f

Re: [PATCH] powerpc/eeh: Add conditional check on notify_resume

2018-02-15 Thread Andrew Donnellan
an "powernv platform"? systems that don't add function notify_resume. Signed-off-by: Juan J. Alvarez Reviewed-by: Bryant G. Ly Tested-by: Carol L. Soto Reviewed-by: Andrew Donnellan --- arch/powerpc/kernel/eeh_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-

Re: [PATCH v2] cxl: Check if PSL data-cache is available before issue flush request

2018-02-15 Thread Andrew Donnellan
ate this. When cxl_data_cache_flush() is called it checks the flag and if set bails out early without requesting a data-cache flush operation to the PSL. Signed-off-by: Vaibhav Jain LGTM Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH V5] cxl: Fix timebase synchronization status on P9

2018-02-19 Thread Andrew Donnellan
configuration or application registers. The specific sysfs entry "/sys/class/cxl/cardxx/psl_timebase_synced" is now dynamically updated according the content of the PSL Timebase register. Signed-off-by: Christophe Lombard Acked-by: Andrew Donnellan -- Andrew Donnellan O

Re: [PATCH] ocxl: Fix potential bad errno on irq allocation

2018-02-20 Thread Andrew Donnellan
: Frederic Barrat Acked-by: Andrew Donnellan --- drivers/misc/ocxl/file.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/misc/ocxl/file.c b/drivers/misc/ocxl/file.c index 2dd2db9bc1c9..337462e1569f 100644 --- a/drivers/misc/ocxl/file.c +++ b/drivers/misc/ocxl

Re: [PATCH] ocxl: Add get_metadata IOCTL to share OCXL information to userspace

2018-02-20 Thread Andrew Donnellan
userspace. Signed-off-by: Alastair D'Silva Seems fine. Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] ocxl: Add get_metadata IOCTL to share OCXL information to userspace

2018-02-21 Thread Andrew Donnellan
number set. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 21/23] gcc-plugins: move GCC version check for PowerPC to Kconfig

2018-02-21 Thread Andrew Donnellan
On 17/02/18 05:38, Masahiro Yamada wrote: For PowerPC, GCC 5.2 is the requirement for GCC plugins. Move the version check to Kconfig, and remove the ugly checker. Signed-off-by: Masahiro Yamada The old checker was as non-ugly as I could make it. :) Acked-by: Andrew Donnellan -- Andrew

Re: [PATCH v3 1/2] ocxl: Add get_metadata IOCTL to share OCXL information to userspace

2018-02-21 Thread Andrew Donnellan
userspace. Signed-off-by: Alastair D'Silva Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v3 2/2] ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL

2018-02-21 Thread Andrew Donnellan
On 22/02/18 15:17, Alastair D'Silva wrote: From: Alastair D'Silva Signed-off-by: Alastair D'Silva Acked-by: Andrew Donnellan -- 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
ch of the ocxl-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 04/38] cxlflash: Introduce OpenCXL backend

2018-02-22 Thread Andrew Donnellan
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 v2 04/38] cxlflash: Introduce OCXL backend

2018-03-06 Thread Andrew Donnellan
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 Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

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

2018-03-06 Thread Andrew Donnellan
exit paths of the driver. Signed-off-by: Uma Krishnan Acked-by: Matthew R. Ochs One comment below Reviewed-by: Andrew Donnellan --- drivers/scsi/cxlflash/backend.h | 1 + drivers/scsi/cxlflash/cxl_hw.c | 6 ++ drivers/scsi/cxlflash/main.c| 9 +++-- drivers/scsi/cxlflash

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

2018-03-06 Thread Andrew Donnellan
Reviewed-by: Andrew Donnellan --- drivers/scsi/cxlflash/ocxl_hw.c | 41 + drivers/scsi/cxlflash/ocxl_hw.h | 2 ++ 2 files changed, 43 insertions(+) diff --git a/drivers/scsi/cxlflash/ocxl_hw.c b/drivers/scsi/cxlflash/ocxl_hw.c index e3a0a9b..dc32a73

Re: [PATCH] cxl: Perform NULL check for 'cxl_afu *' at various places in cxl

2018-03-08 Thread Andrew Donnellan
afu = adapter->afu[i]; - if (afu->phb == NULL) + if (afu == NULL || afu->phb == NULL) continue; list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { -- 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 Acked-by: Matthew R. Ochs Reviewed-by: Andrew Donnellan diff --git a/drivers/scsi/cxlflash/ocxl_hw.h b/drivers/scsi/cxlflash/ocxl_hw.h index 658f420..190d71a

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

2018-03-08 Thread Andrew Donnellan
Donnellan -- 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 Acked-by: Matthew R. Ochs Reviewed-by: Andrew Donnellan diff --git a/drivers/scsi/cxlflash/ocxl_hw.h b/drivers/scsi/cxlflash/ocxl_hw.h index f6af247..9c675fa 100644 --- a/drivers/scsi/cxlflash/ocxl_hw.h +++ b/drivers/scsi/cxlflash/ocxl_hw.h @@ -22,4 +22,6

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

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

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 Oz

Re: [PATCH] cxl: Perform NULL check for 'cxl_afu *' at various places in cxl

2018-03-08 Thread Andrew Donnellan
On 09/03/18 13:59, Vaibhav Jain wrote: Thanks for looking into this patch Andrew, Andrew Donnellan writes: On 08/03/18 21:05, Vaibhav Jain wrote: It is possible for a CXL card to have a valid PSL but no valid AFUs. When this happens we have a valid instance of 'struct cxl' repres

Re: [PATCH 2/2] misc: ocxl: use put_device() instead of device_unregister()

2018-03-12 Thread Andrew Donnellan
On 12/03/18 22:36, Arvind Yadav wrote: if device_register() returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav This looks right, thanks for picking it up. Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL

Re: [PATCH 7/7] ocxl: Document new OCXL IOCTLs

2018-04-16 Thread Andrew Donnellan
ags which I suppose imply what the correct platform is, but really they're just feature flags? -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 1/7] powerpc: Add TIDR CPU feature for Power9

2018-04-16 Thread Andrew Donnellan
th the CPU features code but nothing seems overly wrong... Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 2/7] powerpc: Use TIDR CPU feature to control TIDR allocation

2018-04-16 Thread Andrew Donnellan
return -EINVAL; if (t != current) -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: Configure PSL to not use APC virtual machines

2018-04-16 Thread Andrew Donnellan
ue.id == 0. Signed-off-by: Vaibhav Jain LGTM. Does this need to be sent to stable? Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 4/7] ocxl: Rename pnv_ocxl_spa_remove_pe to clarify it's action

2018-04-16 Thread Andrew Donnellan
f a similar name. But I don't feel strongly about this at all, so: Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] misc: cxl: Change return type to vm_fault_t

2018-04-17 Thread Andrew Donnellan
looks good to me Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2 1/7] powerpc: Add TIDR CPU feature for Power9

2018-04-18 Thread Andrew Donnellan
On 18/04/18 11:08, Alastair D'Silva wrote: From: Alastair D'Silva This patch adds a CPU feature bit to show whether the CPU has the TIDR register available, enabling as_notify/wait in userspace. Signed-off-by: Alastair D'Silva Per my previous email: Reviewed-by: A

Re: [PATCH v2 2/7] powerpc: Use TIDR CPU feature to control TIDR allocation

2018-04-18 Thread Andrew Donnellan
On 18/04/18 11:08, Alastair D'Silva wrote: From: Alastair D'Silva Switch the use of TIDR on it's CPU feature, rather than assuming it is available based on architecture. Signed-off-by: Alastair D'Silva Reviewed-by: Andrew Donnellan -- Andrew Donnellan

Re: [PATCH v2 7/7] ocxl: Document new OCXL IOCTLs

2018-04-18 Thread Andrew Donnellan
On 18/04/18 11:08, Alastair D'Silva wrote: From: Alastair D'Silva Signed-off-by: Alastair D'Silva This looks better. Acked-by: Andrew Donnellan --- Documentation/accelerators/ocxl.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/Documentation/accele

Re: [PATCH v2 6/7] ocxl: Add an IOCTL so userspace knows what CPU features are available

2018-04-20 Thread Andrew Donnellan
On 18/04/18 11:08, Alastair D'Silva wrote: From: Alastair D'Silva In order for a userspace AFU driver to call the Power9 specific OCXL_IOCTL_ENABLE_P9_WAIT, it needs to verify that it can actually make that call. Signed-off-by: Alastair D'Silva Looks good to me Acked-by: A

Re: [PATCH v2 3/7] powerpc: use task_pid_nr() for TID allocation

2018-04-20 Thread Andrew Donnellan
return rc; - - t->thread.tidr = rc; + t->thread.tidr = (u16)task_pid_nr(t); mtspr(SPRN_TIDR, t->thread.tidr); return 0; -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2 5/7] ocxl: Expose the thread_id needed for wait on p9

2018-04-23 Thread Andrew Donnellan
ir D'Silva nitpicks below Acked-by: Andrew Donnellan --- drivers/misc/ocxl/context.c | 5 +++- drivers/misc/ocxl/file.c | 53 +++ drivers/misc/ocxl/link.c | 36 ++ drivers/misc/ocxl/ocxl_internal.h |

Re: [PATCH v2 3/7] powerpc: use task_pid_nr() for TID allocation

2018-04-26 Thread Andrew Donnellan
. Alastair has also confirmed with me that truncating the pid to a u16 should be safe, so therefore: Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: administrivia: mails containing HTML attachments

2018-05-16 Thread Andrew Donnellan
n the next Patchwork release, but in the meantime this restriction should stop us running into any issues on this list. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH-RESEND] cxl: Disable prefault_mode in Radix mode

2018-05-20 Thread Andrew Donnellan
n --- Change-log: Resend -> Updated the commit description to add more info on the issue seen [Andrew] Thanks for redoing the commit message. This looks good to me. Acked-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

[RFC 0/3] powerpc/powernv: support CAPI + kexec

2016-09-16 Thread Andrew Donnellan
ad this is. Thanks to Vaibhav Jain (who made a previous attempt at this), Mikey Neuling, Ben Herrenschmidt, Gavin Shan, Bill Daly and JT Kellington for advice on various bits of this. Andrew [0] http://patchwork.ozlabs.org/patch/670781/ [1] http://patchwork.ozlabs.org/patch/670782/ Andrew Donnell

[RFC 1/3] powerpc/powernv: fix comment style and spelling

2016-09-16 Thread Andrew Donnellan
Signed-off-by: Andrew Donnellan --- arch/powerpc/platforms/powernv/pci-ioda.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index c16d790..ca5e9b5 100644 --- a/arch/powerpc/platforms

[RFC 2/3] powerpc/powernv: add opal_pci_get_phb_capi_mode() call

2016-09-16 Thread Andrew Donnellan
boots that support this). Signed-off-by: Andrew Donnellan --- Corresponding skiboot RFC: http://patchwork.ozlabs.org/patch/670781/ --- arch/powerpc/include/asm/opal-api.h| 3 ++- arch/powerpc/include/asm/opal.h| 1 + arch/powerpc/platforms/powernv/opal-wrappers.S | 1

[RFC 3/3] powerpc/powernv: reset any PHBs in CAPI mode during initialisation

2016-09-16 Thread Andrew Donnellan
complete reset in order to disable CAPI mode. This requires a version of skiboot that implements the OPAL_PCI_GET_PHB_CAPI_MODE call (introduced at the same time that the capability to disable CAPI mode during complete resets was introduced). Signed-off-by: Andrew Donnellan --- Corresponding

[PATCH] powerpc/pseries: fix memory leak in queue_hotplug_event() error path

2016-09-18 Thread Andrew Donnellan
If we fail to allocate work, we don't end up using hp_errlog_copy. Free it in the error path. Signed-off-by: Andrew Donnellan --- Found by Coverity Scan. Compile tested only. --- arch/powerpc/platforms/pseries/dlpar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/plat

Re: [PATCH] cxl: Flush PSL cache before resetting the adapter

2016-10-03 Thread Andrew Donnellan
deric Barrat Otherwise looks good to me. Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH v2] cxl: Flush PSL cache before resetting the adapter

2016-10-04 Thread Andrew Donnellan
lp if there are any active Process Elements on the card, as the cache would likely get new dirty cache lines immediately, but if resetting an idle adapter, it should avoid any bad surprises from data left over from terminated Process Elements. Signed-off-by: Frederic Barrat Reviewed-by: Andrew Donn

Re: [PATCH] cxl: Prevent adapter reset if an active context exists

2016-10-10 Thread Andrew Donnellan
stand for ? "+ve" and "-ve" are common English scientific/engineering abbreviations for "positive" and "negative" respectively. I suppose they may be unfamiliar to those who didn't get an English science education, so it might be clearer to say &

Re: [PATCH v2] cxl: Prevent adapter reset if an active context exists

2016-10-12 Thread Andrew Donnellan
. Signed-off-by: Vaibhav Jain All the changes look good to me. Reviewed-by: Andrew Donnellan diff --git a/Documentation/ABI/testing/sysfs-class-cxl b/Documentation/ABI/testing/sysfs-class-cxl index 4ba0a2a..dae2b38 100644 --- a/Documentation/ABI/testing/sysfs-class-cxl +++ b/Documentati

Re: [PATCH v3] cxl: Prevent adapter reset if an active context exists

2016-10-13 Thread Andrew Donnellan
. Signed-off-by: Vaibhav Jain Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: Fix leaking pid refs in some error paths

2016-10-20 Thread Andrew Donnellan
ic Barrat Signed-off-by: Vaibhav Jain Reviewed-by: Andrew Donnellan --- drivers/misc/cxl/api.c | 2 ++ drivers/misc/cxl/file.c | 22 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index af23d7d..2e5233b 1

Re: [PATCH] cxl: Fix memory allocation failure test

2016-10-30 Thread Andrew Donnellan
ng it, simplify a bit the code. Signed-off-by: Christophe JAILLET Reviewed-by: Andrew Donnellan --- un-compiled because I don't have the required cross build environment. Compiles on my system! -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: Fix error handling

2016-10-30 Thread Andrew Donnellan
On 31/10/16 08:34, Christophe JAILLET wrote: 'cxl_dev_context_init()' returns an error pointer in case of error, not NULL. So test it with IS_ERR. Signed-off-by: Christophe JAILLET Reviewed-by: Andrew Donnellan --- un-compiled because I don't have the required cross bu

Re: [PATCH] cxl: Fix error handling

2016-10-30 Thread Andrew Donnellan
On 31/10/16 08:40, Christophe JAILLET wrote: 'cxl_dev_context_init()' returns an error pointer in case of error, not NULL. So test it with IS_ERR. Signed-off-by: Christophe JAILLET Reviewed-by: Andrew Donnellan --- un-compiled because I don't have the required cross bu

Re: [kernel-hardening] [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally

2016-11-01 Thread Andrew Donnellan
(In future please remember to cc linuxppc-dev.) -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 1/3] powerpc: Emulation support for load/store instructions on LE

2016-11-03 Thread Andrew Donnellan
(particularly so we pick it up in distros) but I'm not convinced that enabling HW breakpoints on a platform where it has *never* worked qualifies as an "actual bug". (BTW many thanks for fixing this - I had a shot at it late last year but never quite got there!) -- A

[PATCH] powerpc/oops: fix pr_cont() issues in instruction dump

2016-11-03 Thread Andrew Donnellan
Since the KERN_CONT changes, the current code in show_instructions() prints out a whole bunch of unnecessary newlines. Change occurrences of printk("\n") to pr_cont("\n"). While we're here, change all the other cases of printk(KERN_CONT ...) to pr_cont() as well. Signed

Re: [RESEND] [PATCH v3] cxl: Prevent adapter reset if an active context exists

2016-11-03 Thread Andrew Donnellan
t. Cc: sta...@vger.kernel.org Fixes: 62fa19d4 ("cxl: Add ability to reset the card") Acked-by: Frederic Barrat Reviewed-by: Andrew Donnellan Signed-off-by: Vaibhav Jain When I inject an EEH error, this patch causes the following WARN. Thoughts? [ 55.965011] EEH: PHB#0 failure de

Re: [RESEND] [PATCH v3] cxl: Prevent adapter reset if an active context exists

2016-11-06 Thread Andrew Donnellan
] [c031ec70] SyS_pread64+0xb0/0xd0 This isn't a WARN - this stack trace is printed explicitly by the EEH code in the case of a PHB failure. arch/powerpc/kernel/eeh.c, line 403. Andrew -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [RESEND] [PATCH v3] cxl: Prevent adapter reset if an active context exists

2016-11-06 Thread Andrew Donnellan
efinitely* looks related to this patch... Andrew -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [kernel-hardening] [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally

2016-11-15 Thread Andrew Donnellan
ones are broken so we can put a version check in... -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] powerpc/powernv: Don't warn on PE init if unfreeze is unsupported

2016-11-15 Thread Andrew Donnellan
f-by: Russell Currey Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: Fix potential build failure - select ANON_INODES

2016-11-16 Thread Andrew Donnellan
tch/694415/ is applied though? -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 1/2] PCI: Add pci_set_vpd_timeout() to set VPD access timeout

2016-11-21 Thread Andrew Donnellan
d that was measured on one device. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 2/2] cxl: Set VPD timeout to avoid access failures

2016-11-21 Thread Andrew Donnellan
dev); -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH 2/3] powerpc/boot: All uses of if_changed should depend on FORCE

2016-11-21 Thread Andrew Donnellan
On 21/11/16 21:14, Michael Ellerman wrote: From: Michael Ellerman Not the most publicly resolvable of domains :) -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

[PATCH] cpuidle/powernv: staticise powernv_idle_driver

2016-11-21 Thread Andrew Donnellan
powernv_idle_driver isn't exported, it can be made static. Found by sparse. Signed-off-by: Andrew Donnellan --- drivers/cpuidle/cpuidle-powernv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c

[PATCH RFC] powerpc/powernv: sysfs entry to force full IPL reboot

2016-11-22 Thread Andrew Donnellan
lement the OPAL_REBOOT_FULL_IPL reboot type, this will force an IPL. On versions that do not, print an error message on reboot and proceed with a regular reboot (which could be a full IPL or a fast reboot). Cc: Stewart Smith Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Donnellan --- Correspondi

[PATCH] cxl: fix coccinelle warnings

2016-11-22 Thread Andrew Donnellan
drivers/misc/cxl/native.c:57:2-3: Unneeded semicolon drivers/misc/cxl/native.c:170:2-3: Unneeded semicolon Signed-off-by: Andrew Donnellan --- drivers/misc/cxl/debugfs.c | 6 -- drivers/misc/cxl/guest.c | 2 +- drivers/misc/cxl/irq.c | 2 +- drivers/misc/cxl/native.c | 4 ++-- 4

Re: [PATCH RFC] powerpc/powernv: sysfs entry to force full IPL reboot

2016-11-22 Thread Andrew Donnellan
t;force", which already exists, though I can't quite see what that actually means on x86. Hmm. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH RFC] powerpc/powernv: sysfs entry to force full IPL reboot

2016-11-22 Thread Andrew Donnellan
On 23/11/16 12:37, Andrew Donnellan wrote: There's existing logic in kernel/reboot.c to handle a reboot= command line parameter, which can set the reboot_mode, so my preference would be that we use that. Currently we completely ignore the reboot_mode, so there's no backward compatibi

Re: [PATCH] cxl: fix coccinelle warnings

2016-11-22 Thread Andrew Donnellan
on scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: drop duplicate header sched.h

2016-11-23 Thread Andrew Donnellan
On 24/11/16 02:27, Geliang Tang wrote: Drop duplicate header sched.h from native.c. Signed-off-by: Geliang Tang Good catch! Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [RFC][PATCH] Update ppc disassembly in xmon

2016-11-23 Thread Andrew Donnellan
On 24/11/16 13:05, Balbir Singh wrote: 9. The license for these files is now GPL v3 or later As much as I love the GPLv3, isn't this an instant NAK? -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

[PATCH] powerpc/eeh: fix deadlock when PE frozen state can't be cleared

2016-11-30 Thread Andrew Donnellan
(). Add a call to pci_unlock_rescan_remove() in the eeh_clear_pe_frozen_state() error path so that we don't cause a deadlock later on. Reported-by: Pradipta Ghosh Fixes: 78954700631f ("powerpc/eeh: Avoid I/O access during PE reset") Cc: sta...@vger.kernel.org Signed-off-by: Andrew Donne

Re: [PATCH v9 18/26] powerpc/pci: Rename pcibios_{add, remove}_pci_devices()

2016-05-03 Thread Andrew Donnellan
pci_hp_add_devices(bus); if (!list_empty(&bus->devices)) { info->adapter_status = CONFIGURED; -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited __

Re: [PATCH v9 20/26] powerpc/pci: Move pci_find_bus_by_node() around

2016-05-03 Thread Andrew Donnellan
introduced. * Remove variable "busdn" in find_bus_among_children() * Use PCI_DN() to convert device node to pci_dn Signed-off-by: Gavin Shan Acked-by: Benjamin Herrenschmidt Looks good to me Reviewed-by: Andrew Donnellan --- arch/powerpc/kernel/pci-hotplug.c

Re: [PATCH] cxl: Remove duplicate #defines

2016-05-03 Thread Andrew Donnellan
On 04/05/16 14:48, Ian Munsie wrote: From: Ian Munsie These defines are not used, but other equivalent definitions (CXL_SPA_SW_CMD_*) are used. Remove the unused defines. Signed-off-by: Ian Munsie They definitely look unused. Reviewed-by: Andrew Donnellan -- Andrew Donnellan

Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Andrew Donnellan
I've done some basic sanity testing on powerpc with the cyclomatic complexity plugin (with LE native + cross-compilers) and it seems to work with the patch below. Signed-off-by: Andrew Donnellan diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index a18a0dc..0cfed5b 100644 ---

Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Andrew Donnellan
On 18/05/16 20:33, Emese Revfy wrote: Did you test the plugins with all gcc versions (4.5-6)? No, I tested with 4.8 and 5.2 as those are the toolchains I have on hand - I'll try to test with the rest of 4.5 - 6.1. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel..

Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure

2016-05-18 Thread Andrew Donnellan
d in 4.5, so we don't care about <=4.4. However if Andrew's only tested on little endian, then that select should be guarded with an "if CPU_LITTLE_ENDIAN". And to build LE you need gcc >= 4.9. I'm going to give BE a test too just to be sure. -- Andrew Donnellan

Re: [kernel-hardening] [PATCH v8 2/4] GCC plugin infrastructure

2016-05-19 Thread Andrew Donnellan
;ed on the plugin infrastructure so that arch maintainers are aware of this? Upon further testing it does seem we've got header issues as well as hitting a segfault on 4.7.0. Looking into it further... -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Au

Re: [PATCH] cxl: Abstract the differences between the PSL and XSL

2016-05-30 Thread Andrew Donnellan
On 31/05/16 09:01, Michael Ellerman wrote: Those come from XSL_databook_09_June_2014.pdf Where do I find that? My understanding is that it's IBM Confidential and isn't available to the general community, unfortunately. Andrew -- Andrew Donnellan OzLabs, AD

Re: [PATCH v10 03/18] powerpc/powernv: Remove PCI_RESET_DELAY_US

2016-05-31 Thread Andrew Donnellan
On 20/05/16 16:41, Gavin Shan wrote: The macro defined in arch/powerpc/platforms/powernv/pci.c isn't used by anyone. Just remove it. Signed-off-by: Gavin Shan Looks like the only user of it disappeared in late 2014... Reviewed-by: Andrew Donnellan -- Andrew Donnellan O

[PATCH] powerpc/eeh: fix pr_debug()s in eeh_cache.c

2016-06-23 Thread Andrew Donnellan
eeh_cache.c doesn't build cleanly with -DDEBUG when CONFIG_PHYS_ADDR_T_64BIT is set, as a couple of pr_debug()s use "%lx" for resource_size_t parameters. Use "%pap" instead, as it's the correct format specifier for types deriving from phys_addr_t. Signed-off-by:

Re: [RESEND v7,2/2] cxl: Add set and get private data to context struct

2016-06-28 Thread Andrew Donnellan
any private data structures they may use. Signed-off-by: Michael Neuling Signed-off-by: Ian Munsie Signed-off-by: Philippe Bergheaud As per v3: Reviewed-by: Andrew Donnellan -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnel...@au1.ibm.com IBM Australia Limited

Re: [PATCH] cxl: Fix NULL pointer dereference on kernel contexts with no AFU interrupts

2016-06-29 Thread Andrew Donnellan
irq_names list into the cxl_context_init routine so that it will be valid for the entire lifetime of the context and will not cause a NULL pointer dereference. Signed-off-by: Ian Munsie As it's nice having your machine not crash on every shutdown... Reviewed-by: Andrew Donnellan -- A

<    4   5   6   7   8   9   10   11   >