[RFC PATCH v2] Xilinx AXI-Stream FIFO v4.1 IP core driver

Greg KH greg at kroah.com
Mon Jul 16 07:43:47 UTC 2018


On Sun, Jul 15, 2018 at 04:38:51PM -0400, Jacob Feder wrote:
> On Sun, Jul 15, 2018 at 09:44:58PM +0200, Greg KH wrote:
> > On Sun, Jul 15, 2018 at 12:34:28PM -0400, Jacob Feder wrote:
> > > Hi,
> > > I have updated this with the recommended changes. I haven't tried out the
> > > UIO though. It will be a pretty significant undertaking and I don't want
> > > to spend the time on it unless there is a specific reason you think it
> > > will be faster.
> > > 
> > > Thanks all.
> > > 
> > > Cheers,
> > > Jacob
> > > 
> > > This IP core has read and write AXI-Stream FIFOs, the contents of which can
> > > be accessed from the AXI4 memory-mapped interface. This is useful for
> > > transferring data from a processor into the FPGA fabric. The driver creates
> > > a character device that can be read/written to with standard
> > > open/read/write/close.
> > > 
> > > See Xilinx PG080 document for IP details.
> > > 
> > > https://www.xilinx.com/support/documentation/ip_documentation/axi_fifo_mm_s/v4_1/pg080-axi-fifo-mm-s.pdf
> > > 
> > > The driver currently supports only store-forward mode with a 32-bit
> > > AXI4 Lite interface. DOES NOT support:
> > > 	- cut-through mode
> > > 	- AXI4 (non-lite)
> > > 
> > > Signed-off-by: Jacob Feder <jacobsfeder at gmail.com>
> > > ---
> > >  Documentation/devicetree/bindings/axisfifo.txt |   89 ++
> > 
> > This should live in the directory with the driver until it gets
> > accepted into the "main" part of the kernel tree.
> > 
> 
> Ok will do.
> 
> > >  drivers/staging/axisfifo/axis-fifo.c           | 1242 ++++++++++++++++++++++++
> > >  2 files changed, 1331 insertions(+)
> > >  create mode 100644 Documentation/devicetree/bindings/axisfifo.txt
> > >  create mode 100644 drivers/staging/axisfifo/axis-fifo.c
> > 
> > No Makefile or Kconfig to actually build the driver?
> > 
> > Please fix that up so we can at least test-build the thing :)
> > 
> > thanks,
> > 
> > greg k-h
> 
> Oh... how do I do that exactly? :) I am currently building it with
> Petalinux (Xilinx's wrapper for Yocto). I'm guessing there is a makefile
> somewhere in the Yocto directory I can give you?

No, it needs to be in the directory of the driver itself.  Look at how
all of the other drivers/staging/*/Makefile look, same for Kconfig.  If
you need help, just ask and I can easily make one up for you.

thanks,

greg k-h


More information about the devel mailing list