[PATCH] vop: Add missing __iomem annotation in vop_dc_to_vdev()

2020-08-02 Thread Ashutosh Dixit
] __iomem *dc Cc: Michael S. Tsirkin Cc: Sudeep Dutt Cc: Arnd Bergmann Cc: Vincent Whitchurch Cc: stable Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/vop/vop_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop

Re: [PATCH-next] misc: mic: Use PTR_ERR_OR_ZERO

2018-01-26 Thread Ashutosh Dixit
On Tue, Jan 23 2018 at 02:55:19 PM, Al Viro wrote: > On Tue, Jan 23, 2018 at 03:10:09PM -0500, Christopher Díaz Riveros wrote: >> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR >> >> This issue was detected by using the Coccinelle software. > > ... and that's

Re: [PATCH-next] misc: mic: Use PTR_ERR_OR_ZERO

2018-01-26 Thread Ashutosh Dixit
On Tue, Jan 23 2018 at 02:55:19 PM, Al Viro wrote: > On Tue, Jan 23, 2018 at 03:10:09PM -0500, Christopher Díaz Riveros wrote: >> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR >> >> This issue was detected by using the Coccinelle software. > > ... and that's a wonderful demonstration

Re: hfi1 use of PCI internals

2016-06-17 Thread Ashutosh Dixit
On Thu, Jun 16 2016 at 04:08:17 PM, Bjorn Helgaas wrote: > > That's a good start, but leads to more questions. For example, it > doesn't answer the obvious question of why the driver needs to > enable/disable ASPM from interrupt context. For power saving reasons we keep ASPM

Re: hfi1 use of PCI internals

2016-06-17 Thread Ashutosh Dixit
On Thu, Jun 16 2016 at 04:08:17 PM, Bjorn Helgaas wrote: > > That's a good start, but leads to more questions. For example, it > doesn't answer the obvious question of why the driver needs to > enable/disable ASPM from interrupt context. For power saving reasons we keep ASPM L1 enabled, but

Re: hfi1 use of PCI internals

2016-06-16 Thread Ashutosh Dixit
On Thu, Jun 16 2016 at 12:20:52 PM, Bjorn Helgaas wrote: > I noticed drivers/infiniband/hw/hfi1 got moved from staging to > drivers/ for v4.7. It does a bunch of grubbing around in PCIe ASPM > configuration, e.g., see drivers/infiniband/hw/hfi1/aspm.h. > > I know there have

Re: hfi1 use of PCI internals

2016-06-16 Thread Ashutosh Dixit
On Thu, Jun 16 2016 at 12:20:52 PM, Bjorn Helgaas wrote: > I noticed drivers/infiniband/hw/hfi1 got moved from staging to > drivers/ for v4.7. It does a bunch of grubbing around in PCIe ASPM > configuration, e.g., see drivers/infiniband/hw/hfi1/aspm.h. > > I know there have been lots of ASPM

Re: [PATCH] mpssd: fix buffer overflow warning

2016-05-19 Thread Ashutosh Dixit
On Fri, May 20 2016 at 12:54:51 AM, Mike Danese wrote: > The compilation emits a warning in function ‘snprintf’, > inlined from ‘set_cmdline’ at > ../Documentation/mic/mpssd/mpssd.c:1541:9: > /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: > warning: call to

Re: [PATCH] mpssd: fix buffer overflow warning

2016-05-19 Thread Ashutosh Dixit
On Fri, May 20 2016 at 12:54:51 AM, Mike Danese wrote: > The compilation emits a warning in function ‘snprintf’, > inlined from ‘set_cmdline’ at > ../Documentation/mic/mpssd/mpssd.c:1541:9: > /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: > warning: call to

[PATCH char-misc-linus] misc: mic: Fix for double fetch security bug in VOP driver

2016-04-27 Thread Ashutosh Dixit
=116651 Reported by: Pengfei Wang <wpengfein...@gmail.com> Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/vop/vop_vringh.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/misc/mic/v

[PATCH char-misc-linus] misc: mic: Fix for double fetch security bug in VOP driver

