All of lore.kernel.org
 help / color / mirror / Atom feed
* [SPDK] restricting SPDK/DPDK memory allcoation
@ 2017-04-26 19:59 Oza Oza
  0 siblings, 0 replies; 2+ messages in thread
From: Oza Oza @ 2017-04-26 19:59 UTC (permalink / raw)
  To: spdk

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

Hi,



How do I ask SPDK/DPDK to restrict the iova and phys_addr allocation to
first 128 GB of its address space ?



In short I want to restrict



Function: vfio_type1_dma_map

dma_map.vaddr = ms[i].addr_64;

dma_map.iova = ms[i].phys_addr;



iova address which gets programmed in iommu restricted to first 128 GB of
space ?



I am using ARM64 port, but it should not have anything to do with
architecture anyway.



Regards,

Oza.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 1873 bytes --]

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

* Re: [SPDK] restricting SPDK/DPDK memory allcoation
@ 2017-04-26 20:01 Oza Oza
  0 siblings, 0 replies; 2+ messages in thread
From: Oza Oza @ 2017-04-26 20:01 UTC (permalink / raw)
  To: spdk

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

I see that rte_eal_get_physmem_layout is the one gets physical memory
layout.

But not sure where does it get it from and if it depends on say 64bit
architecture or just some config !



*From:* Oza Oza [mailto:oza.oza(a)broadcom.com]
*Sent:* Thursday, April 27, 2017 1:29 AM
*To:* 'Storage Performance Development Kit'
*Subject:* restricting SPDK/DPDK memory allcoation



Hi,



How do I ask SPDK/DPDK to restrict the iova and phys_addr allocation to
first 128 GB of its address space ?



In short I want to restrict



Function: vfio_type1_dma_map

dma_map.vaddr = ms[i].addr_64;

dma_map.iova = ms[i].phys_addr;



iova address which gets programmed in iommu restricted to first 128 GB of
space ?



I am using ARM64 port, but it should not have anything to do with
architecture anyway.



Regards,

Oza.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 2977 bytes --]

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

end of thread, other threads:[~2017-04-26 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-26 20:01 [SPDK] restricting SPDK/DPDK memory allcoation Oza Oza
  -- strict thread matches above, loose matches on Subject: below --
2017-04-26 19:59 Oza Oza

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.