1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Another Benefit To Kernel Mode-Setting

Linux Kernel

Published on 21 August 2010 08:45 AM EDT
Written by Michael Larabel in Linux Kernel
28 Comments

Kernel mode-setting (KMS) is useful for faster VT/X switching, VTs being always at the panel's native resolution, the ability to thwart some security bugs in the X.Org Server (as shown earlier this week), presenting a cleaner and more flexible architecture, and allowing new and interesting projects to emerge (such as Plymouth and Wayland), but the benefits do not end there. When kernel mode-setting is combined with KDB, a Linux kernel debugger shell, you now have one powerful combination.

What this allows you to do is when your system goes awry, rather than being stuck to hard reset the system if you were using user-space mode-setting, with KDB+KMS you can now fall-back to this debugging shell to be able to diagnose the problem and collect other information used for debugging whether it was a kernel panic, hardware trap, or other problem.

Intel's Jesse Barnes recently outlined the steps required right now (of course, with time it should be easier and simpler) to get KDB working with Intel KMS. Chris Ball with the One Laptop Per Child project has now taken the steps necessary to support the kernel debugging shell with kernel mode-setting for ATI Radeon and Nouveau (NVIDIA) hardware.

For now there are patches that need to be applied against the Radeon and Nouveau DRM code to implement the KDB debug hooks within the kernel drivers, but after that code has been mainlined in the Linux kernel, the process should be easier. The directions for setting up the kernel debugger shell with kernel mode-setting can be found in this blog post. Below is an older video demonstrating KDB/KGDB with kernel mode-setting on Linux.


About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Articles & Reviews
  1. Linux Compiler Benchmarks Of LLVM Clang 3.5 vs. LLVM Clang 3.6-rc1
  2. Intel Broadwell HD Graphics 5500: Windows 8.1 vs. Linux
  3. Linux Benchmarks Of NVIDIA's Early 2015 GeForce Line-Up
  4. NVIDIA GeForce GTX 960: A Great $200 GPU For Linux Gamers
  5. Disk Encryption Tests On Fedora 21
  6. Xonotic 0.8 Performance With The Open-Source AMD/NVIDIA Gallium3D Drivers
Latest Linux News
  1. LZHAM 1.0 Lossless Data Compression Codec Released
  2. LibreOffice 4.4 Is Coming Soon With New Features
  3. Linux Users Upset By Chromium's Busted HiDPI Support
  4. BPF Backend Merged Into LLVM To Make Use Of New Kernel Functionality
  5. Dying Light Is Headed To Linux, SteamOS
  6. Wayland 1.6.1 & Weston 1.6.1 Released
  7. Mesa 10.4.3 Brings A Bunch Of Fixes For The Direct3D "Nine" Support
  8. Intel Has A Few More Graphics Changes For The Linux 3.20 Kernel
  9. Gummiboot Gains PE File Searching Support To Find Linux Kernels
  10. Wine 1.7.35 Starts Working On OpenGL Core Context Support
Most Viewed News This Week
  1. Windows 10 To Be A Free Upgrade: What Linux Users Need To Know
  2. CoreOS Moves From Btrfs To EXT4 + OverlayFS
  3. Google Admin Encourages Trying Btrfs, Not ZFS On Linux
  4. TraceFS: The Newest Linux File-System
  5. Mozilla's Servo Still On Track For 2015 Alpha Release
  6. My Initial Intel Broadwell Linux Experience With The ThinkPad X1 Carbon
  7. Fedora 23 Likely To Pursue Wayland By Default
  8. Keith Packard Leaves Intel's Linux Graphics Work