Modalità di lettura

New AMD P-State Patch Delivers Major Linux Gaming Performance Boost

New AMD P-State Patch Delivers Major Linux Gaming Performance Boost

A newly proposed patch for the Linux kernel's AMD P-State CPU frequency scaling driver is showing impressive gaming performance improvements, potentially delivering a noticeable boost for Ryzen users without requiring new hardware. Early benchmarks indicate that the optimization can significantly improve frame rates in CPU-bound games by allowing processors to respond more quickly to changing workloads. (phoronix.com)

Although the patch has not yet been merged into the mainline Linux kernel, the initial results have generated considerable excitement among Linux gamers and kernel developers alike.

What Is AMD P-State?

AMD P-State is the modern CPU frequency scaling driver for AMD Ryzen processors on Linux. Rather than relying on the older ACPI CPUFreq driver, AMD P-State communicates directly with the processor to adjust clock speeds based on workload demands.

Its goals include:

  • Faster frequency scaling
  • Improved power efficiency
  • Better responsiveness
  • Higher performance during demanding workloads
  • Lower power consumption when the system is idle

Most modern Linux distributions already support AMD P-State on compatible Ryzen processors. (kernel.org)

A Focus on Gaming Performance

The new patch specifically targets how quickly AMD P-State responds when a game suddenly demands additional CPU performance.

Many games rapidly alternate between light and heavy CPU workloads. If the processor takes too long to increase its clock speed, short performance dips can occur.

The proposed optimization reduces that delay, allowing the CPU to boost more aggressively when needed and helping maintain smoother gameplay. (phoronix.com)

Promising Benchmark Results

According to early testing, the patch delivers meaningful improvements across several Linux gaming workloads.

Reported benefits include:

  • Higher average frame rates
  • Better 1% low FPS performance
  • Faster CPU frequency response
  • Improved responsiveness during gameplay
  • More consistent frame delivery

The biggest gains appear in CPU-limited games where processor performance has a greater impact than GPU performance. Systems that are already GPU-bound may see smaller improvements. (phoronix.com)

Designed for Modern Ryzen CPUs

The patch targets systems using the AMD P-State driver, which supports many recent Ryzen processors.

Compatible platforms generally include:

  •  

Linux Kernel Begins Phasing Out the crypto_rng Layer to Simplify Random Number Generation

Linux Kernel Begins Phasing Out the crypto_rng Layer to Simplify Random Number Generation

Linux kernel developers are moving forward with plans to remove the crypto_rng API layer, a long-standing component of the kernel's cryptographic subsystem. The proposed change is part of a broader effort to simplify the kernel's internal architecture by eliminating redundant code paths and encouraging developers to rely on the kernel's modern random number generation interfaces instead. (phoronix.com)

Although the change happens entirely behind the scenes, it reflects the Linux kernel community's ongoing commitment to reducing technical debt, improving maintainability, and modernizing core infrastructure.

What Is the crypto_rng Layer?

The crypto_rng framework is an API within the Linux kernel's Crypto API that provides random number generation services for kernel components.

Historically, it allowed different kernel subsystems and drivers to request random data through a generic cryptographic interface. Over time, however, the kernel's dedicated random number generator has matured considerably, making much of the crypto_rng abstraction unnecessary. (kernel.org)

Today, developers generally recommend using the kernel's built-in random number generation functions directly instead of routing requests through the older crypto layer.

Why Developers Want to Remove It

According to discussions on the Linux kernel mailing list, the crypto_rng layer has become largely redundant.

Modern kernel code already relies on well-established interfaces such as:

  • get_random_bytes()
  • get_random_u32()
  • get_random_u64()

These functions are maintained as part of the kernel's primary random number generation subsystem and are widely used throughout Linux. Maintaining an additional abstraction layer increases code complexity without providing significant practical benefits. (phoronix.com)

Removing unnecessary infrastructure also makes the kernel easier to maintain and audit over the long term.

Simplifying the Crypto API

The Linux Crypto API has evolved significantly over the years as new algorithms, hardware accelerators, and security features have been introduced.

Kernel maintainers have increasingly focused on:

  •  
❌