https://www.phoronix.com/news/AMD-One-Liner-System-Resume Phoronix * Articles & Reviews * News Archive * Forums * Premium * Categories * Computers * Display Drivers * Graphics Cards * Linux Gaming * Memory * Motherboards * Processors * Software * Storage * Operating Systems * Peripherals * Close * * Articles & Reviews * News Archive * Forums * Premium * Contact * Categories Computers Display Drivers Graphics Cards Linux Gaming Memory Motherboards Processors Software Storage Operating Systems Peripherals * [ ] [Search] AMD Has A One-Liner To Help Speed Up Linux System Resume Time Written by Michael Larabel in AMD on 20 May 2023 at 05:43 AM EDT. 4 Comments AMD AMD engineers have been working out many quirks and oddities in system suspend/resume handling to make it more reliable on their hardware particularly around Ryzen laptops. In addition to suspend/ resume reliability improvements and suspend-to-idle (s2idle) enhancements, one of their engineers also discovered an easy one-liner as a small step to speeding up system resume time. AMD engineer Basavaraj Natikar realized a missing check in the USB XHCI driver can avoid an extra 120ms delay during system resume time. It's only 120 ms, but it's a broad win given it's for the XHCI driver code and part of their larger effort of improving the AMD Ryzen platform on Linux and this 120ms savings is from altering one line of code. System resume time savings patch Basavaraj Natikar explained with the patch now queued in USB-next ahead of the Linux 6.5 kernel cycle: "Avoid extra 120ms delay during system resume. The xHC controller may signal wake up to 120ms before showing which usb device caused the wake on the xHC port registers. The xhci driver therefore checks for port activity up to 120ms during resume, making sure that the hub driver can see the port change, and won't immediately runtime suspend back due to no port activity. This is however only needed for runtime resume as system resume will resume all child hubs and other child usb devices anyway." Look for this 120ms system resume time savings with the Linux 6.5 kernel in a few months. As it's marked as a "fix" for an XHCI patch made by an Intel engineer back in 2021 where this 120ms delay was introduced, it's also possible that following the Linux 6.5 merge window this patch will be back-ported to existing stable Linux kernel versions. 4 Comments Tweet [INS::INS] Related News AMD EDAC Linux Driver Being Extended To Support Ryzen 7000 Series CPUs AMD CPU "k10temp" Linux Driver Updated To Report Negative Temperatures AMD Launches Ryzen 7020 C-Series - Continues Pushing Zen 2 For Chromebooks New Patches Extend AMD EDAC Linux Driver For Data Center GPUs Linux 6.4-rc2 Preps For AMD Zen 4 Model 78h ASUS Details ROG Ally Specs - $699 Gaming Handheld With AMD Z1 Extreme About The Author Michael Larabel Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com. Popular News This Week AMD Has A One-Liner To Help Speed Up Linux System Resume Time CodeWeavers Now Controlled By An Employee Ownership Trust LLVM's libc Gets Much Faster memcpy For RISC-V Big Patch Series Prepares The Linux Audio Drivers For MIDI 2.0 Intel Publishes "X86-S" Specification For 64-bit Only Architecture NVIDIA Announces The GeForce RTX 4060 Series Ubuntu Knocks On Docker In Latest Snaps Promotion New Maintainer Steps Up For GCC Compiler's MIPS CPU Port Latest Linux News Intel's Open Image Denoise 2.0 Brings SYCL For Xe GPUs, NVIDIA CUDA, AMD HIP ROCm 5.5.1 Released For AMD's Open-Source Compute Stack Fedora's RPM Fusion Adds Experimental Intel IPU6 Web Camera Support AMD EDAC Linux Driver Being Extended To Support Ryzen 7000 Series CPUs Updated AMD Linux Graphics Driver Patches For Color Management Patch Posted For Formally Deprecating The SLAB Allocator Mageia 9 Beta 2 Released With Linux 6.3 Kernel, KDE Plasma 5.27 + GNOME 44 Desktops AMD CPU "k10temp" Linux Driver Updated To Report Negative Temperatures AMD Radeon Software For Linux 22.40.5 Driver Released Podman Desktop 1.0 Released As An Alternative To Docker Desktop Show Your Support, Go Premium Phoronix Premium allows ad-free access to the site, multi-page articles on a single page, and other features while supporting this site's continued operations. Latest Featured Articles AMD Radeon RX 7600 Linux Performance Intel Provides AI-Accelerated HPC Update For ISC 2023 NVIDIA R530 vs. AMD Linux 6.3 + Mesa 23.2-dev Gaming Performance Ampere Computing Announces AmpereOne With Up to 192 Cores Per Socket System76 Pangolin Makes For A Nice All-AMD Linux Laptop Support Phoronix The mission at Phoronix since 2004 has centered around enriching the Linux hardware experience. In addition to supporting our site through advertisements, you can help by subscribing to Phoronix Premium. You can also contribute to Phoronix through a PayPal tip or tip via Stripe. Phoronix Media --------------------------------------------------------------------- * Contact * Michael Larabel * OpenBenchmarking.org Phoronix Premium --------------------------------------------------------------------- * Support Phoronix * While Having Ad-Free Browsing, * Single-Page Article Viewing Share --------------------------------------------------------------------- * Facebook * Twitter * Legal Disclaimer, Privacy Policy, Cookies | Contact * Copyright (c) 2004 - 2023 by Phoronix Media. * All trademarks used are properties of their respective owners. All rights reserved.