2016-04-27 Thread Ashutosh Dixit
=116651 Reported by: Pengfei Wang Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/vop/vop_vringh.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/misc/mic/vop/vop_vringh.c b/drivers/misc/mic/vop/vop_vringh.c index e94c7fb..88e4523 100644

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2016-01-04 Thread Ashutosh Dixit
On Sun, Jan 03 2016 at 10:35:26 PM, "Koul, Vinod" wrote: > On Tue, Dec 22, 2015 at 07:35:23PM -0800, Ashutosh Dixit wrote: >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing >> spin_unlock"). >> >> The above patch is incorrect. T

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2016-01-04 Thread Ashutosh Dixit
On Sun, Jan 03 2016 at 10:35:26 PM, "Koul, Vinod" <vinod.k...@intel.com> wrote: > On Tue, Dec 22, 2015 at 07:35:23PM -0800, Ashutosh Dixit wrote: >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing >> spin_unlock"). >> >>

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2015-12-22 Thread Ashutosh Dixit
On Wed, Dec 23 2015 at 12:45:31 AM, Saurabh Sengar wrote: > On 23 December 2015 at 09:05, Ashutosh Dixit wrote: >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing >> spin_unlock"). >> >> The above patch is incorrect. There is no

[PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2015-12-22 Thread Ashutosh Dixit
This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing spin_unlock"). The above patch is incorrect. There is nothing wrong with the original code. The spin_lock is acquired in the "prep" functions and released in "submit". Signed-off-by: As

[PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2015-12-22 Thread Ashutosh Dixit
This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing spin_unlock"). The above patch is incorrect. There is nothing wrong with the original code. The spin_lock is acquired in the "prep" functions and released in "submit". Signed-off-by: Ashutosh D

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2015-12-22 Thread Ashutosh Dixit
On Wed, Dec 23 2015 at 12:45:31 AM, Saurabh Sengar <saurabh.tr...@gmail.com> wrote: > On 23 December 2015 at 09:05, Ashutosh Dixit <ashutosh.di...@intel.com> wrote: >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing >> spin_unlock"

[PATCH RESEND] misc: mic: Fix crash when MIC reset is invoked in RESET_FAILED state

2015-12-15 Thread Ashutosh Dixit
ded in a new cosm_device member cdev->prev_state. Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/bus/cosm_bus.h | 2 ++ drivers/misc/mic/cosm/cosm_main.c | 13 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/misc/mic/bus/cosm

[PATCH RESEND] misc: mic: Fix crash when MIC reset is invoked in RESET_FAILED state

2015-12-15 Thread Ashutosh Dixit
ded in a new cosm_device member cdev->prev_state. Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/bus/cosm_bus.h | 2 ++ drivers/misc/mic/cosm/cosm_main.c | 13 + 2 files changed, 11 insertio

[PATCH] misc: mic: Fix crash when MIC reset is invoked in RESET_FAILED state

2015-11-17 Thread Ashutosh Dixit
ded in a new cosm_device member cdev->prev_state. Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/bus/cosm_bus.h | 2 ++ drivers/misc/mic/cosm/cosm_main.c | 13 + 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/misc/mic/bus/cosm

[PATCH] misc: mic: Fix crash when MIC reset is invoked in RESET_FAILED state

2015-11-17 Thread Ashutosh Dixit
ded in a new cosm_device member cdev->prev_state. Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/bus/cosm_bus.h | 2 ++ drivers/misc/mic/cosm/cosm_main.c | 13 + 2 files changed, 11 insertio

Re: [PATCH v2] misc: mic: replace kfree with put_device

2015-10-11 Thread Ashutosh Dixit
On Sun, Oct 04 2015 at 05:33:47 PM, Geliang Tang wrote: > Handle a failed device_register(), replace kfree() with put_device(), > which will call mbus_release_dev() or scif_release_dev(). Could you add the same change to cosm_bus.c too in the same path and resubmit the patch. Thanks. -- To

Re: [PATCH v2] misc: mic: replace kfree with put_device

2015-10-11 Thread Ashutosh Dixit
On Sun, Oct 04 2015 at 05:33:47 PM, Geliang Tang wrote: > Handle a failed device_register(), replace kfree() with put_device(), > which will call mbus_release_dev() or scif_release_dev(). Could you add the same change to cosm_bus.c too in the same path and resubmit the

Re: [PATCH] misc: mic: use kstrdup() in cosm_sysfs

2015-10-10 Thread Ashutosh Dixit
On Sat, Oct 10 2015 at 12:14:30 PM, Joe Perches wrote: > On Sat, 2015-10-10 at 04:46 -0700, Geliang Tang wrote: >> Use kstrdup instead of kmalloc and strncpy. > >> diff --git a/drivers/misc/mic/cosm/cosm_sysfs.c >> b/drivers/misc/mic/cosm/cosm_sysfs.c > [] >> @@ -211,18 +211,14 @@

Re: [PATCH] misc: mic: use kstrdup() in cosm_sysfs

2015-10-10 Thread Ashutosh Dixit
On Sat, Oct 10 2015 at 12:14:30 PM, Joe Perches wrote: > On Sat, 2015-10-10 at 04:46 -0700, Geliang Tang wrote: >> Use kstrdup instead of kmalloc and strncpy. > >> diff --git a/drivers/misc/mic/cosm/cosm_sysfs.c >> b/drivers/misc/mic/cosm/cosm_sysfs.c > [] >> @@ -211,18 +211,14

[PATCH char-misc-next] misc: mic: Fix randconfig build error

2015-10-07 Thread Ashutosh Dixit
Fixes randconfig build error reported at http://www.spinics.net/lists/kernel/msg2092346.html Reported-by: Jim Davis Reviewed-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/cosm/cosm_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc

[PATCH char-misc-next] misc: mic: Fix randconfig build error

2015-10-07 Thread Ashutosh Dixit
Fixes randconfig build error reported at http://www.spinics.net/lists/kernel/msg2092346.html Reported-by: Jim Davis <jim.ep...@gmail.com> Reviewed-by: Dasaratharaman Chandramouli <dasaratharaman.chandramo...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> ---

[PATCH char-misc-next v2 19/22] misc: mic: SCIF remote memory map/unmap interface

2015-09-29 Thread Ashutosh Dixit
. These mappings are zapped to avoid RMA accesses from user space, if a Coprocessor is reset. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_mmap.c | 699 ++ 1 file changed, 699 insertions(+) create mode 100644

[PATCH char-misc-next v2 22/22] misc: mic: SCIF RMA nodeqp and minor miscellaneous changes

2015-09-29 Thread Ashutosh Dixit
and updating RMA specific debugfs hooks. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/Kconfig | 1 + drivers/misc/mic/scif/Makefile| 5 + drivers/misc/mic/scif/scif_api.c | 33 +-- drivers/misc/mic/scif

[PATCH char-misc-next v2 18/22] misc: mic: SCIF RMA list operations

2015-09-29 Thread Ashutosh Dixit
operation is used by SCIF APIs which initiate DMAs, CPU copies or fences to ensure that a window remains valid during a transfer. Reviewed-by: Ashutosh Dixit Signed-off-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_rma_list.c | 291

[PATCH char-misc-next v2 20/22] misc: mic: SCIF DMA and CPU copy interface

2015-09-29 Thread Ashutosh Dixit
that window are drained. Users can request synchronous DMA operations as well as tail byte ordering if required. CPU copies are always performed synchronously. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_dma.c | 1979

[PATCH char-misc-next v2 21/22] misc: mic: SCIF fence

2015-09-29 Thread Ashutosh Dixit
the local and the remote node for both the mark/wait or the fence signal APIs. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Jacek Lawrynowicz Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_fence.c | 771 + 1 file changed,

[PATCH char-misc-next v2 13/22] misc: mic: Remove COSM functionality from the MIC card driver

2015-09-29 Thread Ashutosh Dixit
by COSM rather than maintain its own device index. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/bus/mic_bus.c | 22 ++ drivers/misc/mic/card/mic_device.c | 88 ++ drivers/misc/mic/card

[PATCH char-misc-next v2 15/22] misc: mic: SCIF RMA header file and IOCTL changes

2015-09-29 Thread Ashutosh Dixit
the CPU. The user space IOCTL interface has been updated to enable SCIF registration, RDMA/CPU copies and fence APIs for RDMA synchronization. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- include/linux/scif.h| 234

[PATCH char-misc-next v2 17/22] misc: mic: SCIF memory registration and unregistration

2015-09-29 Thread Ashutosh Dixit
. The unregistration API tears down the registration at both self and remote nodes. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_rma.c | 1770 ++ 1 file changed, 1770 insertions(+) create mode

[PATCH char-misc-next v2 14/22] misc: mic: Update MIC host daemon with COSM changes

2015-09-29 Thread Ashutosh Dixit
-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- Documentation/ABI/testing/sysfs-class-mic.txt | 29 ++- Documentation/mic/mic_overview.txt| 31 ++- Documentation/mic/mpssd/mpss | 4 +- Documentation/mic/mpssd/mpssd.c | 362

[PATCH char-misc-next v2 12/22] misc: mic: Remove COSM functionality from the MIC host driver

2015-09-29 Thread Ashutosh Dixit
via the cosm_hw_ops. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/Makefile | 2 - drivers/misc/mic/host/Makefile | 1 - drivers/misc/mic/host/mic_boot.c| 317

[PATCH char-misc-next v2 16/22] misc: mic: SCIF RMA header file

2015-09-29 Thread Ashutosh Dixit
. The scif_window is a data structure which contains all the fields required to describe a SCIF registered window on self and remote nodes. It contains an offset which is used as a key to perform SCIF DMAs and CPU copies between self and remote registered windows. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh

[PATCH char-misc-next v2 11/22] misc: mic: COSM client driver

2015-09-29 Thread Ashutosh Dixit
card time to that of the host. Because SCIF messaging cannot be used in a panic context, the COSM client driver also periodically sends a heartbeat SCIF message to the host thereby enabling the host to detect card crashes. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --

[PATCH char-misc-next v2 10/22] misc: mic: COSM SCIF server

2015-09-29 Thread Ashutosh Dixit
ard crashes (d) send host time to the card to enable the card to sync its time to the host. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/cosm/cosm_scif_server.c | 405 +++ 1 file changed, 405 insertions(+) create

[PATCH char-misc-next v2 04/22] iommu: Allow iova to be used without requiring IOMMU_SUPPORT

2015-09-29 Thread Ashutosh Dixit
From: Sudeep Dutt iova is a library which can be built without IOMMU_SUPPORT Signed-off-by: Sudeep Dutt --- drivers/iommu/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index d9da766..71d1c46 100644 ---

[PATCH char-misc-next v2 06/22] misc: mic: SCIF poll

2015-09-29 Thread Ashutosh Dixit
-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/scif/scif_api.c | 158 +- drivers/misc/mic/scif/scif_epd.h | 22 ++ drivers/misc/mic/scif/scif_fd.c | 9 +++ drivers/misc/mic/scif/scif_main.h | 2 + include

[PATCH char-misc-next v2 09/22] misc: mic: Coprocessor State Management (COSM) driver

2015-09-29 Thread Ashutosh Dixit
in the MIC host driver has now largely been moved to user space and only a small required OSPM functionality is now present in the driver. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/cos

[PATCH char-misc-next v2 08/22] misc: mic: MIC COSM bus

2015-09-29 Thread Ashutosh Dixit
driver being probed with the COSM devices. COSM bus ops, e.g. start, stop, ready, reset, therefore abstract out common functionality from its specific implementation for individual generations of MIC products. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit

[PATCH char-misc-next v2 07/22] misc: mic: Add support for kernel mode SCIF clients

2015-09-29 Thread Ashutosh Dixit
SCIF clients are also included in this patch. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/scif/scif_api.c | 43 + drivers/misc/mic/scif/scif_main.c | 88 -- drivers/misc/mic/scif/scif_main.h | 5

[PATCH char-misc-next v2 05/22] dma: Add support to program MIC x100 status descriptiors

2015-09-29 Thread Ashutosh Dixit
a destination address with an 8 byte immediate data value. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh Dixit Signed-off-by: Lawrynowicz, Jacek Signed-off-by: Sudeep Dutt Signed-off-by: Siva Yerramreddy --- drivers/dma/mic_x100_dma.c | 39 ++- include/linux

[PATCH char-misc-next v2 03/22] iommu: Make the iova library a module

2015-09-29 Thread Ashutosh Dixit
From: Sakari Ailus The iova library has use outside the intel-iommu driver, thus make it a module. Signed-off-by: Sakari Ailus Signed-off-by: David Woodhouse --- drivers/iommu/Kconfig | 2 +- drivers/iommu/iova.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH char-misc-next v2 02/22] iommu: iova: Export symbols

2015-09-29 Thread Ashutosh Dixit
From: Sakari Ailus Use EXPORT_SYMBOL_GPL() to export the iova library symbols. The symbols include: init_iova_domain(); iova_cache_get(); iova_cache_put(); iova_cache_init(); alloc_iova(); find_iova(); __free_iova(); free_iova();

[PATCH char-misc-next v2 01/22] iommu: iova: Move iova cache management to the iova library

2015-09-29 Thread Ashutosh Dixit
From: Sakari Ailus This is necessary to separate intel-iommu from the iova library. Signed-off-by: Sakari Ailus Signed-off-by: David Woodhouse --- drivers/iommu/intel-iommu.c | 6 ++-- drivers/iommu/iova.c| 83 ++--- include/linux/iova.h

[PATCH char-misc-next v2 00/22] misc: mic: Enable COSM and remaining SCIF functionality

2015-09-29 Thread Ashutosh Dixit
ist operations 19) SCIF remote memory map/unmap interface 20) SCIF DMA and CPU copy interface 21) SCIF fence 22) SCIF RMA nodeqp and minor miscellaneous changes These patches have also been scanned by Fengguang Wu's 0-day infrastructure and no issues have been reported. Ashutosh Dixit (9): m

