summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-03Fix string format mismatch warningsupstream-patchesTormod Volden4-19/+19
Consistently use int for register values and long for register offsets. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-10-03Add --help option to show usage descriptionTormod Volden1-0/+3
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-10-03Only print current status in usage() if we are rootTormod Volden1-6/+18
Otherwise print "unknown" for dac and backlight status. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-10-03Warn if run without superuser rightsTormod Volden1-0/+2
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-10-03Clearer error message on fatal errorsTormod Volden3-4/+4
Let the user know that we actually hit an error. Also add a missing newline in one error message. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-08-31radeontool: add support for parsing OF ibm,* setup tablesDave Airlie1-9/+103
using tables from rv100 on js22 machine, not sure what 0xa op in init2 table is these tables are found in the open firmware device tree, /proc/device-tree/pci@800000020000202/display@1/ on the js22 Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-05-06radeontool: update pci idsDave Airlie2-1/+22
2011-05-02evergreen : more regsDave Airlie2-25/+35
2011-02-08radeonreg: add radeonreg regs all optionAlex Deucher2-40/+107
detect the chip family and dump appropriately. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-08add radeonreg programAlex Deucher2-1/+427
simple reg dumper for different families. radeonreg regs <set> <set> radeon - r128, r1xx-r4xx avivo - r5xx, rs600/690/740, r600, rv610/630/670 dce3 - rv620/635/770/710/730/740, rs780/880 dce4 - evergreen dce5 - ni Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-08add latest chip families from the ddxAlex Deucher2-1/+45
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-02radeontool 1.6.2Dave Airlie1-1/+1
2010-12-08add support for 256k mmio aperturesAlex Deucher1-0/+2
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-11-19add combios ram reset tableDave Airlie1-0/+33
2010-11-12evergreen: add more regs to all dumpsDave Airlie1-0/+60
2010-11-12evergreen: add support for other commandline regsDave Airlie1-1/+4
2010-11-12evergreen: add initial dac supportDave Airlie2-1/+21
2010-08-16radeontool: fix mc dumpsDave Airlie1-3/+5
2010-08-10avoid crashing on dce3.2 all reg dumpsDave Airlie1-7/+7
2010-08-10evergreen: add initial cursorDave Airlie2-22/+48
2010-08-10evergreen: add initial support using code from DDXDave Airlie3-14/+115
2010-08-10update pciids from radeonDave Airlie2-3/+128
2010-08-06avivotool: fix fb mapping failureDave Airlie2-6/+8
fix radeontool also
2010-06-04radeon: fix clock cntl smashing on setting a valueDave Airlie1-4/+10
2010-03-24bump to 1.6.1Dave Airlie1-1/+1
2010-03-24radeontool: Avoid lockup on ‘radeontool regmatch '*'’ on r128Jonathan Nieder1-0/+12
Running ‘radeontool regmatch '*'’ with an ATI Rage 128 Mobility M3 LF (AGP) locks up the system. The register reads that lock up are CRTC2_CRNT_FRAME and CRTC2_VLINE_CRNT_VLINE; it is not clear to me why. From the xf86-video-r128 source I can see that this is one of the handful of r128 chips that supports dual-head operation, but at the time of the lockup, the CRTC2_GEN_CNTL register had value 0x0 (i.e., CRTC2 disabled); maybe that’s why. Presumably these two registers would only be relevant if CRTC2 is enabled, so as a safety measure, check for that before displaying them with ‘radeontool regmatch [pattern]’. A similar crash was reported on 2009-12-02 on #radeon for an R300, so presumably this problem is not restricted to pre-Radeon cards. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24radeontool regmatch: sync() before reading a bunch of registersJonathan Nieder1-0/+3
A hard lock-up is always an unpleasant event, but it can be less unpleasant if any unrelated pending I/O is finished first. Make ‘radeontool regmatch '*'’ a little safer by calling sync(). Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24radeontool regmatch: print name before reading each registerJonathan Nieder1-2/+8
Register reads might take a long time or lock up the system. Let the user know which register before such an event occurs. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24radeontool: error out for too many control or fb regionsJonathan Nieder1-2/+7
With the previous commit (radeontool: handle r128 again, 2010-03-23), the rules for finding the control area and framebuffer became more lax. It is possible that some cards have multiple regions satisfying the new criteria, in which case the code makes a silly arbitrary choice. Better to error out and make it clear what happened in such a case. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24radeontool: handle r128 againJonathan Nieder1-2/+3
An r128 has a tiny (16 KiB) control region and a small (64 MiB) framebuffer, but radeontool can handle it anyway. In particular, this gets 'radeontool light off' (and 'on'), which is often used to work around bugs in Dell suspend support, working again for the r128. It hasn’t been working since the change to use libpciaccess. Analysis-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24radeontool: error out for missing control or fb regionJonathan Nieder1-2/+6
Do not blithely use an uninitialized value when the expected memory areas cannot be found. This is triggered by trying to use radeontool on an r128. Noticed-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24radeontool: completely skip early cards with --skipJonathan Nieder1-3/+4
radeontool looks for the control and fb regions for early cards with --skip even though that they are not going to be used. If radeontool fails to detect one of those regions for the chosen card, the result can be a setup with one region from one card and the other from another. This also improves error handling: if only one card is present but --skip=1 was supplied, then without this patch radeontool will not actually error out. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-24add combios igp tablesDave Airlie1-0/+30
2010-03-23radeontool: more legacy registersDave Airlie2-1/+4
2010-03-23radeontool: add a bunch more pll regsDave Airlie2-0/+24
2010-02-10radeontool: add more legacy crtc regsDave Airlie2-0/+29
2010-02-09fix mmio aperture selection for evergreenAlex Deucher1-0/+2
2010-02-09decode combios mm table a bitDave Airlie1-0/+48
2010-02-08radeontool: use stderr for usage messageTormod Volden1-9/+9
Signed-off-by: Erik Edelmann <erik.edelmann@iki.fi> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-08radeontool: Remove an incomplete list of known cardsTormod Volden1-14/+0
Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-08radeontool: parse command options reliablyLuigi Gangitano1-10/+13
Signed-off-by: Luigi Gangitano <luigi@debian.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-12-22fix i2c gpio lookupAlex Deucher1-4/+10
2009-12-22add autogen.shAlex Deucher1-0/+14
2009-12-22radeontool/avivotool: power mode updatesAlex Deucher3-1/+627
- fix some issues with power mode dumping on pre-atom - dump power tables on atom
2009-12-17radeon/avivotool: automake/autoconfisizeDave Airlie3-16/+68
2009-11-20dump in hexDave Airlie1-1/+1
2009-11-20radeontool: add mc dumpsDave Airlie1-0/+20
2009-11-20radeontool: add some more combiosDave Airlie1-5/+74
2009-11-20radeontool: add clk regs to avivotoolDave Airlie1-0/+31
2009-11-09radeonbios: add some more combios tablesDave Airlie1-50/+160