nouveau
16 years agorandr12: init some more Xv state
Stuart Bennett [Sun, 20 Jan 2008 14:47:52 +0000 (14:47 +0000)] 
randr12: init some more Xv state

16 years agominor debug correction
Stuart Bennett [Sat, 19 Jan 2008 14:02:43 +0000 (14:02 +0000)] 
minor debug correction

16 years agoINIT_8E opcode
Stuart Bennett [Sun, 20 Jan 2008 01:56:00 +0000 (01:56 +0000)] 
INIT_8E opcode

again, from pq's trace

16 years agoINIT_IO opcode
Stuart Bennett [Sat, 19 Jan 2008 01:37:34 +0000 (01:37 +0000)] 
INIT_IO opcode

Based on pq's g8x trace

16 years agorandr12: hide cursor before locking + misc cleanup.
Maarten Maathuis [Sat, 19 Jan 2008 18:24:04 +0000 (19:24 +0100)] 
randr12: hide cursor before locking + misc cleanup.

16 years agorandr12: Remove unneeded vgahw stuff.
Maarten Maathuis [Sat, 19 Jan 2008 15:39:26 +0000 (16:39 +0100)] 
randr12: Remove unneeded vgahw stuff.

16 years agorandr12: Move away from some of the nv_hw wrappers.
Maarten Maathuis [Sat, 19 Jan 2008 15:29:57 +0000 (16:29 +0100)] 
randr12: Move away from some of the nv_hw wrappers.

16 years agorandr12: Remove usage of nvRead/WriteVGA0/1.
Maarten Maathuis [Sat, 19 Jan 2008 14:59:48 +0000 (15:59 +0100)] 
randr12: Remove usage of nvRead/WriteVGA0/1.

16 years agorandr12: Some cleanup.
Maarten Maathuis [Sat, 19 Jan 2008 10:28:41 +0000 (11:28 +0100)] 
randr12: Some cleanup.

- framebuffer consoles can use most of the normal stuff, so change it back.
- some cursor deobfuscation

16 years agoMore detailed modesetting debug (both randr12 and oldstyle)
Stuart Bennett [Fri, 18 Jan 2008 20:49:58 +0000 (20:49 +0000)] 
More detailed modesetting debug (both randr12 and oldstyle)

16 years agoRemove no longer needed panel quirk
Stuart Bennett [Fri, 18 Jan 2008 18:10:40 +0000 (18:10 +0000)] 
Remove no longer needed panel quirk

16 years agoUse bios PLL functions on nv4x
Stuart Bennett [Fri, 18 Jan 2008 17:02:32 +0000 (17:02 +0000)] 
Use bios PLL functions on nv4x

And a minor completeness correction

16 years agorandr12: Refine CR4B, anyone know what this does?
Maarten Maathuis [Fri, 18 Jan 2008 22:45:51 +0000 (23:45 +0100)] 
randr12: Refine CR4B, anyone know what this does?

- There is more to this register.

16 years agoRerefactor getting pll limits for nv4x
Stuart Bennett [Fri, 18 Jan 2008 16:50:50 +0000 (16:50 +0000)] 
Rerefactor getting pll limits for nv4x

16 years agoUse pll limits infrastructure on single stage plls
Stuart Bennett [Fri, 18 Jan 2008 14:24:48 +0000 (14:24 +0000)] 
Use pll limits infrastructure on single stage plls

And add default PLL limits on old cards

16 years agoDon't speculate on the unknown limit field, and call the others log2p, not p
Stuart Bennett [Fri, 18 Jan 2008 01:47:05 +0000 (01:47 +0000)] 
Don't speculate on the unknown limit field, and call the others log2p, not p

16 years agoBetter setPLL_single
Stuart Bennett [Fri, 18 Jan 2008 01:18:42 +0000 (01:18 +0000)] 
Better setPLL_single

16 years agoBios parsing safety checks
Stuart Bennett [Fri, 18 Jan 2008 14:33:01 +0000 (14:33 +0000)] 
Bios parsing safety checks

