Stuart Bennett [Sun, 20 Jan 2008 14:47:52 +0000 (14:47 +0000)]
randr12: init some more Xv state
Stuart Bennett [Sat, 19 Jan 2008 14:02:43 +0000 (14:02 +0000)]
minor debug correction
Stuart Bennett [Sun, 20 Jan 2008 01:56:00 +0000 (01:56 +0000)]
INIT_8E opcode
again, from pq's trace
Stuart Bennett [Sat, 19 Jan 2008 01:37:34 +0000 (01:37 +0000)]
INIT_IO opcode
Based on pq's g8x trace
Maarten Maathuis [Sat, 19 Jan 2008 18:24:04 +0000 (19:24 +0100)]
randr12: hide cursor before locking + misc cleanup.
Maarten Maathuis [Sat, 19 Jan 2008 15:39:26 +0000 (16:39 +0100)]
randr12: Remove unneeded vgahw stuff.
Maarten Maathuis [Sat, 19 Jan 2008 15:29:57 +0000 (16:29 +0100)]
randr12: Move away from some of the nv_hw wrappers.
Maarten Maathuis [Sat, 19 Jan 2008 14:59:48 +0000 (15:59 +0100)]
randr12: Remove usage of nvRead/WriteVGA0/1.
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
Stuart Bennett [Fri, 18 Jan 2008 20:49:58 +0000 (20:49 +0000)]
More detailed modesetting debug (both randr12 and oldstyle)
Stuart Bennett [Fri, 18 Jan 2008 18:10:40 +0000 (18:10 +0000)]
Remove no longer needed panel quirk
Stuart Bennett [Fri, 18 Jan 2008 17:02:32 +0000 (17:02 +0000)]
Use bios PLL functions on nv4x
And a minor completeness correction
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.
Stuart Bennett [Fri, 18 Jan 2008 16:50:50 +0000 (16:50 +0000)]
Rerefactor getting pll limits for nv4x
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
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
Stuart Bennett [Fri, 18 Jan 2008 01:18:42 +0000 (01:18 +0000)]
Better setPLL_single
Stuart Bennett [Fri, 18 Jan 2008 14:33:01 +0000 (14:33 +0000)]
Bios parsing safety checks
Maarten Maathuis [Fri, 18 Jan 2008 11:17:50 +0000 (12:17 +0100)]
Some misc fixes.
Maarten Maathuis [Fri, 18 Jan 2008 08:23:39 +0000 (09:23 +0100)]
randr12: Actually using SavedReg does tend to help ;-)
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.
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
Stuart Bennett [Thu, 17 Jan 2008 22:49:37 +0000 (22:49 +0000)]
And another DCB 1.4 entry
Maarten Maathuis [Thu, 17 Jan 2008 21:25:12 +0000 (22:25 +0100)]
randr12: Forgot to clear a few state variables on restore.
Stuart Bennett [Thu, 17 Jan 2008 20:48:16 +0000 (20:48 +0000)]
Add me
Stuart Bennett [Thu, 17 Jan 2008 20:29:30 +0000 (20:29 +0000)]
That warning wasn't there a moment ago
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
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
Stuart Bennett [Thu, 17 Jan 2008 17:30:19 +0000 (17:30 +0000)]
setPLL for nv40 lowreg PLLs
Stuart Bennett [Thu, 17 Jan 2008 17:30:36 +0000 (17:30 +0000)]
setPLL for nv40 highreg PLLs
Maarten Maathuis [Thu, 17 Jan 2008 17:27:51 +0000 (18:27 +0100)]
randr12: Some misc fixes.
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).
Maarten Maathuis [Wed, 16 Jan 2008 07:03:51 +0000 (08:03 +0100)]
randr12: Fix mode privates again, hopefully ;-)
Stuart Bennett [Wed, 16 Jan 2008 00:25:08 +0000 (00:25 +0000)]
Minor reg adjustment
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
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
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
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
Stuart Bennett [Tue, 15 Jan 2008 09:53:58 +0000 (09:53 +0000)]
randr12: Oh no! More pNv->twoHeads
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.
Stephane Marchesin [Tue, 15 Jan 2008 19:44:48 +0000 (20:44 +0100)]
Order the reg ranges, add some.
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
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.
Maarten Maathuis [Tue, 15 Jan 2008 07:10:46 +0000 (08:10 +0100)]
randr12: Reenable cvtmode.
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.
Patrice Mandin [Mon, 14 Jan 2008 22:26:14 +0000 (23:26 +0100)]
nv30: Only change VIEWPOR_TX_ORIGIN on real nv30
Maarten Maathuis [Mon, 14 Jan 2008 19:17:05 +0000 (20:17 +0100)]
randr12: "NewRestore" Always reset some state regs after restore.
Maarten Maathuis [Mon, 14 Jan 2008 18:29:28 +0000 (19:29 +0100)]
randr12: "NewRestore" proper depth vs bpp awareness.
Stuart Bennett [Mon, 14 Jan 2008 18:21:47 +0000 (18:21 +0000)]
randr12: yet more pre nv10 fixes
Stuart Bennett [Mon, 14 Jan 2008 11:54:28 +0000 (11:54 +0000)]
Possible fix for C51's misaligned regs
Stuart Bennett [Sun, 13 Jan 2008 21:36:53 +0000 (21:36 +0000)]
randr12: better load detection (enabled)
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.
Stuart Bennett [Sun, 13 Jan 2008 21:35:33 +0000 (21:35 +0000)]
Be more flexible on init table length
Stuart Bennett [Sun, 13 Jan 2008 19:37:28 +0000 (19:37 +0000)]
More DCB 1.4/1.5 support
Maarten Maathuis [Sun, 13 Jan 2008 16:09:04 +0000 (17:09 +0100)]
randr12: Minor fix.
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.
Maarten Maathuis [Sun, 13 Jan 2008 14:05:15 +0000 (15:05 +0100)]
nvbios: Fix a bmp bug for malc0.
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.
Stuart Bennett [Sat, 12 Jan 2008 00:39:59 +0000 (00:39 +0000)]
randr12: more fixes aimed at nv0x
Stuart Bennett [Fri, 11 Jan 2008 22:05:11 +0000 (22:05 +0000)]
Remove some nv_bios TODOs and shut up some warnings
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.
Maarten Maathuis [Fri, 11 Jan 2008 21:30:14 +0000 (22:30 +0100)]
randr12: Intermediate commit.
Maarten Maathuis [Fri, 11 Jan 2008 17:59:53 +0000 (18:59 +0100)]
randr12: Intermediate commit.
Stuart Bennett [Fri, 11 Jan 2008 21:33:47 +0000 (21:33 +0000)]
Tidy up and correct DCB merging
Stuart Bennett [Thu, 10 Jan 2008 23:44:59 +0000 (23:44 +0000)]
Fix bios opcode 0x56 and add reg alignment check
Stuart Bennett [Fri, 11 Jan 2008 16:34:28 +0000 (16:34 +0000)]
randr12: undo overzealous code disablement
Stuart Bennett [Fri, 11 Jan 2008 12:28:16 +0000 (12:28 +0000)]
randr12: twoHeads and other fixes for pre nv10 (nv_crtc.c)
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
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
Stuart Bennett [Thu, 10 Jan 2008 20:25:50 +0000 (20:25 +0000)]
randr12: use clocks in kHz throughout
Stuart Bennett [Thu, 10 Jan 2008 19:09:16 +0000 (19:09 +0000)]
The bios transition freq is in 10s kHz - so x10
Maarten Maathuis [Thu, 10 Jan 2008 17:50:47 +0000 (18:50 +0100)]
randr12: Some minor things for supporting vga modes (in the future).
Maarten Maathuis [Thu, 10 Jan 2008 16:41:39 +0000 (17:41 +0100)]
randr12: Intermediate commit.
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
Stuart Bennett [Thu, 10 Jan 2008 14:14:24 +0000 (14:14 +0000)]
randr12: dtrt wrt dual link on lvds when !straps
Stuart Bennett [Thu, 10 Jan 2008 12:03:43 +0000 (12:03 +0000)]
randr12: improve setting of fp_control
Arthur Huillet [Thu, 10 Jan 2008 11:03:30 +0000 (12:03 +0100)]
Xv: cleanup.
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
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
Stuart Bennett [Wed, 9 Jan 2008 15:47:50 +0000 (15:47 +0000)]
randr12: optimize away excessive LVDS_RESETing
Maarten Maathuis [Wed, 9 Jan 2008 21:08:49 +0000 (22:08 +0100)]
randr12: Fix minor bug, related to output resource conflicts.
Maarten Maathuis [Wed, 9 Jan 2008 19:20:03 +0000 (20:20 +0100)]
randr12: Reset crtc when changing output routes.
Maarten Maathuis [Wed, 9 Jan 2008 18:30:17 +0000 (19:30 +0100)]
randr12: Don't change vpll's twice on restore.
Stuart Bennett [Wed, 9 Jan 2008 15:12:30 +0000 (15:12 +0000)]
Detect an LVDS panel if there's a hardcoded EDID
Stuart Bennett [Wed, 9 Jan 2008 15:11:24 +0000 (15:11 +0000)]
If no PROM, and no PRAMIN, use the PCI rom image
Stuart Bennett [Tue, 8 Jan 2008 22:58:37 +0000 (22:58 +0000)]
fp bios edid oops commit
Maarten Maathuis [Tue, 8 Jan 2008 22:54:51 +0000 (23:54 +0100)]
randr12: More fixes for strange output routes.
Stuart Bennett [Tue, 8 Jan 2008 20:57:10 +0000 (20:57 +0000)]
randr12: try to use bios fp edid, if nothing else works
Stuart Bennett [Tue, 8 Jan 2008 20:07:10 +0000 (20:07 +0000)]
Read EDID from BIOS if appropriate
Stuart Bennett [Tue, 8 Jan 2008 16:18:09 +0000 (16:18 +0000)]
Darktama's C51 is a mobile card
Stuart Bennett [Tue, 8 Jan 2008 15:37:51 +0000 (15:37 +0000)]
BIT cards use the init scripts to do the power sequencing
Maarten Maathuis [Tue, 8 Jan 2008 21:36:12 +0000 (22:36 +0100)]
randr12: Small fix for NV3x, more will be needed.
Maarten Maathuis [Tue, 8 Jan 2008 19:23:38 +0000 (20:23 +0100)]
randr12: Fix reverse pll reading code for NV30.
Maarten Maathuis [Tue, 8 Jan 2008 18:07:50 +0000 (19:07 +0100)]
randr12: Some minor things for NV30.
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
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.
Maarten Maathuis [Mon, 7 Jan 2008 18:06:16 +0000 (19:06 +0100)]
randr12: Clear dpms cache when needed.
Arthur Huillet [Mon, 7 Jan 2008 18:03:53 +0000 (19:03 +0100)]
Xv: overlay BW workaround applied to NV40 as well
Arthur Huillet [Mon, 7 Jan 2008 18:01:07 +0000 (19:01 +0100)]
Xv: removed useless #includes
Arthur Huillet [Mon, 7 Jan 2008 16:13:43 +0000 (17:13 +0100)]
Xv: added NV04 overlay brightness attribute. Original patch by Andrew Randrianasulu