DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] mempool with custom alignment
@ 2015-06-03 18:30 Dax Rawal
  2015-06-03 18:36 ` Cyril Chemparathy
  2015-06-04  8:45 ` Ananyev, Konstantin
  0 siblings, 2 replies; 5+ messages in thread
From: Dax Rawal @ 2015-06-03 18:30 UTC (permalink / raw)
  To: dev

Hi,
I use mempool APIs to allocate DMA-able descriptor ring and buffers so that
I get both physical and virtual addresses of allocated memory. I buffers I
get from the mempool APIs are 64 byte aligned. My requirement is 256byte
alignment. How to achieve this? mempool APIs do not seem to take alignment
parameters.

Thanks,
-Dax

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

* Re: [dpdk-dev] mempool with custom alignment
  2015-06-03 18:30 [dpdk-dev] mempool with custom alignment Dax Rawal
@ 2015-06-03 18:36 ` Cyril Chemparathy
  2015-06-03 18:58   ` Dax Rawal
  2015-06-04  8:45 ` Ananyev, Konstantin
  1 sibling, 1 reply; 5+ messages in thread
From: Cyril Chemparathy @ 2015-06-03 18:36 UTC (permalink / raw)
  To: Dax Rawal; +Cc: dev

On Wed, 3 Jun 2015 11:30:17 -0700
Hi Dax,

Dax Rawal <daxayrawal@gmail.com> wrote:

> Hi,
> I use mempool APIs to allocate DMA-able descriptor ring and buffers
> so that I get both physical and virtual addresses of allocated
> memory. I buffers I get from the mempool APIs are 64 byte aligned. My
> requirement is 256byte alignment. How to achieve this? mempool APIs
> do not seem to take alignment parameters.
> 

I have a patch that allows configuration override of mempool element
alignment to allow for larger alignment limits (e.g. 128B on the
TILE-Gx platform, 256B on yours). Would that suffice? If so, I'd be
happy to post this patch on the mailing list.

Thanks
-- Cyril.

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

* Re: [dpdk-dev] mempool with custom alignment
  2015-06-03 18:36 ` Cyril Chemparathy
@ 2015-06-03 18:58   ` Dax Rawal
  0 siblings, 0 replies; 5+ messages in thread
From: Dax Rawal @ 2015-06-03 18:58 UTC (permalink / raw)
  To: Cyril Chemparathy; +Cc: dev

Hi Cyril,

Definitely, yes.

Thanks.
-Dax


On Wed, Jun 3, 2015 at 11:36 AM, Cyril Chemparathy <cchemparathy@ezchip.com>
wrote:

> On Wed, 3 Jun 2015 11:30:17 -0700
> Hi Dax,
>
> Dax Rawal <daxayrawal@gmail.com> wrote:
>
> > Hi,
> > I use mempool APIs to allocate DMA-able descriptor ring and buffers
> > so that I get both physical and virtual addresses of allocated
> > memory. I buffers I get from the mempool APIs are 64 byte aligned. My
> > requirement is 256byte alignment. How to achieve this? mempool APIs
> > do not seem to take alignment parameters.
> >
>
> I have a patch that allows configuration override of mempool element
> alignment to allow for larger alignment limits (e.g. 128B on the
> TILE-Gx platform, 256B on yours). Would that suffice? If so, I'd be
> happy to post this patch on the mailing list.
>
> Thanks
> -- Cyril.
>

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

* Re: [dpdk-dev] mempool with custom alignment
  2015-06-03 18:30 [dpdk-dev] mempool with custom alignment Dax Rawal
  2015-06-03 18:36 ` Cyril Chemparathy
@ 2015-06-04  8:45 ` Ananyev, Konstantin
  2015-06-04 17:28   ` Dax Rawal
  1 sibling, 1 reply; 5+ messages in thread
From: Ananyev, Konstantin @ 2015-06-04  8:45 UTC (permalink / raw)
  To: Dax Rawal, dev



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Dax Rawal
> Sent: Wednesday, June 03, 2015 7:30 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] mempool with custom alignment
> 
> Hi,
> I use mempool APIs to allocate DMA-able descriptor ring and buffers so that
> I get both physical and virtual addresses of allocated memory. I buffers I
> get from the mempool APIs are 64 byte aligned. My requirement is 256byte
> alignment. How to achieve this? mempool APIs do not seem to take alignment
> parameters.
> 
> Thanks,
> -Dax

Something like that:
http://patchwork.dpdk.org/ml/archives/dev/2014-October/006595.html
should work, I think.
Konstantin

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

* Re: [dpdk-dev] mempool with custom alignment
  2015-06-04  8:45 ` Ananyev, Konstantin
@ 2015-06-04 17:28   ` Dax Rawal
  0 siblings, 0 replies; 5+ messages in thread
From: Dax Rawal @ 2015-06-04 17:28 UTC (permalink / raw)
  To: Ananyev, Konstantin; +Cc: dev

Thanks, Konstantin.

On Thu, Jun 4, 2015 at 1:45 AM, Ananyev, Konstantin <
konstantin.ananyev@intel.com> wrote:

>
>
> > -----Original Message-----
> > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Dax Rawal
> > Sent: Wednesday, June 03, 2015 7:30 PM
> > To: dev@dpdk.org
> > Subject: [dpdk-dev] mempool with custom alignment
> >
> > Hi,
> > I use mempool APIs to allocate DMA-able descriptor ring and buffers so
> that
> > I get both physical and virtual addresses of allocated memory. I buffers
> I
> > get from the mempool APIs are 64 byte aligned. My requirement is 256byte
> > alignment. How to achieve this? mempool APIs do not seem to take
> alignment
> > parameters.
> >
> > Thanks,
> > -Dax
>
> Something like that:
> http://patchwork.dpdk.org/ml/archives/dev/2014-October/006595.html
> should work, I think.
> Konstantin
>

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

end of thread, other threads:[~2015-06-04 17:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-03 18:30 [dpdk-dev] mempool with custom alignment Dax Rawal
2015-06-03 18:36 ` Cyril Chemparathy
2015-06-03 18:58   ` Dax Rawal
2015-06-04  8:45 ` Ananyev, Konstantin
2015-06-04 17:28   ` Dax Rawal

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).