From: Jesse B. <jb...@vi...> - 2008-11-27 17:14:22
|
Here's an updated set that incorporates Eric's feedback, along with a few other fixes: - lastclose now correctly restores the mode (useful for if an application crashes or doesn't clean up after itself) - SysRq-g allows you to switch to the graphics console - X driver works again (had some merge errors in the master rework) - my test programs work again - Wayland and Eagle work on top of this code So please review. Rip it apart. Fix bugs. Add features. At some point this will be merged into drm-next and we can start piling stuff on top rather than relying on me to respin & rebase all the time. -- Jesse Barnes, Intel Open Source Technology Center Jesse Barnes (3): DRM: rework master design DRM: add mode setting support DRM: i915: add mode setting support drivers/gpu/drm/Kconfig | 11 + drivers/gpu/drm/Makefile | 3 +- drivers/gpu/drm/drm_auth.c | 29 +- drivers/gpu/drm/drm_bufs.c | 20 +- drivers/gpu/drm/drm_context.c | 10 +- drivers/gpu/drm/drm_crtc.c | 2500 ++++++++++++++++++++++++++++++++ drivers/gpu/drm/drm_crtc_helper.c | 822 +++++++++++ drivers/gpu/drm/drm_drv.c | 76 +- drivers/gpu/drm/drm_edid.c | 732 ++++++++++ drivers/gpu/drm/drm_fops.c | 223 ++-- drivers/gpu/drm/drm_ioctl.c | 57 +- drivers/gpu/drm/drm_irq.c | 64 +- drivers/gpu/drm/drm_lock.c | 42 +- drivers/gpu/drm/drm_mm.c | 1 + drivers/gpu/drm/drm_modes.c | 574 ++++++++ drivers/gpu/drm/drm_proc.c | 8 +- drivers/gpu/drm/drm_stub.c | 149 ++- drivers/gpu/drm/drm_sysfs.c | 329 +++++- drivers/gpu/drm/i915/Makefile | 17 +- drivers/gpu/drm/i915/dvo.h | 151 ++ drivers/gpu/drm/i915/dvo_ch7017.c | 454 ++++++ drivers/gpu/drm/i915/dvo_ch7xxx.c | 368 +++++ drivers/gpu/drm/i915/dvo_ivch.c | 442 ++++++ drivers/gpu/drm/i915/dvo_sil164.c | 302 ++++ drivers/gpu/drm/i915/dvo_tfp410.c | 335 +++++ drivers/gpu/drm/i915/i915_dma.c | 343 ++++- drivers/gpu/drm/i915/i915_drv.c | 35 + drivers/gpu/drm/i915/i915_drv.h | 53 +- drivers/gpu/drm/i915/i915_gem.c | 134 ++- drivers/gpu/drm/i915/i915_irq.c | 55 +- drivers/gpu/drm/i915/i915_mem.c | 3 +- drivers/gpu/drm/i915/intel_bios.c | 193 +++ drivers/gpu/drm/i915/intel_bios.h | 405 ++++++ drivers/gpu/drm/i915/intel_crt.c | 284 ++++ drivers/gpu/drm/i915/intel_display.c | 1621 +++++++++++++++++++++ drivers/gpu/drm/i915/intel_drv.h | 146 ++ drivers/gpu/drm/i915/intel_dvo.c | 501 +++++++ drivers/gpu/drm/i915/intel_fb.c | 927 ++++++++++++ drivers/gpu/drm/i915/intel_i2c.c | 184 +++ drivers/gpu/drm/i915/intel_lvds.c | 525 +++++++ drivers/gpu/drm/i915/intel_modes.c | 87 ++ drivers/gpu/drm/i915/intel_sdvo.c | 1127 ++++++++++++++ drivers/gpu/drm/i915/intel_sdvo_regs.h | 327 +++++ drivers/gpu/drm/i915/intel_tv.c | 1725 ++++++++++++++++++++++ drivers/gpu/drm/radeon/r300_cmdbuf.c | 11 +- drivers/gpu/drm/radeon/radeon_cp.c | 73 +- drivers/gpu/drm/radeon/radeon_drv.h | 14 +- drivers/gpu/drm/radeon/radeon_state.c | 166 ++- drivers/video/console/vgacon.c | 17 + include/drm/Kbuild | 2 +- include/drm/drm.h | 24 + include/drm/drmP.h | 87 +- include/drm/drm_crtc.h | 737 ++++++++++ include/drm/drm_crtc_helper.h | 121 ++ include/drm/drm_edid.h | 202 +++ include/drm/drm_mode.h | 278 ++++ include/drm/i915_drm.h | 2 +- include/linux/console.h | 4 + 58 files changed, 17679 insertions(+), 453 deletions(-) create mode 100644 drivers/gpu/drm/drm_crtc.c create mode 100644 drivers/gpu/drm/drm_crtc_helper.c create mode 100644 drivers/gpu/drm/drm_edid.c create mode 100644 drivers/gpu/drm/drm_modes.c create mode 100644 drivers/gpu/drm/i915/dvo.h create mode 100644 drivers/gpu/drm/i915/dvo_ch7017.c create mode 100644 drivers/gpu/drm/i915/dvo_ch7xxx.c create mode 100644 drivers/gpu/drm/i915/dvo_ivch.c create mode 100644 drivers/gpu/drm/i915/dvo_sil164.c create mode 100644 drivers/gpu/drm/i915/dvo_tfp410.c create mode 100644 drivers/gpu/drm/i915/intel_bios.c create mode 100644 drivers/gpu/drm/i915/intel_bios.h create mode 100644 drivers/gpu/drm/i915/intel_crt.c create mode 100644 drivers/gpu/drm/i915/intel_display.c create mode 100644 drivers/gpu/drm/i915/intel_drv.h create mode 100644 drivers/gpu/drm/i915/intel_dvo.c create mode 100644 drivers/gpu/drm/i915/intel_fb.c create mode 100644 drivers/gpu/drm/i915/intel_i2c.c create mode 100644 drivers/gpu/drm/i915/intel_lvds.c create mode 100644 drivers/gpu/drm/i915/intel_modes.c create mode 100644 drivers/gpu/drm/i915/intel_sdvo.c create mode 100644 drivers/gpu/drm/i915/intel_sdvo_regs.h create mode 100644 drivers/gpu/drm/i915/intel_tv.c create mode 100644 include/drm/drm_crtc.h create mode 100644 include/drm/drm_crtc_helper.h create mode 100644 include/drm/drm_edid.h create mode 100644 include/drm/drm_mode.h |