summaryrefslogtreecommitdiff
path: root/src/radeon.h
AgeCommit message (Collapse)Author
2008-08-14PLL adjustmentsAlex Deucher
Seems higher dotclocks prefer a higher FB div. Someone with a lot of should try and find out where the div sweet spots are for various dotclock ranges. fixes bug 17125
2008-08-13Remove reset of 3D scissor registers when using the CP in the ddxAlex Deucher
They should only affect 3D and init3d() should take care of that case noticed by libv on IRC.
2008-08-08Further cleanup and unification of i2c codeAlex Deucher
- unify the ddc and i2c code - add gpio mask support for legacy chips - remove the magic gpio dance for ancient monitors (if you have an ancient monitor that ddc stops working on let me know). This should speed up DDC on legacy chips. -- radeon sw gpio i2c -- 4 sets of gpio registers for clk and data and corresponding bit masks mask - locks the gpio for use by sw get - reads the value off the gpio pad put - sets the gpio direction to output a - "other stuff" On legacy chips you clear them if you want to use a gpio for i2c. In some cases they are used for the output value when the gpio in the output state.
2008-08-08Fix VT switching on M6 chipsAlex Deucher
Some M6 chips have a faulty MEM_SIZE register that in some cases reports 0 on 8 MB cards. On EnterVT we check the MEM_SIZE reg as a check to see if the card is posted or not. Since this reg returns 0, the driver attempts to post the card which can lead to a hang. Switch this to check if either crtc is active as is done in the bios init code. fixes bug 13994
2008-07-21Clean up legacy display watermark setupAlex Deucher
- makes crtc1 and crtc2 watermark setup independant. - fixes the case where only crtc2 is active
2008-07-08atombios: add support for other endians.Benjamin Herrenschmidt
This is a cleaned up (in as much as atombios can be..) of benh's patch. airlied - removed benh's debugging for now, it might need to be put back later..
2008-07-08rv770 initial supportDave Airlie
adds pci ids and one register from AMD code
2008-07-03radeon: drop all use of CPMode.Dave Airlie
We never test the other codepath and I don't think I've ever recommended it for anyone.
2008-06-23RADEON: PLL tweaksJiří Paleček
Patch from Jiří Paleček (see debian bug 465864) with some tweaks by me. - abort rather than programming bad dividers if no pll dividers can be found - improve the pll selection algorithm - in general, prefer lower ref dividers I've tested this patch on a wide variety of chips (r1xx-r6xx) and clocks.
2008-06-23RADEON: adjust randr crtc/output prepare/commit orderingAlex Deucher
This fixes some occasional mode change problems with multiple heads active. It seems radeons generally like to turn on the whole output/crtc setup in one shot.
2008-06-03Call DRM_IOCTL_MODESET_CTL ioctl to avoid problems with DRM post vblank-rework.Michel Dänzer
2008-05-30RADEON: add Int10 optionAlex Deucher
On some radeons you can't read the bios without initializing int10. On ATOM-based secondary cards, intitializing int10 tends to hang the card.
2008-05-20On non-gcc compilers, use C99's __func__ instead of gcc's __FUNCTION__Alan Coopersmith
2008-05-20RADEON: cleanup connection detection and remove duplicate codeAlex Deucher
2008-05-14Add RS600 supportAlex Deucher
2008-05-13RS4xx: Split out RS400 and RS480 as separate familiesAlex Deucher
RS400 (intel based IGP) and RS480 (AMD based IGP) have different MC setups and need to be handled differently
2008-05-13Reinstate CARD* types that are part of external interfaces.Michel Dänzer
The compiler pointed this out...
2008-05-12Replace CARD{8,16,32} with uint{8,16,32}_tMatt Turner
As has been done with xf86-video-intel, replace all CARD* datatypes with uint*_t datatypes available from stdint.h.
2008-04-10RADEON: store tcl status in driver recAlex Deucher
2008-04-10R3xx+: EXA/textured video fixesAlex Deucher
- get pipe config based on GB_PIPE_SELECT where applicable (adapted from a similar patch from Dave) - only flush the dst cache after submitting vertices, freeing the cache lines stalls the pipe - no need to wait for 3D idle after submitting vertices - fix PURGE_CACHE() and PURGE_ZCACHE() for r3xx+ - fix depth 16 with EXA composite
2008-04-04RADEON: warning fixesAlex Deucher
2008-04-03Revert "RADEON: remove driver rec copies of mc info, use save rec directly"Alex Deucher
This reverts commit be0858a84fbdf74c0b844f462933a221d48c707d. Conflicts: src/radeon_driver.c
2008-03-19[PATCH] Compile warning fixes.Paulo Cesar Pereira de Andrade
Minor changes to avoid declarations mixed with code. Ansified functions with empty prototype to specify they don't receive arguments. Added some prototypes to radeon.h, and major reorder on radeon.h adding prototypes in alphabetical order and specifying to file that defines it.
2008-03-19RADEON: add new macros to distinguish between R3xx and R5xx 3DAlex Deucher
2008-03-11DCE3: adjust PLL for DCE3 chipsAlex Deucher
this fixes stability issues on digital outputs and certain modes.
2008-03-06RADEON: fix tiling/interlaced interaction with randr 1.2Dave Airlie
2008-03-06RADEON: option to override TVDAC adj values from bios with driver defaultsAlex Deucher
If you have a washed out image on the tv dac, try this option. Option "DefaultTVDACAdj" "TRUE"
2008-03-05AVIVO: Initial support for DCE 3.0 using atombiosAlex Deucher
DACs are working well, DIG support (DVI, HDMI, LVDS, etc.) still has some issues.
2008-03-01RADEON: remove driver rec copies of mc info, use save rec directlyMaciej Cencora
info->mc_* were used and the immediately copied into info->ModeReg ones. Just use the ModeReg copies directly.
2008-03-01RADEON: memmap rework 1Alex Deucher
Don't restore memmap regs on every mode switch. Just do memmap save/restore/setup on server start and VT switch.
2008-02-27R300+: update RADEONCP_REFRESH() to reflect new location of scissor regsAlex Deucher
2008-02-23RADEON: add textured video support for r1xx-r4xx radeonsAlex Deucher
Based on the kdrive ati video code by Eric Anholt. R3xx/R4xx still have some clipping issues in certain situations
2008-02-10RADEON: Implement proper (hopefully) BIOS/DRIVER interaction for COM biosAlex Deucher
Tested on my M10-based laptop.
2008-02-08add rv670 pciidsDave Airlie
2008-02-07R6xx: fix ddc after my i2c reworkAlex Deucher
Seems r6xx does something different for its i2c table, revert to the old behavior for now.
2008-02-03RADEON: rework i2c handlingAlex Deucher
Split out clk, data, and lock regs and masks. some cards use different regs and masks for each. For cards with ATOMBIOS, use the i2c bios table to grab the i2c data.
2008-01-19RADEON: get dac2 adj values from the bios tablesAlex Deucher
2008-01-11Drop symbol lists from r128, radeon, theatre.George Sapountzis
compile-tested only
2008-01-08RADEON: Make default output actually work...Alex Deucher
2007-12-23RADEON: Add "IgnoreLidStatus" optionAlex Deucher
Generally, users that start X with the laptop lid closed want to use one or more external monitors rather than the internal panel and do not want the internal panel to be on by default. Others, it seems, want to always have the internal panel on, regardless of the lid. I can't win. Enable this option to force the latter.
2007-12-21RADEON: various cleanupsArkadiusz Miskiewicz
2007-12-21RADEON: clean up prototypesAlex Deucher
2007-12-21RADEON: more re-orgAlex Deucher
move save/restore routines into legacy_crtc/output
2007-12-21RADEON: re-org legacy crtc/output code into separate filesAlex Deucher
2007-12-21Merge remote branch 'origin/atombios-support'Dave Airlie
Conflicts: src/radeon_display.c src/radeon_driver.c
2007-12-19Fix RN50 mode filtering.Adam Jackson
The old code would attempt to limit the maximum pixel size of the screen by limiting the maximum PLL frequency. This ends up confusing the PLL computation code since sometimes your maximum freq can be lower than your minimum freq. More to the point it's just wrong, maximum PLL frequency isn't the same thing as maximum pixel clock, and even that isn't the same thing as maximum scanout pixels per second. The correct thing to do is filter by the mode's effective memory bandwidth.
2007-12-17RADEON: post div tweaks for legacy radeonAlex Deucher
2007-12-17Merge branch 'master' of ↵Alex Deucher
git+ssh://agd5f@git.freedesktop.org/git/xorg/driver/xf86-video-ati into atombios-support merge master and fix conflicts
2007-12-17RADEON: add output enable masksAlex Deucher
add output enable masks for outputs that drive more than one connector. Make sure we don't turn off an output that's driving another connector.
2007-12-17RADEON: more PLL fixesAlex Deucher
- reduce the calculation accuracy - certain LVDS panels seem to only like certain ref_divs - add pll flags to handle special cases - adjust the pll limits on legacy cards