ADF

From Wikipedia, the free encyclopedia
Regulating access to the hardware is a fundamental kernel task. The Direct Rendering Manager and KMS are part of the Linux kernel. The KMS does only the mode setting.

Mode setting is a software operation that activates a display mode (screen resolution,color depth, and refresh rate) for a computer's display controller.

In kernel mode-setting (KMS), the display mode is set by the kernel. In user-space mode-setting (UMS), the display mode is set by auserlandprocess.

Kernel mode-setting is more flexible and allows displaying of an error in the case of afatal error in the kernel, even when using a user-space display server.

User-space mode setting would require superuser privileges for direct hardware access, so kernel-based mode setting shuns such requirement for the user-space graphics server.

Implementation

Microsoft Windows

Microsoft Windows versions that areNT-based use kernel mode setting. The kernel error display made possible by kernel mode setting is known as theBlue Screen of Death.

Linux

The role of KMS (Kernel mode-setting), Linux example
The Linux Graphics Stack 2013
Wayland compositors require KMS (and also OpenGL ES and EGL)
The place of certain Linux kernel modules
evdev is the Linux kernel module that receives data from various Input devices such as Keyboard, Mouse, Touch-Pad, etc. The data is passed to the Display server (e.g. the X.Org Server or some Wayland compositor only to be passed further to the Wayland client respectively X client. Some applications require a minimal latency

The Linux kernel got the prerequisite for kernel-based mode setting by accepting IntelGEM in version 2.6.28, released in December 2008.[1] This will be[needs update] replaced by Tungstens Graphics TTM (Translation Table Maps) memory manager which supports the GEM API.[2] TTM was developed for thefree and open-source drivers forRadeon and S3 Graphics graphic chipsets (see Free and open-source graphics device driver).[3] Support forIntel GMA graphic chipsets was accepted in version 2.6.29, released on March 23, 2009.[4] Support for pre-R600 ATI Radeon graphics cards was accepted in version 2.6.31, released on September 9, 2009.[5] Support for R600 and R700 was in development within DRM and was merged in version 2.6.32.[6] Support for Evergreen (R800) was merged in version 2.6.34. As Nvidia did not release all the needed documentation for its graphics chip, development proceeded under thenouveau project, which uses reverse engineering to build a working open-source driver for Nvidia cards. Nouveau was accepted in version 2.6.33 of the kernel, released on December 10, 2009. Kernel-based mode setting is not only supported by the nouveau driver, it is required.[7]Wayland compositors (e.g. Weston) and kmscon depend on kernel mode setting via ioctl.

FreeBSD

FreeBSD has support for both kernel-based mode setting and GEM for later generations of Intel GPUs (IronLake, SandyBridge, and IvyBridge) starting with version 9.1.[8]

NetBSD

NetBSD has support for kernel-based mode setting and accelerated graphics for Intel and Radeon devices. This implementation was introduced in version 7.0 by porting the Linux 3.15 DRM/KMS code.[9]

OpenBSD

OpenBSD has kernel-based mode setting support for Intel and Radeon GPUs. Starting with version 5.4 of OpenBSD, support for Intel GPUs is available. With the release of version 5.5, the implementation has been extended to add support for Radeon chipsets as well.

Alternatives

The following alternatives have been presented during the Linux Plumbers Conference 2013:

  • It was suggested to split GEM and KMS.[10]
  • Atomic Display Framework, by Google's Android-Team.[11][12]
  • Common Display Framework.[13]

See also

References

  1. "Linux 2 6 28". Linux Kernel Newbies. Retrieved 2013-02-14.
  2. Larabel, Michael (2008-08-26)."A GEM-ified TTM Manager For Radeon". Phoronix. Retrieved2013-02-14.
  3. Larabel, Michael (2009-06-10)."TTM Memory Manager Gets Ready For Release". Phoronix. Retrieved2013-02-14.
  4. "Linux 2 6 29". Linux Kernel Newbies. Retrieved 2013-02-14.
  5. "Linux 2 6 31". Linux Kernel Newbies. 2009-09-09. Retrieved2013-02-14.
  6. Larabel, Michael (2009-09-30)."AMD R600/700 2D Performance: Open vs. Closed Drivers". Phoronix. Retrieved2013-02-14.
  7. "nouveau/ KernelModeSetting". freedesktop.org. 24 August 2013. Retrieved 2014-08-11.
  8. "FreeBSD 9.1-RELEASE Release Notes".FreeBSD Foundation. 30 December 2012.
  9. "Announcing NetBSD 7.0". The NetBSD Project. 25 September 2015. Retrieved 25 April 2016.
  10. http://www.linuxplumbersconf.org/2013/ocw/sessions/1107
  11. http://www.linuxplumbersconf.org/2013/ocw/proposals/1551
  12. http://www.linuxplumbersconf.org/2013/ocw/sessions/1467
  13. http://www.linuxplumbersconf.org/2013/ocw/sessions/1317

External links

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值