Re: [PATCH 2/2] eal/riscv: add support for zicbop extension

2024-10-07 Thread Stanisław Kardach
On Thu, May 30, 2024 at 7:20 PM Daniel Gregory wrote: > > The zicbop extension adds instructions for prefetching data into cache. > Use them to implement RISCV-specific versions of the rte_prefetch* and > rte_prefetch*_write functions. > > - prefetch.r indicates to hardware that the cache block wi

Re: [PATCH 2/2] eal/riscv: add support for zicbop extension

2024-10-04 Thread Stephen Hemminger
On Thu, 30 May 2024 18:19:48 +0100 Daniel Gregory wrote: > This new functionality is controlled by a Meson flag that is disabled by > default. Whilst it's a hint, like rte_pause(), and so has no effect if > the target doesn't support the extension, it requires the address > prefetched to be loade

Re: [PATCH 2/2] eal/riscv: add support for zicbop extension

2024-05-31 Thread Daniel Gregory
On Thu, May 30, 2024 at 06:19:48PM +0100, Daniel Gregory wrote: > + * The RTE_RISCV_ZICBOP option controls whether we emit them manually for > older > + * compilers that may not have the support to assemble them. > + */ > static inline void rte_prefetch0(const volatile void *p) > { > - RTE_S

[PATCH 2/2] eal/riscv: add support for zicbop extension

2024-05-30 Thread Daniel Gregory
The zicbop extension adds instructions for prefetching data into cache. Use them to implement RISCV-specific versions of the rte_prefetch* and rte_prefetch*_write functions. - prefetch.r indicates to hardware that the cache block will be accessed by a data read soon - prefetch.w indicates to har