Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,698 Views

ACP port under Linux

Hi, 

 

Is there any trick to using the ACP port from FPGA under Linux (3.9)? I'm setting the f2h AR & AW CACHE/PROT/USER by hand, post-qsys, but don't see any indication that the SCU cares at all about the address I send on f2h_axi_slave and reads go to SDRAM instead of L1 or L2 cache. 

 

Thanks
0 Kudos
23 Replies
Altera_Forum
Honored Contributor I
6 Views

 

--- Quote Start ---  

The FPGA module I have developed has an Altera Avalon MM master which is connected to the AXI port FPGA2HPS, the port that your FPGA design has is an AXI or Avalon port? 

--- Quote End ---  

 

 

It's Avalon MM master too. At least one test case just used Altera's modular SGDMA connected to f2h_axi_slave.
Altera_Forum
Honored Contributor I
6 Views

Hi, do you know a way to allocate 64MB of contiguous RAM to a device driver on Linux? I was using the alloc_pages but it only allowed me to allocate 4MB. 

 

Thanks.
Altera_Forum
Honored Contributor I
6 Views

Hello, 

 

When using the SGDMA to test the ACP port, and also the SDRAM controller, what is the maximum frequency you could use in order to get the SGDMA system working? You said in a previous post that you used 150 MHz, is is possible to use something greater than that? 

 

Thanks.
Altera_Forum
Honored Contributor I
6 Views

 

--- Quote Start ---  

Hi, do you know a way to allocate 64MB of contiguous RAM to a device driver on Linux? I was using the alloc_pages but it only allowed me to allocate 4MB. 

 

Thanks. 

--- Quote End ---  

 

 

You can reserve a block of memory using the device tree: 

 

https://www.kernel.org/doc/documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
Reply