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
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