Maarten Maathuis [Sun, 25 Nov 2007 17:15:27 +0000 (18:15 +0100)]
randr12: Convert premultiplied alpha cursors to normal alpha cursors.
Maarten Maathuis [Sun, 25 Nov 2007 15:49:01 +0000 (16:49 +0100)]
randr12: Fix alpha cursor corruption.
Maarten Maathuis [Sun, 25 Nov 2007 13:15:30 +0000 (14:15 +0100)]
randr12: alpha cursors don't need background changes.
Maarten Maathuis [Sun, 25 Nov 2007 12:06:10 +0000 (13:06 +0100)]
Reindent a few cursor functions.
Maarten Maathuis [Sun, 25 Nov 2007 02:20:43 +0000 (03:20 +0100)]
randr12: Improve TMDS and LVDS registers (and enable for LVDS).
Maarten Maathuis [Sun, 25 Nov 2007 00:31:39 +0000 (01:31 +0100)]
randr12: Optimize tmds_regs a little bit.
Stuart Bennett [Sat, 24 Nov 2007 21:51:14 +0000 (21:51 +0000)]
randr12: use bus field to determine dvi pairs
Stuart Bennett [Sat, 24 Nov 2007 20:44:27 +0000 (20:44 +0000)]
Remove a load of unnecessary casts, and reorder functions by opcode
Plus a micro opt to checksum thing
Stuart Bennett [Sat, 24 Nov 2007 20:25:13 +0000 (20:25 +0000)]
A bunch more cleaned up bios opcodes
Thanks to stillunknown for the bios trace
Maarten Maathuis [Sat, 24 Nov 2007 15:22:04 +0000 (16:22 +0100)]
randr12: Be more considerate of outputs that can only work on ramdac 1.
Maarten Maathuis [Sat, 24 Nov 2007 14:47:04 +0000 (15:47 +0100)]
randr12: The result of another refinement of dvi crosswiring.
Maarten Maathuis [Sat, 24 Nov 2007 12:12:49 +0000 (13:12 +0100)]
randr12: Disable crt_load_detect for ramdac 1 and set some better valued for test_control.
Maarten Maathuis [Fri, 23 Nov 2007 22:12:53 +0000 (23:12 +0100)]
randr12: add bit30 to vpll register for nv4x cards
- This seems the most common situation, any idea what the bits do?
Patrice Mandin [Fri, 23 Nov 2007 21:25:47 +0000 (22:25 +0100)]
nv30: missing command
Patrice Mandin [Fri, 23 Nov 2007 21:25:06 +0000 (22:25 +0100)]
nv30: another reference to an object
Patrice Mandin [Fri, 23 Nov 2007 21:24:19 +0000 (22:24 +0100)]
nv30: rename viewport clip
Patrice Mandin [Fri, 23 Nov 2007 21:03:21 +0000 (22:03 +0100)]
nv30: was not using gart handle
Maarten Maathuis [Fri, 23 Nov 2007 20:08:46 +0000 (21:08 +0100)]
randr12: Reenable a properly working crt load detect.
Maarten Maathuis [Fri, 23 Nov 2007 17:58:49 +0000 (18:58 +0100)]
randr12: Remove some unneeded stuff.
Maarten Maathuis [Fri, 23 Nov 2007 16:32:12 +0000 (17:32 +0100)]
randr12: fix comment typo
Maarten Maathuis [Fri, 23 Nov 2007 15:40:02 +0000 (16:40 +0100)]
randr12: Allow arbitrary ramdac and crtc combinations.
- Support for the misterious ramdac 2 still has to be reverse engineered.
Maarten Maathuis [Fri, 23 Nov 2007 12:25:38 +0000 (13:25 +0100)]
randr12: Move a lot of registers from output to crtc.
Maarten Maathuis [Fri, 23 Nov 2007 09:32:08 +0000 (10:32 +0100)]
randr12: There was more logic to sel_clk than previously thought.
Maarten Maathuis [Thu, 22 Nov 2007 21:18:47 +0000 (22:18 +0100)]
randr12: revert to old vpll regs on nv4x cards, because the others can't be written
- If anyone knows the bit to allow those registers to be written, then please tell.
- This also fixes db1 vclk ratio issues, hopefully.
Stuart Bennett [Thu, 22 Nov 2007 00:30:29 +0000 (00:30 +0000)]
Bios CRTC head chosing fixed
Also, a slightly tighter limit on values for or, as I don't currently think
bit 4 being set makes any sense
Stuart Bennett [Wed, 21 Nov 2007 20:02:17 +0000 (20:02 +0000)]
randr12: unbreak LVDS console restore by reverting tmds_regs change
Stuart Bennett [Tue, 20 Nov 2007 19:02:17 +0000 (19:02 +0000)]
Complete init_index_addr_latched opcode
Stuart Bennett [Wed, 21 Nov 2007 01:58:12 +0000 (01:58 +0000)]
More DCB entry output, and a default for DCB 1.4
The table seems to be the same for all DCB 1.4 biosen I've seen, and
POST seems to make no effort to parse it. I wonder if it is in fact used at all
Maarten Maathuis [Tue, 20 Nov 2007 19:41:38 +0000 (20:41 +0100)]
randr12: better guess for ramdac register 670 (nv44 and up)
Maarten Maathuis [Tue, 20 Nov 2007 18:55:15 +0000 (19:55 +0100)]
randr12: fix serious bug in vclk calculator for nv4x cards.
Maarten Maathuis [Tue, 20 Nov 2007 17:49:39 +0000 (18:49 +0100)]
randr12: Fix a small mistake that could cause blank screens for NV44 and up.
Maarten Maathuis [Tue, 20 Nov 2007 11:56:28 +0000 (12:56 +0100)]
randr12: I hope i really fixed db1 vclk ratio this time (for nv4x).
Maarten Maathuis [Tue, 20 Nov 2007 11:44:25 +0000 (12:44 +0100)]
NV50: Make a small mistake.
Maarten Maathuis [Tue, 20 Nov 2007 11:25:21 +0000 (12:25 +0100)]
NV50: Some deobfuscation.
Maarten Maathuis [Tue, 20 Nov 2007 08:52:47 +0000 (09:52 +0100)]
randr12: Also enable DB1 vclk ratio if PLL_SELECT had it enabled.
Maarten Maathuis [Mon, 19 Nov 2007 22:55:58 +0000 (23:55 +0100)]
randr12: Proper support for db1 vclk ratio, thanks to Thunderbird for some info.
Maarten Maathuis [Mon, 19 Nov 2007 08:23:37 +0000 (09:23 +0100)]
randr12: Add a gamma_set hook.
Maarten Maathuis [Sun, 18 Nov 2007 21:03:03 +0000 (22:03 +0100)]
randr12: A first attempt at some lvds programming, not hooked up.
- This is a start for someone with a laptop to test and refine.
Benjamin Herrenschmidt [Sun, 18 Nov 2007 01:50:33 +0000 (02:50 +0100)]
Enable IFC uploads.
Maarten Maathuis [Sat, 17 Nov 2007 23:15:34 +0000 (00:15 +0100)]
randr12: Final commit, switch to nv40 native vclk regs.
- I've also seperated the save load pll functions, to improve clarity.
Maarten Maathuis [Sat, 17 Nov 2007 22:47:12 +0000 (23:47 +0100)]
randr12: Intermediate commit (using the native nv40 vpll regs).
Maarten Maathuis [Sat, 17 Nov 2007 19:08:27 +0000 (20:08 +0100)]
randr12: Some comment fixes.
Maarten Maathuis [Sat, 17 Nov 2007 21:23:32 +0000 (22:23 +0100)]
randr12: Reinstate m-divider limitations.
Maarten Maathuis [Sat, 17 Nov 2007 17:36:24 +0000 (18:36 +0100)]
randr12: Some minor changes.
Maarten Maathuis [Sat, 17 Nov 2007 14:57:20 +0000 (15:57 +0100)]
randr12: Change vpll handling, note that it still is a work in progress.
Ben Skeggs [Sat, 17 Nov 2007 09:59:25 +0000 (20:59 +1100)]
EXA 1.4 pixmap hooks (disabled)
Really, you don't want to turn this on yet... :)
Ben Skeggs [Sat, 17 Nov 2007 06:17:34 +0000 (17:17 +1100)]
Add a user callback for when a channel hang is detected.
Ben Skeggs [Sat, 17 Nov 2007 06:02:23 +0000 (17:02 +1100)]
Use handles from grobj, instead of hardcoded vals from nv_dma.h
Ben Skeggs [Sat, 17 Nov 2007 05:43:05 +0000 (16:43 +1100)]
Turn vram/fb handles into "real" grobjs.
Stephane Marchesin [Sat, 17 Nov 2007 00:22:31 +0000 (01:22 +0100)]
Put back memory barrier and write posting.
Stephane Marchesin [Fri, 16 Nov 2007 22:38:49 +0000 (23:38 +0100)]
Add verbose debugging code to help with fixing push buffer issues.
Stephane Marchesin [Fri, 16 Nov 2007 22:37:10 +0000 (23:37 +0100)]
Oops. Correct either the header or the packet but not both.
Stephane Marchesin [Fri, 16 Nov 2007 22:32:07 +0000 (23:32 +0100)]
Unmatched OUT_RING(0).
Stephane Marchesin [Fri, 16 Nov 2007 20:59:53 +0000 (21:59 +0100)]
fix typo.
Stephane Marchesin [Fri, 16 Nov 2007 20:56:14 +0000 (21:56 +0100)]
fix 32/64 bit ism.
Maarten Maathuis [Fri, 16 Nov 2007 20:29:20 +0000 (21:29 +0100)]
randr12: Minor change.
Maarten Maathuis [Fri, 16 Nov 2007 18:19:23 +0000 (19:19 +0100)]
randr12: That wasn't supposed to end up there ;-)
Maarten Maathuis [Fri, 16 Nov 2007 18:16:08 +0000 (19:16 +0100)]
randr12: Disable changing ramdac reg580, until i know why this causes issues.
Ben Skeggs [Sat, 17 Nov 2007 04:31:49 +0000 (15:31 +1100)]
nouveau: fix valgrind complaint
Maarten Maathuis [Fri, 16 Nov 2007 16:00:59 +0000 (17:00 +0100)]
randr12: Restore old timings + misc changes.
Ben Skeggs [Fri, 16 Nov 2007 22:08:03 +0000 (09:08 +1100)]
oops, forgot these...
Ben Skeggs [Fri, 16 Nov 2007 20:23:41 +0000 (07:23 +1100)]
Initial hacky relocation stuff.
Entire DDX ported across to OUT_RELOCx/OUT_PIXMAPx, workable in it's current
state for the current BO backend.. definitely not for TTM yet :)
Ben Skeggs [Fri, 16 Nov 2007 19:11:01 +0000 (06:11 +1100)]
Initial buffer object work.
Implemented on top of the current MM interface, and currently used in the
exact same way NVAllocate/FreeMemory was used. Can transition to something
more ttm-friendly gradually.
The "old mm" bo backend is extremely primitive. Buffers can only be created
in mappable memory, forcibly pinned, and never moved once they're created.
Some of these things could be improved, but probably not much point.
Ben Skeggs [Fri, 16 Nov 2007 16:36:04 +0000 (03:36 +1100)]
Report engine hangs again, instead of spinning forever.
Ben Skeggs [Thu, 15 Nov 2007 22:18:33 +0000 (09:18 +1100)]
Hook up DMA funcs to channels/grobjs etc etc
Ben Skeggs [Thu, 15 Nov 2007 20:08:23 +0000 (07:08 +1100)]
notifiers..
Lacking timeouts at the moment so if X would've crashed before, it'll spin
forever now.
Ben Skeggs [Thu, 15 Nov 2007 19:07:56 +0000 (06:07 +1100)]
And grobjs.
Ben Skeggs [Thu, 15 Nov 2007 18:10:58 +0000 (05:10 +1100)]
And channels..
Ben Skeggs [Thu, 15 Nov 2007 17:36:08 +0000 (04:36 +1100)]
Implement nouveau_device struct.
Stuart Bennett [Fri, 16 Nov 2007 03:26:56 +0000 (03:26 +0000)]
Begone, foul g5-bios-hack
also, fix the DCB termination test; I'm amazed nothing broke
Maarten Maathuis [Thu, 15 Nov 2007 18:33:13 +0000 (19:33 +0100)]
randr12: Only NV4x have two seperate PVIO ranges.
Maarten Maathuis [Thu, 15 Nov 2007 18:27:12 +0000 (19:27 +0100)]
randr12: Improved values for FP_CONTROL register.
Maarten Maathuis [Thu, 15 Nov 2007 17:44:52 +0000 (18:44 +0100)]
randr12: Some minor register changes.
Arthur Huillet [Thu, 15 Nov 2007 14:01:47 +0000 (15:01 +0100)]
NV10 EXA: removed left out debug statement
Arthur Huillet [Thu, 15 Nov 2007 11:57:20 +0000 (12:57 +0100)]
NV1x EXA : refactored A8 + A8 code, enabled on NV2x, fix A8 txfmt for NV2x
more compact and more readable A8 + A8 code along with some codestyle fixes
now enabling this acceleration on NV2x cards, with the A8 format value hack
Ben Skeggs [Thu, 15 Nov 2007 16:28:45 +0000 (03:28 +1100)]
nouveau: fix a host of warnings
Stuart Bennett [Thu, 15 Nov 2007 02:09:45 +0000 (02:09 +0000)]
Big endian bios fix
Patrice Mandin [Wed, 14 Nov 2007 22:03:06 +0000 (23:03 +0100)]
nv30exa: set link with image blit
Stuart Bennett [Wed, 14 Nov 2007 19:02:28 +0000 (19:02 +0000)]
nv_bios indentation
Stuart Bennett [Wed, 14 Nov 2007 18:47:40 +0000 (18:47 +0000)]
More code and logging beautification - wrap I/O better
Plus some actual fixes
Stuart Bennett [Wed, 14 Nov 2007 19:07:06 +0000 (19:07 +0000)]
IO flag conditions, beginnings of init_idx_addr_latched
plus usual whitespace and pointless renaming
Stuart Bennett [Wed, 14 Nov 2007 03:01:27 +0000 (03:01 +0000)]
More opcodes, and some monstrous reindenting
all part of an evil plan to have the most lines in the Xorg log
Stuart Bennett [Wed, 14 Nov 2007 00:36:02 +0000 (00:36 +0000)]
Updating some BIOS parser opcodes
plus various debug / whitespace fixes
Stuart Bennett [Wed, 14 Nov 2007 19:27:06 +0000 (19:27 +0000)]
randr12: More DCB abstraction to lessen parsing nastiness for old versions
Stuart Bennett [Tue, 13 Nov 2007 18:24:46 +0000 (18:24 +0000)]
Gratuitous code renaming, moving + warning fixes for bios
Maarten Maathuis [Wed, 14 Nov 2007 21:30:11 +0000 (22:30 +0100)]
randr12: Reinstate the "magic factor" until a better solution comes along.
Arthur Huillet [Wed, 14 Nov 2007 19:54:24 +0000 (20:54 +0100)]
NV1x EXA : implemented A8 + A8 via a dirty hack
it works, but probably needs to be optimized
Maarten Maathuis [Wed, 14 Nov 2007 18:48:53 +0000 (19:48 +0100)]
randr12: Disable ramdac register 0x900, until i know for certain what it does.
Maarten Maathuis [Wed, 14 Nov 2007 15:02:56 +0000 (16:02 +0100)]
randr12: fix comment typo
Maarten Maathuis [Wed, 14 Nov 2007 07:34:44 +0000 (08:34 +0100)]
randr12: Enable all pll on pre-nv40 and improve usage of ramdac_670 register.
Maarten Maathuis [Tue, 13 Nov 2007 20:46:23 +0000 (21:46 +0100)]
Stephane Marchesin [Tue, 13 Nov 2007 20:36:13 +0000 (21:36 +0100)]
Don't use GART on PPC. Workaround DMA bugs there.
Stephane Marchesin [Tue, 13 Nov 2007 19:58:51 +0000 (20:58 +0100)]
Remove ENABLE_NV30EXA, which is not needed any more.
Stephane Marchesin [Tue, 13 Nov 2007 19:54:53 +0000 (20:54 +0100)]
Enable nv30 exa on PPC.
Stephane Marchesin [Tue, 13 Nov 2007 19:53:58 +0000 (20:53 +0100)]
Fix nv30 exa for big endian
Maarten Maathuis [Tue, 13 Nov 2007 18:43:41 +0000 (19:43 +0100)]
randr12: Set a few new registers + misc fixes.
Stuart Bennett [Mon, 12 Nov 2007 19:24:34 +0000 (19:24 +0000)]
Some type / warning fixes for nv_bios.c
Stuart Bennett [Sun, 11 Nov 2007 17:50:55 +0000 (17:50 +0000)]
Misc bios parsing bits
Patrice Mandin [Mon, 12 Nov 2007 22:54:22 +0000 (23:54 +0100)]
Remove disable switches, big cleanup, requires xorgs server 1.3 again
Maarten Maathuis [Mon, 12 Nov 2007 20:05:00 +0000 (21:05 +0100)]
randr12: Improve vclk setting.
- It now considers crosswired TMDS situations.