Maarten Maathuis [Thu, 20 Mar 2008 19:20:16 +0000 (20:20 +0100)]
NV50: Although not essential, it's nicer to save a register as uint32_t.
Maarten Maathuis [Thu, 20 Mar 2008 19:10:13 +0000 (20:10 +0100)]
NV50: Some more stuff.
Maarten Maathuis [Thu, 20 Mar 2008 18:59:46 +0000 (19:59 +0100)]
NV50: Educated guesses at some of the control registers.
Maarten Maathuis [Thu, 20 Mar 2008 17:49:58 +0000 (18:49 +0100)]
NV50: Forgot some more stuff.
Maarten Maathuis [Thu, 20 Mar 2008 17:35:20 +0000 (18:35 +0100)]
NV50: Forgot something.
Maarten Maathuis [Thu, 20 Mar 2008 16:43:30 +0000 (17:43 +0100)]
NV50: More dehexing.
Maarten Maathuis [Thu, 20 Mar 2008 16:19:37 +0000 (17:19 +0100)]
NV50: Some more dehexing.
Maarten Maathuis [Thu, 20 Mar 2008 13:18:18 +0000 (14:18 +0100)]
NV50: Some more register guesses.
Stuart Bennett [Wed, 19 Mar 2008 18:16:03 +0000 (18:16 +0000)]
randr12: do DPMS off better
Half the time that DPMS off is done, there is no crtc bound, which meant outputs never got turned off.
It seems xf86DisableUnusedFunctions is always run *before* setting up the new outputs (when using xrandr):
if this is not the case, this commit may not be quite right.
Stuart Bennett [Wed, 19 Mar 2008 02:56:31 +0000 (02:56 +0000)]
Optimizations on LVDS script code
Stuart Bennett [Wed, 19 Mar 2008 23:12:59 +0000 (23:12 +0000)]
randr12: unbreak LVDS and primary I2C for < NV50
NV50 check disallowed pre-NV50 cards using I2C on first head, and made garbage get written to CR0 on LVDS
This should work for both pre-nv50 and nv50.
Maarten Maathuis [Wed, 19 Mar 2008 20:31:10 +0000 (21:31 +0100)]
NV50: fix i2c for real
Maarten Maathuis [Wed, 19 Mar 2008 07:57:33 +0000 (08:57 +0100)]
NV50: Fix a typo and hopefully fix i2c.
Maarten Maathuis [Mon, 17 Mar 2008 22:40:16 +0000 (23:40 +0100)]
NV50: Fix major thinko in "NV50: kill output_resource and use or directly."
Maarten Maathuis [Mon, 17 Mar 2008 21:05:12 +0000 (22:05 +0100)]
NV50: Handle some things that weren't fixed during rebase.
Maarten Maathuis [Sun, 16 Mar 2008 15:09:11 +0000 (16:09 +0100)]
NV50: kill output_resource and use or directly.
Maarten Maathuis [Sun, 16 Mar 2008 11:46:40 +0000 (12:46 +0100)]
NV50: Mostly resorting regs.
- Also a dithering register define and rename cursor related reg.
Maarten Maathuis [Sun, 16 Mar 2008 11:33:19 +0000 (12:33 +0100)]
NV50: Some more educated guesses at register names.
Maarten Maathuis [Sun, 16 Mar 2008 00:09:48 +0000 (01:09 +0100)]
NV50: Another subtle difference.
Maarten Maathuis [Sun, 16 Mar 2008 00:05:03 +0000 (01:05 +0100)]
NV50: Fix a potentional bug.
Maarten Maathuis [Sat, 15 Mar 2008 23:40:59 +0000 (00:40 +0100)]
NV50: Share output properties.
Maarten Maathuis [Sat, 15 Mar 2008 23:27:41 +0000 (00:27 +0100)]
randr12: Implement dithering output property.
Maarten Maathuis [Sat, 15 Mar 2008 18:02:55 +0000 (19:02 +0100)]
NV50: Merge output creation and i2c init.
Maarten Maathuis [Sat, 15 Mar 2008 17:20:34 +0000 (18:20 +0100)]
NV50: Merge crtc creation.
Stuart Bennett [Mon, 17 Mar 2008 23:20:39 +0000 (23:20 +0000)]
randr12 offbyone debug commitnoise
semantic version control messages ftw?
Stuart Bennett [Mon, 17 Mar 2008 17:21:28 +0000 (17:21 +0000)]
randr12: remove NVGetOutputFromCRTC
This function had a major problem for the long term: assuming a maximum of 1
output per CRTC, which is simply not valid
Stuart Bennett [Mon, 17 Mar 2008 17:09:23 +0000 (17:09 +0000)]
randr12: split out fp-only registers
Stuart Bennett [Mon, 17 Mar 2008 03:03:14 +0000 (03:03 +0000)]
randr12: better handling for output types in nv_crtc
Stuart Bennett [Mon, 17 Mar 2008 17:16:27 +0000 (17:16 +0000)]
randr12: remove duplicated regs
Stuart Bennett [Mon, 17 Mar 2008 00:59:31 +0000 (00:59 +0000)]
randr12: fix noscale scaling mode
Also, a bit of consistency missed in the earlier commit
Stuart Bennett [Sun, 16 Mar 2008 14:27:14 +0000 (14:27 +0000)]
Misc startup info mostly duplicated the state storage stuff
Stuart Bennett [Sun, 16 Mar 2008 00:51:09 +0000 (00:51 +0000)]
randr12: make output parsing consistent
Stuart Bennett [Sat, 15 Mar 2008 01:36:13 +0000 (01:36 +0000)]
G80 I2C parsing
Changed to on-demand parsing
Stuart Bennett [Fri, 14 Mar 2008 21:22:48 +0000 (21:22 +0000)]
randr12: make nv_crtc_calc_state_ext definition smaller
Stuart Bennett [Tue, 11 Mar 2008 03:39:43 +0000 (03:39 +0000)]
randr12: merge common PLL paths
Stuart Bennett [Tue, 11 Mar 2008 02:19:10 +0000 (02:19 +0000)]
randr12: make plls belong to their CRTCs
Stuart Bennett [Wed, 30 Jan 2008 14:38:59 +0000 (14:38 +0000)]
Use PMC defines
Maarten Maathuis [Fri, 14 Mar 2008 10:11:07 +0000 (11:11 +0100)]
randr12: Let an unneeded quirk die.
Stuart Bennett [Wed, 12 Mar 2008 16:29:17 +0000 (16:29 +0000)]
randr12: sel_clk values are really an FP thing, so move calculation to nv_output
Stuart Bennett [Thu, 13 Mar 2008 20:26:07 +0000 (20:26 +0000)]
randr12: tidy up output restore
Stuart Bennett [Thu, 13 Mar 2008 19:52:52 +0000 (19:52 +0000)]
randr12: common tmds access functions
Stuart Bennett [Wed, 12 Mar 2008 03:23:21 +0000 (03:23 +0000)]
Improve bios' handling of ramdac_580
Maarten Maathuis [Thu, 13 Mar 2008 19:49:53 +0000 (20:49 +0100)]
NV50: Accept G9X cards.
Maarten Maathuis [Thu, 13 Mar 2008 15:57:24 +0000 (16:57 +0100)]
NV50: Add back output_resource.
Maarten Maathuis [Wed, 12 Mar 2008 22:16:53 +0000 (23:16 +0100)]
NV50: Unbreak "NV50: Kill the connection status caching (which was broken btw)."
Maarten Maathuis [Tue, 11 Mar 2008 22:15:11 +0000 (23:15 +0100)]
NV50: Merge the two output private structs.
Maarten Maathuis [Tue, 11 Mar 2008 22:09:19 +0000 (23:09 +0100)]
NV50: rename scale to scaling_mode
Maarten Maathuis [Tue, 11 Mar 2008 22:06:16 +0000 (23:06 +0100)]
NV50: Rename nativeMode
Maarten Maathuis [Tue, 11 Mar 2008 22:00:19 +0000 (23:00 +0100)]
NV50: Rename or to output_resource.
Maarten Maathuis [Tue, 11 Mar 2008 21:43:33 +0000 (22:43 +0100)]
NV50: kill set_pclk
Maarten Maathuis [Tue, 11 Mar 2008 21:24:46 +0000 (22:24 +0100)]
NV50: Remove the remnants of cached_status.
Maarten Maathuis [Tue, 11 Mar 2008 21:22:12 +0000 (22:22 +0100)]
NV50: kill partner entry
Maarten Maathuis [Tue, 11 Mar 2008 21:12:57 +0000 (22:12 +0100)]
NV50: fix warning
Maarten Maathuis [Tue, 11 Mar 2008 20:33:29 +0000 (21:33 +0100)]
NV50: Kill the connection status caching (which was broken btw).
Maarten Maathuis [Tue, 11 Mar 2008 20:15:21 +0000 (21:15 +0100)]
NV50: change i2c to pDDCBus
Maarten Maathuis [Tue, 11 Mar 2008 18:50:25 +0000 (19:50 +0100)]
NV50: Switch to other scaling defines.
Maarten Maathuis [Tue, 11 Mar 2008 18:29:11 +0000 (19:29 +0100)]
NV50: Switch to the same output type as the rest of the code.
Stuart Bennett [Thu, 13 Mar 2008 15:21:49 +0000 (15:21 +0000)]
randr12: nothing uses output_resource. kill it
Stuart Bennett [Thu, 13 Mar 2008 15:31:00 +0000 (15:31 +0000)]
randr12: fix the setting of NV_RAMDAC_OUTPUT
And turn on/off the DAC for DPMS
Stuart Bennett [Thu, 13 Mar 2008 03:53:18 +0000 (03:53 +0000)]
Simplify TMDS writes a little
Stuart Bennett [Tue, 11 Mar 2008 17:20:28 +0000 (17:20 +0000)]
randr12: don't allow scripts to break overlay
Danny Tholen [Tue, 11 Mar 2008 17:14:54 +0000 (17:14 +0000)]
Fix video overlays to treat double-scan correctly when using randr12
Stuart Bennett [Mon, 10 Mar 2008 23:47:43 +0000 (23:47 +0000)]
Correct RAMIN offset
and some bits missed in previous nv_setup tidying
Stuart Bennett [Mon, 10 Mar 2008 21:46:38 +0000 (21:46 +0000)]
randr12: changing tmds2 for dvi-d seemingly unnecessary
Stuart Bennett [Mon, 10 Mar 2008 23:49:08 +0000 (23:49 +0000)]
randr12: unbreak sel_clk changes
Stuart Bennett [Mon, 10 Mar 2008 19:50:55 +0000 (19:50 +0000)]
randr12: allow spread spectrum bits to be updated on pre nv40
Stuart Bennett [Mon, 10 Mar 2008 01:18:56 +0000 (01:18 +0000)]
randr12: quirk for 17" powerbook, and better sel_clk handling
We set sel_clk *before* running the output script, so make sure the set pll->head binding is not altered
Stuart Bennett [Sun, 9 Mar 2008 16:08:46 +0000 (16:08 +0000)]
nv_type.h mandates XF86DRI being declared
Stuart Bennett [Sun, 9 Mar 2008 03:59:57 +0000 (03:59 +0000)]
Fix up a bunch of prototypes, remove unused wrappers
Stuart Bennett [Sun, 9 Mar 2008 01:31:47 +0000 (01:31 +0000)]
Move setting of alphaCursor to nv_setup, and restyle useful portions of nv_setup
Stuart Bennett [Sat, 8 Mar 2008 22:05:52 +0000 (22:05 +0000)]
Kill NVFBLayout
Using pScrn->currentMode is wrong for randr12, but it's no worse than what it was
Stuart Bennett [Sat, 8 Mar 2008 21:02:35 +0000 (21:02 +0000)]
Warning fixes
And remove a few unused members from nv_type.h
Stuart Bennett [Sat, 8 Mar 2008 20:53:20 +0000 (20:53 +0000)]
Drop the NV*VGA defines and adjust users
Maarten Maathuis [Sat, 8 Mar 2008 20:18:34 +0000 (21:18 +0100)]
randr12: Disable a quirk that has adverse sideeffects on NV36M.
- NV31M owners, please test if you have:
- LVDS on CRTC 1 and or = 3.
- VGA on CRTC 0 and or = 1.
- Testing requires enabling both lvds and vga.
Maarten Maathuis [Sat, 8 Mar 2008 17:23:58 +0000 (18:23 +0100)]
Merge CRTC private structs.
Maarten Maathuis [Sat, 8 Mar 2008 17:10:53 +0000 (18:10 +0100)]
Death to some unnecesary stuff.
Stuart Bennett [Sat, 8 Mar 2008 01:56:36 +0000 (01:56 +0000)]
Various minor tidyups
Maarten Maathuis [Fri, 7 Mar 2008 19:59:30 +0000 (20:59 +0100)]
NV50: Convert back to absolute registers.
- Someone with a known to work setup should test this, as i have no NV5x card.
Stuart Bennett [Fri, 7 Mar 2008 19:08:50 +0000 (19:08 +0000)]
PLL limit table v0x11
Stuart Bennett [Fri, 7 Mar 2008 18:43:16 +0000 (18:43 +0000)]
Make bios init code work on 6600 by changing pll setting stuff a bit
I suspect we're going to need some card specific checks in here. ugh.
Maarten Maathuis [Fri, 7 Mar 2008 06:52:09 +0000 (07:52 +0100)]
It seems libpciaccess release became version 0.10 not version 0.10.0
Maarten Maathuis [Fri, 7 Mar 2008 06:36:16 +0000 (07:36 +0100)]
randr12: Forgot to clean up when switching output resources.
Jaime Velasco Juan [Sat, 16 Feb 2008 15:01:23 +0000 (15:01 +0000)]
Do not access beyond source pixmap in NVAccelUploadIFC
Stephane Marchesin [Thu, 6 Mar 2008 22:40:08 +0000 (23:40 +0100)]
Oops.
Stuart Bennett [Thu, 6 Mar 2008 22:35:30 +0000 (22:35 +0000)]
randr12: workaround for xserver randr bug, where the hwcursor always gets displayed after a mode change
Stephane Marchesin [Thu, 6 Mar 2008 22:15:31 +0000 (23:15 +0100)]
Fix my nv10 cursor.
Maarten Maathuis [Thu, 6 Mar 2008 22:05:43 +0000 (23:05 +0100)]
randr12: A major rework of output resource conflict handling.
- This mostly affects laptops, such as some geforce5 and the famous 7300go laptops.
- Test this if you know to have a strange vga/dvi port of your laptop.
Maarten Maathuis [Thu, 6 Mar 2008 18:29:50 +0000 (19:29 +0100)]
randr12: Readd some useful information about how an output is routed.
Maarten Maathuis [Thu, 6 Mar 2008 18:16:36 +0000 (19:16 +0100)]
randr12: Kill almost all usage of ErrorF + some misc cleanup.
Stuart Bennett [Wed, 5 Mar 2008 18:53:54 +0000 (18:53 +0000)]
randr12: don't reset panel unnecessarily for mere backlight control
Stuart Bennett [Wed, 5 Mar 2008 14:40:08 +0000 (14:40 +0000)]
randr12: remove switchable_crtc stuff
Stuart Bennett [Wed, 5 Mar 2008 14:35:41 +0000 (14:35 +0000)]
randr12: if no ddc, return XF86OutputStatusUnknown, for !twoHeads and nv11
Stuart Bennett [Wed, 5 Mar 2008 02:15:28 +0000 (02:15 +0000)]
randr12: do not change CR43 from its initial value
Maarten Maathuis [Wed, 5 Mar 2008 08:44:46 +0000 (09:44 +0100)]
Give some defines more consistent names.
Stuart Bennett [Wed, 5 Mar 2008 01:25:20 +0000 (01:25 +0000)]
Use the BMP structure's I2C info, instead of DCB 1.2's, as marcheu's bios is broken
Stuart Bennett [Wed, 5 Mar 2008 00:38:15 +0000 (00:38 +0000)]
Add another DCB 1.4 entry
Stuart Bennett [Wed, 5 Mar 2008 00:34:16 +0000 (00:34 +0000)]
Don't zero out i2c_read and i2c_write
pNv is calloc'd, so zero inited, and explicit zeroing overwrites the stuff parsed in parse_bmp_structure. Duh.
Maarten Maathuis [Tue, 4 Mar 2008 20:18:49 +0000 (21:18 +0100)]
Put braces around a bitmask.
Stuart Bennett [Tue, 4 Mar 2008 13:34:16 +0000 (13:34 +0000)]
Add an LVDS output setup quirk for Powerbooks
Again, as a result of much testing by moondrake and sbriglie.
Hopefully it even works this time :)
Maarten Maathuis [Mon, 3 Mar 2008 18:04:09 +0000 (19:04 +0100)]
randr12: Only change vpll value when needed.