nouveau
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

16 years agoavoid symbol clash with 3d driver.
Ben Skeggs [Mon, 7 Jan 2008 15:18:59 +0000 (02:18 +1100)] 
avoid symbol clash with 3d driver.

16 years agonv50: support hostdata UTS
Ben Skeggs [Mon, 7 Jan 2008 15:16:26 +0000 (02:16 +1100)] 
nv50: support hostdata UTS

16 years agonv50: small fix
Ben Skeggs [Mon, 7 Jan 2008 07:33:03 +0000 (18:33 +1100)] 
nv50: small fix

16 years agonv40 video texture: sometimes less is more.
Stephane Marchesin [Mon, 7 Jan 2008 01:39:19 +0000 (02:39 +0100)] 
nv40 video texture: sometimes less is more.

16 years agoNV40EXA: Remove stair shaped tearing i get.
Maarten Maathuis [Sun, 6 Jan 2008 19:44:56 +0000 (20:44 +0100)] 
NV40EXA: Remove stair shaped tearing i get.

16 years agoWe do not get a valid CRTC configuration structure if we're not using RandR 1.2,
Pierre Ossman [Sun, 6 Jan 2008 19:04:10 +0000 (20:04 +0100)] 
We do not get a valid CRTC configuration structure if we're not using RandR 1.2,
so make sure we can handle the old mode with some form of grace.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
16 years agonv40 video texture: bilinear filtering for UV.
Stephane Marchesin [Sun, 6 Jan 2008 18:14:03 +0000 (19:14 +0100)] 
nv40 video texture: bilinear filtering for UV.

16 years agoXv: overlay auto CRTC switch with randr12, blitter fallback
Arthur Huillet [Sun, 6 Jan 2008 16:41:50 +0000 (17:41 +0100)] 
Xv: overlay auto CRTC switch with randr12, blitter fallback

Now switching the overlay to the right CRTC when displaying video with the overlay and dual head, with a nice fallback
to the blitter when the window is on both CRTCs.
Fixed a bug preventing the overlay from working on CRTC1.

16 years agoport "G80: Reduce load detection false positives." from xf86-video-nv commit d483ecd8...
Jeremy Kolb [Sun, 6 Jan 2008 17:58:45 +0000 (12:58 -0500)] 
port "G80: Reduce load detection false positives." from xf86-video-nv commit d483ecd851bb84014f1fa86f0ada4540b3ad801e

16 years agoReturn NULL not FALSE.
Jeremy Kolb [Sun, 6 Jan 2008 17:51:55 +0000 (12:51 -0500)] 
Return NULL not FALSE.

16 years agoXv: don't wait for vblank on CRTC0 _and_ CRTC1
Pierre Ossman [Sun, 6 Jan 2008 16:48:48 +0000 (17:48 +0100)] 
Xv: don't wait for vblank on CRTC0 _and_ CRTC1

16 years agowait for correct crtc vsync
Pierre Ossman [Sun, 6 Jan 2008 16:45:37 +0000 (17:45 +0100)] 
wait for correct crtc vsync

Make sure we wait for the CRTC that will actually display the video
frame we're blitting.

16 years agoSwitch to latest nouveau_class.h
Stephane Marchesin [Sun, 6 Jan 2008 15:20:43 +0000 (16:20 +0100)] 
Switch to latest nouveau_class.h

16 years agoUse clamp to edge to avoid the thin black lines.
Stephane Marchesin [Sun, 6 Jan 2008 15:19:50 +0000 (16:19 +0100)] 
Use clamp to edge to avoid the thin black lines.

16 years agorandr12: Some fixes for NV31M.
Maarten Maathuis [Sun, 6 Jan 2008 12:17:49 +0000 (13:17 +0100)] 
randr12: Some fixes for NV31M.

16 years agorandr12: NV11 and NV20 stop at CR52.
Maarten Maathuis [Sat, 5 Jan 2008 18:43:08 +0000 (19:43 +0100)] 
randr12: NV11 and NV20 stop at CR52.

16 years agorandr12: NV11 and NV20 don't have CR57 and CR58.
Maarten Maathuis [Sat, 5 Jan 2008 18:32:32 +0000 (19:32 +0100)] 
randr12: NV11 and NV20 don't have CR57 and CR58.

16 years agoAdd a missing function to NOUVEAU_MODESET_TRACE.
Maarten Maathuis [Sat, 5 Jan 2008 17:54:14 +0000 (18:54 +0100)] 
Add a missing function to NOUVEAU_MODESET_TRACE.

16 years agorandr12: fix PLL breaking typo
Stuart Bennett [Sat, 5 Jan 2008 17:22:33 +0000 (17:22 +0000)] 
randr12: fix PLL breaking typo

16 years agoNeed to restore EXTDEV before fp table parsing
Stuart Bennett [Sat, 5 Jan 2008 03:10:21 +0000 (03:10 +0000)] 
Need to restore EXTDEV before fp table parsing

and a nice hwsq message

16 years agorandr12: Minor cleanup.
Maarten Maathuis [Sat, 5 Jan 2008 17:30:08 +0000 (18:30 +0100)] 
randr12: Minor cleanup.

16 years agorandr12: Fix a thinko, generate data before restoring, not at the beginning.
Maarten Maathuis [Sat, 5 Jan 2008 17:27:10 +0000 (18:27 +0100)] 
randr12: Fix a thinko, generate data before restoring, not at the beginning.