[PATCH] eal/x86: fix segfaults in waitpkg power intrinsics

Thomas Monjalon thomas at monjalon.net
Wed Nov 8 16:15:41 CET 2023


08/11/2023 04:19, Tyler Retzlaff:
> On Tue, Nov 07, 2023 at 04:19:01PM +0000, Bruce Richardson wrote:
> > From: David Hunt <david.hunt at intel.com>
> > 
> > The code was recently enhanced to allow the use of the waitpkg
> > intrinsics rather than the raw assembly in the rte_power functions.
> > However, the parameters to the intrinsics, while compiling fine, were
> > incorrect, and would segfault when run on the appropriate hardware.
> > This patch fixes the intrinsic parameters. Tested on a system with
> > tpause and umonitor/umwait instructions.
> > 
> > Fixes: 60943c04f3bc ("eal/x86: use intrinsics for power management")
> > 
> > Signed-off-by: David Hunt <david.hunt at intel.com>
> > Reviewed-by: Bruce Richardson <bruce.richardson at intel.com>
> 
> Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>

Applied, thanks.





More information about the dev mailing list