16 years agoSome misc fixes.
Maarten Maathuis [Fri, 18 Jan 2008 11:17:50 +0000 (12:17 +0100)] 
Some misc fixes.

16 years agorandr12: Actually using SavedReg does tend to help ;-)
Maarten Maathuis [Fri, 18 Jan 2008 08:23:39 +0000 (09:23 +0100)] 
randr12: Actually using SavedReg does tend to help ;-)

16 years agorandr12: Fix a huge gaping hole in NewRestore.
Maarten Maathuis [Fri, 18 Jan 2008 08:13:24 +0000 (09:13 +0100)] 
randr12: Fix a huge gaping hole in NewRestore.

- Restore CR5758 in a better place and actually restore something proper (use SavedReg instead of ModeReg).
- Minor other fix.

16 years agoInvent a DVI-A output for the DVI-D output, on DCB1.4/1.5
Stuart Bennett [Thu, 17 Jan 2008 23:37:23 +0000 (23:37 +0000)] 
Invent a DVI-A output for the DVI-D output, on DCB1.4/1.5

16 years agoAnd another DCB 1.4 entry
Stuart Bennett [Thu, 17 Jan 2008 22:49:37 +0000 (22:49 +0000)] 
And another DCB 1.4 entry

16 years agorandr12: Forgot to clear a few state variables on restore.
Maarten Maathuis [Thu, 17 Jan 2008 21:25:12 +0000 (22:25 +0100)] 
randr12: Forgot to clear a few state variables on restore.

16 years agoAdd me
Stuart Bennett [Thu, 17 Jan 2008 20:48:16 +0000 (20:48 +0000)] 
Add me

16 years agoThat warning wasn't there a moment ago
Stuart Bennett [Thu, 17 Jan 2008 20:29:30 +0000 (20:29 +0000)] 
That warning wasn't there a moment ago

16 years agoFix for situations with fixed second stage gain and hook code in to init scripts
Stuart Bennett [Thu, 17 Jan 2008 17:07:24 +0000 (17:07 +0000)] 
Fix for situations with fixed second stage gain and hook code in to init scripts

And make sure bad PLL values are easily seen

16 years agoPLL limits reg off-by-four is dealt with elsewhere
Stuart Bennett [Thu, 17 Jan 2008 19:59:55 +0000 (19:59 +0000)] 
PLL limits reg off-by-four is dealt with elsewhere

Also some more imaginative pll limit member naming
and minor get_pll_limits debugging corrections

16 years agosetPLL for nv40 lowreg PLLs
Stuart Bennett [Thu, 17 Jan 2008 17:30:19 +0000 (17:30 +0000)] 
setPLL for nv40 lowreg PLLs

16 years agosetPLL for nv40 highreg PLLs
Stuart Bennett [Thu, 17 Jan 2008 17:30:36 +0000 (17:30 +0000)] 
setPLL for nv40 highreg PLLs

16 years agorandr12: Some misc fixes.
Maarten Maathuis [Thu, 17 Jan 2008 17:27:51 +0000 (18:27 +0100)] 
randr12: Some misc fixes.

16 years agoSome misc fixes, mostly related to setting the right crtc for overlay (randr12).
Maarten Maathuis [Wed, 16 Jan 2008 21:42:18 +0000 (22:42 +0100)] 
Some misc fixes, mostly related to setting the right crtc for overlay (randr12).

16 years agorandr12: Fix mode privates again, hopefully ;-)
Maarten Maathuis [Wed, 16 Jan 2008 07:03:51 +0000 (08:03 +0100)] 
randr12: Fix mode privates again, hopefully ;-)

16 years agoMinor reg adjustment
Stuart Bennett [Wed, 16 Jan 2008 00:25:08 +0000 (00:25 +0000)] 
Minor reg adjustment

16 years agoRefactor pll table parsing
Stuart Bennett [Tue, 15 Jan 2008 16:30:00 +0000 (16:30 +0000)] 
Refactor pll table parsing