[PATCH char-misc-next v2 05/22] dma: Add support to program MIC x100 status descriptiors

2015-09-29 Thread Ashutosh Dixit
which enables updating a destination address with an 8 byte immediate data value. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Signed-off-by: Lawrynowicz, Jacek <jacek.lawrynow...@intel.com> Signed-off-by: Sudeep Dutt <sudeep

[PATCH char-misc-next v2 07/22] misc: mic: Add support for kernel mode SCIF clients

2015-09-29 Thread Ashutosh Dixit
SCIF clients are also included in this patch. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/scif/scif_api.c | 43 + drivers/misc/mi

[PATCH char-misc-next v2 09/22] misc: mic: Coprocessor State Management (COSM) driver

2015-09-29 Thread Ashutosh Dixit
;dasaratharaman.chandramo...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/cosm/Makefile | 10 + drivers/misc/mic/cosm/cosm_debugfs.c | 155 drivers/misc/mic/cosm/cosm_main.c| 388 + drivers/

[PATCH char-misc-next v2 08/22] misc: mic: MIC COSM bus

2015-09-29 Thread Ashutosh Dixit
;sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/Kconfig| 22 ++- drivers/misc/mic/bus/Makefile | 1 + drivers/misc/mic/bus/cosm_bus.c | 141 drivers/misc/mic/bu

