Commit Graph

49 Commits

Author SHA1 Message Date
Eric Anholt 9a62d3b598 Remove i830+ driver's use of CARD*/INT* types for great justice.
Several uses are actually left, which are determined by the X Server
interfaces we're implementing.
2008-03-11 12:07:52 -07:00
Kristian Høgsberg 4ea67e9b85 Crack down on warnings.
Fix printf formatting warnings, wrap a couple of long lines, nuke
unused variables, add missing #include <unistd.h>.
2008-03-11 13:54:59 -04:00
Zhenyu Wang 02a3b80ee8 Bug 14591: comment out MI_DISPLAY_POWER_DOWN as for 965GM only 2008-02-29 13:36:59 +08:00
Jesse Barnes 444984a578 Remove side effects from VGA debug code
The VGA register dumping code was leaving ARX in data mode rather than index
mode, which could cause problems for later software accessing AR* registers.
Fix it to make sure it's in index mode when we're done.

Fixes #14434.
2008-02-21 08:37:42 -08:00
Keith Packard 4a42b01f5e Decode DSPCLK_GATE, dump PIPE*STAT, MI_MODE, MI_DISPLAY_POWER_DOWN, MI_ARB_STATE, MI_RDRET_STATE, ECOSKPD 2008-02-16 18:16:37 -08:00
Jesse Barnes f5896dcd1f Add CACHE_MODE_0 register to dump output 2008-02-07 11:56:28 -08:00
Jesse Barnes 83a071e2c0 Fix build warnings on 64 bit
Use PRIx32 for printing CARD32 types, and PRIx64 for portably printing uint64_t
types.  Requires the addition of a new include, inttypes.h, to work.  Hope C99
is ok with everybody...
2008-02-05 17:09:19 -08:00
Zhenyu Wang 332587081f Fix last commit on i8xx debug p2 value 2008-02-05 10:34:55 +08:00
Hong Liu 2d18a299cf Fix PLL reference clk debug dump 2008-02-05 09:10:48 +08:00
Hong Liu 9532757113 Bug 10773: fix i8xx pll p2 value in i830_crtc_clock_get()
Also fix debug dump, slightly modified to use macro instead.
2008-02-04 17:14:23 +08:00
Zhenyu Wang 6f3de19159 Move fb compression reg definition into i810_reg.h
where we put MMIO control reg in, and shared with intel_reg_dump
program.
2007-11-15 18:33:27 +08:00
Jesse Barnes 675b9471d8 Add FBC registers to register dump output
Just for completeness.
2007-11-14 15:17:05 -08:00
Jesse Barnes 4fe507957b Remove unused 'palette_enable' variable 2007-11-09 13:51:11 -08:00
Jesse Barnes 87345e820d intel_reg_dumper - dump VGA AR registers too
Add a VGA AR dumping function so we can debug text mode problems too.
2007-10-22 14:22:37 -07:00
Eric Anholt 64b943c79c Add #if 0-ed fence debugging code. It's noisy, and of little use to most. 2007-08-10 17:42:22 -07:00
Keith Packard 16bfcb8042 Decode PLL registers in LVDS mode a bit better in debug code.
LVDS mode changes how the PLL works in fairly dramatic ways; the debug code
wasn't properly accounting for those differences resulting in fairly bogus
debug output.
2007-06-28 15:27:56 -07:00
Wang Zhenyu 3bbf313ba5 Fix left G33 issues
Be sure to check G33 chip type in:
- sdvo output
- Y-major tile
- crt detect
- and xaa composite
Sorry for that I should have fixed them very earlier...
2007-06-19 09:36:35 +08:00
Eric Anholt 51612e5ac3 On hang, dump up to the head pointer, not just up to the tail. 2007-06-12 16:09:54 -07:00
Keith Packard 2df87256df Dump pending ring on crash.
When the hardware locks up, dump the pending commands in the ring for
analysis.
2007-05-23 20:47:52 -07:00
Eric Anholt 1fc630f24f Add DVO[ABC] register debugging. 2007-05-02 14:31:56 -07:00
Eric Anholt 223944878c Attempt to fix single/dual-channel issues on i9xx LVDS panels.
- Use the existing single/dual-channel state when available, as changing it
  doesn't appear to work out.
- Set the power state of the CLKB and B0-B3 pairs according to whether
  choose to go dual-channel or not.
