nouveau
16 years agorandr12: Convert premultiplied alpha cursors to normal alpha cursors.
Maarten Maathuis [Sun, 25 Nov 2007 17:15:27 +0000 (18:15 +0100)] 
randr12: Convert premultiplied alpha cursors to normal alpha cursors.

16 years agorandr12: Fix alpha cursor corruption.
Maarten Maathuis [Sun, 25 Nov 2007 15:49:01 +0000 (16:49 +0100)] 
randr12: Fix alpha cursor corruption.

16 years agorandr12: alpha cursors don't need background changes.
Maarten Maathuis [Sun, 25 Nov 2007 13:15:30 +0000 (14:15 +0100)] 
randr12: alpha cursors don't need background changes.

16 years agoReindent a few cursor functions.
Maarten Maathuis [Sun, 25 Nov 2007 12:06:10 +0000 (13:06 +0100)] 
Reindent a few cursor functions.

16 years agorandr12: Improve TMDS and LVDS registers (and enable for LVDS).
Maarten Maathuis [Sun, 25 Nov 2007 02:20:43 +0000 (03:20 +0100)] 
randr12: Improve TMDS and LVDS registers (and enable for LVDS).

16 years agorandr12: Optimize tmds_regs a little bit.
Maarten Maathuis [Sun, 25 Nov 2007 00:31:39 +0000 (01:31 +0100)] 
randr12: Optimize tmds_regs a little bit.

16 years agorandr12: use bus field to determine dvi pairs
Stuart Bennett [Sat, 24 Nov 2007 21:51:14 +0000 (21:51 +0000)] 
randr12: use bus field to determine dvi pairs

16 years agoRemove a load of unnecessary casts, and reorder functions by opcode
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

16 years agoA bunch more cleaned up bios opcodes
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

16 years agorandr12: Be more considerate of outputs that can only work on ramdac 1.
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.

16 years agorandr12: The result of another refinement of dvi crosswiring.
Maarten Maathuis [Sat, 24 Nov 2007 14:47:04 +0000 (15:47 +0100)] 
randr12: The result of another refinement of dvi crosswiring.

16 years agorandr12: Disable crt_load_detect for ramdac 1 and set some better valued for test_con...
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.

16 years agorandr12: add bit30 to vpll register for nv4x cards
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?

16 years agonv30: missing command
Patrice Mandin [Fri, 23 Nov 2007 21:25:47 +0000 (22:25 +0100)] 
nv30: missing command

16 years agonv30: another reference to an object
Patrice Mandin [Fri, 23 Nov 2007 21:25:06 +0000 (22:25 +0100)] 
nv30: another reference to an object

16 years agonv30: rename viewport clip
Patrice Mandin [Fri, 23 Nov 2007 21:24:19 +0000 (22:24 +0100)] 
nv30: rename viewport clip

16 years agonv30: was not using gart handle
Patrice Mandin [Fri, 23 Nov 2007 21:03:21 +0000 (22:03 +0100)] 
nv30: was not using gart handle

16 years agorandr12: Reenable a properly working crt load detect.
Maarten Maathuis [Fri, 23 Nov 2007 20:08:46 +0000 (21:08 +0100)] 
randr12: Reenable a properly working crt load detect.

16 years agorandr12: Remove some unneeded stuff.
Maarten Maathuis [Fri, 23 Nov 2007 17:58:49 +0000 (18:58 +0100)] 
randr12: Remove some unneeded stuff.

16 years agorandr12: fix comment typo
Maarten Maathuis [Fri, 23 Nov 2007 16:32:12 +0000 (17:32 +0100)] 
randr12: fix comment typo

16 years agorandr12: Allow arbitrary ramdac and crtc combinations.
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.

16 years agorandr12: Move a lot of registers from output to crtc.
Maarten Maathuis [Fri, 23 Nov 2007 12:25:38 +0000 (13:25 +0100)] 
randr12: Move a lot of registers from output to crtc.

16 years agorandr12: There was more logic to sel_clk than previously thought.
Maarten Maathuis [Fri, 23 Nov 2007 09:32:08 +0000 (10:32 +0100)] 
randr12: There was more logic to sel_clk than previously thought.

16 years agorandr12: revert to old vpll regs on nv4x cards, because the others can't be written
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.

16 years agoBios CRTC head chosing fixed
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