[PATCH char-misc-next v2 06/22] misc: mic: SCIF poll

2015-09-29 Thread Ashutosh Dixit
-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/scif/scif_api.c | 158 +- drivers/misc/mic/scif/scif_epd.h | 22 ++ dri

[PATCH char-misc-next v2 10/22] misc: mic: COSM SCIF server

2015-09-29 Thread Ashutosh Dixit
ard crashes (d) send host time to the card to enable the card to sync its time to the host. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/

[PATCH char-misc-next v2 04/22] iommu: Allow iova to be used without requiring IOMMU_SUPPORT

2015-09-29 Thread Ashutosh Dixit
From: Sudeep Dutt iova is a library which can be built without IOMMU_SUPPORT Signed-off-by: Sudeep Dutt --- drivers/iommu/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/Kconfig

[PATCH char-misc-next v2 22/22] misc: mic: SCIF RMA nodeqp and minor miscellaneous changes

2015-09-29 Thread Ashutosh Dixit
hooks required for SCIF RMAs and updating RMA specific debugfs hooks. Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Reviewed-by: Nikhil Rao <nikhil@intel.com> Signed-off-by: Sudeep Dutt <sudeep.d...@intel.com> --- drivers/misc/mic/Kconfig | 1

[PATCH char-misc-next v2 00/22] misc: mic: Enable COSM and remaining SCIF functionality

