[dpdk-dev] [PATCH v5] eal: add cache-line demote support
David Marchand
david.marchand at redhat.com
Thu Oct 8 09:09:52 CEST 2020
On Thu, Oct 1, 2020 at 2:30 AM Omkar Maslekar <omkar.maslekar at intel.com> wrote:
>
> rte_cldemote is similar to a prefetch hint - in reverse. cldemote(addr)
> enables software to hint to hardware that line is likely to be shared.
> Useful in core-to-core communications where cache-line is likely to be
> shared. ARM and PPC implementation is provided with NOP and can be added
> if any equivalent instructions could be used for implementation on those
> architectures.
>
> Signed-off-by: Omkar Maslekar <omkar.maslekar at intel.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
I find this "rte_cldemote" name too close to the Intel instruction,
but I can see no complaint from other arch maintainers, so I guess
everyone is happy with it.
In any case, this is a new API, so it should be marked experimental.
As for unit tests, not sure there is much to do, maybe rename
test_prefetch.c and call this new API too, wdyt?
--
David Marchand
More information about the dev
mailing list