aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2005-06-28 21:38:08 +0000
committerEric Anholt <anholt@FreeBSD.org>2005-06-28 21:38:08 +0000
commit324f92b9afeed4e5a5279eddd7b29a2c21dc9260 (patch)
tree35c14f874d71a89d2c93c3f10a95115f92cc3476 /sys/dev/drm
parent571dba6ec9f25ecf7582dc2192daf1ceea70065f (diff)
downloadsrc-324f92b9afeed4e5a5279eddd7b29a2c21dc9260.tar.gz
src-324f92b9afeed4e5a5279eddd7b29a2c21dc9260.zip
Disable the drm_initmap calls in radeon_cp.c, due to them resulting in improper
handling of pci resources, and mapping framebuffer leading to panics on X startup. The proper solution involves use of bus_alloc_resource without RF_ACTIVE, but this code is being rewritten in DRM CVS currently, and disabling for now doesn't remove any features, so take the easy route. PR: kern/80718 Approved by: re (scottl)
Notes
Notes: svn path=/head/; revision=147648
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/radeon_cp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/drm/radeon_cp.c b/sys/dev/drm/radeon_cp.c
index 6e8b4303e970..c63e49e415af 100644
--- a/sys/dev/drm/radeon_cp.c
+++ b/sys/dev/drm/radeon_cp.c
@@ -2031,6 +2031,11 @@ int radeon_preinit(struct drm_device *dev, unsigned long flags)
break;
}
+ /* Disable initmaps because it is broken on FreeBSD, and results in
+ * crashes on startup for some. The proper fix will involve being
+ * smarter about allocating PCI resources.
+ */
+ /*
ret = drm_initmap(dev, drm_get_resource_start(dev, 2),
drm_get_resource_len(dev, 2), 2, _DRM_REGISTERS,
_DRM_READ_ONLY);
@@ -2042,6 +2047,7 @@ int radeon_preinit(struct drm_device *dev, unsigned long flags)
_DRM_WRITE_COMBINING);
if (ret != 0)
return ret;
+ */
/* The original method of detecting AGP is known to not work correctly,
* according to Mike Harris. The solution is to walk the capabilities