2015-09-29 Thread Ashutosh Dixit
ist operations 19) SCIF remote memory map/unmap interface 20) SCIF DMA and CPU copy interface 21) SCIF fence 22) SCIF RMA nodeqp and minor miscellaneous changes These patches have also been scanned by Fengguang Wu's 0-day infrastructure and no issues have been reported. Ashutosh Dixit (9): m

[PATCH char-misc-next v2 01/22] iommu: iova: Move iova cache management to the iova library

2015-09-29 Thread Ashutosh Dixit
From: Sakari Ailus This is necessary to separate intel-iommu from the iova library. Signed-off-by: Sakari Ailus Signed-off-by: David Woodhouse --- drivers/iommu/intel-iommu.c | 6 ++--

[PATCH char-misc-next v2 02/22] iommu: iova: Export symbols

2015-09-29 Thread Ashutosh Dixit
From: Sakari Ailus Use EXPORT_SYMBOL_GPL() to export the iova library symbols. The symbols include: init_iova_domain(); iova_cache_get(); iova_cache_put(); iova_cache_init(); alloc_iova(); find_iova();

[PATCH char-misc-next v2 19/22] misc: mic: SCIF remote memory map/unmap interface

2015-09-29 Thread Ashutosh Dixit
l PCIe latency. These mappings are zapped to avoid RMA accesses from user space, if a Coprocessor is reset. Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Reviewed-by: Nikhil Rao <nikhil@intel.com> Signed-off-by: Sudeep Dutt <sudeep.d...@intel.com> --- drivers/misc/mi

[PATCH char-misc-next v2 03/22] iommu: Make the iova library a module

2015-09-29 Thread Ashutosh Dixit
From: Sakari Ailus The iova library has use outside the intel-iommu driver, thus make it a module. Signed-off-by: Sakari Ailus Signed-off-by: David Woodhouse --- drivers/iommu/Kconfig | 2 +-

[PATCH char-misc-next v2 16/22] misc: mic: SCIF RMA header file

