diff --git a/sys/dev/drm/drm_drv.c b/sys/dev/drm/drm_drv.c index 1a0504d481a8..29521d9b317a 100644 --- a/sys/dev/drm/drm_drv.c +++ b/sys/dev/drm/drm_drv.c @@ -334,6 +334,10 @@ void drm_attach(struct device *kdev, struct pci_attach_args *pa, if(dev->pci_map_data[unit].maptype == PCI_MAPREG_TYPE_MEM) dev->pci_map_data[unit].flags |= BUS_SPACE_MAP_LINEAR; } + for(unit=0; unitagp_map_data[unit].mapped = 0; + dev->agp_map_data[unit].maptype = PCI_MAPREG_TYPE_MEM; + } dev->context_flag = 0; dev->last_context = 0; dev->vbl_queue = 0;