- Restore the LVDS register at the appropriate point (before DPLLs are
  re-programmed.
2007-03-20 14:33:53 -07:00
Eric Anholt 3ce802414a Add debug output for ADPA. 2007-03-19 11:35:11 -07:00
Eric Anholt 66fdb08c83 Refine the i855 LVDS clock code. In particular, p2 is always 14.
This gets correct clocks detected on most harware.  The SSC is always assumed
to be 66Mhz, which may not be true, but we'll fix that when we find example
hardware.
2007-03-13 17:07:10 -07:00
Eric Anholt 1f5d1666c8 Add a non-installed command line tool using libpciaccess to dump registers.
This reuses the i830_debug.c code, so we can run that from the console or from
the BIOS-based X server to debug some remaining issues.
2007-02-28 16:27:55 -08:00
Eric Anholt cd1d4b398e Many fixes to mode_get, mode_set, clock limits, and register dumps on i855.
This should fix a number of issues with i855s, particularly with integrated
LVDS panels.
2007-02-28 10:10:03 -08:00
Eric Anholt 6e33c4c440 Print the correct meaning of bit 30 of pipeconf for 965 in debug output. 2007-02-15 10:27:27 -08:00
Eric Anholt 1ba45a3fcd Improve register debugging output.
This includes not reporting some fields on hardware where those bits are
reserved, correcting one of the hardware error bit numbers, and reducing
the severity of the debugging output warnings.
2007-02-01 13:26:38 -08:00
Keith Packard 237847007a Make driver build and run on Xorg 7.1. Delay DSP*BASE setting until last.
Autodetect libdrm version, disable new memory manager on older libraries.
Move new M_T_ defines from i830.h to i830_xf86Crtc.h. Add many system
headers to define functions. Use i830PipeSetBase at end of mode setting
code to set DSP*BASE and flush changes. Don't duplicate PipeSetBase call
from screen init function. Make initial RandR configuration code usable on
older versions of extension so the server doesn't start in a panning mode.
Use xfree instead of free in i830_tv.c.
2007-01-02 00:09:35 -08:00
Eric Anholt ec45d72743 Extend the error state reporting to cover ESR and decode PGTBL_ERR for 945. 2006-12-12 14:55:10 -08:00
Eric Anholt 838af10b85 Move PrintErrorState and CheckInheritedErrors code to i830_debug.c. 2006-12-12 14:55:10 -08:00
Eric Anholt 91a538bead More debugging output for SDVO. 2006-12-12 14:55:10 -08:00
Keith Packard 5d345c13a9 Clean up SDVO multiplier debug output 2006-12-06 13:19:58 -08:00
Keith Packard 6ee63364f5 Merge branch 'modesetting' into nonrandr-setup
Also, fix buffer overflow in i830_debug.c
2006-12-06 12:53:22 -08:00
Eric Anholt b75ecdb483 Merge branch 'generic-mode-set' into modesetting 2006-12-06 11:59:33 -08:00
Eric Anholt 727bf1cbf7 Add missing newlines to new debug output. 2006-12-06 10:12:49 -08:00
Keith Packard a736496114 Capture VGA registers sooner so checks are more informative 2006-12-05 19:47:04 -08:00
Eric Anholt 1d94ec7de3 Fix ordering of PIPE[AB]SRC debug output to be (x, y). 2006-12-05 18:22:59 -08:00
Eric Anholt 0b4c3e7bff Add a bunch of per-register debug code to i830DumpRegs(). 2006-12-05 15:03:48 -08:00
Eric Anholt 5f38bc3e2a Reduce the severity of many informational log messages. 2006-11-27 11:06:50 -08:00
Keith Packard 28224af3d9 Preliminary 945 TV output. Color key is broken. Fixed mode.
TV output is generating video with this patch, but the color burst
signal is incorrect somehow.
2006-11-19 00:40:46 -08:00
Eric Anholt a9eac38bcd Remove duplicated register defs that were just added. 2006-11-02 13:24:54 -08:00
Keith Packard 2636d68663 Dump more registers for debug purposes 2006-11-02 11:57:11 -08:00
Eric Anholt 2b9c87bbf8 Remove xf86_ansic.h usage. 2006-09-08 11:16:02 -07:00
Eric Anholt 7104b915da Clean up warnings. 2006-06-26 15:11:13 +02:00
Keith Packard 34f6a8204f Get sDVO output working on mac mini.
Add lots of register debugging to track delta from BIOS settings.
Fix various mode settings to mirror BIOS sDVO values.
Disable analog/lvds output on pipe with sDVO.
Borrow Dave Airlie's I830xf86ValidateDDCModes code.
Fix various sDVO I2C messages to mirror Dave's code.
2006-06-04 00:15:06 -07:00
Eric Anholt 185b525141 Add missing MIT copyright licenses, which should have been on all versions. 2006-04-10 20:25:13 -07:00
Eric Anholt 5215e19af5 Add some register information for VGACNTRL, and do the reg-debug thing on it. 2006-04-06 15:58:45 -07:00
Eric Anholt 02341aa68c Make the reg-snapshot code work, add a couple more registers, and use it on VT
switching to hopefully help point out where we aren't restoring enough.
Currently doesn't reveal anything.
2006-04-06 15:58:20 -07:00
Eric Anholt 12ce799818 Add some untested debugging code to for helping figure out VT switch issues. 2006-04-06 15:58:00 -07:00