And correct table reg matching on version 0x21 tables, which is off-by-4

16 years agoUse pll_lims in getMNP_double
Stuart Bennett [Tue, 15 Jan 2008 14:59:49 +0000 (14:59 +0000)] 
Use pll_lims in getMNP_double

Also move quirks elsewhere, and optimize

16 years agoStore PLL limit frequencies in kHz, since that's what we use them in
Stuart Bennett [Tue, 15 Jan 2008 15:14:46 +0000 (15:14 +0000)] 
Store PLL limit frequencies in kHz, since that's what we use them in

16 years agoTwo stage PLL limits parsing corrections
Stuart Bennett [Tue, 15 Jan 2008 01:32:25 +0000 (01:32 +0000)] 
Two stage PLL limits parsing corrections

And some corrections to getMNP_double

16 years agorandr12: Oh no! More pNv->twoHeads
Stuart Bennett [Tue, 15 Jan 2008 09:53:58 +0000 (09:53 +0000)] 
randr12: Oh no! More pNv->twoHeads

16 years agorandr12: PrivFlags are not so private, switch to a real mode Private.
Maarten Maathuis [Tue, 15 Jan 2008 20:05:08 +0000 (21:05 +0100)] 
randr12: PrivFlags are not so private, switch to a real mode Private.

- This hopefully fixes the obscure issues people have had these last few days.

16 years agoOrder the reg ranges, add some.
Stephane Marchesin [Tue, 15 Jan 2008 19:44:48 +0000 (20:44 +0100)] 
Order the reg ranges, add some.

16 years agonv30: set VIEWPORT_TX_ORIGIN to 0 for all cards, except real nv30
Patrice Mandin [Tue, 15 Jan 2008 17:45:30 +0000 (18:45 +0100)] 
nv30: set VIEWPORT_TX_ORIGIN to 0 for all cards, except real nv30

16 years agoNV30EXA: Chipset should be masked by 0xFFF0, switch to NVArch while i'm at it.
Maarten Maathuis [Tue, 15 Jan 2008 16:52:19 +0000 (17:52 +0100)] 
NV30EXA: Chipset should be masked by 0xFFF0, switch to NVArch while i'm at it.

16 years agorandr12: Reenable cvtmode.
Maarten Maathuis [Tue, 15 Jan 2008 07:10:46 +0000 (08:10 +0100)] 
randr12: Reenable cvtmode.

16 years agorandr12: Undo some changes of the past + always set vpll on modeset.
Maarten Maathuis [Mon, 14 Jan 2008 21:54:42 +0000 (22:54 +0100)] 
randr12: Undo some changes of the past + always set vpll on modeset.

16 years agonv30: Only change VIEWPOR_TX_ORIGIN on real nv30
Patrice Mandin [Mon, 14 Jan 2008 22:26:14 +0000 (23:26 +0100)] 
nv30: Only change VIEWPOR_TX_ORIGIN on real nv30

16 years agorandr12: "NewRestore" Always reset some state regs after restore.
Maarten Maathuis [Mon, 14 Jan 2008 19:17:05 +0000 (20:17 +0100)] 
randr12: "NewRestore" Always reset some state regs after restore.

16 years agorandr12: "NewRestore" proper depth vs bpp awareness.
Maarten Maathuis [Mon, 14 Jan 2008 18:29:28 +0000 (19:29 +0100)] 
randr12: "NewRestore" proper depth vs bpp awareness.

16 years agorandr12: yet more pre nv10 fixes
Stuart Bennett [Mon, 14 Jan 2008 18:21:47 +0000 (18:21 +0000)] 
randr12: yet more pre nv10 fixes

16 years agoPossible fix for C51's misaligned regs
Stuart Bennett [Mon, 14 Jan 2008 11:54:28 +0000 (11:54 +0000)] 
Possible fix for C51's misaligned regs

