Bug 72852

Summary: [PATCH] restore automated load of radeon kernel module
Product: xorg Reporter: Robert Millan <rmh>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
patch none

Description Robert Millan 2013-12-18 22:39:49 UTC
Created attachment 90952 [details]
patch

It seems that current xf86-video-radeon doesn't automatically load the kernel module anymore. This probably happened during the addition of KMS support, which caused drmOpen() call to stop doing this task. More details on that in:

https://bugs.freedesktop.org/show_bug.cgi?id=72849

AFAIK this isn't a big problem on GNU/Linux, because on that platform you expect the kernel module to be loaded much earlier anyway. However on other platforms (such as GNU/kFreeBSD and probably FreeBSD as well), X is expected to load the modules it needs (i.e. noone else will do it for her).

I'm attaching a patch that restores the intended behaviour, however using fallback method like the intel driver does (i.e. if drmCheckModesettingSupported() fails, then try load the module, and then try drmCheckModesettingSupported() again).
Comment 1 Michel Dänzer 2013-12-24 02:14:25 UTC
commit bfbff3b246db509c820df17b8fcf5899882ffcfa
Author: Robert Millan <rmh@freebsd.org>
Date:   Fri Dec 20 11:03:14 2013 +0000

    radeon: Restore kernel module load on FreeBSD.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.