summaryrefslogtreecommitdiff
path: root/src/radeon_probe.c
AgeCommit message (Collapse)Author
2013-12-24radeon: Restore kernel module load on FreeBSD.Robert Millan
Since the introduction of a call to drmCheckModesettingSupported() in radeon_kernel_mode_enabled(), with abort condition if such call fails, the drmOpen() call in radeon_open_drm_master() no longer takes the responsibility of loading the radeon kernel module. However at least on FreeBSD (and GNU/kFreeBSD), X is still relied on to load the modules it needs. This commit restores the old behaviour of loading kernel modules on these systems. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72852 Signed-off-by: Robert Millan <rmh@freebsd.org>
2013-01-10Drop support for X servers older than 1.7.Michel Dänzer
The main purpose is to drop DRI2 compatibility code paths which are getting awkward to deal with and at this point are probably only tested lightly if at all. xserver 1.7 was released more than 3 years ago, and 1.6.2 was already required before. Mostly mechanical, there's probably potential for more cleanups. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-12-11Remove unused local variable 'path'.Michel Dänzer
../../src/radeon_probe.c: In function 'radeon_platform_probe': ../../src/radeon_probe.c:270:11: error: unused variable 'path' [-Werror=unused-variable] Reviewed-by: Alex Deucher <aleander.deucher@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2012-11-03radeon/radeon_platform_probe: fix Zaphod mode breakageIlija Hadzic
Using radeon_platform_probe function breaks the Zaphod mode because it attempts to call xf86AddEntityToScreen multiple times, but nobody calls xf86SetEntityShared prior to that. Consequently, calls for all but first device instance fail. Prior to introduction of platform bus, the logic was that the Probe function would make the entity sharable, which would cause Xserver to later make it shared prior to adding it to screen. With the platform bus loading, add to screen happens in the probe function so we have to make it shared there. v2: do not make the entity shared if it was not previously marked sharable. Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=56680 https://bugs.freedesktop.org/show_bug.cgi?id=56663 Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
2012-11-02Revert "radeon/radeon_platform_probe: fix Zaphod mode breakage"Alex Deucher
This reverts commit 39eac3104c2f08b4d78aab3f88fd104301eb4711. This breaks non-zaphod configurations with xserver 1.13. See: https://bugs.freedesktop.org/show_bug.cgi?id=56680 https://bugs.freedesktop.org/show_bug.cgi?id=56663
2012-11-01radeon/radeon_platform_probe: fix Zaphod mode breakageIlija Hadzic
Using radeon_platform_probe function breaks the Zaphod mode because it attempts to call xf86AddEntityToScreen multiple times, but nobody calls xf86SetEntityShared prior to that. Consequently, calls for all but first device instance fail. Prior to introduction of platform bus, the logic was that the Probe function would make the entity sharable, which would cause Xserver to later make it shared prior to adding it to screen. With the platform bus loading, add to screen happens in the probe function so we have to make it shared there. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
2012-09-03radeon: add platform bus loading support.Dave Airlie
This allows the radeon driver to be loaded via the platform bus mechanism. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-15Implement ->driverFuncAdam Jackson
Copied from fbdev, makes it so we can run without iopl. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-06-15radeon: drop all UMS/DRI1/XAA/overlay support.Dave Airlie
This overhauls the radeon driver and removes all the old UMS-only code, it drops all the UMS, DRI1, XAA, overlay Xv, video capture, tv tuners There are probably a lot more cleanups that will fall out of this afterwards. So far this is compile/build tested. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-10-20radeon/kms: fallback to vesa if GPU is not supported by UMSJerome Glisse
For GPU not supported by UMS, test in probe so that we properly fallback to vesa. Signed-off-by: Jerome Glisse <jglisse@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2010-12-01radeon: add some missing math.h and assert.h includesDave Airlie
2010-06-21Convert x(c)alloc/xfree to m/calloc/free.Michel Dänzer
Fixes deprecation warnings with xserver master and should also work with older xservers.
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
2009-07-28ati: change to using ABI version checkDave Airlie
2009-07-28ati: update for resources/RAC API removalDave Airlie
2009-07-02Warning fixes.Michel Dänzer
2009-07-02radeon: fix it properly.Dave Airlie
I blame the flu
2009-07-02radeon: fix compile without kmsDave Airlie
2009-07-02radeon: add KMS support (still disabled)Dave Airlie
This adds DRI2 + KMS + driver pixmaps support to the driver. I've decided to just do a completely separate KMS driver file instead of hacking the crap out of radeon_driver.c. So now I do the KMS check in radeon_probe.c time and set the DDX pointed up to a completely different set at this stage. This avoids a lot of if (kms) type crap in the code at the expense of making sure we make changes to both files if necessary. This code is still disabled in configure.ac as I broke EXA composite rendering somehow in KMS mode
2008-12-10[PATCH] xf86misc extension has been removed, update driver to reflect itBenjamin Close
2008-03-02[PATCH] Ensure symbols used by other modules are visible.Paulo Cesar Pereira de Andrade
The xf86-video-ati drivers are one of the cases where LoaderSymbol is widely used in some obscure ways. This patch fixes the problem, and allows compiling with -fvisibility=hidden.
2008-02-18r128/radeon: probably correct fix for non pci access codeGeorge Sapountzis
2008-02-16r128/radeon: hopeful fix for non pci access codeDave Airlie
2008-02-16r128/radeon: fix build without pciaccessDave Airlie
2008-02-15ati: convert to pci probeGeorge Sapountzis
add pciids for each subdriver, make no use of the match_data functionality. thanks to Alex Deucher for reviewing and testing.
2008-02-15ati wrapper: translate Device linesGeorge Sapountzis
2008-01-16ati wrapper: add DriverRec's and use themGeorge Sapountzis
2007-12-07radeon: bring back zaphod all is forgiven.Dave Airlie
You've whined, you've cried, you've nagged, and you're guilt trippin has made me do it... It actually wasn't as hard as I thought it would be. Still not perfect, couple of things to fix yet
2007-11-20radeon: restructure pci ids to avoid effort laterDave Airlie
This uses a single file with all the pciids and parameters for radeon family and setup in it. I don't run the perl script at build time to avoid a perl dependency on build but adding pci ids should be done via the csv file with openoffice or gnumeric if possible.
2007-10-05RADEON: rename to PCI_CHIP_RS485_5975 everywhereTormod Volden
RS482_5975 is actually RS485. see bug 12048
2007-10-04Merge remote branch 'origin/pci-rework'Michel Dänzer
2007-09-22RADEON: Don't make the entity as shareableAlex Deucher
This should prevent people from mistakenly trying to run zaphod mode
2007-08-28[mach64] Convert to pci-rework, keeping source-code compatibility.pci-reworkGeorge Sapountzis
It still uses the old probe method though, this is due to the ati wrapper.
2007-08-23radeon: bug 11860 fix some mem leaksRoland Bär
2007-03-23Fold FillIn() back to Probe().George Sapountzis
2007-03-23Move {atimach64,r128,radeon}_probe.c from ati to subdrivers.George Sapountzis
Subdrivers are now loaded from the wrapper Probe function rather than at screen creation time. The wrapper Identify callback only prints chip families now, chip lists are printed when a subdriver is loaded. This also avoids duplication of subdriver Identify callbacks. Unknown radeons should still get a list of known radeon and then probe fails... Probe for atimisc last to avoid needless loading in most cases (r128, radeon).
2006-09-25remove all CVS annotations from the ATI driver filesDave Airlie
2006-03-22Convert use of xf86fopen() and other xf86 wrapped libc symbols to use libcKristian Høgsberg
symbols directly. The xf86* versions aren't supposed to be used directly. Drop libc wrapper; don't include xf86_ansic.h and add includes now missing.
2006-03-12Stop using xf86PciInfo.h, instead use a local copy of the PCI IDs we needBenjamin Herrenschmidt
in atipciids.h so we can update the ATI driver independently of the server when new chips are added
2006-02-25Add pci ids known to exist (see #4284 for instance). There are stillRoland Scheidegger
entries which probably don't really exist (cancelled cards and such), leave them as-is. Fix the name of some entries, mostly based on the .inf file of the newest catalyst driver. Use own family id for rv410 and rs400, though there is no different code (yet?).
2005-12-14Bug #1760: Fix ati wrapper multihead to be dlloader friendly.Adam Jackson
2005-07-11Prep for modular builds by adding guarded #include "config.h" everywhere.XORG-6_8_99_16XORG-6_8_99_15Adam Jackson
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2005-03-31- Add new Radeon pci ids (ATI devrel), bug 2827XORG-6_8_99_1Alex Deucher
2005-03-18Add support for production version of ATI RN50/ES1000. (ATI TechnologiesMichel Daenzer
Inc.)
2005-02-18Bug #2576: Add support for ATI RN50/ES1000. (ATI Technologies Inc.)Michel Daenzer
2004-08-12Factor out R{128,ADEON}Chipsets into their own headers so they can beAdam Jackson
sanely included in both the ati core and the r128/radeon submodules; r128 and radeon can now be directly loaded under dlloader. Teach imstt about the dlloader- frendly way to talk to fbdevhw. (Partial for bugs #393 and #400.)
2004-07-30Support for New radeon chips: R420/M18, R423, RV370/M22, RV380/M24, RS300.Hui YU
Add special handlings for DELL triple-head server (RV100). Misc. bug fixes for flat panel, host aperture, etc (Bug #946)
2004-07-30Bug #400 (partial): Driver fixes for the dlloader. When using dlloader, allAdam Jackson
framebuffer formats except cfb and the overlay modes should work, and r128 and radeon need to be loaded from the ati driver (both issues to be fixed soon). Tested on i740, s3virge, mach64, tdfx, vesa, and vga drivers. elfloader users shouldn't be affected.
2004-07-26- Add Radeon DynamicClocks optionAlex Deucher
- Add small fixes and clean ups from ati's last code drop (typo_fixes, remove_fudge, laptop, xvfix) - fix possible segfault in mga_dri.c (Ryan Underwood) - Add Xv support to pre-nm2160 neomagic chipsets