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.


Latest Linux Hardware Reviews
  1. Mini-Box M350: A Simple, Affordable Mini-ITX Case
  2. Overclocking The AMD AM1 Athlon & Sempron APUs
  3. AMD Athlon 5350 / 5150 & Sempron 3850 / 2650
  4. Upgraded Kernel & Mesa Yield A Big Boost For Athlon R3 Graphics
Latest Linux Articles
  1. Ubuntu 12.04.4 vs. 13.10 vs. 14.04 LTS Desktop Benchmarks
  2. AMD OpenCL Performance With AM1 Kabini APUs
  3. A Quick Look At GCC 4.9 vs. LLVM Clang 3.5
  4. Are AMD Athlon/Sempron APUs Fast Enough For Steam On Linux?
Latest Linux News
  1. Ubuntu 14.04 LTS "Trusty Tahr" Officially Released
  2. Ubuntu 12.04 LTS vs. 14.04 LTS Server Benchmarks
  3. QEMU 2.0 Released With ARM, x86 Enhancements
  4. Running The Unity 8 Preview Session On Ubuntu 14.04 LTS
  5. R600 Gallium3D Disables LLVM Back-End By Default
  6. Fedora 21 Gets GNOME 3.12, PHP 5.6, Mono 3.4
  7. Fedora Workstation Is Making Me Quite Excited
  8. Maynard: A Lightweight Wayland Desktop
  9. Chromium Browser Going Through Growing Pains In Ubuntu 14.04
  10. KDE 4.13 Is Being Released Today With New Features
  11. Trying Out Radeon R9 290 Graphics On Open-Source
  12. Intel Broadwell GT3 Graphics Have Dual BSD Rings
Latest Forum Discussions
  1. After Jack Keane, RuseSoft will briing Ankh 3 to Linux through Desura
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Suspected PHP Proxy Issue
  4. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  5. The GNOME Foundation Is Running Short On Money
  6. Change installation destination from home directory
  7. Bye bye BSD, Hello Linux: A Sys Admin's Story
  8. New tool for undervolt/overclock AMD K8L and K10 processors