16 years agorandr12: unbreak LVDS console restore by reverting tmds_regs change
Stuart Bennett [Wed, 21 Nov 2007 20:02:17 +0000 (20:02 +0000)] 
randr12: unbreak LVDS console restore by reverting tmds_regs change

16 years agoComplete init_index_addr_latched opcode
Stuart Bennett [Tue, 20 Nov 2007 19:02:17 +0000 (19:02 +0000)] 
Complete init_index_addr_latched opcode

16 years agoMore DCB entry output, and a default for DCB 1.4
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

16 years agorandr12: better guess for ramdac register 670 (nv44 and up)
Maarten Maathuis [Tue, 20 Nov 2007 19:41:38 +0000 (20:41 +0100)] 
randr12: better guess for ramdac register 670 (nv44 and up)

16 years agorandr12: fix serious bug in vclk calculator for nv4x cards.
Maarten Maathuis [Tue, 20 Nov 2007 18:55:15 +0000 (19:55 +0100)] 
randr12: fix serious bug in vclk calculator for nv4x cards.

16 years agorandr12: Fix a small mistake that could cause blank screens for NV44 and up.
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.

16 years agorandr12: I hope i really fixed db1 vclk ratio this time (for nv4x).
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).

16 years agoNV50: Make a small mistake.
Maarten Maathuis [Tue, 20 Nov 2007 11:44:25 +0000 (12:44 +0100)] 
NV50: Make a small mistake.

16 years agoNV50: Some deobfuscation.
Maarten Maathuis [Tue, 20 Nov 2007 11:25:21 +0000 (12:25 +0100)] 
NV50: Some deobfuscation.

16 years agorandr12: Also enable DB1 vclk ratio if PLL_SELECT had it enabled.
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.

16 years agorandr12: Proper support for db1 vclk ratio, thanks to Thunderbird for some info.
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.

16 years agorandr12: Add a gamma_set hook.
Maarten Maathuis [Mon, 19 Nov 2007 08:23:37 +0000 (09:23 +0100)] 
randr12: Add a gamma_set hook.

16 years agorandr12: A first attempt at some lvds programming, not hooked up.
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.

16 years agoEnable IFC uploads.
Benjamin Herrenschmidt [Sun, 18 Nov 2007 01:50:33 +0000 (02:50 +0100)] 
Enable IFC uploads.

16 years agorandr12: Final commit, switch to nv40 native vclk regs.
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.

16 years agorandr12: Intermediate commit (using the native nv40 vpll regs).
Maarten Maathuis [Sat, 17 Nov 2007 22:47:12 +0000 (23:47 +0100)] 
randr12: Intermediate commit (using the native nv40 vpll regs).

16 years agorandr12: Some comment fixes.
Maarten Maathuis [Sat, 17 Nov 2007 19:08:27 +0000 (20:08 +0100)] 
randr12: Some comment fixes.

16 years agorandr12: Reinstate m-divider limitations.
Maarten Maathuis [Sat, 17 Nov 2007 21:23:32 +0000 (22:23 +0100)] 
randr12: Reinstate m-divider limitations.

16 years agorandr12: Some minor changes.
Maarten Maathuis [Sat, 17 Nov 2007 17:36:24 +0000 (18:36 +0100)] 
randr12: Some minor changes.

16 years agorandr12: Change vpll handling, note that it still is a work in progress.
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.

16 years agoEXA 1.4 pixmap hooks (disabled)
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... :)

16 years agoAdd a user callback for when a channel hang is detected.
Ben Skeggs [Sat, 17 Nov 2007 06:17:34 +0000 (17:17 +1100)] 
Add a user callback for when a channel hang is detected.

16 years agoUse handles from grobj, instead of hardcoded vals from nv_dma.h
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

16 years agoTurn vram/fb handles into "real" grobjs.
Ben Skeggs [Sat, 17 Nov 2007 05:43:05 +0000 (16:43 +1100)] 
Turn vram/fb handles into "real" grobjs.

16 years agoPut back memory barrier and write posting.
Stephane Marchesin [Sat, 17 Nov 2007 00:22:31 +0000 (01:22 +0100)] 
Put back memory barrier and write posting.

16 years agoAdd verbose debugging code to help with fixing push buffer issues.
Stephane Marchesin [Fri, 16 Nov 2007 22:38:49 +0000 (23:38 +0100)] 
Add verbose debugging code to help with fixing push buffer issues.

