Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1455639 > unrolled thread
| Started by | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| First post | 2016-08-03 08:10 +0200 |
| Last post | 2016-08-04 13:20 +0200 |
| Articles | 11 — 4 participants |
Back to article view | Back to linux.kernel
Support for configurable PCIe endpoint Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-03 08:10 +0200
Re: Support for configurable PCIe endpoint Arnd Bergmann <arnd@arndb.de> - 2016-08-03 10:00 +0200
Re: Support for configurable PCIe endpoint Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-04 10:30 +0200
Re: Support for configurable PCIe endpoint Christoph Hellwig <hch@infradead.org> - 2016-08-03 12:20 +0200
Re: Support for configurable PCIe endpoint Arnd Bergmann <arnd@arndb.de> - 2016-08-03 18:20 +0200
Re: Support for configurable PCIe endpoint Christoph Hellwig <hch@infradead.org> - 2016-08-03 20:00 +0200
Re: Support for configurable PCIe endpoint Arnd Bergmann <arnd@arndb.de> - 2016-08-03 21:50 +0200
Re: Support for configurable PCIe endpoint Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-04 11:20 +0200
Re: Support for configurable PCIe endpoint Joao Pinto <Joao.Pinto@synopsys.com> - 2016-08-03 16:10 +0200
Re: Support for configurable PCIe endpoint Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-04 12:10 +0200
Re: Support for configurable PCIe endpoint Arnd Bergmann <arnd@arndb.de> - 2016-08-04 13:20 +0200
| From | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| Date | 2016-08-03 08:10 +0200 |
| Subject | Support for configurable PCIe endpoint |
| Message-ID | <s1Xxo-6Z4-7@gated-at.bofh.it> |
Hi, The PCIe controller present in TI's DRA7 SoC is capable of operating either in Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core).I'd assume most of the PCIe controllers on other platforms that use Designware core should also be capable to operate in endpoint mode. But linux kernel right now supports only RC mode. PCIe endpoint support discussion came up briefly before [1] but it was felt the practical use case will find firmware more suitable and endpoint support in kernel can be used only for validation or demo. Validation or demo is itself a valid use case in my opinion (consider something similar to gadget zero for USB). There can be other use cases as well. The RC can use the SoC with EP mode support as an accelerator to accomplish specific task. Here RC gives data to the EP. The EP processes the data. The processing can be done either in ARM itself or it can use other hardware accelerators (like DSP, IVA-HD etc..) present in the EP system. If HW accelerator is used, the linux kernel running in ARM can be used to accomplish other tasks. Once EP mode support is added, I think more use cases will be added. From the high level this should look _similar_ to the gadget framework of USB. One difference from USB would be this should allow HW components (like DSP, PRU etc.. and maybe even some peripheral) in the EP system to be used by RC system. So these are the high-level steps that I thought would be needed to add EP support in linux. *) move pcie-designware.c out of drivers/pci/host (maybe create a drivers/pci/designware/ folder?). All users of pcie-designware.c should be moved here. This is in preparation for adding EP mode support to designware. *) Add library functions in pcie-designware.c specific to EP mode like initializing general ecam registers, BAR registers etc.. These functions should be invoked from a *function* driver (function driver should determine the use of a particular EP). *) Add a sample *function* driver that can be used just for validation. This function driver will invoke the previously added functions in PCIe controller to initialize ecam, BAR etc.. This will invoke the PCIe controller functions through *ep-core* layer. That way the same function driver can be made to work with different PCIe controllers. (A PCIe driver corresponding to this function driver should also be implemented in RC side) *) Add *ep-core* layer to bind the function driver to the controller driver and using which the function driver will invoke controller driver callbacks (to initialize ecam, BAR registers etc..) *) Modify platform driver to support EP mode (in my case pci-dra7xx.c). *) dt binding specific to EP mode should be created. Once I complete the implementation and start posting RFC patches, a lot of these will become clear. But I want to check if this sounds okay to you guys before starting the implementation. Let me know if you have some other ideas too. Cheers Kishon [1] -> http://www.spinics.net/lists/linux-pci/msg26026.html
[toc] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-08-03 10:00 +0200 |
| Message-ID | <s1ZfQ-89Q-19@gated-at.bofh.it> |
| In reply to | #1455639 |
On Wednesday, August 3, 2016 11:33:19 AM CEST Kishon Vijay Abraham I wrote: > Hi, > > The PCIe controller present in TI's DRA7 SoC is capable of operating either in > Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core).I'd > assume most of the PCIe controllers on other platforms that use Designware core > should also be capable to operate in endpoint mode. But linux kernel right now > supports only RC mode. > > PCIe endpoint support discussion came up briefly before [1] but it was felt the > practical use case will find firmware more suitable and endpoint support in > kernel can be used only for validation or demo. > > Validation or demo is itself a valid use case in my opinion (consider something > similar to gadget zero for USB). There can be other use cases as well. The RC > can use the SoC with EP mode support as an accelerator to accomplish specific > task. Here RC gives data to the EP. The EP processes the data. The processing > can be done either in ARM itself or it can use other hardware accelerators > (like DSP, IVA-HD etc..) present in the EP system. If HW accelerator is used, > the linux kernel running in ARM can be used to accomplish other tasks. Once EP > mode support is added, I think more use cases will be added. > > From the high level this should look _similar_ to the gadget framework of USB. > One difference from USB would be this should allow HW components (like DSP, PRU > etc.. and maybe even some peripheral) in the EP system to be used by RC system. (Adding Jon Mason) We have the drivers/ntb framework, which in theory should be able to handle this, but in practice is only used for a very small number of bridge implementations, and is also limited in the way it can be configured (compared to USB gadget) > So these are the high-level steps that I thought would be needed to add EP > support in linux. > *) move pcie-designware.c out of drivers/pci/host (maybe create a > drivers/pci/designware/ folder?). All users of pcie-designware.c should be > moved here. > This is in preparation for adding EP mode support to designware. A lot of the other drivers in drivers/pci/host support endpoint mode too, I don't think moving them all elsewhere is helpful or necessary here. > *) Add library functions in pcie-designware.c specific to EP mode like > initializing general ecam registers, BAR registers etc.. These functions should > be invoked from a *function* driver (function driver should determine the use > of a particular EP). > > *) Add a sample *function* driver that can be used just for validation. This > function driver will invoke the previously added functions in PCIe controller > to initialize ecam, BAR etc.. This will invoke the PCIe controller functions > through *ep-core* layer. That way the same function driver can be made to work > with different PCIe controllers. (A PCIe driver corresponding to this function > driver should also be implemented in RC side) > > *) Add *ep-core* layer to bind the function driver to the controller driver and > using which the function driver will invoke controller driver callbacks (to > initialize ecam, BAR registers etc..) I think we should first have a rough idea what the framework should look like, and how it handles having multiple hardware implementation and multiple protocol implementations, before we modify a particular driver. So this step here should come a bit earlier than the others. > *) Modify platform driver to support EP mode (in my case pci-dra7xx.c). > > *) dt binding specific to EP mode should be created. Right. Arnd
[toc] | [prev] | [next] | [standalone]
| From | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| Date | 2016-08-04 10:30 +0200 |
| Message-ID | <s2mcq-6oY-21@gated-at.bofh.it> |
| In reply to | #1455673 |
Hi Arnd, On Wednesday 03 August 2016 01:12 PM, Arnd Bergmann wrote: > On Wednesday, August 3, 2016 11:33:19 AM CEST Kishon Vijay Abraham I wrote: >> Hi, >> >> The PCIe controller present in TI's DRA7 SoC is capable of operating either in >> Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core).I'd >> assume most of the PCIe controllers on other platforms that use Designware core >> should also be capable to operate in endpoint mode. But linux kernel right now >> supports only RC mode. >> >> PCIe endpoint support discussion came up briefly before [1] but it was felt the >> practical use case will find firmware more suitable and endpoint support in >> kernel can be used only for validation or demo. >> >> Validation or demo is itself a valid use case in my opinion (consider something >> similar to gadget zero for USB). There can be other use cases as well. The RC >> can use the SoC with EP mode support as an accelerator to accomplish specific >> task. Here RC gives data to the EP. The EP processes the data. The processing >> can be done either in ARM itself or it can use other hardware accelerators >> (like DSP, IVA-HD etc..) present in the EP system. If HW accelerator is used, >> the linux kernel running in ARM can be used to accomplish other tasks. Once EP >> mode support is added, I think more use cases will be added. >> >> From the high level this should look _similar_ to the gadget framework of USB. >> One difference from USB would be this should allow HW components (like DSP, PRU >> etc.. and maybe even some peripheral) in the EP system to be used by RC system. > > (Adding Jon Mason) > > We have the drivers/ntb framework, which in theory should be able to handle > this, but in practice is only used for a very small number of bridge > implementations, and is also limited in the way it can be configured > (compared to USB gadget) > >> So these are the high-level steps that I thought would be needed to add EP >> support in linux. >> *) move pcie-designware.c out of drivers/pci/host (maybe create a >> drivers/pci/designware/ folder?). All users of pcie-designware.c should be >> moved here. >> This is in preparation for adding EP mode support to designware. > > A lot of the other drivers in drivers/pci/host support endpoint mode too, > I don't think moving them all elsewhere is helpful or necessary here. having drivers that support endpoint in *host* directory might be misleading IMO. > >> *) Add library functions in pcie-designware.c specific to EP mode like >> initializing general ecam registers, BAR registers etc.. These functions should >> be invoked from a *function* driver (function driver should determine the use >> of a particular EP). >> >> *) Add a sample *function* driver that can be used just for validation. This >> function driver will invoke the previously added functions in PCIe controller >> to initialize ecam, BAR etc.. This will invoke the PCIe controller functions >> through *ep-core* layer. That way the same function driver can be made to work >> with different PCIe controllers. (A PCIe driver corresponding to this function >> driver should also be implemented in RC side) >> >> *) Add *ep-core* layer to bind the function driver to the controller driver and >> using which the function driver will invoke controller driver callbacks (to >> initialize ecam, BAR registers etc..) > > I think we should first have a rough idea what the framework should look like, > and how it handles having multiple hardware implementation and multiple > protocol implementations, before we modify a particular driver. > > So this step here should come a bit earlier than the others. Okay. That makes sense to me as well. > >> *) Modify platform driver to support EP mode (in my case pci-dra7xx.c). >> >> *) dt binding specific to EP mode should be created. > > Right. Thanks Kishon
[toc] | [prev] | [next] | [standalone]
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Date | 2016-08-03 12:20 +0200 |
| Message-ID | <s21rk-1e7-23@gated-at.bofh.it> |
| In reply to | #1455639 |
On Wed, Aug 03, 2016 at 11:33:19AM +0530, Kishon Vijay Abraham I wrote: > Hi, > > The PCIe controller present in TI's DRA7 SoC is capable of operating either in > Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core).I'd > assume most of the PCIe controllers on other platforms that use Designware core > should also be capable to operate in endpoint mode. But linux kernel right now > supports only RC mode. > > PCIe endpoint support discussion came up briefly before [1] but it was felt the > practical use case will find firmware more suitable and endpoint support in > kernel can be used only for validation or demo. I disagree. It's highly useful for rapid prototyping of hardware interfaces, and I've been looking into PCIe EP drivers for exactly that reason recently. Going a little offtopic: any good DRA7 eval boards you'd recommend to try for this purpose? We already have a EP driver in the tree: drivers/misc/spear13xx_pcie_gadget.c but as far as I can tell it doesn't really work at the moment. > Validation or demo is itself a valid use case in my opinion (consider something > similar to gadget zero for USB). There can be other use cases as well. The RC > can use the SoC with EP mode support as an accelerator to accomplish specific > task. Here RC gives data to the EP. The EP processes the data. The processing > can be done either in ARM itself or it can use other hardware accelerators > (like DSP, IVA-HD etc..) present in the EP system. If HW accelerator is used, > the linux kernel running in ARM can be used to accomplish other tasks. Once EP > mode support is added, I think more use cases will be added. That sounds useful as well. > >From the high level this should look _similar_ to the gadget framework of USB. > One difference from USB would be this should allow HW components (like DSP, PRU > etc.. and maybe even some peripheral) in the EP system to be used by RC system. Indeed. > So these are the high-level steps that I thought would be needed to add EP > support in linux. > *) move pcie-designware.c out of drivers/pci/host (maybe create a > drivers/pci/designware/ folder?). All users of pcie-designware.c should be > moved here. > This is in preparation for adding EP mode support to designware. I'd use a new drivers/pci/controller. Or maybe just skip the rename for now and see how this evolves. The rest of the plan sounds fine to me.
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-08-03 18:20 +0200 |
| Message-ID | <s273H-4KR-7@gated-at.bofh.it> |
| In reply to | #1455726 |
On Wednesday, August 3, 2016 2:47:47 AM CEST Christoph Hellwig wrote: > On Wed, Aug 03, 2016 at 11:33:19AM +0530, Kishon Vijay Abraham I wrote: > > Hi, > > > > The PCIe controller present in TI's DRA7 SoC is capable of operating either in > > Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core).I'd > > assume most of the PCIe controllers on other platforms that use Designware core > > should also be capable to operate in endpoint mode. But linux kernel right now > > supports only RC mode. > > > > PCIe endpoint support discussion came up briefly before [1] but it was felt the > > practical use case will find firmware more suitable and endpoint support in > > kernel can be used only for validation or demo. > > I disagree. It's highly useful for rapid prototyping of hardware > interfaces, and I've been looking into PCIe EP drivers for exactly > that reason recently. Going a little offtopic: any good DRA7 eval > boards you'd recommend to try for this purpose? > > We already have a EP driver in the tree: > > drivers/misc/spear13xx_pcie_gadget.c > > but as far as I can tell it doesn't really work at the moment. > This is indeed for the designware pcie hardware, but it never worked in a mainline kernel, and I marked it 'depends on BROKEN' after it had not correctly compiled for a long time. It's also lacking because it neither abstracts the hardware nor the protocol, and I think we want both. drivers/ntb seems like a reasonable start, while an alternative approach that we have discussed in the past would be based on top of virtio, so we could use the existing front-end drivers (net, block, v9fs, console, ...). Arnd
[toc] | [prev] | [next] | [standalone]
| From | Christoph Hellwig <hch@infradead.org> |
|---|---|
| Date | 2016-08-03 20:00 +0200 |
| Message-ID | <s28Ct-5J5-7@gated-at.bofh.it> |
| In reply to | #1455881 |
On Wed, Aug 03, 2016 at 06:03:54PM +0200, Arnd Bergmann wrote: > drivers/ntb seems like a reasonable start, while an alternative > approach that we have discussed in the past would be based on top > of virtio, so we could use the existing front-end drivers (net, block, > v9fs, console, ...). I don't really think either is a good aproach for the lowest level interface. To be useful the EP driver needs to be able to implement any (reasonable) thing a PCIe device could do. Both NTB and virtio can sit on top of that, though.
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-08-03 21:50 +0200 |
| Message-ID | <s2akW-6WY-9@gated-at.bofh.it> |
| In reply to | #1455926 |
On Wednesday, August 3, 2016 10:27:36 AM CEST Christoph Hellwig wrote: > On Wed, Aug 03, 2016 at 06:03:54PM +0200, Arnd Bergmann wrote: > > drivers/ntb seems like a reasonable start, while an alternative > > approach that we have discussed in the past would be based on top > > of virtio, so we could use the existing front-end drivers (net, block, > > v9fs, console, ...). > > I don't really think either is a good aproach for the lowest level > interface. To be useful the EP driver needs to be able to implement > any (reasonable) thing a PCIe device could do. Both NTB and virtio > can sit on top of that, though. Good point. NTB tries to be the low-level interface, but I guess you are right that it really isn't (I have not looked in a long time, maybe Jon can comment). While virtio transport over PCI would be great as the way to implement a lot of things on top of endpoint devices, it can't be the lowest level in the stack (see drivers/remoteproc) and building it on top of something that is useful for other things sounds like a good idea. Arnd
[toc] | [prev] | [next] | [standalone]
| From | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| Date | 2016-08-04 11:20 +0200 |
| Message-ID | <s2mYO-6W6-45@gated-at.bofh.it> |
| In reply to | #1455726 |
Hi, On Wednesday 03 August 2016 03:17 PM, Christoph Hellwig wrote: > On Wed, Aug 03, 2016 at 11:33:19AM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> The PCIe controller present in TI's DRA7 SoC is capable of operating either in >> Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core).I'd >> assume most of the PCIe controllers on other platforms that use Designware core >> should also be capable to operate in endpoint mode. But linux kernel right now >> supports only RC mode. >> >> PCIe endpoint support discussion came up briefly before [1] but it was felt the >> practical use case will find firmware more suitable and endpoint support in >> kernel can be used only for validation or demo. > > I disagree. It's highly useful for rapid prototyping of hardware > interfaces, and I've been looking into PCIe EP drivers for exactly > that reason recently. Going a little offtopic: any good DRA7 eval > boards you'd recommend to try for this purpose? I think the only publicly available DRA7 based board with PCIe (mPCIe slot) is AM572x EVM (http://www.ti.com/tool/TMDSEVM572X). The board comes only with a female PCIe slot. So a special cable would be required to connect it to a PCIe host. However for my development I'm planning to use dra7-evm which has standard female PCIe connector and I'll use a cable like PE-FLEX1 male-to-male (in http://www.adexelec.com/pciexp.htm) to connect back-to-back boards. > > We already have a EP driver in the tree: > > drivers/misc/spear13xx_pcie_gadget.c > > but as far as I can tell it doesn't really work at the moment. Okay. I wasn't aware of that. I'll take a look at that one. > >> Validation or demo is itself a valid use case in my opinion (consider something >> similar to gadget zero for USB). There can be other use cases as well. The RC >> can use the SoC with EP mode support as an accelerator to accomplish specific >> task. Here RC gives data to the EP. The EP processes the data. The processing >> can be done either in ARM itself or it can use other hardware accelerators >> (like DSP, IVA-HD etc..) present in the EP system. If HW accelerator is used, >> the linux kernel running in ARM can be used to accomplish other tasks. Once EP >> mode support is added, I think more use cases will be added. > > That sounds useful as well. > >> >From the high level this should look _similar_ to the gadget framework of USB. >> One difference from USB would be this should allow HW components (like DSP, PRU >> etc.. and maybe even some peripheral) in the EP system to be used by RC system. > > Indeed. > >> So these are the high-level steps that I thought would be needed to add EP >> support in linux. >> *) move pcie-designware.c out of drivers/pci/host (maybe create a >> drivers/pci/designware/ folder?). All users of pcie-designware.c should be >> moved here. >> This is in preparation for adding EP mode support to designware. > > I'd use a new drivers/pci/controller. Or maybe just skip the rename > for now and see how this evolves. Sure. That makes more sense. > > The rest of the plan sounds fine to me. cool. Thanks Kishon
[toc] | [prev] | [next] | [standalone]
| From | Joao Pinto <Joao.Pinto@synopsys.com> |
|---|---|
| Date | 2016-08-03 16:10 +0200 |
| Message-ID | <s251U-3yu-1@gated-at.bofh.it> |
| In reply to | #1455639 |
Hi Kishon, On 8/3/2016 7:03 AM, Kishon Vijay Abraham I wrote: > Hi, > > The PCIe controller present in TI's DRA7 SoC is capable of operating either in > Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core). I'd > assume most of the PCIe controllers on other platforms that use Designware core > should also be capable to operate in endpoint mode. But linux kernel right now > supports only RC mode. > > PCIe endpoint support discussion came up briefly before [1] but it was felt the > practical use case will find firmware more suitable and endpoint support in > kernel can be used only for validation or demo. > > *) Modify platform driver to support EP mode (in my case pci-dra7xx.c). > > *) dt binding specific to EP mode should be created. > > Once I complete the implementation and start posting RFC patches, a lot of > these will become clear. But I want to check if this sounds okay to you guys > before starting the implementation. > > Let me know if you have some other ideas too. > > Cheers > Kishon > > [1] -> http://www.spinics.net/lists/linux-pci/msg26026.html > You are rising a topic that we are also addressing in Synopsys. For the PCIe RC hardware validation we are currently using the standard pcie-designware and pcie-designware-plat drivers. For the Endpoint we have to use an internal software package. Its main purpose is to initialize the IP registers, eDMA channels and make data transfer to prove that the everything is working properly. This is done in 2 levels, a custom driver built and loaded and an application that makes some ioctl to the driver executing some interesting functions to check the Endpoint status and make some data exchange. We are very interest in the subject and we are available to participate in the development. I would suggest that also the IP eDMA initialization and manipulation be included in the framework and maybe produce a standard tool to test the endpoint. Thanks Joao
[toc] | [prev] | [next] | [standalone]
| From | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| Date | 2016-08-04 12:10 +0200 |
| Message-ID | <s2nLb-7sF-21@gated-at.bofh.it> |
| In reply to | #1455811 |
Hi, On Wednesday 03 August 2016 07:09 PM, Joao Pinto wrote: > Hi Kishon, > > On 8/3/2016 7:03 AM, Kishon Vijay Abraham I wrote: >> Hi, >> >> The PCIe controller present in TI's DRA7 SoC is capable of operating either in >> Root Complex mode or Endpoint mode. (It uses Synopsys Designware Core). I'd >> assume most of the PCIe controllers on other platforms that use Designware core >> should also be capable to operate in endpoint mode. But linux kernel right now >> supports only RC mode. >> >> PCIe endpoint support discussion came up briefly before [1] but it was felt the >> practical use case will find firmware more suitable and endpoint support in >> kernel can be used only for validation or demo. >> >> *) Modify platform driver to support EP mode (in my case pci-dra7xx.c). >> >> *) dt binding specific to EP mode should be created. >> >> Once I complete the implementation and start posting RFC patches, a lot of >> these will become clear. But I want to check if this sounds okay to you guys >> before starting the implementation. >> >> Let me know if you have some other ideas too. >> >> Cheers >> Kishon >> >> [1] -> http://www.spinics.net/lists/linux-pci/msg26026.html >> > > You are rising a topic that we are also addressing in Synopsys. > > For the PCIe RC hardware validation we are currently using the standard > pcie-designware and pcie-designware-plat drivers. > > For the Endpoint we have to use an internal software package. Its main purpose > is to initialize the IP registers, eDMA channels and make data transfer to prove > that the everything is working properly. This is done in 2 levels, a custom > driver built and loaded and an application that makes some ioctl to the driver > executing some interesting functions to check the Endpoint status and make some > data exchange. hmm.. the platform I have doesn't have a DMA in PCIe IP (http://www.ti.com/lit/ug/spruhz6g/spruhz6g.pdf). So in your testing does the EP access RC memory? i.e the driver in the RC allocates memory from it's DDR and gives it's DDR address to the EP. The EP then transfers data to this address. (This is a typical use case with ethernet PCIe cards). IIUC that's not simple with configurable EPs. I'd like to know more about your testing though. Thanks Kishon
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-08-04 13:20 +0200 |
| Message-ID | <s2oQW-8bN-9@gated-at.bofh.it> |
| In reply to | #1456284 |
On Thursday, August 4, 2016 3:32:01 PM CEST Kishon Vijay Abraham I wrote: > On Wednesday 03 August 2016 07:09 PM, Joao Pinto wrote: > > > > You are rising a topic that we are also addressing in Synopsys. > > > > For the PCIe RC hardware validation we are currently using the standard > > pcie-designware and pcie-designware-plat drivers. > > > > For the Endpoint we have to use an internal software package. Its main purpose > > is to initialize the IP registers, eDMA channels and make data transfer to prove > > that the everything is working properly. This is done in 2 levels, a custom > > driver built and loaded and an application that makes some ioctl to the driver > > executing some interesting functions to check the Endpoint status and make some > > data exchange. > > hmm.. the platform I have doesn't have a DMA in PCIe IP > (http://www.ti.com/lit/ug/spruhz6g/spruhz6g.pdf). So in your testing does the > EP access RC memory? i.e the driver in the RC allocates memory from it's DDR > and gives it's DDR address to the EP. The EP then transfers data to this > address. (This is a typical use case with ethernet PCIe cards). IIUC that's not > simple with configurable EPs. I'd like to know more about your testing though. What's the difference between using the EDMA on that chip or a DMA engine that is part of the PCIe bridge? Arnd
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web