summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-04-16kms: add uevent support.Dave Airlie
When we get a hotplug event from the kernel we should notify the client side to reconfigure displays. based on work by ajax in intel driver. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-13radeon: add support for pll algo selectionAlex Deucher
tv-out on atom systems is very particular about it's dividers. force it to use the old algo. Should fix fdo bug 27593.
2010-04-12atom: disable TV encoder when VGA is in useAlex Deucher
Switching between TV and VGA caused problems on some systems since the TV encoder was left enabled. Should fix fdo bug 25520.
2010-04-12Xv overlay: set scalerwidth to 1920 on r3xx/r4xx chipsAlex Deucher
reported on phoronix forums.
2010-04-09radeon: add some new pci idsAlex Deucher
2010-04-08radeon: don't setup Xv on rn50Alex Deucher
It has no overlay or 3D engine. fixes fdo bug 27528
2010-04-01radeon: fix possible gpio i2c table overrunAlex Deucher
GPIO_I2C_INFO does not always have ATOM_MAX_SUPPORTED_DEVICE entries. Should fix Novell bug 589022.
2010-04-01r600/exa: further cleanup, use the object struct in the accel state.Dave Airlie
This cleans up the accel state objects as well. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-01r600: cleanup wasteful variables.Dave Airlie
Just assign directly to the structs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-01r600: reduce function call overhead.Dave Airlie
Create a small accel object that can be used to reduce the amount of parameters passed to SetAccelState. This can be cleaned up a lot more. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-31r6xx+ EXA: fix swapped domains in kms UTSAlex Deucher
Noticed by Dave. Should fix fdo bug 27284
2010-03-30Add support for MacModel autodetection on OpenBSD.Owain G. Ainsworth
This allows radeon-equipped macs to work without an xorg.conf on openbsd. Patch originally written by Mark Kettenis (kettenis@openbsd.org)
2010-03-26radeon: add support eDP connectors with and LCD device tagAlex Deucher
should fix fdo bug 27322
2010-03-26radeon: fix name string for eDPAlex Deucher
2010-03-23r6xx+ EXA/Xv: add a R600SetAccelState functionAlex Deucher
This moves CS bo checking and alignment checks into a central location. It also cleans up the code.
2010-03-23r6xx+ EXA: always use a temp surface for overlapping copiesAlex Deucher
The scanline based fallback code was complex and added a lot of overhead. It also didn't work with kms.
2010-03-22r6xx+ EXA: always use the accel_state state in DoPrepareCopyAlex Deucher
2010-03-22r6xx EXA/Xv: track src/dst domainsAlex Deucher
Much of the code is shared, so track the src/dst domains so we make sure the uses consistent domains for each bo.
2010-03-17XAA: disable render accelAlex Deucher
It's been reported broken for a while. Should fix fdo bug 27151, others.
2010-03-18radeon: avoid using DRI1 init path on DRI2 driver.Dave Airlie
I was playing with multi-seat and found this code, fixed it up to be sane and more DRI2 like. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-16kms: fix ums naming compat for DisplayPortAlex Deucher
2010-03-15Fix some word accesses in AtomBios to work on all architectures.Michael Cree
The UINT16LE_TO_CPU(), etc., macros are used in the AtomBios code to fix up endian issues but they do not address bad alignment or assist architectures that cannot perform hardware byte or word accesses. This patch inserts use of the ldw_u(), etc., interface of the Xserver into certain AtomBios accesses to address alignment issues. This resolves Debian bug 572311, namely that the driver when compiled for generic Alpha architecture (i.e. doesn't use the byte-word extension) resulted in no display output on certain Radeon cards. Signed-off-by: Michael Cree <mcree@orcon.net.nz>
2010-03-15r6xx/r7xx: fix domain handling in accel codeAlex Deucher
Noticed by Pauli and Michel on IRC. Improves GetImage performace by a factor of ~10.
2010-03-15radeon: remove some leftover debugging outputAlex Deucher
2010-03-10radeon: add support for pal on legacy IGP chipsAndrzej Hajda
Based on my initial non-working patch. Fixes some element of fdo bug 12007
2010-03-09atom: i2c gpio fixesAlex Deucher
Basically a port of my kms patch. This allows us to remove some quirks.
2010-03-05radeon: disable frac fb div with new pll codeAlex Deucher
fixes fdo bug 26897
2010-03-03radeon: add new RS880 pci idAlex Deucher
2010-02-27pciids: hopefully fix HPDave Airlie
2010-02-26rv740: disable dfs workaround for drm 1.32+Alex Deucher
rv740 pipe setup was fixed in 2.6.33
2010-02-26Use RADEON_ALIGN instead of open coding it.Matt Turner
Also fix some RADEON_ALIGN(x, 63), which would return incorrect results for odd x. Though this shouldn't happen, it's still not right. You wouldn't ever write (x + 62) & ~62 which is clearly wrong (and what it expands to). CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-02-26Use/define RADEON_GPU_PAGE_SIZE instead of sprinkling 4096 everywhere.Matt Turner
Also, define RADEON_BUFFER_ALIGN in terms of it, and replace some RADEON_ALIGN(x, RADEON_BUFFER_ALIGN) with RADEON_ALIGN(x, RADEON_GPU_PAGE_SIZE) since this is really what was intended. CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-02-26pci: add HP vendor idDave Airlie
2010-02-26add more triple-head server IDCooper Yuan
2010-02-25clean up kms zaphod handlingJames Le Cuirot
Taken from James patch on bug 24523 agd5f: adapt to the current code
2010-02-25update ZaphodHeads optionAlex Deucher
Now that the screen section mapping is fixed, Make the option per-instance and allow multiple outputs to be specified; e.g., DVI-0 and HDMI-0 associated with instance 0 and LVDS and VGA-0 associated with instance 1.
2010-02-25zaphod: Fix entity instance assignment.James Le Cuirot
Each screen needs to have a pointer back to its device's entity instance, Currently Screen1 is pointing to Screen0's instance so when it comes to match up the screen sections with the detected screens, Screen0 gets chosen in both cases. See bug 24523
2010-02-23radeon: fixes for zaphodheads optionAlex Deucher
Needed for systems with more than two outputs. Both KMS and non-KMS zaphod work on systems with more than two outputs now.
2010-02-23zaphod: hopefully fix kms + zaphodDave Airlie
2010-02-22AVIVO: set frac fb divider pll flagAlex Deucher
matches previous behavior
2010-02-22radeon: update new pll algoAlex Deucher
- add support for pre-avivo chips - add support for fixed post/ref dividers - add support for non-fractional fb dividers By default avivo chips use the new algo and pre-avivo chips use the old algo. Use the "NewPLL" option to toggle between them (set to TRUE for the new algo, FALSE for the old).
2010-02-18RS600: add connector quirkAlex Deucher
System lists DVI port as HDMI. fixes fdo bug 26605
2010-02-18r6xx/kms: when reseting BO force default state emissionJerome Glisse
In KMS world each cs need to fully initialize the 3D engine when we were erasing cs in IBDiscard for r6xx we weren't forcing reemission of default state. This patch force this emission. Fix : http://bugs.freedesktop.org/show_bug.cgi?id=26603 http://bugzilla.kernel.org/show_bug.cgi?id=15284
2010-02-17radeon: add ZaphodHeads optionAlex Deucher
Allows users that want to use zaphod mode to select which xrandr outputs are assigned to which head. E.g., Option "ZaphodHeads" "LVDS,VGA-0" will assign LVDS to the first zaphod driver instance and VGA-0 to the second instance.
2010-02-15EXA: Fix order of coordinates passed to radeon_pick_best_crtc().Michel Dänzer
The wrong order prevented tearing avoidance from working with EXA/DRI2.
2010-02-15Allocate BOs for 'video offscreen surfaces' and 'TV-in' in VRAM.Michel Dänzer
I think these can only really work in VRAM, though right now there's probably nothing to prevent them from getting evicted...
2010-02-15Allocate Xv buffers to GTT.Pauli Nieminen
KMS doesn't have acceleration for upload to vram. memcpy/memmove to VRAM directly is very slow (40M/s in benchmark) which causes visible problems to video. Allocating video buffer in GTT will give good performance (350-450M/s) for memmove operation. This is nice performance boost for Xv under KMS. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2010-02-15Use memcpy instead of memove for RADEONSwapCopy.Pauli Nieminen
memcpy has about 25% better performance than memmove when destination is GTT (wc caching). Changing memmove to memcpy in SwapCopy will reduce CPU time spent moving data between host and GPU. memcpy will specially help Xv when playing high resolution videos. The swap path doesn't support overlapping memory copies either so extra safety is not worth the performance hit in commonly used code path. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> [ Michel Dänzer: Fixed up whitespace ]
2010-02-12r6xx/r7xx: implement EXA vline supportAlex Deucher
2010-02-12radeon: consolidate crtc selector for vline waitAlex Deucher
Use the Xv version as it takes into account the area covered by the op rather than just picking the largest crtc area.