16 years agoOops. Correct either the header or the packet but not both.
Stephane Marchesin [Fri, 16 Nov 2007 22:37:10 +0000 (23:37 +0100)] 
Oops. Correct either the header or the packet but not both.

16 years agoUnmatched OUT_RING(0).
Stephane Marchesin [Fri, 16 Nov 2007 22:32:07 +0000 (23:32 +0100)] 
Unmatched OUT_RING(0).

16 years agofix typo.
Stephane Marchesin [Fri, 16 Nov 2007 20:59:53 +0000 (21:59 +0100)] 
fix typo.

16 years agofix 32/64 bit ism.
Stephane Marchesin [Fri, 16 Nov 2007 20:56:14 +0000 (21:56 +0100)] 
fix 32/64 bit ism.

16 years agorandr12: Minor change.
Maarten Maathuis [Fri, 16 Nov 2007 20:29:20 +0000 (21:29 +0100)] 
randr12: Minor change.

16 years agorandr12: That wasn't supposed to end up there ;-)
Maarten Maathuis [Fri, 16 Nov 2007 18:19:23 +0000 (19:19 +0100)] 
randr12: That wasn't supposed to end up there ;-)

16 years agorandr12: Disable changing ramdac reg580, until i know why this causes issues.
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.

16 years agonouveau: fix valgrind complaint
Ben Skeggs [Sat, 17 Nov 2007 04:31:49 +0000 (15:31 +1100)] 
nouveau: fix valgrind complaint

16 years agorandr12: Restore old timings + misc changes.
Maarten Maathuis [Fri, 16 Nov 2007 16:00:59 +0000 (17:00 +0100)] 
randr12: Restore old timings + misc changes.

16 years agooops, forgot these...
Ben Skeggs [Fri, 16 Nov 2007 22:08:03 +0000 (09:08 +1100)] 
oops, forgot these...

16 years agoInitial hacky relocation stuff.
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 :)

16 years agoInitial buffer object work.
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.

16 years agoReport engine hangs again, instead of spinning forever.
Ben Skeggs [Fri, 16 Nov 2007 16:36:04 +0000 (03:36 +1100)] 
Report engine hangs again, instead of spinning forever.

16 years agoHook up DMA funcs to channels/grobjs etc etc
Ben Skeggs [Thu, 15 Nov 2007 22:18:33 +0000 (09:18 +1100)] 
Hook up DMA funcs to channels/grobjs etc etc

16 years agonotifiers..
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.

16 years agoAnd grobjs.
Ben Skeggs [Thu, 15 Nov 2007 19:07:56 +0000 (06:07 +1100)] 
And grobjs.

16 years agoAnd channels..
Ben Skeggs [Thu, 15 Nov 2007 18:10:58 +0000 (05:10 +1100)] 
And channels..

16 years agoImplement nouveau_device struct.
Ben Skeggs [Thu, 15 Nov 2007 17:36:08 +0000 (04:36 +1100)] 
Implement nouveau_device struct.

16 years agoBegone, foul g5-bios-hack
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

16 years agorandr12: Only NV4x have two seperate PVIO ranges.
Maarten Maathuis [Thu, 15 Nov 2007 18:33:13 +0000 (19:33 +0100)] 
randr12: Only NV4x have two seperate PVIO ranges.

16 years agorandr12: Improved values for FP_CONTROL register.
Maarten Maathuis [Thu, 15 Nov 2007 18:27:12 +0000 (19:27 +0100)] 
randr12: Improved values for FP_CONTROL register.

16 years agorandr12: Some minor register changes.
Maarten Maathuis [Thu, 15 Nov 2007 17:44:52 +0000 (18:44 +0100)] 
randr12: Some minor register changes.

16 years agoNV10 EXA: removed left out debug statement
Arthur Huillet [Thu, 15 Nov 2007 14:01:47 +0000 (15:01 +0100)] 
NV10 EXA: removed left out debug statement

16 years agoNV1x EXA : refactored A8 + A8 code, enabled on NV2x, fix A8 txfmt for NV2x
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

16 years agonouveau: fix a host of warnings
Ben Skeggs [Thu, 15 Nov 2007 16:28:45 +0000 (03:28 +1100)] 
nouveau: fix a host of warnings

16 years agoBig endian bios fix
Stuart Bennett [Thu, 15 Nov 2007 02:09:45 +0000 (02:09 +0000)] 
Big endian bios fix

