[PATCH v2] Documentation: PCI: pci-error-recovery: swap sequence between MMIO Enabled and Link Reset

2021-07-01 Thread Wesley Sheng
Reset_link() callback function (named with reset_subordinates() in pcie_do_recovery() function) was called before mmio_enabled(), so exchange the sequence between step 2 MMIO Enabled and step 3 Link Reset accordingly. Signed-off-by: Wesley Sheng --- Documentation/PCI/pci-error-recovery.rst | 25

Re: [PATCH] Documentation: PCI: pci-error-recovery: rearrange the general sequence

2021-07-01 Thread Wesley Sheng
On Thu, Jul 01, 2021 at 05:22:31PM -0500, Bjorn Helgaas wrote: > Please make the subject a little more specific. "rearrange the > general sequence" doesn't say anything about what was affected. > > On Fri, Jun 18, 2021 at 02:04:46PM +0800, Wesley Sheng wrote: > > Re

Re: [PATCH] Documentation: PCI: pci-error-recovery: rearrange the general sequence

2021-06-28 Thread Wesley Sheng
On Fri, Jun 18, 2021 at 05:21:32PM +1000, Oliver O'Halloran wrote: > On Fri, Jun 18, 2021 at 4:05 PM Wesley Sheng wrote: > > > > Reset_link() callback function was called before mmio_enabled() in > > pcie_do_recovery() function actually, so rearrange the general >

[PATCH] nvme: Remove the redundant aqa value setting

2021-06-21 Thread Wesley Sheng
From: Wesley Sheng AQA (Admin Queue Attributes) register is a dword size with lower word of ASQS, and higher word of ACQS. The code set the variable aqa twice, but it is redundant. Signed-off-by: Wesley Sheng --- drivers/nvme/nvme.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers

[PATCH] nvme: Correct the prps per page calculation method

2021-06-21 Thread Wesley Sheng
From: Wesley Sheng Each prp is 8 bytes, calculate the number of prps per page should just divide page size by 8 there is no need to minus 1 Signed-off-by: Wesley Sheng --- drivers/nvme/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/nvme.c b/drivers

[PATCH] Documentation: PCI: pci-error-recovery: rearrange the general sequence

2021-06-18 Thread Wesley Sheng
Reset_link() callback function was called before mmio_enabled() in pcie_do_recovery() function actually, so rearrange the general sequence betwen step 2 and step 3 accordingly. Signed-off-by: Wesley Sheng --- Documentation/PCI/pci-error-recovery.rst | 23 --- 1 file changed

[PATCH] nvme: Remove the redundant aqa value setting

2021-06-15 Thread Wesley Sheng
From: wesleywesley AQA (Admin Queue Attributes) register is a dword size with lower word of ASQS, and higher word of ACQS. The code set the variable aqa twice, but it is redundant. Signed-off-by: wesleywesley --- drivers/nvme/nvme.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] nvme: Correct the prps per page calculation method

2021-06-15 Thread Wesley Sheng
From: wesleywesley Each prp is 8 bytes, calculate the number of prps per page should just divide page size by 8 there is no need to minus 1 Signed-off-by: wesleywesley --- drivers/nvme/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/nvme.c

[PATCH] Documentation PCI: Fix typo in pci-error-recovery.rst

2021-05-31 Thread Wesley Sheng
Replace "It" with "If", since it is a conditional statement. Signed-off-by: Wesley Sheng --- Documentation/PCI/pci-error-recovery.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/PCI/pci-error-recovery.rst b/Documentation/PCI/pci-erro

[PATCH] PCI:tegra:Correct typo for PCIe endpoint mode in Tegra194

2020-12-30 Thread Wesley Sheng
In config PCIE_TEGRA194_EP the mode incorrectly referred to host mode. Signed-off-by: Wesley Sheng --- drivers/pci/controller/dwc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig index

[PATCH] iommu/amd: Add prefetch iommu pages command build function

2020-09-05 Thread Wesley Sheng
Add function to build prefetch iommu pages command Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 ++ drivers/iommu/amd/iommu.c | 19 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd

[PATCH] iommu/amd: Add prefetch iommu pages command build function

2020-09-05 Thread Wesley Sheng
Add function to build prefetch iommu pages command Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 ++ drivers/iommu/amd/iommu.c | 19 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd

[PATCH] iommu/amd: Add prefetch iommu pages command build function

2020-09-05 Thread Wesley Sheng
Add function to build prefetch iommu pages command Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 ++ drivers/iommu/amd/iommu.c | 19 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd

[PATCH 2/2] iommu/amd: Revise ga_tag member in struct of fields_remap

2020-09-05 Thread Wesley Sheng
Per <> ga_tag member is only available when IRTE[GuestMode]=1, this field should be reserved when IRTE[GuestMode]=0. So change the ga_tag to rsvd_1 in struct of fields_remap. Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 1/2] iommu/amd: Unify reserved member naming convention in struct

2020-09-05 Thread Wesley Sheng
Unify reserved member naming convention to rsvd_x in struct Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h index 30a5d412255a

[PATCH] iommu/amd: Add prefetch iommu pages command build function

2020-09-05 Thread Wesley Sheng
Add function to build prefetch iommu pages command Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 ++ drivers/iommu/amd/iommu.c | 19 +++ 2 files changed, 21 insertions(+) diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd

[PATCH 1/2] iommu/amd: Unify reserved member naming convention in struct

2020-09-04 Thread Wesley Sheng
Unify reserved member naming convention to rsvd_x in struct Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h index 30a5d412255a

[PATCH 2/2] iommu/amd: Revise ga_tag member in struct of fields_remap

2020-09-04 Thread Wesley Sheng
Per <> ga_tag member is only available when IRTE[GuestMode]=1, this field should be reserved when IRTE[GuestMode]=0. So change the ga_tag to rsvd_1 in struct of fields_remap. Signed-off-by: Wesley Sheng --- drivers/iommu/amd/amd_iommu_types.h | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH] NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos

2020-05-26 Thread Wesley Sheng
The comment for ntb_peer_spad_addr and ntb_peer_spad_read incorrectly referred to peer doorbell register and local scratchpad register. Signed-off-by: Wesley Sheng --- include/linux/ntb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ntb.h b/include/linux

[PATCH] NTB: correct ntb_dev_ops and ntb_dev comment typos

2019-04-29 Thread Wesley Sheng
The comment for ntb_dev_ops and ntb_dev incorrectly referred to ntb_ctx_ops and ntb_device. Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- include/linux/ntb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ntb.h b/include/linux/ntb.h index

[PATCH 1/3] ntb_hw_switchtec: Remove redundant steps of switchtec_ntb_reinit_peer() function

2019-04-22 Thread Wesley Sheng
. Remove the redundant steps from switchtec_ntb_reinit_peer() function. Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/ntb/hw/mscc

[PATCH 2/3] ntb_hw_switchtec: Skip unnecessary re-setup of shared memory window for crosslink case

2019-04-22 Thread Wesley Sheng
In case of NTB crosslink topology, the setting of shared memory window in the virtual partition doesn't reset on peer's reboot. So skip the unnecessary re-setup of shared memory window for that case. Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc

[PATCH 3/3] ntb_hw_switchtec: Fix setup MW with failure bug

2019-04-22 Thread Wesley Sheng
in a work queue and signal the client once it's done. Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 66 -- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/drivers/ntb

[PATCH 0/3] Redundant steps removal and bug fix of ntb_hw_switchtec

2019-04-22 Thread Wesley Sheng
initialization in a work queue and signal the client once it's done. Regard, Wesley -- Changed since v1: - It's a resend of v1 -- Joey Zhang (2): ntb_hw_switchtec: Remove redundant steps of switchtec_ntb_reinit_peer() function ntb_hw_switchtec: Fix setup MW with failure bug Wesley Sheng (1

[PATCH v2 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-15 Thread Wesley Sheng
The hardware supports up to 255 PFFs and the driver only supports 48, so this patch updates the driver to support them all. To be backward compatible, a new ioctl and corresponding data structure are created, while keep the deprecated one. Signed-off-by: Wesley Sheng --- drivers/pci/switch

[PATCH v2 0/2] Fix two bugs of switchtec module

2019-04-15 Thread Wesley Sheng
: - rewrapped the commit message of [PATCH 1/2] into one paragraph -- Wesley Sheng (2): switchtec: Fix false maximum supported PCIe function number issue switchtec: Fix unintended mask of MRPC event drivers/pci/switch/switchtec.c | 42 +--- include/linux/switchtec.h

[PATCH v2 2/2] switchtec: Fix unintended mask of MRPC event

2019-04-15 Thread Wesley Sheng
we already do for LINK event. Fixes: 52eabba5bcdb ("switchtec: Add IOCTLs to the Switchtec driver") Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/s

[PATCH 1/3] ntb_hw_switchtec: Remove redundant steps of switchtec_ntb_reinit_peer() function

2019-04-08 Thread Wesley Sheng
. Remove the redundant steps from switchtec_ntb_reinit_peer() function. Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers

[PATCH 2/3] ntb_hw_switchtec: Skip unnecessary re-setup of shared memory window for crosslink case

2019-04-08 Thread Wesley Sheng
In case of NTB crosslink topology, the setting of shared memory window in the virtual partition doesn't reset on peer's reboot. So skip the unnecessary re-setup of shared memory window for that case. Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 3 +++ 1 file changed

[PATCH 3/3] ntb_hw_switchtec: Fix setup MW with failure bug

2019-04-08 Thread Wesley Sheng
in a work queue and signal the client once it's done. Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 66 -- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b

[PATCH 0/3] Redundant steps removal and bug fix of ntb_hw_switchtec

2019-04-08 Thread Wesley Sheng
initialization in a work queue and signal the client once it's done. Regard, Wesley Joey Zhang (2): ntb_hw_switchtec: Remove redundant steps of switchtec_ntb_reinit_peer() function ntb_hw_switchtec: Fix setup MW with failure bug Wesley Sheng (1): ntb_hw_switchtec: Skip unnecessary re-setup

[PATCH 0/2] Fix two bugs of switchtec module

2019-04-08 Thread Wesley Sheng
and corresponding data structure are created, while keep the deprecated one. The second is MRPC event unintentionally masked at corner case. Fix this bug by skipping the mask operation for MRPC event in event ISR like what we already do for LINK event. Regard, Wesley Wesley Sheng (2): switchtec

[PATCH 2/2] switchtec: Fix unintended mask of MRPC event

2019-04-08 Thread Wesley Sheng
we already do for LINK event. Fixes: 52eabba5bcdb ("switchtec: Add IOCTLs to the Switchtec driver") Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/s

[PATCH 1/2] switchtec: Fix false maximum supported PCIe function number issue

2019-04-08 Thread Wesley Sheng
The hardware supports up to 255 PFFs and the driver only supports 48, so this patch updates the driver to support them all. To be backward compatible, a new ioctl and corresponding data structure are created, while keep the deprecated one. Signed-off-by: Wesley Sheng --- drivers/pci/switch

[PATCH 1/5] switchtec: Remove immediate status check after submit a MRPC command

2018-12-09 Thread Wesley Sheng
and a proper fix of this should be done in firmware. Fixes: 080b47def5e5 ("MicroSemi Switchtec management interface driver") Signed-off-by: Kelvin Cao Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/pci/switch/switchtec.c | 4 1 file changed, 4 deletions(-)

[PATCH 2/5] switchtec: Set DMA coherent mask in Switchtec driver

2018-12-09 Thread Wesley Sheng
From: Boris Glimcher Switchtec hardware supports 64-bit DMA, set the correct DMA mask. This allows the CMA to allocate larger buffers for memory windows. Signed-off-by: Boris Glimcher Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/pci/switch/switchtec.c | 4 1

[PATCH 4/5] switchtec: Improve MRPC efficiency by leveraging write combining

2018-12-09 Thread Wesley Sheng
seeing reads to this register are processed by low latency hardware. Signed-off-by: Kelvin Cao Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/pci/switch/switchtec.c | 41 +++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git

[PATCH 0/5] Switchtec MRPC DMA mode support

2018-12-09 Thread Wesley Sheng
combining Wesley Sheng (1): switchtec: MRPC DMA mode implementation drivers/pci/switch/switchtec.c | 154 - include/linux/switchtec.h | 16 + 2 files changed, 153 insertions(+), 17 deletions(-) -- 2.7.4

[PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-12-09 Thread Wesley Sheng
by two readl/writel on systems that do not support it. Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/pci/switch/switchtec.c | 108 + include/linux/switchtec.h | 16 ++ 2 files changed, 114 insertions(+), 10 deletions(-) diff

[PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-12-09 Thread Wesley Sheng
: 52eabba5bcdb ("switchtec: Add IOCTLs to the Switchtec driver") Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/pci/switch/switchtec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switcht

[PATCH v2 3/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-05 Thread Wesley Sheng
nge to between 4K and 2^63. Reported-by: Boris Glimcher Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 9 +++-- include/linux/switchtec.h | 6 +- 2 files changed, 12 insertions(+), 3 deletions(-) d

[PATCH v2 2/3] ntb_hw_switchtec: NT req id mapping table register entry number should be 512

2018-12-05 Thread Wesley Sheng
The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Fixes: c082b04c9d40 ("NTB: switchtec: Add NTB hardware register definitions") Signed-off-by: We

[PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-05 Thread Wesley Sheng
first and add a "Fixes" line to the commit messages -- Paul Selles (2): ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers ntb_hw_switchtec: Added support of >=4G memory windows Wesley Sheng (1): ntb_hw_switchtec: NT req id mapping table register entry numbe

[PATCH v2 3/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-05 Thread Wesley Sheng
nge to between 4K and 2^63. Reported-by: Boris Glimcher Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 9 +++-- include/linux/switchtec.h | 6 +- 2 files changed, 12 insertions(+), 3 deletions(-) d

[PATCH v2 2/3] ntb_hw_switchtec: NT req id mapping table register entry number should be 512

2018-12-05 Thread Wesley Sheng
The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Fixes: c082b04c9d40 ("NTB: switchtec: Add NTB hardware register definitions") Signed-off-by: We

[PATCH v2 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-12-05 Thread Wesley Sheng
first and add a "Fixes" line to the commit messages -- Paul Selles (2): ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers ntb_hw_switchtec: Added support of >=4G memory windows Wesley Sheng (1): ntb_hw_switchtec: NT req id mapping table register entry numbe

[PATCH v2 1/3] ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers

2018-12-05 Thread Wesley Sheng
Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index 5ee5f40..9916

[PATCH v2 1/3] ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers

2018-12-05 Thread Wesley Sheng
Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng Reviewed-by: Logan Gunthorpe --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index 5ee5f40..9916

[PATCH 2/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-21 Thread Wesley Sheng
nge to between 4K and 2^63. Reported-by: Boris Glimcher Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 9 +++-- include/linux/switchtec.h | 6 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/ntb/hw/m

[PATCH 1/3] ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers

2018-11-21 Thread Wesley Sheng
From: Paul Selles Switchtec NTB crosslink BARs are 64bit addressed but they are printed as 32bit addressed BARs. Fix debug log to increment the BAR numbers by 2 to reflect the 64bit address alignment. Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc

[PATCH 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-21 Thread Wesley Sheng
thorpe at https://github.com/sbates130272/linux-p2pmem on branch of ntb_multiport_fixes Regards, Wesley Paul Selles (2): ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers ntb_hw_switchtec: Added support of >=4G memory windows Wesley Sheng (1): ntb_hw_switchtec:

[PATCH 3/3] ntb_hw_switchtec: NT req id mapping table register entry number should be 512

2018-11-21 Thread Wesley Sheng
The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Signed-off-by: Wesley Sheng --- include/linux/switchtec.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 2/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-21 Thread Wesley Sheng
nge to between 4K and 2^63. Reported-by: Boris Glimcher Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 9 +++-- include/linux/switchtec.h | 6 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/ntb/hw/m

[PATCH 1/3] ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers

2018-11-21 Thread Wesley Sheng
From: Paul Selles Switchtec NTB crosslink BARs are 64bit addressed but they are printed as 32bit addressed BARs. Fix debug log to increment the BAR numbers by 2 to reflect the 64bit address alignment. Signed-off-by: Paul Selles Signed-off-by: Wesley Sheng --- drivers/ntb/hw/mscc

[PATCH 0/3] ntb_hw_switchtec: Added support of >=4G memory windows

2018-11-21 Thread Wesley Sheng
thorpe at https://github.com/sbates130272/linux-p2pmem on branch of ntb_multiport_fixes Regards, Wesley Paul Selles (2): ntb_hw_switchtec: debug print 64bit aligned crosslink BAR Numbers ntb_hw_switchtec: Added support of >=4G memory windows Wesley Sheng (1): ntb_hw_switchtec:

[PATCH 3/3] ntb_hw_switchtec: NT req id mapping table register entry number should be 512

2018-11-21 Thread Wesley Sheng
The number of available NT req id mapping table entries per NTB control register is 512. The driver mistakenly limits the number to 256. Fix the array size of NT req id mapping table. Signed-off-by: Wesley Sheng --- include/linux/switchtec.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 4/5] switchtec: Improve MRPC efficiency by leveraging write combining

2018-11-14 Thread Wesley Sheng
seeing reads to this register are processed by low latency hardware. Signed-off-by: Kelvin Cao Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 41 +++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/drivers/pci/switch/switchtec.c

[PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-11-14 Thread Wesley Sheng
by two readl/writel on systems that do not support it. Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 108 + include/linux/switchtec.h | 16 ++ 2 files changed, 114 insertions(+), 10 deletions(-) diff --git a/drivers/pci/switch

[PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-11-14 Thread Wesley Sheng
: 52eabba5bcdb ("switchtec: Add IOCTLs to the Switchtec driver") Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c index 480107e..a908

[PATCH 5/5] switchtec: MRPC DMA mode implementation

2018-11-14 Thread Wesley Sheng
by two readl/writel on systems that do not support it. Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 108 + include/linux/switchtec.h | 16 ++ 2 files changed, 114 insertions(+), 10 deletions(-) diff --git a/drivers/pci/switch

[PATCH 3/5] switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl

2018-11-14 Thread Wesley Sheng
: 52eabba5bcdb ("switchtec: Add IOCTLs to the Switchtec driver") Signed-off-by: Joey Zhang Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c index 480107e..a908

[PATCH 4/5] switchtec: Improve MRPC efficiency by leveraging write combining

2018-11-14 Thread Wesley Sheng
seeing reads to this register are processed by low latency hardware. Signed-off-by: Kelvin Cao Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 41 +++-- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/drivers/pci/switch/switchtec.c

[PATCH 0/5] Switchtec MRPC DMA mode support

2018-11-14 Thread Wesley Sheng
Zhang (1): switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl Kelvin Cao (2): switchtec: Remove immediate status check after submit a MRPC command switchtec: Improve MRPC efficiency by leveraging write combining Wesley Sheng (1): switchtec: MRPC

[PATCH 2/5] switchtec: Set DMA coherent mask in Switchtec driver

2018-11-14 Thread Wesley Sheng
From: Boris Glimcher Switchtec hardware supports 64-bit DMA, set the correct DMA mask. This allows the CMA to allocate larger buffers for memory windows. Signed-off-by: Boris Glimcher Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 4 1 file changed, 4 insertions

[PATCH 0/5] Switchtec MRPC DMA mode support

2018-11-14 Thread Wesley Sheng
Zhang (1): switchtec: A temporary variable should be used for the flags of switchtec_ioctl_event_ctl Kelvin Cao (2): switchtec: Remove immediate status check after submit a MRPC command switchtec: Improve MRPC efficiency by leveraging write combining Wesley Sheng (1): switchtec: MRPC

[PATCH 2/5] switchtec: Set DMA coherent mask in Switchtec driver

2018-11-14 Thread Wesley Sheng
From: Boris Glimcher Switchtec hardware supports 64-bit DMA, set the correct DMA mask. This allows the CMA to allocate larger buffers for memory windows. Signed-off-by: Boris Glimcher Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 4 1 file changed, 4 insertions

[PATCH 1/5] switchtec: Remove immediate status check after submit a MRPC command

2018-11-14 Thread Wesley Sheng
and a proper fix of this should be done in firmware. Fixes: 080b47def5e5 ("MicroSemi Switchtec management interface driver") Signed-off-by: Kelvin Cao Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/pci/switch/swi

[PATCH 1/5] switchtec: Remove immediate status check after submit a MRPC command

2018-11-14 Thread Wesley Sheng
and a proper fix of this should be done in firmware. Fixes: 080b47def5e5 ("MicroSemi Switchtec management interface driver") Signed-off-by: Kelvin Cao Signed-off-by: Wesley Sheng --- drivers/pci/switch/switchtec.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/pci/switch/swi