This is an old revision of the document!


Update DRM generic code to Linux 3.8

Currently, our DRM code in sys/dev/drm2 is a copy of the old DRI1 code from sys/dev/drm, plus the required bits from DRI2 to make the i915 KMS driver work. The missing parts were taken from Linux older than 3.4 (I don't know the exact version).

We need to update this DRM code to fix bugs and add new features, especially DRM-PRIME to support multi-cards configurations. This will allow us to ease current driver support (especially update the i915 driver to gain support for Haswell platforms) and port new drivers.

Around 75% of the files in sys/dev/drm2 (not including drivers) are now synchronized with Linux 3.8.

drm_crtc_helper.[ch] and drm_fb_helper.[ch] were updated in the last commits. The radeonkms driver appears to still work properly. I have not tested vt yet, only syscons. There's a memory leak somewhere during the load/unload of the drm2.ko module but I didn't track it down yet.

  1. Clone the kms-drm-update-38 branch on GitHub: https://github.com/dumbbell/freebsd/tree/kms-drm-update-38
  2. Build and install kernel
  3. Reboot
  • graphicsold/update_drm_generic_code_to_linux_3.8.1395826133.txt.gz
  • Last modified: 2014/03/26 09:28
  • by JeanSébastienPédron