16 years agonv30exa: set link with image blit
Patrice Mandin [Wed, 14 Nov 2007 22:03:06 +0000 (23:03 +0100)] 
nv30exa: set link with image blit

16 years agonv_bios indentation
Stuart Bennett [Wed, 14 Nov 2007 19:02:28 +0000 (19:02 +0000)] 
nv_bios indentation

16 years agoMore code and logging beautification - wrap I/O better
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

16 years agoIO flag conditions, beginnings of init_idx_addr_latched
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

16 years agoMore opcodes, and some monstrous reindenting
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

16 years agoUpdating some BIOS parser opcodes
Stuart Bennett [Wed, 14 Nov 2007 00:36:02 +0000 (00:36 +0000)] 
Updating some BIOS parser opcodes

plus various debug / whitespace fixes

16 years agorandr12: More DCB abstraction to lessen parsing nastiness for old versions
Stuart Bennett [Wed, 14 Nov 2007 19:27:06 +0000 (19:27 +0000)] 
randr12: More DCB abstraction to lessen parsing nastiness for old versions

16 years agoGratuitous code renaming, moving + warning fixes for bios
Stuart Bennett [Tue, 13 Nov 2007 18:24:46 +0000 (18:24 +0000)] 
Gratuitous code renaming, moving + warning fixes for bios

16 years agorandr12: Reinstate the "magic factor" until a better solution comes along.
Maarten Maathuis [Wed, 14 Nov 2007 21:30:11 +0000 (22:30 +0100)] 
randr12: Reinstate the "magic factor" until a better solution comes along.

16 years agoNV1x EXA : implemented A8 + A8 via a dirty hack
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

16 years agorandr12: Disable ramdac register 0x900, until i know for certain what it does.
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.

16 years agorandr12: fix comment typo
Maarten Maathuis [Wed, 14 Nov 2007 15:02:56 +0000 (16:02 +0100)] 
randr12: fix comment typo

16 years agorandr12: Enable all pll on pre-nv40 and improve usage of ramdac_670 register.
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.

16 years agoNV50: fix stupid type from commit d5dfb82f7f39304eb39dd4b1c34a2a2801d90a25
Maarten Maathuis [Tue, 13 Nov 2007 20:46:23 +0000 (21:46 +0100)] 
NV50: fix stupid type from commit d5dfb82f7f39304eb39dd4b1c34a2a2801d90a25

16 years agoDon't use GART on PPC. Workaround DMA bugs there.
Stephane Marchesin [Tue, 13 Nov 2007 20:36:13 +0000 (21:36 +0100)] 
Don't use GART on PPC. Workaround DMA bugs there.

16 years agoRemove ENABLE_NV30EXA, which is not needed any more.
Stephane Marchesin [Tue, 13 Nov 2007 19:58:51 +0000 (20:58 +0100)] 
Remove ENABLE_NV30EXA, which is not needed any more.

16 years agoEnable nv30 exa on PPC.
Stephane Marchesin [Tue, 13 Nov 2007 19:54:53 +0000 (20:54 +0100)] 
Enable nv30 exa on PPC.

16 years agoFix nv30 exa for big endian
Stephane Marchesin [Tue, 13 Nov 2007 19:53:58 +0000 (20:53 +0100)] 
Fix nv30 exa for big endian

16 years agorandr12: Set a few new registers + misc fixes.
Maarten Maathuis [Tue, 13 Nov 2007 18:43:41 +0000 (19:43 +0100)] 
randr12: Set a few new registers + misc fixes.

16 years agoSome type / warning fixes for nv_bios.c
Stuart Bennett [Mon, 12 Nov 2007 19:24:34 +0000 (19:24 +0000)] 
Some type / warning fixes for nv_bios.c

16 years agoMisc bios parsing bits
Stuart Bennett [Sun, 11 Nov 2007 17:50:55 +0000 (17:50 +0000)] 
Misc bios parsing bits

16 years agoRemove disable switches, big cleanup, requires xorgs server 1.3 again
Patrice Mandin [Mon, 12 Nov 2007 22:54:22 +0000 (23:54 +0100)] 
Remove disable switches, big cleanup, requires xorgs server 1.3 again

16 years agorandr12: Improve vclk setting.
Maarten Maathuis [Mon, 12 Nov 2007 20:05:00 +0000 (21:05 +0100)] 
randr12: Improve vclk setting.

- It now considers crosswired TMDS situations.