summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-05-18Add locking. The main lock is dev->mode_config.config_lock. It should beJesse Barnes
held across any operations that modify mode lists, crtc config, output config, etc. It should be taken at high level entry points (currently just initial config and user IOCTL). Seems to work ok on my system, but needs more testing (with lockdep) and review from some fresh eyes.
2007-05-17Remove unused edid.h header from X.Org.Jesse Barnes
2007-05-17Merge branch 'modesetting-101' of git+ssh://git.freedesktop.org/git/mesa/drm ↵Jesse Barnes
into origin/modesetting-101 Conflicts: linux-core/drm_crtc.c linux-core/drm_fb.c Lots of changes to merge with alanh's latest stuff: o fix use of fb->pitch now that it has the right value o add new helper for finding the CRTC given an FB o fix new fb_probe/fb_remove functions to take a CRTC o fixup callers of new FB routines o port drm_fb changes to intel_fb o check for errors after creating fb buffer object o go back to using cfb_imageblit since the accel stubs aren't ready
2007-05-17Grab the default mode if the preferred mode isn't available.Alan Hourihane
Fix an overflow problem.
2007-05-17Fix FB pitch value (we had it wrong and were working around it in a fewJesse Barnes
places). Add new FB hooks to the drm driver structure and make i915 use them for an Intel specific FB driver. This will allow acceleration and better handling of the command stream.
2007-05-17Fix build problemAlan Hourihane
2007-05-17Large changes for fbdev support.root
Change from DIRECTCOLOR to TRUECOLOR, and enable support for PSEUDOCOLOR. DIRECTCOLOR support needs more work. Add the ability to change the mode on the fbdev device. Support depth 8, 15, 16 and 24 (and 32). Add a /dev/fbX device per CRTC, but there's some code which doesn't allocate the fbX device unless the output is actually enabled. Read the code on this as it impacts the fbcon map flags. Pick CRTC's based on the available outputs. More work could be done here to match modes, so cloning could be achieved on outputs. This fits more inline with what the X code does.
2007-05-10Just some minor cleanups.Alan Hourihane
2007-05-05Cleaned up userspace interface for modesetting.Jakob Bornecrantz
2007-05-01cleanup usermodes on drm mode setting shutdownDave Airlie
2007-05-01Add support for user defined modesDave Airlie
This allows userspace to specify modes and add them to the modesetting system and attach modes to outputs
2007-05-01fix unusued variableDave Airlie
2007-04-26Merge branch 'origin' into modesetting-101Dave Airlie
2007-04-26i915: fix vblank pipe setupDave Airlie
2007-04-25More detailed instructions, tips.Brian
2007-04-23nouveau: fix wacky pci idStephane Marchesin
2007-04-23drm: make mode numbers no change by comparing probed modesDave Airlie
The mode list sets all the output modes to UNVERIFIED, then probes a new list, If a mode is on the new list and not on the old, it adds it to the old, if a mode is on the new list and old, it just updates the status to the new mode status. If a mode is on the old list and not on the new, prune invalid modes should remove all UNVERIFIED modes
2007-04-23fixup vrefresh reporting, it should now be *1000 in userspaceDave Airlie
2007-04-20Oops, edid data should just be a char *, as edid.h is private to edid.cJesse Barnes
(we can just recombine them now).
2007-04-20Add a monitor information structure separate from the EDID data for trackingJesse Barnes
monitor limits, etc.
2007-04-20Document drm_modes.c functions.Jesse Barnes
2007-04-20Add a mode name generation wrapper to make name format changes easier.Jesse Barnes
2007-04-20Initialize rwlock using rwlock_init to appease lockdep validator.Kristian Høgsberg
2007-04-20Initialize rwlock using rwlock_init to appease lockdep validator.Kristian Høgsberg
2007-04-20Clean up and return if no outputs are found.Kristian Høgsberg
2007-04-20Avoid a fence timeout problem when a signal is pending.Thomas Hellstrom
2007-04-20Fix via compile errorThomas Hellstrom
(Reported by Benno Schulenberg.)
2007-04-19backout SDVO control bus check and comment why this is a bad ideaDave Airlie
2007-04-18Document main drm_crtc.c functions, and rename drm_crtc_mode_create toJesse Barnes
drm_mode_create to be consistent with the other functions. Also document where we need locking fixes and what the locks are for.
2007-04-18Simplify the ttm backend interface and the agp ttm backend.Thomas Hellstrom
2007-04-18Shouldn't free the mode here. It's done later on.Alan Hourihane
2007-04-18Fix return statusAlan Hourihane
2007-04-18Fix build problemAlan Hourihane
2007-04-18free the duplicated mode.Alan Hourihane
2007-04-18When no valid EDID modes are available, we bail.Alan Hourihane
This snippet adds a standard 640x480 @ 60Hz mode when that occurs, so we can continue with a basic mode. Should we do this here though ???
2007-04-18Merge remote branch 'origin/modesetting-101' into modesetting-101Alan Hourihane
2007-04-18Support the RGB outputs of SDVO cards, which are essentiallyAlan Hourihane
VGA outs. The drm_initial_config path has specific handling code to name match for VGA, TMDS or LVDS. This is pretty restrictive and should probably be dealt with to be more generic.
2007-04-18Check status after SDVO command for sdvo_set_control_bus_switchAlan Hourihane
2007-04-18Move SDVO PENDING check to read_response so all SDVO commandsAlan Hourihane
benefit from the spin loop.
2007-04-18make sure TMDS gets a crtcDave Airlie
2007-04-18Merge branch 'origin' into modesetting-101Dave Airlie
Conflicts: linux-core/drm_bo.c Merge in changes from master from Thomas fixiing TTM problems
2007-04-17Merge branch 'modesetting-101' of git+ssh://git.freedesktop.org/git/mesa/drm ↵Jesse Barnes
into origin/modesetting-101
2007-04-17Just use drm_output_destroy to cleanup LVDS failures. It'll call our cleanupJesse Barnes
routine, which will take care of freeing our dev_priv and i2c ddc bus.
2007-04-18don't crash if no desired modeDave Airlie
2007-04-18backout alanh's broken commitDave Airlie
2007-04-18clean up ring buffer and TTM in i915_driver_unloadDavid Airlie
I've commented out the framebuffer for now
2007-04-17Add framebuffer bo freeing to drm_mode_config_cleanup (seems like the bestJesse Barnes
place for now).
2007-04-17Lvds now power up backlight on commitJakob Bornecrantz
Now saves previous power level in prepare and sets that power level in commit, should power level be 0 it will set maximum level.
2007-04-17Merge branch 'modesetting-101' of git+ssh://git.freedesktop.org/git/mesa/drm ↵Jesse Barnes
into origin/modesetting-101 Conflicts: shared-core/i915_init.c - reconcile with airlied's new code
2007-04-17Move initial framebuffer allocation and configuration to drm_initial_config,Jesse Barnes
remove i915_driver_load fb related stuff. Add a small helper for setting up outputs.