16 years agorandr12: better load detection (enabled)
Stuart Bennett [Sun, 13 Jan 2008 21:36:53 +0000 (21:36 +0000)] 
randr12: better load detection (enabled)

16 years agorandr12: We didn't copy the Flags to the adjusted mode, very bad.
Maarten Maathuis [Sun, 13 Jan 2008 23:48:25 +0000 (00:48 +0100)] 
randr12: We didn't copy the Flags to the adjusted mode, very bad.

16 years agoBe more flexible on init table length
Stuart Bennett [Sun, 13 Jan 2008 21:35:33 +0000 (21:35 +0000)] 
Be more flexible on init table length

16 years agoMore DCB 1.4/1.5 support
Stuart Bennett [Sun, 13 Jan 2008 19:37:28 +0000 (19:37 +0000)] 
More DCB 1.4/1.5 support

16 years agorandr12: Minor fix.
Maarten Maathuis [Sun, 13 Jan 2008 16:09:04 +0000 (17:09 +0100)] 
randr12: Minor fix.

16 years agorandr12: Some "NewRestore" fixes for framebuffer modes.
Maarten Maathuis [Sun, 13 Jan 2008 15:05:22 +0000 (16:05 +0100)] 
randr12: Some "NewRestore" fixes for framebuffer modes.

- This is mostly it for framebuffer modes.

16 years agonvbios: Fix a bmp bug for malc0.
Maarten Maathuis [Sun, 13 Jan 2008 14:05:15 +0000 (15:05 +0100)] 
nvbios: Fix a bmp bug for malc0.

16 years agorandr12: Some "NewRestore" fixes.
Maarten Maathuis [Sun, 13 Jan 2008 13:12:00 +0000 (14:12 +0100)] 
randr12: Some "NewRestore" fixes.

- Improvements to restoring framebuffer modes, still a few minor bugs to fix.
- VGA modes work partially, i doubt this will make mainline though, since it's fragile.
- This is a work in progress, only for testing.
- Added some other functions to NOUVEAU_MODESET_TRACE.

16 years agorandr12: more fixes aimed at nv0x
Stuart Bennett [Sat, 12 Jan 2008 00:39:59 +0000 (00:39 +0000)] 
randr12: more fixes aimed at nv0x

16 years agoRemove some nv_bios TODOs and shut up some warnings
Stuart Bennett [Fri, 11 Jan 2008 22:05:11 +0000 (22:05 +0000)] 
Remove some nv_bios TODOs and shut up some warnings

16 years agorandr12: Add new experimental restore mode.
Maarten Maathuis [Fri, 11 Jan 2008 22:23:43 +0000 (23:23 +0100)] 
randr12: Add new experimental restore mode.

- Option "NewRestore"
- Only tested on my 16bpp 1280x1024 vesafb console.
- It may work on text consoles.
- This should eventually replace the somewhat frail restore system that we currently have.

16 years agorandr12: Intermediate commit.
Maarten Maathuis [Fri, 11 Jan 2008 21:30:14 +0000 (22:30 +0100)] 
randr12: Intermediate commit.

16 years agorandr12: Intermediate commit.
Maarten Maathuis [Fri, 11 Jan 2008 17:59:53 +0000 (18:59 +0100)] 
randr12: Intermediate commit.

16 years agoTidy up and correct DCB merging
Stuart Bennett [Fri, 11 Jan 2008 21:33:47 +0000 (21:33 +0000)] 
Tidy up and correct DCB merging

16 years agoFix bios opcode 0x56 and add reg alignment check
Stuart Bennett [Thu, 10 Jan 2008 23:44:59 +0000 (23:44 +0000)] 
Fix bios opcode 0x56 and add reg alignment check

16 years agorandr12: undo overzealous code disablement
Stuart Bennett [Fri, 11 Jan 2008 16:34:28 +0000 (16:34 +0000)] 
randr12: undo overzealous code disablement

16 years agorandr12: twoHeads and other fixes for pre nv10 (nv_crtc.c)
Stuart Bennett [Fri, 11 Jan 2008 12:28:16 +0000 (12:28 +0000)] 
randr12: twoHeads and other fixes for pre nv10 (nv_crtc.c)

