diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2007-09-28 09:21:09 +0100 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2007-09-28 09:21:09 +0100 |
commit | d69721a14a8954420b4e0022ecf10bb040c6b807 (patch) | |
tree | fdd700d65d0dfdf55fe9f863367ae734c259e611 | |
parent | bf9bd5671c184e1caeeb25ead588cbb2ab77c360 (diff) |
Set the fb_base, so userspace applications can actually work
now instead of locking up.
-rw-r--r-- | linux-core/intel_display.c | 6 |
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 |