drm: Implement dmi_check_system()
authorFrançois Tigeot <ftigeot@wolfpond.org>
Wed, 7 Aug 2013 16:55:41 +0000 (18:55 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Wed, 7 Aug 2013 21:52:38 +0000 (23:52 +0200)
commit317a6a83b8cecd3c59b8bfc16cb62a81d433ec12
tree1181bc51dd4380a355a170e10eb0f9c47f31ce61
parente258f9a18eb4f3f60b4e1803d77478a44ab73078
drm: Implement dmi_check_system()

* The original function imported from FreeBSD was just a stub

* Replace it by a working implementation from OpenBSD

* And modify it slightly to use SMBIOS information from the loader

* This makes it possible to avoid display detection issues on some
  slightly broken hardware reporting phantom outputs or other weird
  invalid data.
sys/dev/drm2/drmP.h
sys/dev/drm2/drm_drv.c