[PATCHv2 net-next 05/16] net: mvpp2: introduce PPv2.2 HW descriptors and adapt accessors
David Laight
David.Laight at ACULAB.COM
Mon Feb 6 04:43:17 PST 2017
From: Thomas Petazzoni
> Sent: 04 February 2017 14:00
...
> This makes complete sense. We use the cookie to store the phys_addr_t
> rather than the virtual address. I might be missing something, but it
> seems like a very good solution. Thanks for the suggestion, I'll try
> this!
Why not just store an array index for the buffer info?
That would save you having to regenerate kernel virtual
addresses from limited info.
Or realise that the low bits (page offset) of the dma address
and kernel virtual address (and kernel physical for that matter)
will always match. 50 bits might be enough for a kernel virtual address.
David
More information about the linux-arm-kernel
mailing list