drm/i915: Kick fbdev before vgacon
Subsystems (2)
PATCH 1/1 drm/i915: Kick fbdev before vgacon
It's magic, but it seems to work.
This fixes a regression introduced in
commit 1bb9e632a0aeee1121e652ee4dc80e5e6f14bcd2
Author: Daniel Vetter <[email protected]> Date: Tue Jul 8 10:02:43 2014 +0200
drm/i915: Only unbind vgacon, not other console drivers
My best guess is that the vga fbdev driver falls over if we rip out parts of vgacon. Hooray.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82439
--- drivers/gpu/drm/i915/i915_dma.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/i915_dma.c +6 -4
@@ -1666,15 +1666,17 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) goto out_regs;if (drm_core_check_feature (dev,DRIVER_MODESET )) { - ret =i915_kick_out_vgacon (dev_priv); +/* WARNING: Apparently we must kick fbdev drivers before vgacon, +* otherwise the vga fbdev driver falls over. */ + ret =i915_kick_out_firmware_fb (dev_priv);if (ret) { -DRM_ERROR ("failed to remove conflicting VGA console\n" ); +DRM_ERROR ("failed to remove conflicting framebuffer drivers\n" ); goto out_gtt; } - ret =i915_kick_out_firmware_fb (dev_priv); + ret =i915_kick_out_vgacon (dev_priv);if (ret) { -DRM_ERROR ("failed to remove conflicting framebuffer drivers\n" ); +DRM_ERROR ("failed to remove conflicting VGA console\n" ); goto out_gtt; } }
Signature · 6 lines
2.1.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Daniel Vetter
It's magic, but it seems to work.
This fixes a regression introduced in
commit
1bb9e632a0aeee1121e652ee4dc80e5e6f14bcd2Author: Daniel Vetter <[email protected]> Date: Tue Jul 8 10:02:43 2014 +0200drm/i915: Only unbind vgacon, not other console drivers
Quoted 7 lines
My best guess is that the vga fbdev driver falls over if we rip out parts of vgacon. Hooray.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82439
Reported-and-Tested-by Lv Zheng <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Still smells like someone else's problem, a race in fbcon?
Anyway,
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 14 lines · Chris Wilson
Quoted 13 lines · Daniel Vetter
It's magic, but it seems to work.
This fixes a regression introduced in
commit
1bb9e632a0aeee1121e652ee4dc80e5e6f14bcd2Author: Daniel Vetter <[email protected]> Date: Tue Jul 8 10:02:43 2014 +0200drm/i915: Only unbind vgacon, not other console drivers
My best guess is that the vga fbdev driver falls over if we rip out parts of vgacon. Hooray.
Quoted 6 lines
Quoted 4 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82439
Reported-and-Tested-by Lv Zheng <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Still smells like someone else's problem, a race in fbcon?
My best theory is that vgacon tears down something that the vga16 fbdev driver relies on. So by kicking that one before removing the vgacon driver we somehow survive.
But tbh I don't really want to know.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Daniel Vetter
It's magic, but it seems to work.
This fixes a regression introduced in
commit
1bb9e632a0aeee1121e652ee4dc80e5e6f14bcd2Author: Daniel Vetter <[email protected]> Date: Tue Jul 8 10:02:43 2014 +0200drm/i915: Only unbind vgacon, not other console drivers
Quoted 7 lines
My best guess is that the vga fbdev driver falls over if we rip out parts of vgacon. Hooray.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82439
Reported-and-Tested-by Lv Zheng <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Pushed to drm-intel-fixes. Thanks for the patch.
BR,
Jani.
Quoted 33 lines
--- drivers/gpu/drm/i915/i915_dma.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/i915_dma.c +6
-4@@ -1666,15 +1666,17 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) goto out_regs;if (drm_core_check_feature (dev,DRIVER_MODESET )) { - ret =i915_kick_out_vgacon (dev_priv); +/* WARNING: Apparently we must kick fbdev drivers before vgacon, +* otherwise the vga fbdev driver falls over. */ + ret =i915_kick_out_firmware_fb (dev_priv);if (ret) { -DRM_ERROR ("failed to remove conflicting VGA console\n" ); +DRM_ERROR ("failed to remove conflicting framebuffer drivers\n" ); goto out_gtt; } - ret =i915_kick_out_firmware_fb (dev_priv); + ret =i915_kick_out_vgacon (dev_priv);if (ret) { -DRM_ERROR ("failed to remove conflicting framebuffer drivers\n" ); +DRM_ERROR ("failed to remove conflicting VGA console\n" ); goto out_gtt; } }Signature · 1 line
2.1.1
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
-------------------------------------Summary-------------------------------------
Platform: baseline_drm_intel_nightly_pass_rate->patch_applied_pass_rate
BYT: pass/total=290/291->290/291
PNV: pass/total=351/356->356/356
ILK: pass/total=371/372->369/372
IVB: pass/total=545/546->544/546
SNB: pass/total=424/425->424/425
HSW: pass/total=579/579->579/579
BDW: pass/total=434/435->434/435
-------------------------------------Detailed-------------------------------------test_platform: test_suite, test_case, result_with_drm_intel_nightly(count, machine_id...)...->result_with_patch_applied(count, machine_id)...
PNV: Intel_gpu_tools, igt_gen3_mixed_blits, CRASH(1, M23) -> PASS(4, M7)
PNV: Intel_gpu_tools, igt_gen3_render_linear_blits, CRASH(1, M23) -> PASS(1, M7)
PNV: Intel_gpu_tools, igt_gen3_render_mixed_blits, CRASH(1, M23) -> PASS(1, M7)
PNV: Intel_gpu_tools, igt_gen3_render_tiledx_blits, CRASH(2, M23)DMESG_WARN(1, M23)NRUN(1, M23) -> PASS(1, M7)
PNV: Intel_gpu_tools, igt_gen3_render_tiledy_blits, CRASH(1, M23) -> PASS(1, M7)
ILK: Intel_gpu_tools, igt_kms_flip_flip-vs-absolute-wf_vblank, PASS(1, M6) -> DMESG_WARN(1, M26)PASS(3, M26)
ILK: Intel_gpu_tools, igt_kms_flip_wf_vblank-vs-modeset-interruptible, PASS(1, M6) -> DMESG_WARN(1, M26)PASS(3, M26)
ILK: Intel_gpu_tools, igt_kms_setmode_invalid-clone-single-crtc, TIMEOUT(1, M6) -> FAIL(3, M26)TIMEOUT(1, M26)
IVB: Intel_gpu_tools, igt_kms_cursor_crc_cursor-64x64-offscreen, PASS(1, M4) -> DMESG_WARN(1, M21)PASS(3, M21)
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx