Bug 220384 - Loading kernel module i915 after i915kms panics
Summary: Loading kernel module i915 after i915kms panics
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: i386 Any
: --- Affects Only Me
Assignee: Gavin Atkinson
URL:
Keywords: i915
Depends on:
Blocks:
 
Reported: 2017-06-30 14:27 UTC by martin
Modified: 2017-08-04 07:54 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2017-06-30 14:27:27 UTC
Hi,

this happens on 11.0-RELEASE and 11.1-BETA2. Even more annoying is that Xorg xf86-video-intel driver loads both kernel modules and causes the same panic (since March this year). I reduced it to a simple sequence of kldload commands.

Steps to reproduce (on many systems one of the modules is already loaded in /boot/loader.conf):

1) kldload i915kms
2) kldload i915

Both modules want to install the device /dev/dri/card0 which causes a clash (errno EEXIST) and a subsequent panic.

Stack trace:

make_dev_sv
make_dev
drm_attach
i915_attach
device_attach
...

Panic message:
panic: make_dev_sv: bad si_name (error=17, si_name=dri/card0)

Expected behavior:

Only one of the kernel modules should load. The other subsequent kldload should fail to load without causing a panic.

--
Martin