2015-09-29 Thread Ashutosh Dixit
il Rao <nikhil@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Signed-off-by: Sudeep Dutt <sudeep.d...@intel.com> --- drivers/misc/mic/scif/scif_rma.h | 464 +++ 1 file changed, 464 insertions(+) create mode 100644 drivers/

[PATCH char-misc-next v2 12/22] misc: mic: Remove COSM functionality from the MIC host driver

2015-09-29 Thread Ashutosh Dixit
via the cosm_hw_ops. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramo...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- d

[PATCH char-misc-next v2 18/22] misc: mic: SCIF RMA list operations

2015-09-29 Thread Ashutosh Dixit
tering windows. The query operation is used by SCIF APIs which initiate DMAs, CPU copies or fences to ensure that a window remains valid during a transfer. Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Signed-off-by: Nikhil Rao <nikhil@intel.com> Signed-off-by: Sud

[PATCH char-misc-next v2 20/22] misc: mic: SCIF DMA and CPU copy interface

2015-09-29 Thread Ashutosh Dixit
ce all prior DMAs initiated using that window are drained. Users can request synchronous DMA operations as well as tail byte ordering if required. CPU copies are always performed synchronously. Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Reviewed-by: Nikhil Rao <nikhil@intel.

[PATCH char-misc-next v2 11/22] misc: mic: COSM client driver

2015-09-29 Thread Ashutosh Dixit
deep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/cosm_client/Makefile | 7 + drivers/misc/mic/cosm_client/cosm_scif_client.c | 275 2 files changed, 282 insertions(+) create mode 100644 drivers/misc/mic/

[PATCH char-misc-next v2 14/22] misc: mic: Update MIC host daemon with COSM changes

2015-09-29 Thread Ashutosh Dixit
p.d...@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramo...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- Documentation/ABI/testing/sysfs-class-mic.txt | 29 ++- Documentation/mic/mic_overview.txt| 31 ++- Documentat

[PATCH char-misc-next v2 21/22] misc: mic: SCIF fence

2015-09-29 Thread Ashutosh Dixit
programming fences on both the local and the remote node for both the mark/wait or the fence signal APIs. Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Reviewed-by: Nikhil Rao <nikhil@intel.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynow...@intel.com> Signed-of

[PATCH char-misc-next v2 13/22] misc: mic: Remove COSM functionality from the MIC card driver

2015-09-29 Thread Ashutosh Dixit
by COSM rather than maintain its own device index. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Sudeep Dutt <sudeep.d...@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.di...@intel.com> --- drivers/misc/mic/bus/mic_bus.c | 22 ++ drivers/misc/mic

[PATCH char-misc-next v2 15/22] misc: mic: SCIF RMA header file and IOCTL changes

2015-09-29 Thread Ashutosh Dixit
pages and access them via the CPU. The user space IOCTL interface has been updated to enable SCIF registration, RDMA/CPU copies and fence APIs for RDMA synchronization. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Signed-o

[PATCH char-misc-next v2 17/22] misc: mic: SCIF memory registration and unregistration

2015-09-29 Thread Ashutosh Dixit
F DMAs, CPU copies and fences. The unregistration API tears down the registration at both self and remote nodes. Reviewed-by: Nikhil Rao <nikhil@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.di...@intel.com> Signed-off-by: Sudeep Dutt <sudeep.d...@intel.com> --- drivers/

Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library

2015-07-30 Thread Ashutosh Dixit
On Tue, Jul 28 2015 at 01:40:19 PM, Andrew Morton wrote: > On Mon, 27 Jul 2015 16:57:32 -0700 Ashutosh Dixit > wrote: > >> From: Harish Chegondi >> >> This patch converts iova.c into a library, moving it from >> drivers/iommu/ to lib/, and expor

Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library

2015-07-30 Thread Ashutosh Dixit
On Tue, Jul 28 2015 at 01:40:19 PM, Andrew Morton a...@linux-foundation.org wrote: On Mon, 27 Jul 2015 16:57:32 -0700 Ashutosh Dixit ashutosh.di...@intel.com wrote: From: Harish Chegondi harish.chego...@intel.com This patch converts iova.c into a library, moving it from drivers/iommu

[PATCH char-misc-next 06/19] misc: mic: COSM client driver

2015-07-27 Thread Ashutosh Dixit
card time to that of the host. Because SCIF messaging cannot be used in a panic context, the COSM client driver also periodically sends a heartbeat SCIF message to the host thereby enabling the host to detect card crashes. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --

[PATCH char-misc-next 08/19] misc: mic: Remove COSM functionality from the MIC card driver

