[PATCH 4/4] dmaengine: Add debugfs entries for PTDMA information

2019-09-24 Thread Mehta, Sanju
From: Sanjay R Mehta Expose data about the configuration and operation of the PTDMA through debugfs entries: device name, capabilities, configuration, statistics. Signed-off-by: Sanjay R Mehta Reviewed-by: Shyam Sundar S K Reviewed-by: Rajesh Kumar --- drivers/dma/ptdma/Makefile|

[PATCH 1/4] dma: Add PTDMA Engine driver support

2019-09-24 Thread Mehta, Sanju
From: Sanjay R Mehta This is the driver for the AMD passthrough DMA Engine Signed-off-by: Sanjay R Mehta Reviewed-by: Shyam Sundar S K Reviewed-by: Rajesh Kumar --- MAINTAINERS | 6 + drivers/dma/Kconfig | 2 + drivers/dma/Makefile | 1 +

[PATCH 2/4] dma: Support for multiple PTDMA

2019-09-24 Thread Mehta, Sanju
From: Sanjay R Mehta Enable management of multiple PTDMA engine in a system. Each device will get a unique identifier, as well as uniquely named resources. Treat each PTDMA as an orthogonal unit and register resources individually. Signed-off-by: Sanjay R Mehta Reviewed-by: Shyam Sundar S K

[PATCH 3/4] dmaengine: Register as a DMA resource

2019-09-24 Thread Mehta, Sanju
From: Sanjay R Mehta This Registers the ptdma to Linux dmaengine framework as general purpose DMA channels. Signed-off-by: Sanjay R Mehta Reviewed-by: Shyam Sundar S K Reviewed-by: Rajesh Kumar --- drivers/dma/ptdma/Kconfig | 1 + drivers/dma/ptdma/Makefile | 3 +-

[PATCH 0/4] *** AMD PTDMA driver ***

2019-09-24 Thread Mehta, Sanju
From: Sanjay R Mehta *** This patch series adds support for AMD PTDMA engine *** Sanjay R Mehta (4): dma: Add PTDMA Engine driver support dma: Support for multiple PTDMA dmaengine: Register as a DMA resource dmaengine: Add debugfs entries for PTDMA information MAINTAINERS

[PATCH 2/2] ntb_hw_amd: Add memory window support for new AMD hardware

2019-09-15 Thread Mehta, Sanju
From: Sanjay R Mehta The AMD new hardware uses BAR23 and BAR45 as memory windows as compared to previos where BAR1, BAR23 and BAR45 is used for memory windows. This patch add support for both AMD hardwares. Signed-off-by: Sanjay R Mehta --- drivers/ntb/hw/amd/ntb_hw_amd.c | 23

[PATCH 1/2] ntb_hw_amd: Add a new NTB PCI device ID

2019-09-15 Thread Mehta, Sanju
From: Sanjay R Mehta Signed-off-by: Sanjay R Mehta --- drivers/ntb/hw/amd/ntb_hw_amd.c | 3 ++- drivers/ntb/hw/amd/ntb_hw_amd.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index 2859cc9..e9286cf 100644

RE: [PATCH] point to right memory window index

2019-04-10 Thread Mehta, Sanju
Hi All, Any comments on below patch? Thanks & Regards, Sanjay Mehta -Original Message- From: Mehta, Sanju Sent: Friday, March 29, 2019 5:03 PM To: S-k, Shyam-sundar ; jdma...@kudzu.us; dave.ji...@intel.com; alle...@gmail.com Cc: linux-...@googlegroups.com; linux-ke

[PATCH] point to right memory window index

2019-03-29 Thread Mehta, Sanju
From: Sanjay R Mehta second parameter of ntb_peer_mw_get_addr is pointing to wrong memory window index by passing "peer gidx" instead of "local gidx". For ex, "local gidx" value is '0' and "peer gidx" value is '1', then on peer side ntb_mw_set_trans() api is used as below with gidx pointing to

[PATCH 3/4] NTB: ntb_perf: Clear stale values in doorbell and command SPAD register

2019-02-15 Thread Mehta, Sanju
From: Sanjay R Mehta when ntb_perf is unloaded, the command scratchpad register still retains the last initialized value of PERF_CMD_INVAL. When ntb_perf is re-loaded and reads peer command scratchpad register and it mis interprets the peer state as initialized. To avoid this, clearing the

[PATCH 4/4] NTB: ntb_hw_amd: set peer limit register

2019-02-15 Thread Mehta, Sanju
From: Sanjay R Mehta As per amd ntb spec it says that peer limit register must be programmed Signed-off-by: Sanjay R Mehta --- drivers/ntb/hw/amd/ntb_hw_amd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c

[PATCH 2/4] NTB: ntb_perf: Disable NTB link after clearing peer XLAT registers

2019-02-15 Thread Mehta, Sanju
From: Sanjay R Mehta If ntb link disabled before clearing peer's XLAT register, the clearing won't have any effect since the link is already down. So modified the sequence so that the link is down only towards the end of the function after clearing the XLAT register Signed-off-by: Sanjay R

[PATCH 1/4] NTB: ntb_perf: Increased the number of message retries to 1000

2019-02-15 Thread Mehta, Sanju
From: Sanjay R Mehta while waiting for the peer ntb_perf to initialize scratchpad registers, local side ntb_perf might have already exhausted the maximum number of retries which is currently set to 500. To avoid this and to give little more time to the peer ntb_perf for scratchpad

[PATCH 0/4] bug fixes in ntb_hw_amd and ntb_perf

2019-02-15 Thread Mehta, Sanju
From: Sanjay R Mehta Add bug fix for ntb_perf and ntb_hw_amd Sanjay R Mehta (4): NTB: ntb_perf: Increased the number of message retries to 1000 NTB: ntb_perf: Disable NTB link after clearing peer XLAT registers NTB: ntb_perf: Clear stale values in doorbell and command SPAD register