AI Helping To Improve Linux's AMD Zen CPU Microarchitecture Detection

Phoronix
AMD engineer Borislav Petkov used AI to clean up AMD Zen microarchitecture detection in the Linux kernel.

Summary

AMD Linux engineer Borislav Petkov sent out a request for comments (RFC) on the Linux kernel mailing list to improve AMD Zen microarchitecture detection. The RFC aims to clean up code paths specific to certain Zen generations and enable range checks, such as requiring code to run on Zen 3 through Zen 5 microarchitectures. Petkov turned to AI for assistance, which provided a basic idea that he implemented. The code has booted in a VM and will soon be tested on real hardware. Future patches may include marking all Zen processors with X86_FEATURE_ZEN and moving Hygon off that usage. The changes make it clearer which Zen generations are relevant for specific code paths.

(Source:Phoronix)