aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon
AgeCommit message (Collapse)AuthorFilesLines
2013-07-08drm/radeon/dpm: implement vblank_too_short callback for btcAlex Deucher3-1/+17
Check if we can switch the mclk during the vblank time otherwise we may get artifacts on the screen when the mclk changes. Signed-off-by: Alex Deucher <[email protected]>
2013-07-08drm/radeon/dpm: implement vblank_too_short callback for evergreenAlex Deucher3-0/+15
Check if we can switch the mclk during the vblank time otherwise we may get artifacts on the screen when the mclk changes. Signed-off-by: Alex Deucher <[email protected]>
2013-07-08drm/radeon/dpm: implement vblank_too_short callback for 7xxAlex Deucher3-0/+13
Check if we can switch the mclk during the vblank time otherwise we may get artifacts on the screen when the mclk changes. Signed-off-by: Alex Deucher <[email protected]>
2013-07-08drm/radeon/dpm: add checks against vblank timeAlex Deucher2-3/+13
If the vblank time is too short to adjust mclk, assume multiple displays (no mclk adjustments). Signed-off-by: Alex Deucher <[email protected]>
2013-07-08drm/radeon/dpm: add helper to calculate vblank timeAlex Deucher4-0/+29
Required for checking vblank time for mclk changes. Signed-off-by: Alex Deucher <[email protected]>
2013-07-08drm/radeon: remove stray line in old pm codeAlex Deucher1-1/+0
Looks like a remnant from an old rebase. Signed-off-by: Alex Deucher <[email protected]>
2013-07-08drm/radeon/dpm: fix display_gap programming on rv7xxAlex Deucher1-2/+2
Check the driver state rather than the register as the crtc registers may not be enabled yet. Should fix: https://bugzilla.kernel.org/show_bug.cgi?id=60510 https://bugs.freedesktop.org/show_bug.cgi?id=66651 Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon/dpm: implement force performance level for TNAlex Deucher6-0/+44
Allows you to force the selected performance level via sysfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon/dpm: implement force performance level for ON/LNAlex Deucher3-0/+47
Allows you to force the selected performance level via sysfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon/dpm: implement force performance level for SIAlex Deucher3-9/+36
Allows you to force the selected performance level via sysfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon/dpm: implement force performance level for caymanAlex Deucher3-7/+34
Allows you to force a performance level via sysfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon/dpm: implement force performance levels for 7xx/eg/btcAlex Deucher7-12/+37
Allows you to limit the selected power levels via sysfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon/dpm: add infrastructure to force performance levelsAlex Deucher2-0/+62
This allows you to force specific power levels within a power state. Due to hardware restrictions between generations, the interface is limited to the following 3 selections: auto: all levels enabled low: forced to the lowest power level high: forced to the highest power level Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon: fix surface setup on r1xxAlex Deucher1-7/+4
r1xx asics have a slightly different surface register setup compared to newer asics. There is no specific enable bit for macro tiling, rather, to disable macro tiling, you need to set the surface pitch to 0. With this fixed, the special rn50 handling can go. Noticed-by: Mark Kettenis <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon: add support for 3d perf states on older asicsAlex Deucher2-3/+15
Certain older rv770 asics have both a performance and a 3D performance state rather than just multiple performance levels in the state power state. The current code would select the performance state rather than the 3D performance state when the "performance" profile was selected. This change switches to the "balanced" profile by default which ends up being the internal performance profile. When the user selects the "performance" profile, it selects the internal 3D performance state so the user can select the higher performance modes. For most asics this changes nothing. For certain rv770 asics with static performance and 3D performance states, this allows you to select between then using by selecting the "balanced" and "performance" dpm profiles. Signed-off-by: Alex Deucher <[email protected]>
2013-07-05drm/radeon: set default clocks for SI when DPM is disabledAlex Deucher3-8/+12
Fix patching of vddc values for SI and enable manually forcing clocks to default levels as per NI. This improves the out of the box performance with SI asics. Signed-off-by: Alex Deucher <[email protected]>
2013-07-04Merge branch 'for-linus' of ↵Linus Torvalds1-1/+1
git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial Pull trivial tree updates from Jiri Kosina: "The usual stuff from trivial tree" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (34 commits) treewide: relase -> release Documentation/cgroups/memory.txt: fix stat file documentation sysctl/net.txt: delete reference to obsolete 2.4.x kernel spinlock_api_smp.h: fix preprocessor comments treewide: Fix typo in printk doc: device tree: clarify stuff in usage-model.txt. open firmware: "/aliasas" -> "/aliases" md: bcache: Fixed a typo with the word 'arithmetic' irq/generic-chip: fix a few kernel-doc entries frv: Convert use of typedef ctl_table to struct ctl_table sgi: xpc: Convert use of typedef ctl_table to struct ctl_table doc: clk: Fix incorrect wording Documentation/arm/IXP4xx fix a typo Documentation/networking/ieee802154 fix a typo Documentation/DocBook/media/v4l fix a typo Documentation/video4linux/si476x.txt fix a typo Documentation/virtual/kvm/api.txt fix a typo Documentation/early-userspace/README fix a typo Documentation/video4linux/soc-camera.txt fix a typo lguest: fix CONFIG_PAE -> CONFIG_x86_PAE in comment ...
2013-07-03radeon: remove redundant __list_for_each definition from mkregtable.cDave Jones1-13/+0
Signed-off-by: Dave Jones <[email protected]> Cc: Dave Airlie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2013-07-03drm/radeon/sumo: implement support for disable_gfx_power_gating_in_uvd flagAlex Deucher1-1/+3
Some asic revisions need to disable PG when UVD is active. Signed-off-by: Alex Deucher <[email protected]>
2013-07-03drm/radeon/tn: disable PG when changing UVD clocksAlex Deucher1-0/+8
Causes hangs for some people. Signed-off-by: Alex Deucher <[email protected]>
2013-07-03drm/radeon/sumo: disable PG when changing UVD clocksAlex Deucher1-2/+19
Causes hangs for some people. Signed-off-by: Alex Deucher <[email protected]>
2013-07-03drm/radeon/aruba: disable additional rlc featuresAlex Deucher1-2/+0
They cause problems with dynamic clocking. Signed-off-by: Alex Deucher <[email protected]>
2013-07-03drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()Alex Deucher1-1/+1
Signed-off-by: Alex Deucher <[email protected]>
2013-07-02drm/radeon/dpm: fix compilation with certain versions of gccMike Lothian6-0/+6
Add #include <linux/seq_file.h> to *_dpm.c files Signed-off-by: Alex Deucher <[email protected]>
2013-07-02drm/radeon/dpm: clarify debugfs warningAlex Deucher1-1/+1
For chips without debugfs dpm support say that it's not implemented rather than not supported to avoid confusion about DPM support in general. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add debugfs support for SIAlex Deucher4-0/+26
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add debugfs support for caymanAlex Deucher4-0/+27
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add debugfs support for TNAlex Deucher3-0/+24
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add debugfs support for ON/LNAlex Deucher3-0/+31
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add debugfs support for 7xx/evergreen/btcAlex Deucher4-0/+39
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add debugfs support for rv6xxAlex Deucher3-0/+28
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: add infrastructure to support debugfs infoAlex Deucher2-13/+29
This lays the frameworks to report realtime power level feedback. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: re-enable state transitions for CaymanAlex Deucher1-5/+0
Was disabled due to stability issues on certain boards caused by the a bug in the parsing of the atom mc reg tables. That's fixed now so re-enable. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/dpm: re-enable state transitions for BTCAlex Deucher1-3/+0
Was disabled due to stability issues on certain boards caused by the a bug in the parsing of the atom mc reg tables. That's fixed now so re-enable. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon: fix typo in radeon_atom_init_mc_reg_table()Alex Deucher1-1/+2
Bad pointer math. Fixes hangs in state transitions with BTC+ asics. Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()Alex Deucher1-1/+1
Signed-off-by: Alex Deucher <[email protected]>
2013-07-01drm/radeon: remove sumo dpm/uvd bringup leftoversAlex Deucher1-17/+0
Function doesn't do anything useful. Signed-off-by: Alex Deucher <[email protected]>
2013-06-28drm/radeon: get rid of ttm_bo_is_reserved usageMaarten Lankhorst3-45/+43
Try to use lockdep_assert_held or other alternatives where possible. Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Jerome Glisse <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
2013-06-28drm/radeon: inline reservationsMaarten Lankhorst2-24/+21
Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Jerome Glisse <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
2013-06-28drm/ttm: make ttm reservation calls behave like reservation callsMaarten Lankhorst5-25/+29
This commit converts the source of the val_seq counter to the ww_mutex api. The reservation objects are converted later, because there is still a lockdep splat in nouveau that has to resolved first. Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Jerome Glisse <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
2013-06-28drm/radeon: implement unpin function, v2Maarten Lankhorst2-5/+15
Changes since v1: - Fixup compiler warning in unpin function. Signed-off-by: Maarten Lankhorst <[email protected]> Reviewed-by: Jerome Glisse <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
2013-06-28Merge branch 'drm-next-3.11' of git://people.freedesktop.org/~agd5f/linux ↵Dave Airlie86-561/+52842
into drm-next This is the pull request for radeon for 3.11. Highlights include: - Support for CIK (Sea Islands) asics: 3D, compute, UVD - DPM (Dynamic Power Management) support for 6xx-SI - ASPM support for 6xx-SI - Assorted bug fixes * 'drm-next-3.11' of git://people.freedesktop.org/~agd5f/linux: (168 commits) drm/radeon/SI: fix TDP adjustment in set_power_state drm/radeon/NI: fix TDP adjustment in set_power_state drm/radeon: fix endian issues in atombios dpm code drm/radeon/dpm: fix UVD clock setting on SI drm/radeon/dpm: fix UVD clock setting on cayman drm/radeon/dpm: add support for setting UVD clock on rv6xx drm/radeon/dpm: add support for setting UVD clock on rs780 drm/radeon: fix typo in ni_print_power_state drm/radeon: fix typo in cik_select_se_sh() drm/radeon/si: fix typo in function name drm/radeon/dpm: fix typo in setting uvd clock drm/radeon/dpm: add dpm_set_power_state failure output (si) add dpm_set_power_state failure output (7xx-ni) drm/radeon/dpm: add dpm_set_power_state failure output (7xx-ni) drm/radeon/dpm: add dpm_enable failure output (si) drm/radeon/dpm: add dpm_enable failure output (7xx-ni) drm/radeon/kms: add dpm support for SI (v7) drm/radeon: switch SI to use radeon_ucode.h drm/radeon: add SI to r600_is_internal_thermal_sensor() drm/radeon/dpm/rs780: properly catch errors in dpm setup ...
2013-06-27drm/radeon/SI: fix TDP adjustment in set_power_stateAlex Deucher1-37/+32
Fixes hangs with DPM in some cases. Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon/NI: fix TDP adjustment in set_power_stateAlex Deucher1-7/+11
Fixes hangs with DPM in some cases. Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon: fix endian issues in atombios dpm codeAlex Deucher1-5/+5
Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon/dpm: fix UVD clock setting on SIAlex Deucher1-2/+2
Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon/dpm: fix UVD clock setting on caymanAlex Deucher2-2/+45
The rv770 version was using the wrong power state type. Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon/dpm: add support for setting UVD clock on rv6xxAlex Deucher1-0/+38
Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon/dpm: add support for setting UVD clock on rs780Alex Deucher1-0/+38
Signed-off-by: Alex Deucher <[email protected]>
2013-06-27drm/radeon: fix typo in ni_print_power_stateAlex Deucher1-4/+4
Signed-off-by: Alex Deucher <[email protected]>