提交 95f158ea 编写于 作者: F Francisco Jerez 提交者: Ben Skeggs

drm/nv04-nv40: Fix "conflicting memory types" when saving/restoring VGA fonts.

Signed-off-by: NFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 9ddc8c52
...@@ -103,6 +103,7 @@ nv04_display_create(struct drm_device *dev) ...@@ -103,6 +103,7 @@ nv04_display_create(struct drm_device *dev)
if (nv_two_heads(dev)) if (nv_two_heads(dev))
nv04_display_store_initial_head_owner(dev); nv04_display_store_initial_head_owner(dev);
nouveau_hw_save_vga_fonts(dev, 1);
drm_mode_config_init(dev); drm_mode_config_init(dev);
drm_mode_create_scaling_mode_property(dev); drm_mode_create_scaling_mode_property(dev);
...@@ -203,8 +204,6 @@ nv04_display_create(struct drm_device *dev) ...@@ -203,8 +204,6 @@ nv04_display_create(struct drm_device *dev)
/* Save previous state */ /* Save previous state */
NVLockVgaCrtcs(dev, false); NVLockVgaCrtcs(dev, false);
nouveau_hw_save_vga_fonts(dev, 1);
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
crtc->funcs->save(crtc); crtc->funcs->save(crtc);
...@@ -246,9 +245,9 @@ nv04_display_destroy(struct drm_device *dev) ...@@ -246,9 +245,9 @@ nv04_display_destroy(struct drm_device *dev)
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
crtc->funcs->restore(crtc); crtc->funcs->restore(crtc);
nouveau_hw_save_vga_fonts(dev, 0);
drm_mode_config_cleanup(dev); drm_mode_config_cleanup(dev);
nouveau_hw_save_vga_fonts(dev, 0);
} }
void void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册