mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* A question about prefetchw detection in "x86/asm: Cleanup prefetch primitives"
@ 2023-06-21 10:57 Xi Ruoyao
  2023-06-21 11:13 ` Borislav Petkov
  0 siblings, 1 reply; 11+ messages in thread
From: Xi Ruoyao @ 2023-06-21 10:57 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, Thomas Gleixner, Borislav Petkov

Hi,

In commit a930dc4543a2 ("x86/asm: Cleanup prefetch primitives"), a chunk
of code was added:

	/* 3DNow or LM implies PREFETCHW */
	if (!cpu_has(c, X86_FEATURE_3DNOWPREFETCH))
		if (cpu_has(c, X86_FEATURE_3DNOW) || cpu_has(c, X86_FEATURE_LM))
			set_cpu_cap(c, X86_FEATURE_3DNOWPREFETCH);

But Glibc does not contain a similar logic in the CPU feature detection
code, causing a test failure on old CPUs
(https://sourceware.org/bugzilla/show_bug.cgi?id=30328).

I intend to implement the same logic for Glibc.  I can understand "3DNow
implies PREFETCHW", but is there a bibliographical reference about "LM
implies PREFETCHW" so I can convince the Glibc maintainers for the
change?

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

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

end of thread, other threads:[~2023-06-21 13:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21 10:57 A question about prefetchw detection in "x86/asm: Cleanup prefetch primitives" Xi Ruoyao
2023-06-21 11:13 ` Borislav Petkov
2023-06-21 11:18   ` Xi Ruoyao
2023-06-21 12:04     ` Xi Ruoyao
2023-06-21 12:57       ` Borislav Petkov
2023-06-21 13:06         ` Xi Ruoyao
2023-06-21 13:09           ` Borislav Petkov
2023-06-21 13:19             ` Xi Ruoyao
2023-06-21 13:46               ` Borislav Petkov
2023-06-21 13:47                 ` Xi Ruoyao
2023-06-21 13:57                   ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®