summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2007-09-28 09:21:09 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2007-09-28 09:21:09 +0100
commitd69721a14a8954420b4e0022ecf10bb040c6b807 (patch)
treefdd700d65d0dfdf55fe9f863367ae734c259e611
parentbf9bd5671c184e1caeeb25ead588cbb2ab77c360 (diff)
Set the fb_base, so userspace applications can actually work
now instead of locking up.
-rw-r--r--linux-core/intel_display.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/intel_display.c b/linux-core/intel_display.c
index 3ff9f822..a81cfe69 100644
--- a/linux-core/intel_display.c
+++ b/linux-core/intel_display.c
@@ -1207,6 +1207,12 @@ void intel_modeset_init(struct drm_device *dev)
dev->mode_config.max_width = 4096;
dev->mode_config.max_height = 4096;
+ /* set memory base */
+ if (IS_I9XX(dev))
+ dev->mode_config.fb_base = pci_resource_start(dev->pdev, 2);
+ else
+ dev->mode_config.fb_base = pci_resource_start(dev->pdev, 0);
+
if (IS_MOBILE(dev) || IS_I9XX(dev))
num_pipe = 2;
else