2015-07-27 Thread Ashutosh Dixit
by COSM rather than maintain its own device index. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/bus/mic_bus.c | 22 ++ drivers/misc/mic/card/mic_device.c | 88 ++ drivers/misc/mic/card

[PATCH char-misc-next 16/19] misc: mic: SCIF remote memory map/unmap interface

2015-07-27 Thread Ashutosh Dixit
. These mappings are zapped to avoid RMA accesses from user space, if a Coprocessor is reset. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_mmap.c | 711 ++ 1 file changed, 711 insertions(+) create mode 100644

[PATCH char-misc-next 19/19] misc: mic: SCIF RMA nodeqp and minor miscellaneous changes

2015-07-27 Thread Ashutosh Dixit
and updating RMA specific debugfs hooks. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/Kconfig | 1 + drivers/misc/mic/scif/Makefile| 5 ++ drivers/misc/mic/scif/scif_api.c | 21 + drivers/misc/mic/scif

[PATCH char-misc-next 17/19] misc: mic: SCIF DMA and CPU copy interface

2015-07-27 Thread Ashutosh Dixit
that window are drained. Users can request synchronous DMA operations as well as tail byte ordering if required. CPU copies are always performed synchronously. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_dma.c | 1979

[PATCH char-misc-next 18/19] misc: mic: SCIF fence

2015-07-27 Thread Ashutosh Dixit
the local and the remote node for both the mark/wait or the fence signal APIs. Reviewed-by: Ashutosh Dixit Reviewed-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_fence.c | 773 + 1 file changed, 773 insertions(+) create mod

[PATCH char-misc-next 15/19] misc: mic: SCIF RMA list operations

2015-07-27 Thread Ashutosh Dixit
operation is used by SCIF APIs which initiate DMAs, CPU copies or fences to ensure that a window remains valid during a transfer. Reviewed-by: Ashutosh Dixit Signed-off-by: Nikhil Rao Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_rma_list.c | 291

[PATCH char-misc-next 14/19] misc: mic: SCIF memory registration and unregistration

2015-07-27 Thread Ashutosh Dixit
. The unregistration API tears down the registration at both self and remote nodes. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/scif/scif_rma.c | 1761 ++ 1 file changed, 1761 insertions(+) create mode

[PATCH char-misc-next 13/19] misc: mic: SCIF RMA header file

2015-07-27 Thread Ashutosh Dixit
. The scif_window is a data structure which contains all the fields required to describe a SCIF registered window on self and remote nodes. It contains an offset which is used as a key to perform SCIF DMAs and CPU copies between self and remote registered windows. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh

[PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-07-27 Thread Ashutosh Dixit
to the DMA engine API. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh Dixit Reviewed-by: Sudeep Dutt Signed-off-by: Siva Yerramreddy --- drivers/dma/mic_x100_dma.c | 44 +++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/drivers/dma/mic_x100_dma.c

[PATCH char-misc-next 12/19] misc: mic: SCIF RMA header file and IOCTL changes

2015-07-27 Thread Ashutosh Dixit
the CPU. The user space IOCTL interface has been updated to enable SCIF registration, RDMA/CPU copies and fence APIs for RDMA synchronization. Reviewed-by: Nikhil Rao Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- include/linux/scif.h| 232

[PATCH char-misc-next 10/19] lib: convert iova.c into a library

2015-07-27 Thread Ashutosh Dixit
From: Harish Chegondi This patch converts iova.c into a library, moving it from drivers/iommu/ to lib/, and exports its virtual address allocation and management functions so that other modules can reuse them. Cc: Joerg Roedel Reviewed-by: Anil S Keshavamurthy Reviewed-by: Sudeep Dutt

[PATCH char-misc-next 09/19] misc: mic: Update MIC host daemon with COSM changes

2015-07-27 Thread Ashutosh Dixit
-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- Documentation/ABI/testing/sysfs-class-mic.txt | 29 ++- Documentation/mic/mic_overview.txt| 31 ++- Documentation/mic/mpssd/mpss | 4 +- Documentation/mic/mpssd/mpssd.c | 362

[PATCH char-misc-next 07/19] misc: mic: Remove COSM functionality from the MIC host driver

2015-07-27 Thread Ashutosh Dixit
via the cosm_hw_ops. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/Makefile | 2 - drivers/misc/mic/host/Makefile | 1 - drivers/misc/mic/host/mic_boot.c| 317

[PATCH char-misc-next 05/19] misc: mic: COSM SCIF server

2015-07-27 Thread Ashutosh Dixit
ard crashes (d) send host time to the card to enable the card to sync its time to the host. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/cosm/cosm_scif_server.c | 405 +++ 1 file changed, 405 insertions(+) create

[PATCH char-misc-next 04/19] misc: mic: Coprocessor State Management (COSM) driver

2015-07-27 Thread Ashutosh Dixit
in the MIC host driver has now largely been moved to user space and only a small required OSPM functionality is now present in the driver. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Dasaratharaman Chandramouli Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/cos

[PATCH char-misc-next 03/19] misc: mic: MIC COSM bus

2015-07-27 Thread Ashutosh Dixit
driver being probed with the COSM devices. COSM bus ops, e.g. start, stop, ready, reset, therefore abstract out common functionality from its specific implementation for individual generations of MIC products. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit

[PATCH char-misc-next 02/19] misc: mic: Add support for kernel mode SCIF clients

2015-07-27 Thread Ashutosh Dixit
SCIF clients are also included in this patch. Reviewed-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/scif/scif_api.c | 44 + drivers/misc/mic/scif/scif_main.c | 88 -- drivers/misc/mic/scif/scif_main.h | 5

[PATCH char-misc-next 01/19] misc: mic: SCIF poll

2015-07-27 Thread Ashutosh Dixit
-by: Nikhil Rao Reviewed-by: Sudeep Dutt Signed-off-by: Ashutosh Dixit --- drivers/misc/mic/scif/scif_api.c | 158 +- drivers/misc/mic/scif/scif_epd.h | 22 ++ drivers/misc/mic/scif/scif_fd.c | 9 +++ drivers/misc/mic/scif/scif_main.h | 2 + include

[PATCH char-misc-next 00/19] misc: mic: Enable COSM and remaining SCIF functionality

2015-07-27 Thread Ashutosh Dixit
patch (patch 10) is being sent to char-misc because of the dependency between that patch and SCIF patches 12 through 19. Ashutosh Dixit (9): misc: mic: SCIF poll misc: mic: Add support for kernel mode SCIF clients misc: mic: MIC COSM bus misc: mic: Coprocessor State Management (COSM) driver

[PATCH char-misc-next 07/19] misc: mic: Remove COSM functionality from the MIC host driver

2015-07-27 Thread Ashutosh Dixit
via the cosm_hw_ops. Reviewed-by: Nikhil Rao nikhil@intel.com Reviewed-by: Sudeep Dutt sudeep.d...@intel.com Signed-off-by: Dasaratharaman Chandramouli dasaratharaman.chandramo...@intel.com Signed-off-by: Ashutosh Dixit ashutosh.di...@intel.com --- drivers/misc/mic/Makefile | 2

[PATCH char-misc-next 17/19] misc: mic: SCIF DMA and CPU copy interface

2015-07-27 Thread Ashutosh Dixit
DMAs initiated using that window are drained. Users can request synchronous DMA operations as well as tail byte ordering if required. CPU copies are always performed synchronously. Reviewed-by: Ashutosh Dixit ashutosh.di...@intel.com Reviewed-by: Nikhil Rao nikhil@intel.com Signed-off

[PATCH char-misc-next 18/19] misc: mic: SCIF fence

2015-07-27 Thread Ashutosh Dixit
and the remote node for both the mark/wait or the fence signal APIs. Reviewed-by: Ashutosh Dixit ashutosh.di...@intel.com Reviewed-by: Nikhil Rao nikhil@intel.com Signed-off-by: Sudeep Dutt sudeep.d...@intel.com --- drivers/misc/mic/scif/scif_fence.c | 773 + 1 file

[PATCH char-misc-next 02/19] misc: mic: Add support for kernel mode SCIF clients

2015-07-27 Thread Ashutosh Dixit
SCIF clients are also included in this patch. Reviewed-by: Nikhil Rao nikhil@intel.com Reviewed-by: Sudeep Dutt sudeep.d...@intel.com Signed-off-by: Ashutosh Dixit ashutosh.di...@intel.com --- drivers/misc/mic/scif/scif_api.c | 44 + drivers/misc/mic/scif/scif_main.c | 88

[PATCH char-misc-next 01/19] misc: mic: SCIF poll

2015-07-27 Thread Ashutosh Dixit
-by: Nikhil Rao nikhil@intel.com Reviewed-by: Sudeep Dutt sudeep.d...@intel.com Signed-off-by: Ashutosh Dixit ashutosh.di...@intel.com --- drivers/misc/mic/scif/scif_api.c | 158 +- drivers/misc/mic/scif/scif_epd.h | 22 ++ drivers/misc/mic/scif/scif_fd.c

  1   2   >