32189458a8
Turns out genfb_softc must be at the start of its own device_private, so we can't have it in the middle of a structure, and certainly can't have potentially multiple genfbs per graphics device. Failing to do this is why entering ddb didn't work with an i915drmkms console. Instead of putting a genfb_softc into each drm_fb_helper, put a device_t into each drm_fb_helper and create a new intelfb(4) device for each Intel framebuffer. This will be more flexible, too, in case we want accelerated framebuffers later on. (XXX Need to adapt the radeon code, which I'm disabling until that happens to avoid breaking the build.) While here, defer disabling VGA, vga_cndetach, and genfb_attach until we're actually ready to do them all together along with the mode switch. This should reduce the amount of time during which the screen is blanked, in case it hangs.
13 lines
246 B
Plaintext
13 lines
246 B
Plaintext
# $NetBSD: i915drmkms.ioconf,v 1.3 2014/07/24 21:18:40 riastradh Exp $
|
|
|
|
ioconf i915drmkms
|
|
|
|
include "conf/files"
|
|
include "dev/pci/files.pci"
|
|
|
|
pseudo-root pci*
|
|
pseudo-root intelfbbus*
|
|
|
|
i915drmkms* at pci? dev ? function ?
|
|
intelfb* at intelfbbus?
|