16 years agorandr12: some tidyup to output save/restore functions, and some twoHeads fixes
Stuart Bennett [Fri, 11 Jan 2008 11:16:21 +0000 (11:16 +0000)] 
randr12: some tidyup to output save/restore functions, and some twoHeads fixes

16 years agorandr12: tidy up dpms functions
Stuart Bennett [Fri, 11 Jan 2008 11:20:45 +0000 (11:20 +0000)] 
randr12: tidy up dpms functions

also, don't set cr57/58 in output_prepare as the dpms funcs do it, and it shouldn't be done on early cards anyway

16 years agorandr12: use clocks in kHz throughout
Stuart Bennett [Thu, 10 Jan 2008 20:25:50 +0000 (20:25 +0000)] 
randr12: use clocks in kHz throughout

16 years agoThe bios transition freq is in 10s kHz - so x10
Stuart Bennett [Thu, 10 Jan 2008 19:09:16 +0000 (19:09 +0000)] 
The bios transition freq is in 10s kHz - so x10

16 years agorandr12: Some minor things for supporting vga modes (in the future).
Maarten Maathuis [Thu, 10 Jan 2008 17:50:47 +0000 (18:50 +0100)] 
randr12: Some minor things for supporting vga modes (in the future).

16 years agorandr12: Intermediate commit.
Maarten Maathuis [Thu, 10 Jan 2008 16:41:39 +0000 (17:41 +0100)] 
randr12: Intermediate commit.

16 years agoRemove weirdo special case handling on bios reg writes
Stuart Bennett [Thu, 10 Jan 2008 16:21:49 +0000 (16:21 +0000)] 
Remove weirdo special case handling on bios reg writes

I don't think these ever get used, and the code only seems to be on gf6 anyway

16 years agorandr12: dtrt wrt dual link on lvds when !straps
Stuart Bennett [Thu, 10 Jan 2008 14:14:24 +0000 (14:14 +0000)] 
randr12: dtrt wrt dual link on lvds when !straps

16 years agorandr12: improve setting of fp_control
Stuart Bennett [Thu, 10 Jan 2008 12:03:43 +0000 (12:03 +0000)] 
randr12: improve setting of fp_control

16 years agoXv: cleanup.
Arthur Huillet [Thu, 10 Jan 2008 11:03:30 +0000 (12:03 +0100)] 
Xv: cleanup.

16 years agorandr12: enable LVDS and refactor output creation
Stuart Bennett [Thu, 10 Jan 2008 00:12:52 +0000 (00:12 +0000)] 
randr12: enable LVDS and refactor output creation

Heavily based on initial patch by seventhguardian

16 years agodeifdefication - we requre xserver 1.3, so randr 1.2 is guaranteed
Stuart Bennett [Wed, 9 Jan 2008 16:18:30 +0000 (16:18 +0000)] 
deifdefication - we requre xserver 1.3, so randr 1.2 is guaranteed

16 years agorandr12: optimize away excessive LVDS_RESETing
Stuart Bennett [Wed, 9 Jan 2008 15:47:50 +0000 (15:47 +0000)] 
randr12: optimize away excessive LVDS_RESETing

16 years agorandr12: Fix minor bug, related to output resource conflicts.
Maarten Maathuis [Wed, 9 Jan 2008 21:08:49 +0000 (22:08 +0100)] 
randr12: Fix minor bug, related to output resource conflicts.

16 years agorandr12: Reset crtc when changing output routes.
Maarten Maathuis [Wed, 9 Jan 2008 19:20:03 +0000 (20:20 +0100)] 
randr12: Reset crtc when changing output routes.

16 years agorandr12: Don't change vpll's twice on restore.
Maarten Maathuis [Wed, 9 Jan 2008 18:30:17 +0000 (19:30 +0100)] 
randr12: Don't change vpll's twice on restore.

