Commit Graph

72 Commits

Author SHA1 Message Date
Eric Anholt e0aba04da0 Add DCC register dumping. 2009-03-13 16:15:44 -07:00
Eric Anholt a57814cc13 Add dumping of 915 and 945 fence registers.
The debug dumper functions can now return NULL to indicate no output, so
we get appropriate results on 915, 945, and 965.
2009-03-13 16:15:44 -07:00
Eric Anholt 8166a7ff5c Add PGETBL_CTL to the debug output.
It's nice to know when it gets stomped on.
2009-03-13 16:15:44 -07:00
Eric Anholt 73b7190421 intel: Nuke shared-entity support (zaphod mode).
It's been broken for years now, and KMS offers a much better chance of getting
this working sensibly without making a mess of the 2D driver.
2009-03-06 13:26:10 -08:00
Shaohua Li f53bdad141 Intel video driver patch
This is the intel video driver patch for a new chip, which is G33-like
and has some clocking setting related register changes. This patch adds
the pci id and DPLx/FPx register changes.

The gtt tool should just work to me, as the chip hasn't any changes
against G33 on this side.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-02-26 14:47:04 -08:00
Keith Packard 865735d840 Dump out fence registers by default, add fence end registers as well
In debugging the frame buffer resize code, I needed to see what the server
was doing to the fence registers, so I added this debug code. Seems useful
enough to include it.

Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-12 11:20:54 -08:00
Zhenyu Wang 80d588e9c4 Don't warn on ring enabled in GEM 2008-12-12 18:27:29 +08:00
Eric Anholt da63b5adec Add some MCHBAR registers for debugging tile swizzling issues. 2008-09-09 19:07:53 -07:00
Jesse Barnes ba4a4b7887 Add more panel debugging info to register dump & vbios reader 2008-08-20 14:39:34 -07:00
Keith Packard 59774e9aca Add UXA - the unified memory acceleration architecture.
This eliminates the cost of EXA migration management while providing full
pixmap allocation control to the driver. The goal is to make something
useful for UMA drivers.
2008-08-05 15:29:50 -07:00
Jesse Barnes 4f1f308542 Merge branch 'master' into drm-gem
Conflicts:

	src/i830_driver.c
2008-08-05 13:02:47 -07:00
Eric Anholt 3cbfc6c76b Fix uninitialized-use warning in i830_debug.c ring dumping. 2008-07-18 14:58:27 -07:00
Carl Worth a6ad50402c Merge branch 'master' into drm-gem
Conflicts:

	configure.ac
	src/reg_dumper/Makefile.am
2008-07-17 00:38:54 -07:00
Zhenyu Wang 0c67219d0e move FBC register dump out of display registers
This makes it easier to read.
2008-07-16 09:43:30 +08:00
Eric Anholt da58dc3b02 Add DisplayPort registers. 2008-06-19 15:01:34 -07:00
Eric Anholt 52a414d115 Remove VGA regs from debug output. 2008-06-19 15:01:34 -07:00
Eric Anholt 432d07fb17 Merge branch 'master' into drm-gem 2008-06-05 14:57:18 -07:00
Zhenyu Wang 740a73dad1 Revert "Add FIFO watermark regs to register dumper"
This reverts commit 0c00a638ef.

Those FIFO watermark regs are 945-ish, and cause problem
on G35.
2008-05-20 08:54:01 +08:00
Keith Packard c81050c005 Merge commit 'origin/master' into drm-gem 2008-05-17 23:26:14 -07:00
Jesse Barnes 0c00a638ef Add FIFO watermark regs to register dumper 2008-05-06 14:39:40 -07:00
Keith Packard 587dc5bfc4 Fix up ring dumping code for non-i965 2008-05-05 13:35:22 -07:00
Keith Packard 40e0a03af5 Dump batch buffers found from main ring 2008-04-21 01:03:22 -07:00
Keith Packard c8ae3b781f Add a bunch of 965 ring stuff to the debug dump 2008-04-20 02:11:28 -07:00
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