linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Test throughput on PCIe interface
@ 2016-07-22 12:29 Muni Sekhar
  2016-07-22 16:14 ` Bjorn Helgaas
  0 siblings, 1 reply; 4+ messages in thread
From: Muni Sekhar @ 2016-07-22 12:29 UTC (permalink / raw)
  To: linux-pci

Hi All,


We have xilinx PCIe endpoint with DMA reference block.


The DMA-REF block provides a mechanism to DMA(also supports
Scatter-Gather DMA) transfer data at the maximum rate between host
(CPU) memory and a FIFO in the DMA-REF block.


DMA-REF block provides the loopback. The intention is to use this
block in production and self-test, to check that the PCIe bus is
operating at the expected maximum transfer speed.


Does kernel has any standard utilities to test throughput on PCIe interface?


-- 
Thanks,
Sekhar

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Test throughput on PCIe interface
  2016-07-22 12:29 Test throughput on PCIe interface Muni Sekhar
@ 2016-07-22 16:14 ` Bjorn Helgaas
  2016-07-23 15:42   ` Muni Sekhar
  2016-08-02 13:22   ` Peter Zijlstra
  0 siblings, 2 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2016-07-22 16:14 UTC (permalink / raw)
  To: Muni Sekhar
  Cc: linux-pci, Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, linux-kernel, Stephane Eranian

[+cc perf folks]

On Fri, Jul 22, 2016 at 05:59:51PM +0530, Muni Sekhar wrote:
> Hi All,
> 
> 
> We have xilinx PCIe endpoint with DMA reference block.
> 
> 
> The DMA-REF block provides a mechanism to DMA(also supports
> Scatter-Gather DMA) transfer data at the maximum rate between host
> (CPU) memory and a FIFO in the DMA-REF block.
> 
> 
> DMA-REF block provides the loopback. The intention is to use this
> block in production and self-test, to check that the PCIe bus is
> operating at the expected maximum transfer speed.
> 
> 
> Does kernel has any standard utilities to test throughput on PCIe interface?

I know some PCIe controllers devices do have performance monitors, and
perf might support some of them, but I don't know any details.

Bjorn

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Test throughput on PCIe interface
  2016-07-22 16:14 ` Bjorn Helgaas
@ 2016-07-23 15:42   ` Muni Sekhar
  2016-08-02 13:22   ` Peter Zijlstra
  1 sibling, 0 replies; 4+ messages in thread
From: Muni Sekhar @ 2016-07-23 15:42 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-pci, Ingo Molnar, Alexander Shishkin, linux-kernel,
	Stephane Eranian, Arnaldo Carvalho de Melo, Peter Zijlstra

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

On 22 Jul 2016 21:44, "Bjorn Helgaas" <helgaas@kernel.org> wrote:
>
> [+cc perf folks]
>
> On Fri, Jul 22, 2016 at 05:59:51PM +0530, Muni Sekhar wrote:
> > Hi All,
> >
> >
> > We have xilinx PCIe endpoint with DMA reference block.
> >
> >
> > The DMA-REF block provides a mechanism to DMA(also supports
> > Scatter-Gather DMA) transfer data at the maximum rate between host
> > (CPU) memory and a FIFO in the DMA-REF block.
> >
> >
> > DMA-REF block provides the loopback. The intention is to use this
> > block in production and self-test, to check that the PCIe bus is
> > operating at the expected maximum transfer speed.
> >
> >
> > Does kernel has any standard utilities to test throughput on PCIe
interface?
>
> I know some PCIe controllers devices do have performance monitors, and
> perf might support some of them, but I don't know any details.
>
Hi Bjorn,
Thanks for the reply. I will check the perf code.

Also I am looking for the sample kernel driver code which does DMA and
Scatter-Gather DMA transfers on PCIe endpoint. Reference to any example
kernel code is greatly appreciated.

> Bjorn

[-- Attachment #2: Type: text/html, Size: 1461 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Test throughput on PCIe interface
  2016-07-22 16:14 ` Bjorn Helgaas
  2016-07-23 15:42   ` Muni Sekhar
@ 2016-08-02 13:22   ` Peter Zijlstra
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Zijlstra @ 2016-08-02 13:22 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Muni Sekhar, linux-pci, Ingo Molnar, Arnaldo Carvalho de Melo,
	Alexander Shishkin, linux-kernel, Stephane Eranian

On Fri, Jul 22, 2016 at 11:14:06AM -0500, Bjorn Helgaas wrote:
> [+cc perf folks]
> 
> On Fri, Jul 22, 2016 at 05:59:51PM +0530, Muni Sekhar wrote:
> > Hi All,
> > 
> > 
> > We have xilinx PCIe endpoint with DMA reference block.
> > 
> > 
> > The DMA-REF block provides a mechanism to DMA(also supports
> > Scatter-Gather DMA) transfer data at the maximum rate between host
> > (CPU) memory and a FIFO in the DMA-REF block.
> > 
> > 
> > DMA-REF block provides the loopback. The intention is to use this
> > block in production and self-test, to check that the PCIe bus is
> > operating at the expected maximum transfer speed.
> > 
> > 
> > Does kernel has any standard utilities to test throughput on PCIe interface?
> 
> I know some PCIe controllers devices do have performance monitors, and
> perf might support some of them, but I don't know any details.

At least some of the Intel Uncore drivers have boxes specific to PCIe
(for instance my IVB-EP has an uncore_r2pcie PMU).

I'm not aware of any endpoint drivers, but it should not be too hard to
create uncore drivers for them.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-02 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-22 12:29 Test throughput on PCIe interface Muni Sekhar
2016-07-22 16:14 ` Bjorn Helgaas
2016-07-23 15:42   ` Muni Sekhar
2016-08-02 13:22   ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).