Maarten Maathuis [Sun, 11 Nov 2007 23:03:19 +0000 (00:03 +0100)]
NV50: Port one of the nv patches.
Maarten Maathuis [Sun, 11 Nov 2007 20:53:10 +0000 (21:53 +0100)]
randr12: Some code cleanup.
Maarten Maathuis [Sun, 11 Nov 2007 20:32:31 +0000 (21:32 +0100)]
NV50: Clean up nv50_output.c a bit.
- I did not make wrappers for the i2c stuff, since i do not know what that range does, besides i2c.
Maarten Maathuis [Sun, 11 Nov 2007 20:17:40 +0000 (21:17 +0100)]
NV50: cleanup of nv50_sor.c
Maarten Maathuis [Sun, 11 Nov 2007 19:51:01 +0000 (20:51 +0100)]
randr12: Make sure we don't set 2 "special" bits in sel_clk.
Maarten Maathuis [Sun, 11 Nov 2007 18:32:26 +0000 (19:32 +0100)]
randr12: Overhaul vpll set code + misc fixes.
- Hopefully the problematic G70's work again.
Stuart Bennett [Fri, 9 Nov 2007 03:17:12 +0000 (03:17 +0000)]
vbios fptable v2 parsing (for BIT biosen). Not that I know how to index it.
Plus some fptable v1 fixes, bmp structure length checks,
and support for a weird bios version that may be in some gf2go
Stuart Bennett [Fri, 9 Nov 2007 01:19:04 +0000 (01:19 +0000)]
G5 6600 DCB improvements, but I'm sure to be some bswaps short
This will all become so much nicer when I can do leNN_to_cpu()...
Maarten Maathuis [Sat, 10 Nov 2007 16:02:38 +0000 (17:02 +0100)]
NV50: Last part of nv50_dac.c
Maarten Maathuis [Sat, 10 Nov 2007 15:59:49 +0000 (16:59 +0100)]
NV50: More cleanup (this time nv50_dac.c).
Maarten Maathuis [Sat, 10 Nov 2007 15:32:51 +0000 (16:32 +0100)]
NV50: That's the initial cleanup for nv50_display.c
Maarten Maathuis [Sat, 10 Nov 2007 15:24:32 +0000 (16:24 +0100)]
NV50: Should have run make first ;-)
Maarten Maathuis [Sat, 10 Nov 2007 15:23:48 +0000 (16:23 +0100)]
NV50: Even more cleanup.
Maarten Maathuis [Sat, 10 Nov 2007 15:19:32 +0000 (16:19 +0100)]
NV50: More cleanup, small commits to make bisecting easier.
Maarten Maathuis [Sat, 10 Nov 2007 15:05:42 +0000 (16:05 +0100)]
NV50: Some initial cleanup.
Maarten Maathuis [Sat, 10 Nov 2007 14:39:04 +0000 (15:39 +0100)]
NV50: Another wrapper.
Maarten Maathuis [Sat, 10 Nov 2007 14:29:13 +0000 (15:29 +0100)]
NV50: A new wrapper + a few functions renamed.
- I'm trying to clean up the code a bit, but lack of the hardware prevents me from testing it.
Maarten Maathuis [Fri, 9 Nov 2007 23:35:04 +0000 (00:35 +0100)]
randr12: This may break stuff for some g70 cards, if it does, then please scream.
- I hope i've got most situations covered.
- If there are issues getting the second head to work on nv4x cards, then please tell.
- nv4x is geforce 6 and 7 series for those who do not know.
Maarten Maathuis [Fri, 9 Nov 2007 19:41:48 +0000 (20:41 +0100)]
randr12: Disable load detect again, until we can identify it from a DVI monitor.
Maarten Maathuis [Fri, 9 Nov 2007 19:40:46 +0000 (20:40 +0100)]
randr12: Improve detection of DVI-D/DVI-A pairs (for naming).
Stuart Bennett [Fri, 9 Nov 2007 19:27:37 +0000 (19:27 +0000)]
randr12: Revert "randr12: lose ffs wrapper", it's wrong
Stuart Bennett [Fri, 9 Nov 2007 19:02:00 +0000 (19:02 +0000)]
randr12: lose ffs wrapper
Stephane Marchesin [Wed, 31 Oct 2007 01:36:41 +0000 (02:36 +0100)]
More nv30 exa cleaning up.
Maarten Maathuis [Fri, 9 Nov 2007 17:44:37 +0000 (18:44 +0100)]
randr12: Do not mess with ramdac register 580 until it's proven to be neccesary.
- I cannot seem to find out what the conditions are to change this register, except that it's related to VCLK ratio DB1.
Maarten Maathuis [Fri, 9 Nov 2007 17:31:02 +0000 (18:31 +0100)]
randr12: Fix vertical scaling.
Patrice Mandin [Fri, 9 Nov 2007 17:13:43 +0000 (18:13 +0100)]
oops, trailing whitespace
Patrice Mandin [Fri, 9 Nov 2007 17:11:25 +0000 (18:11 +0100)]
Also disable nv40exa if nv30exa disabled
Patrice Mandin [Fri, 9 Nov 2007 17:10:53 +0000 (18:10 +0100)]
Reading DFP tables need randr1.2
Stuart Bennett [Thu, 8 Nov 2007 18:59:50 +0000 (18:59 +0000)]
randr12: invert fpScaler to regain original meaning (see man page)
Stuart Bennett [Thu, 8 Nov 2007 20:30:28 +0000 (20:30 +0000)]
randr12: Do scaling / native fixup in the fixup function
Nuke the LVDS specific fixup code
Then use adjusted_mode accordingly
Stuart Bennett [Wed, 7 Nov 2007 18:37:57 +0000 (18:37 +0000)]
randr12: rename DIGITAL and PANEL to TMDS and LVDS
Following on from earlier renaming, this is less confusing, at least to me.
Stuart Bennett [Thu, 8 Nov 2007 17:00:44 +0000 (17:00 +0000)]
randr12: blank screen before we're ready to show it
Maarten Maathuis [Thu, 8 Nov 2007 19:11:25 +0000 (20:11 +0100)]
randr12: Some outputs are only valid on secondary output.
Maarten Maathuis [Thu, 8 Nov 2007 18:20:41 +0000 (19:20 +0100)]
randr12: Improve output naming scheme.
Maarten Maathuis [Thu, 8 Nov 2007 18:13:03 +0000 (19:13 +0100)]
randr12: Add ramdac assignment code to the lvds dpms function.
Maarten Maathuis [Thu, 8 Nov 2007 17:42:35 +0000 (18:42 +0100)]
randr12: Misc fixes.
Ben Skeggs [Thu, 8 Nov 2007 16:29:21 +0000 (03:29 +1100)]
get rid of ALLOCATE_LOCAL etc.
Maarten Maathuis [Wed, 7 Nov 2007 23:20:53 +0000 (00:20 +0100)]
randr12: It seems the situation was a bit easier to handle, luckily.
- I've tied ramdac and crtc number together.
- Switching crtc's doesn't cause a problem anymore (even when crtc0 is not in use).
Maarten Maathuis [Wed, 7 Nov 2007 21:25:40 +0000 (22:25 +0100)]
randr12: Intermediate commit.
Arthur Huillet [Wed, 7 Nov 2007 22:03:54 +0000 (23:03 +0100)]
NV10EXA: added support for R5G6B5 as source and destination (tested only with rendercheck)
added A8 + A8 via ARGB + ARGB hack, disabled by default because it cannot work
updated instrumentation to dump pixmap sizes and repeat flag
Stuart Bennett [Wed, 7 Nov 2007 15:08:48 +0000 (15:08 +0000)]
randr12: remove some duplication and reduce mem leaks
Stuart Bennett [Wed, 7 Nov 2007 14:54:18 +0000 (14:54 +0000)]
randr12: refactor ddc stuff for convenience
Stuart Bennett [Wed, 7 Nov 2007 14:33:50 +0000 (14:33 +0000)]
randr12: micro-optimization on use of "or"
Stuart Bennett [Tue, 6 Nov 2007 21:20:10 +0000 (21:20 +0000)]
randr12: LVDS warning
Stuart Bennett [Tue, 6 Nov 2007 01:29:33 +0000 (01:29 +0000)]
randr12: Use NV_RAMDAC_PLL_SELECT_PLL_SOURCE_ALL for LVDS
Using only VPLL seems to be broken for LVDS. Traces show consistent use of ALL.
Maarten Maathuis [Wed, 7 Nov 2007 08:33:40 +0000 (09:33 +0100)]
randr12: Also save flatpanel regs on analog monitors.
Stuart Bennett [Tue, 6 Nov 2007 21:09:51 +0000 (21:09 +0000)]
Various minor fixes
Now that ramdac selection uses sensible numbers, it turns out writing to TMDS regs is a bad move on LVDS.
Also, change FP_CONTROL handling a bit for LVDS (bit31 needs preserving)
Stuart Bennett [Tue, 6 Nov 2007 19:53:08 +0000 (19:53 +0000)]
Start using OUTPUT_PANEL where appropriate
Stuart Bennett [Thu, 1 Nov 2007 00:24:13 +0000 (00:24 +0000)]
Beautify DCB 1.2 weirdness, hopefully fixup G5 and use dcb_table more simply
Stuart Bennett [Tue, 6 Nov 2007 19:41:47 +0000 (19:41 +0000)]
Implement lvds_output_{get_modes, mode_valid, mode_fixup}
Stuart Bennett [Fri, 26 Oct 2007 02:01:17 +0000 (03:01 +0100)]
Reindentation, renaming, adding debug, and assume LVDS always connected
Stuart Bennett [Wed, 31 Oct 2007 17:29:16 +0000 (17:29 +0000)]
LVDS VBIOS FP mode finding
Maarten Maathuis [Tue, 6 Nov 2007 23:16:33 +0000 (00:16 +0100)]
randr12: Fix ugly alligment.
Maarten Maathuis [Tue, 6 Nov 2007 23:11:51 +0000 (00:11 +0100)]
randr12: Improve hotplugging of outputs.
Peter Winters [Tue, 6 Nov 2007 22:40:07 +0000 (23:40 +0100)]
NV10 EXA: Implement a8 1x1 repeat
Peter Winters [Tue, 6 Nov 2007 22:29:03 +0000 (23:29 +0100)]
NV10 EXA: setup viewport like nv40 exa
Maarten Maathuis [Tue, 6 Nov 2007 21:15:20 +0000 (22:15 +0100)]
randr12: Readd crt load detect + misc changes + restrictions (see full log)
- Crt load detect has been readded, but only for the primary output (the other gives false positives).
- Misc changes to ramdac management.
- Until i know how to trigger a full mode change, i cannot allow adding an output which requires ramdac0 during runtime.
Maarten Maathuis [Tue, 6 Nov 2007 15:11:43 +0000 (16:11 +0100)]
randr12: Reasonably complete TMDS programming, see notes.
- Please file a bug and make a mmio-trace when it fails for you.
- I can now hotplug TMDS, so that makes both types hotpluggable on nv4x.
- I have no clue what happens on pre-nv40 hardware, so please try.
Maarten Maathuis [Tue, 6 Nov 2007 09:56:22 +0000 (10:56 +0100)]
randr12: Associate VPLL's with ramdac instead of crtc.
Maarten Maathuis [Tue, 6 Nov 2007 09:34:56 +0000 (10:34 +0100)]
randr12: Put TEST_CONTROL into neutral position.
Maarten Maathuis [Mon, 5 Nov 2007 22:32:16 +0000 (23:32 +0100)]
NV50: Don't hit pre-NV50 codepath.
Maarten Maathuis [Mon, 5 Nov 2007 20:28:22 +0000 (21:28 +0100)]
randr12: Remove incorrect (and hopefully redundant) output initialisation check.
Maarten Maathuis [Mon, 5 Nov 2007 20:18:13 +0000 (21:18 +0100)]
randr12: Do not remove any bits from crtc register 580.
Maarten Maathuis [Mon, 5 Nov 2007 19:30:41 +0000 (20:30 +0100)]
randr12: Only use VPLL as timing source.
Maarten Maathuis [Mon, 5 Nov 2007 19:04:26 +0000 (20:04 +0100)]
randr12: Only enable crtc at the very last stage, should avoid mode setting "blinking".
Maarten Maathuis [Mon, 5 Nov 2007 09:03:15 +0000 (10:03 +0100)]
randr12: Add a native mode for TMDS and make that preferred + some ddc related fixes.
Ben Skeggs [Mon, 5 Nov 2007 00:44:58 +0000 (11:44 +1100)]
Maarten Maathuis [Sat, 3 Nov 2007 21:03:18 +0000 (22:03 +0100)]
randr12; Forgot a small thing.
Maarten Maathuis [Sat, 3 Nov 2007 20:54:48 +0000 (21:54 +0100)]
randr12: A legitimate DPMS call could reset the ramdac and effectively disable the mouse.
Maarten Maathuis [Sat, 3 Nov 2007 09:00:06 +0000 (10:00 +0100)]
randr12: Hopefully improve the native flatpanel mode finder.
Maarten Maathuis [Fri, 2 Nov 2007 22:17:16 +0000 (23:17 +0100)]
randr12: We cannot reset ramdacs during detect, there may not be a modesetting after it.
Maarten Maathuis [Fri, 2 Nov 2007 20:44:40 +0000 (21:44 +0100)]
randr12: Futher refine crtc timings, hoping to solve the "pink line" issue.
Maarten Maathuis [Thu, 1 Nov 2007 16:54:26 +0000 (17:54 +0100)]
randr12: Improved ramdac choosing, based on bios information (or value).
Maarten Maathuis [Thu, 1 Nov 2007 16:01:53 +0000 (17:01 +0100)]
randr12: Remove redundant output setup + don't print full edid.
Maarten Maathuis [Thu, 1 Nov 2007 12:00:45 +0000 (13:00 +0100)]
randr12: Cursor fixes(probably only affects nv4x).
Maarten Maathuis [Thu, 1 Nov 2007 10:10:24 +0000 (11:10 +0100)]
randr12: Improve analog monitor allignment + misc fixes.
Ben Skeggs [Thu, 1 Nov 2007 07:35:33 +0000 (18:35 +1100)]
nv40: what can I say? oops!
Ben Skeggs [Thu, 1 Nov 2007 07:17:20 +0000 (18:17 +1100)]
nv40: completely untested fix for composite on ppc
Thanks go to ps3rsx guys for finding the issue.
Maarten Maathuis [Wed, 31 Oct 2007 21:59:54 +0000 (22:59 +0100)]
randr12: Some misc cleanup to make malc0's patches work.
Maarten Maathuis [Wed, 31 Oct 2007 20:30:36 +0000 (21:30 +0100)]
randr12: The "easy" TMDS registers, please report regressions.
Maarten Maathuis [Wed, 31 Oct 2007 18:00:28 +0000 (19:00 +0100)]
randr12: Misc register fixes.
Maarten Maathuis [Wed, 31 Oct 2007 12:22:29 +0000 (13:22 +0100)]
randr12: Some changes to VCLK ratio handling.
Maarten Maathuis [Wed, 31 Oct 2007 08:18:59 +0000 (09:18 +0100)]
randr12: some blob copying
Stephane Marchesin [Wed, 31 Oct 2007 01:09:08 +0000 (02:09 +0100)]
Fix bugs in nv30 exa (kde text seems back)
Peter Winters [Tue, 30 Oct 2007 22:04:28 +0000 (23:04 +0100)]
NV10 EXA: implement repeat for 1x1 textures
Peter Winters [Sun, 28 Oct 2007 22:52:22 +0000 (23:52 +0100)]
NV10 EXA: Fix viewport setup
Maarten Maathuis [Tue, 30 Oct 2007 20:00:54 +0000 (21:00 +0100)]
randr12: Flatpanel scaling is finally working, read full message.
- The option FPScale is now obeyed and will cause scaling to happen in the monitor.
- The default is scaling is using the GPU.
- When the aspect ratio is very different(>0.10 diff), it will obey aspect ratio and create bands around it.
Maarten Maathuis [Tue, 30 Oct 2007 12:54:25 +0000 (13:54 +0100)]
randr12: Some copyright stuff.
Maarten Maathuis [Tue, 30 Oct 2007 12:44:44 +0000 (13:44 +0100)]
randr12: Disable some panel scaling stuff, because it is broken.
Maarten Maathuis [Tue, 30 Oct 2007 10:44:58 +0000 (11:44 +0100)]
randr12: Lots of misc fixes.
- This does not fix the issue with -hsync, +vsync modelines (or the other way around) yet.
- There are two PVIO ranges, i'm surprised noone noticed this.
- Some misc fixes.
Stephane Marchesin [Tue, 30 Oct 2007 00:49:38 +0000 (01:49 +0100)]
Disable nv30 exa no big endian until we fix the endianness bugs related to the 3D engine.
Stephane Marchesin [Tue, 30 Oct 2007 00:37:45 +0000 (01:37 +0100)]
Use the new header with license.
Stephane Marchesin [Mon, 29 Oct 2007 22:00:14 +0000 (23:00 +0100)]
More copyrights I remember...
Stephane Marchesin [Mon, 29 Oct 2007 21:57:30 +0000 (22:57 +0100)]
Add some copyrights... not all files are covered yet, but I did the ones I recalled.
Maarten Maathuis [Mon, 29 Oct 2007 17:37:34 +0000 (18:37 +0100)]
randr12: My suspicion was incorrect, i2c buses are swapped for all nv4x
it seems.
Maarten Maathuis [Mon, 29 Oct 2007 12:40:30 +0000 (13:40 +0100)]
randr12: Show NV_RAMDAC_FP_DEBUG_0 of both ramdac's when output is refused.
Maarten Maathuis [Mon, 29 Oct 2007 12:34:20 +0000 (13:34 +0100)]
randr12: Minor change, turning on bit 18 of NV_RAMDAC_SEL_CLK.
Stephane Marchesin [Fri, 26 Oct 2007 13:50:40 +0000 (15:50 +0200)]
nv30 exa : add A8 dst (requires new drm), add some dst formats, handle 1x1 repeat, enable by default.
Stephane Marchesin [Fri, 26 Oct 2007 02:37:51 +0000 (04:37 +0200)]
Fix nv30 exa.
Arthur Huillet [Thu, 25 Oct 2007 14:55:18 +0000 (16:55 +0200)]
s/#define ABC ;/#define ABC do { ; } while(0);/