summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-12-19Disable configure-disabled outputs before mode setting.Eric Anholt
We're not supposed to turn off pipes/planes/dplls with outputs attached, which we could have done before this.
2006-12-19Simplify i830DisableUnusedFunctions() by using the CRTC dpms routines.Eric Anholt
2006-12-19Writing 1 to I2C line means to tristate the bus so others can manipulate it.Keith Packard
We were forcing bus lines to 1 which was breaking DDC for some monitors. Instead, make the PutBits function just tristate when writing 1 bits.
2006-12-18Add a detect() function for DVO chips, and implement it on sil164.Eric Anholt
2006-12-18Fix crash in xf86SetScrnInfoModes when pScrn->modes ends up empty.Eric Anholt
2006-12-18Clean up i2c_vid interface, including de-StudlyCapsing and removing dead code.Eric Anholt
The old Init() function is removed and the previous Detect() function is now init(). This leaves us room in the namespace for a detect() like other outputs have ("is the monitor connected?"). Also, Power() became dpms(), taking a DPMSMode*. In general, the mode setting path now matches the intel internal path, except for the lack of mode_fixup().
2006-12-19ch7xxx: add lookup table for nameDave Airlie
Don't load if we don't match name
2006-12-18Limit modes to 165Mhz on CH7009, according to spec.Eric Anholt
2006-12-18Align the driver to the CH7009[AB] spec.Eric Anholt
With this, the driver works at 640x480 and 1280x1024 on my panel.
2006-12-18Clean up a bunch of log noise from ch7xxx startup.Eric Anholt
2006-12-18Fix DVO mode valid function to not throw out all modes.Eric Anholt
2006-12-18Add save/restore to ch7xxx to avoid segfaults on server start.Eric Anholt
2006-12-18Move the ch7xxx code to the style I've been settling on for output code.Eric Anholt
2006-12-18Bug #8786: Treat pictures with no color data as non-component alpha.Eric Anholt
This is an un(der?)-documented part of the render protocol: If the mask is alpha only, then the component alpha flag is ignored on it.
2006-12-16Follow mode setting order in RestoreHWState.Keith Packard
Add delays after output and CRTC disable. Restore panel fit register before PLLs are restarted. Move all VGA restore code last. Shuffle various register writes around and add delays to match PipeSetMode code.
2006-12-16Prefer earliest CRTC when mapping to outputs.Keith Packard
For some reason, the code was preferring the last possible output when mapping outputs to crtcs. Use the earlier CRTC instead to make the i830 driver consistent with BIOS usage.
2006-12-16Not restoring active outputs. Wait for input sync before enabling outputs.Keith Packard
Oops--looks like a typo to me; the code was callint set_target_output instead of set_active_outputs. BIOS loops waiting for the SDVO input to sync before enabling outputs, this makes sense to me.
2006-12-16Follow BIOS order in writing DPLL/DPLL_MD registers.Keith Packard
965 BIOS writes DPLL and then DPLL_MD. 945 BIOS writes DPLL twice.
2006-12-16reorder restore writes for 965 VGAKeith Packard
2006-12-14Follow BIOS PLL write protocol (disable,enable,enable).Keith Packard
This gets VGA output and text restore working, but SDVO is still not working.
2006-12-14Turn pll/pipe/plane on in crtc_set_modeKeith Packard
Instead of delaying pll/pipe/plane enables to the dpms function, turn them on right away in the crtc_set_mode function. To avoid rewriting these registers in the subsequent dpms function, check each register written there to see if the enable bit is already on and don't rewrite.
2006-12-14Respect Virtual in xorg.confKeith Packard
Instead of growing virtual to fit our desired sizes, if it is set in the config file, use the value as the virtual size and make the default configuration fit within that size (if possible).
2006-12-14Set frame buffer size ranges in xf86_config.Keith Packard
Initialization and default configuration code needs to know the range of legitimate sizes for the frame buffer.
2006-12-14Change TV modes from Preferred to Driver.Keith Packard
This avoids having the artificial TV mode size drive overall screen size.
2006-12-13Move xf86CrtcConfig to ScrnInfo private.Keith Packard
Pull xf86CrtcConfig out of the driver private structure and allocate a ScrnInfo private index for it. Also, make the arrays of outputs and crtcs dynamic instead of fixed.
2006-12-13Merge branch 'modesetting-origin' into modesettingKeith Packard
2006-12-13Auto-detect working TV output by checking TV regs functionality.Keith Packard
We can't figure out which chips are supposed to have TV out, so instead we prod the TV_DAC register to see if it will hold the value written to it, if not, we assume the chip doesn't have TV out.
2006-12-13Add magic double-write of the dpll register to fix mac mini cold boot.Eric Anholt
2006-12-13Add some caution with PCI write posting and DPLL delays to i830_crtc_dpms.Eric Anholt
While it doesn't specifically help/hurt my test case, we've seen enough mysterious behavior that caution is probably warranted.
2006-12-13Rename outputs to TMDS-1/TMDS-2, LVDS, TV and VGA.Keith Packard
These names are reasonably short and describe the connector rather than the target media, but we don't appear to have any way to determine what is on the other end of the wire. More importantly, they're all unique now.
2006-12-12Write dpll_md register while updating dpll as that appears to be required.Keith Packard
SDVO multiplier on 965 is in the dpll_md register; for some reason, that needs to be written along with the dpll value or the multiplier doesn't get set correctly.
2006-12-12Merge branch 'modesetting-origin' into modesettingKeith Packard
2006-12-12Elide duplicate modes in pScrn->monitor.Keith Packard
xf86DDCMonitorSet dumps all of the DDC-discovered modes into the monitor mode list without checking to see if they are already present. This provides an ever-changing list of modes for outputs which have no DDC and which simply duplicate the monitor mode list.
2006-12-12Correct typo in mac mini hack, and return modes when the hack is unnecessary.Eric Anholt
2006-12-12Replace custom, partially broken DPMS implementation with a generic one.Eric Anholt
2006-12-12Fix mac mini SDVO output: write the SDVO[BC] enabled register state twice.Eric Anholt
2006-12-12Flush the plane changes in i830_crtc_dpms()Eric Anholt
Otherwise, the changes may not have taken effect.
2006-12-12Move the SDVO sync detection to after we've turned the port on.Eric Anholt
2006-12-12Extend the error state reporting to cover ESR and decode PGTBL_ERR for 945.Eric Anholt
2006-12-12Move PrintErrorState and CheckInheritedErrors code to i830_debug.c.Eric Anholt
2006-12-12Set the SDVO port to on before sending the SDVO output on command.Eric Anholt
2006-12-12More debugging output for SDVO.Eric Anholt
2006-12-12Add a hack for DDC on my Mac Mini.Eric Anholt
2006-12-11Move the overlay mode switch status updates to when we enable/disable crtcs.Eric Anholt
This should help if we mode switch with randr during video playback, and also simplifies the code by moving the protection all to one place.
2006-12-11Remove remnants of old savedCurrentMode hack. Man, that was gross.Eric Anholt
2006-12-11Remove dead remnants of old clone mode support.Eric Anholt
2006-12-11Include i830.h to get M_T_* compat defines for older X Servers.Joshua J. Berry
Not duplicating the defines ensures that we won't let the compat bits slip into the X Server when we move this code over there.
2006-12-11Add error messages for previous silent DRI initialization failures.Eric Anholt
2006-12-06Merge branch 'modesetting-origin' into modesettingKeith Packard
2006-12-06Move vga restore to end of RestoreHWState.Keith Packard
I was having consistent system lockups when the vga restore was first. Moving it to the end has reduced them to an infrequent occurrence (but, alas, it has happened once since). This does not make me happy.