16 years agoDetect an LVDS panel if there's a hardcoded EDID
Stuart Bennett [Wed, 9 Jan 2008 15:12:30 +0000 (15:12 +0000)] 
Detect an LVDS panel if there's a hardcoded EDID

16 years agoIf no PROM, and no PRAMIN, use the PCI rom image
Stuart Bennett [Wed, 9 Jan 2008 15:11:24 +0000 (15:11 +0000)] 
If no PROM, and no PRAMIN, use the PCI rom image

16 years agofp bios edid oops commit
Stuart Bennett [Tue, 8 Jan 2008 22:58:37 +0000 (22:58 +0000)] 
fp bios edid oops commit

16 years agorandr12: More fixes for strange output routes.
Maarten Maathuis [Tue, 8 Jan 2008 22:54:51 +0000 (23:54 +0100)] 
randr12: More fixes for strange output routes.

16 years agorandr12: try to use bios fp edid, if nothing else works
Stuart Bennett [Tue, 8 Jan 2008 20:57:10 +0000 (20:57 +0000)] 
randr12: try to use bios fp edid, if nothing else works

16 years agoRead EDID from BIOS if appropriate
Stuart Bennett [Tue, 8 Jan 2008 20:07:10 +0000 (20:07 +0000)] 
Read EDID from BIOS if appropriate

16 years agoDarktama's C51 is a mobile card
Stuart Bennett [Tue, 8 Jan 2008 16:18:09 +0000 (16:18 +0000)] 
Darktama's C51 is a mobile card

16 years agoBIT cards use the init scripts to do the power sequencing
Stuart Bennett [Tue, 8 Jan 2008 15:37:51 +0000 (15:37 +0000)] 
BIT cards use the init scripts to do the power sequencing

16 years agorandr12: Small fix for NV3x, more will be needed.
Maarten Maathuis [Tue, 8 Jan 2008 21:36:12 +0000 (22:36 +0100)] 
randr12: Small fix for NV3x, more will be needed.

16 years agorandr12: Fix reverse pll reading code for NV30.
Maarten Maathuis [Tue, 8 Jan 2008 19:23:38 +0000 (20:23 +0100)] 
randr12: Fix reverse pll reading code for NV30.

16 years agorandr12: Some minor things for NV30.
Maarten Maathuis [Tue, 8 Jan 2008 18:07:50 +0000 (19:07 +0100)] 
randr12: Some minor things for NV30.

16 years agoAssorted small bios/randr12 bits and pieces
Stuart Bennett [Tue, 8 Jan 2008 13:52:00 +0000 (13:52 +0000)] 
Assorted small bios/randr12 bits and pieces

Make bios execution a bit faster
Better self documenting code for DCB dual link criterion
Tidy up some ineffectual LVDS mode code

16 years agorandr12: Handle NV30 vpll's correctly.
Maarten Maathuis [Mon, 7 Jan 2008 22:38:08 +0000 (23:38 +0100)] 
randr12: Handle NV30 vpll's correctly.

- This only concerns the real NV30, not the other NV3x cards.

16 years agorandr12: Clear dpms cache when needed.
Maarten Maathuis [Mon, 7 Jan 2008 18:06:16 +0000 (19:06 +0100)] 
randr12: Clear dpms cache when needed.

16 years agoXv: overlay BW workaround applied to NV40 as well
Arthur Huillet [Mon, 7 Jan 2008 18:03:53 +0000 (19:03 +0100)] 
Xv: overlay BW workaround applied to NV40 as well

16 years agoXv: removed useless #includes
Arthur Huillet [Mon, 7 Jan 2008 18:01:07 +0000 (19:01 +0100)] 
Xv: removed useless #includes

16 years agoXv: added NV04 overlay brightness attribute. Original patch by Andrew Randrianasulu
Arthur Huillet [Mon, 7 Jan 2008 16:13:43 +0000 (17:13 +0100)] 
Xv: added NV04 overlay brightness attribute. Original patch by Andrew Randrianasulu