[PATCH] drm/radeon: fix 64 bit divide in SI spm code

2013-08-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Forgot to use the appropriate math64 function. Signed-off-by: Alex Deucher --- This is already in my -fixes queue, but for those that are running into issues, here's the fix. drivers/gpu/drm/radeon/si_dpm.c |2 +- 1 files changed, 1

[pull] radeon drm-fixes-3.11

2013-07-30 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more fixes for radeon on top of the ones I sent yesterday. - more fixes for SI dpm - fix DP on some rv6xx boards The following changes since commit 63f22d0e98cf74adf4ecfb25099607239b00c751: drm/radeon/dpm: fix and enable

[pull] radeon drm-fixes-3.11

2013-07-29 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more radeon bug fixes, mostly for SI dpm. At this point dpm is pretty solid across the majority of asics. I think we mostly just have corner cases and fixing up some of the trickier features at this point. The following changes

[pull] radeon drm-fixes-3.11

2013-07-25 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few more patches to fix some issues with dpm on rv6xx. The following changes since commit cef1d00cd56f600121ad121875655ad410a001b8: drm/radeon: fix combios tables on older cards (2013-07-22 15:57:14 -0400) are available in the

[pull] radeon drm-fixes-3.11

2013-07-23 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few radeon bug fixes. The following changes since commit 058ca4a22ebf22ea1cbedd6cc0340ed1e2e94ee1: Merge tag 'drm-intel-fixes-2013-07-22' of git://people.freedesktop.org/~danvet/drm-intel into drm-fixes (2013-07-22 16:14:26

[pull] radeon drm-fixes-3.11

2013-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Take two. Just some DPM fixes. The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc: uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000) are available in the git

[pull] radeon drm-fixes-3.11

2013-07-17 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Just a few DPM fixes. The following changes since commit d1ce3d5496f2a7c90dd00a9133572f931d2acdcc: uvesafb: Really allow mtrr being 0, as documented and warn()ed (2013-07-16 10:24:28 +1000) are available in the git repository at:

[pull] radeon drm-fixes-3.11

2013-07-15 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, Bug fixes for radeon all over the place. Big one is a fix for ttm which causes hangs on boot for a number of systems. The following changes since commit 774d8e34e46506222bb5e2888e3ef42b2775715f: Merge branch 'drm-next-3.11' of

[PATCH 2/2] drm/radeon: align VM PTBs (Page Table Blocks) to 32K

2013-07-12 Thread alexdeuc...@gmail.com
From: Alex Deucher Covers requirements of all current asics. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |5 + drivers/gpu/drm/radeon/radeon_gart.c | 12 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git

[PATCH 1/2] drm/radeon: allow selection of alignment in the sub-allocator

2013-07-12 Thread alexdeuc...@gmail.com
From: Alex Deucher There are cases where we need more than 4k alignment. No functional change with this commit. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_gart.c |1 +

[PATCH 3/3] drm/radeon: add fault decode function for CIK

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Helpful for debugging GPUVM errors as we can see what hw block and page generated the fault in the log. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 32 ++-- drivers/gpu/drm/radeon/cikd.h | 16

[PATCH 2/3] drm/radeon: add fault decode function for SI (v2)

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Helpful for debugging GPUVM errors as we can see what hw block and page generated the fault in the log. v2: simplify fault decoding Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/si.c | 272

[PATCH 1/3] drm/radeon: add fault decode function for cayman/TN (v2)

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Helpful for debugging GPUVM errors as we can see what hw block and page generated the fault in the log. v2: simplify fault decoding Signed-off-by: Alex Deucher Reviewed-by: Christian K?nig --- drivers/gpu/drm/radeon/evergreen.c | 10 ++-

[PATCH 3/3] drm/radeon: use CP DMA on r6xx for bo moves

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Lighter weight than using the 3D engine. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_asic.c

[PATCH 2/3] drm/radeon: implement bo copy callback using CP DMA (v2)

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher Lighter weight than using the 3D engine. v2: fix ring count Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600.c| 81 ++ drivers/gpu/drm/radeon/r600d.h |1 +

[PATCH 1/3] drm/radeon: Disable dma rings for bo moves on r6xx

2013-07-11 Thread alexdeuc...@gmail.com
From: Alex Deucher They still seem to cause instability on some r6xx parts. As a follow up, we can switch to using CP DMA for bo moves on r6xx as a lighter weight alternative to using the 3D engine. A version of this patch should also go to stable kernels. Tested-by:

[pull] radeon drm-next-3.11

2013-07-08 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more DPM fixes based on user testing. The following changes since commit 9b5de59629d2e58eab41e2f0e5cc60b3c395f1c3: drm/radeon/dpm: implement force performance level for TN (2013-07-05 18:10:06 -0400) are available in the git

[pull] radeon drm-next-3.11

2013-07-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more DPM patches and some bug fixes. Adds a sysfs interface to force dpm performance levels. The following changes since commit 338a95a95508537e23c82d59a2d87be6fde4b6ff: drm/radeon/sumo: implement support for

[PATCH] drm/radeon: default to 1024M gart size on rv770+

2013-07-05 Thread alexdeuc...@gmail.com
From: Alex Deucher Newer asics have a lot of vram so it's less of an issue to waste a little more space for the gart page table. This gives us some additional gart space before having to migrate to non-gart system ram for games, etc. where we use up most of vram.

[pull] radeon drm-next-3.11

2013-07-03 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more DPM fixes. The following changes since commit 7982128c3d447df27db963af67bc6b8dc7efb1de: drm/radeon/dpm: add debugfs support for SI (2013-07-01 16:09:06 -0400) are available in the git repository at:

[pull] radeon drm-next-3.11

2013-07-01 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, A few more patches for 3.11: - add debugfs interface to check current DPM state - Fix a bug that caused problems with DPM on BTC+ asics. The following changes since commit f7d452f4fd5d86f764807a1234a407deb5b105ef: Merge branch

[pull] radeon drm-next-3.11

2013-06-27 Thread alexdeuc...@gmail.com
From: Alex Deucher Hi Dave, 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 DPM is disabled

[PATCH 111/165] drm/radeon/dpm: remove local sumo_get_xclk()

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Use the new asic callback instead. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/sumo_dpm.c| 19 +++ drivers/gpu/drm/radeon/sumo_dpm.h|1 - drivers/gpu/drm/radeon/sumo_smc.c|2 +-

[PATCH 110/165] drm/radeon: add missing UVD clock set in cayman dpm code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni_dpm.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c index 01ecb80..a88f0cb 100644 ---

[PATCH 109/165] drm/radeon/dpm: remove broken dyn state remnants

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Now that the proper fix has been implemented I can remove the last remnants of the initial implementation. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 - drivers/gpu/drm/radeon/radeon_pm.c | 24

[PATCH 108/165] drm/radeon/dpm: add pre/post_set_power_state callback (cayman)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This properly implemented dynamic state adjustment by using a working copy of the requested and current power states. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni_dpm.c | 65 --

[PATCH 107/165] drm/radeon/dpm: add pre/post_set_power_state callback (BTC)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This properly implemented dynamic state adjustment by using a working copy of the requested and current power states. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/btc_dpm.c | 81 +

[PATCH 106/165] drm/radeon/dpm: add pre/post_set_power_state callback (TN)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This properly implemented dynamic state adjustment by using a working copy of the requested and current power states. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c |2 + drivers/gpu/drm/radeon/radeon_asic.h |2 +

[PATCH 105/165] drm/radeon/dpm: add pre/post_set_power_state callback (sumo)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This properly implemented dynamic state adjustment by using a working copy of the requested and current power states. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c |2 + drivers/gpu/drm/radeon/radeon_asic.h |2 +

[PATCH 104/165] drm/radeon/dpm: add pre/post_set_power_state callbacks (6xx-eg)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher For r6xx-evergreen, they are no-ops as they don't support any dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_dpm.c| 10 ++ drivers/gpu/drm/radeon/radeon_asic.c |8

[PATCH 103/165] drm/radeon/dpm: add new pre/post_set_power_state callbacks

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|4 drivers/gpu/drm/radeon/radeon_pm.c | 11 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff

[PATCH 102/165] drm/radeon/dpm/tn: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/trinity_dpm.c | 93 +++--- 1 files changed, 52 insertions(+), 41 deletions(-) diff --git

[PATCH 101/165] drm/radeon/dpm/sumo: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/sumo_dpm.c | 143 + 1 files changed, 81 insertions(+), 62 deletions(-) diff --git

[PATCH 100/165] drm/radeon/dpm/cayman: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni_dpm.c | 69 -- 1 files changed, 36 insertions(+), 33 deletions(-) diff --git

[PATCH 099/165] drm/radeon/dpm/btc: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/btc_dpm.c | 30 +++--- drivers/gpu/drm/radeon/btc_dpm.h |3 ++- drivers/gpu/drm/radeon/ni_dpm.c |3 ++- 3

[PATCH 098/165] drm/radeon/dpm/evergreen: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/btc_dpm.c | 13 --- drivers/gpu/drm/radeon/cypress_dpm.c | 62 +

[PATCH 097/165] drm/radeon/dpm/rv7xx: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/btc_dpm.c |6 ++- drivers/gpu/drm/radeon/cypress_dpm.c |6 ++- drivers/gpu/drm/radeon/rv740_dpm.c |1 -

[PATCH 096/165] drm/radeon/dpm/rv6xx: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/rv6xx_dpm.c | 115 +-- 1 files changed, 69 insertions(+), 46 deletions(-) diff --git

[PATCH 095/165] drm/radeon/dpm/rs780: restructure code

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Needed to properly handle dynamic state adjustment. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/rs780_dpm.c | 52 ++-- 1 files changed, 32 insertions(+), 20 deletions(-) diff --git

[PATCH 094/165] drm/radeon/cayman: update tdp limits in set_power_state

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni_dpm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c index 635bf04..44016f2 100644 ---

[PATCH 093/165] drm/radeon/kms: add dpm support for cayman

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for cayman asics. This includes: - clockgating - dynamic engine clock scaling - dynamic memory clock scaling - dynamic voltage scaling - dynamic pcie gen1/gen2 switching (requires additional acpi support) - power containment -

[PATCH 092/165] drm/radeon/dpm: fixup dynamic state adjust for btc (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Use a dedicated copy of the current power state since we may have to adjust it on the fly. v2: fix up redundant state sets Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/btc_dpm.c | 340 ++

[PATCH 091/165] drm/radeon/dpm: fixup dynamic state adjust for TN

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Use a dedicated copy of the current power state since we may have to adjust it on the fly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/trinity_dpm.c |5 + drivers/gpu/drm/radeon/trinity_dpm.h |1 + 2 files changed, 6

[PATCH 090/165] drm/radeon/dpm: fixup dynamic state adjust for sumo

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Use a dedicated copy of the current power state since we may have to adjust it on the fly. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_pm.c | 13 -

[PATCH 089/165] drm/radeon/dpm: track whether we are on AC or battery

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Driver needs this information to validate power states. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h|1 + drivers/gpu/drm/radeon/radeon_pm.c |7 +++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git

[PATCH 088/165] drm/radeon/dpm: add helpers for extended power tables (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This data will be needed for dpm on newer asics. v2: fix typo in rebase Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/r600_dpm.c | 179 + drivers/gpu/drm/radeon/r600_dpm.h |3 +

[PATCH 087/165] drm/radeon/kms: enable UVD as needed (v9)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher When using UVD, the driver must switch to a special UVD power state. In the CS ioctl, switch to the power state and schedule work to change the power state back, when the work comes up, check if uvd is still busy and if not, switch back to the user

[PATCH 086/165] drm/radeon: add dpm UVD handling for TN asics (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: fix typo noticed by Dan Carpenter Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ppsmc.h |1 + drivers/gpu/drm/radeon/trinity_dpm.c | 220 ++ drivers/gpu/drm/radeon/trinity_dpm.h | 18 +++

[PATCH 085/165] drm/radeon: add dpm UVD handling for sumo asics

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/sumo_dpm.c | 55 + drivers/gpu/drm/radeon/sumod.h| 10 +++ 2 files changed, 65 insertions(+), 0 deletions(-) diff --git

[PATCH 084/165] drm/radeon: add dpm UVD handling for evergreen/btc asics

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/btc_dpm.c | 62 ++ drivers/gpu/drm/radeon/btc_dpm.h |4 ++ drivers/gpu/drm/radeon/cypress_dpm.c | 10 +- drivers/gpu/drm/radeon/cypress_dpm.h

[PATCH 083/165] drm/radeon: add dpm UVD handling for r7xx asics

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/rv770_dpm.c | 34 ++ drivers/gpu/drm/radeon/rv770_dpm.h |2 ++ 2 files changed, 36 insertions(+), 0 deletions(-) diff --git

[PATCH 082/165] drm/radeon/dpm: let atom control display phy powergating

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/sumo_dpm.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/sumo_dpm.c b/drivers/gpu/drm/radeon/sumo_dpm.c index 67c85c7..f103880 100644

[PATCH 081/165] drm/radeon/kms: add dpm support for trinity asics

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for trinity asics. This includes: - clockgating - powergating - dynamic engine clock scaling - dynamic voltage scaling set radeon.dpm=1 to enable it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile |

[PATCH 080/165] drm/radeon/kms: add dpm support for sumo asics

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for sumo asics. This includes: - clockgating - powergating - dynamic engine clock scaling - dynamic voltage scaling set radeon.dpm=1 to enable it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile |2

[PATCH 079/165] drm/radeon/kms: add dpm support for btc (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for btc asics. This includes: - clockgating - dynamic engine clock scaling - dynamic memory clock scaling - dynamic voltage scaling - dynamic pcie gen1/gen2 switching (requires additional acpi support) Set radeon.dpm=1 to

[PATCH 078/165] drm/radeon/kms: add dpm support for evergreen (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for evergreen asics. This includes: - clockgating - dynamic engine clock scaling - dynamic memory clock scaling - dynamic voltage scaling - dynamic pcie gen1/gen2 switching (requires additional acpi support) Set radeon.dpm=1

[PATCH 077/165] drm/radeon/kms: add dpm support for rv7xx (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for rv7xx asics. This includes: - clockgating - dynamic engine clock scaling - dynamic memory clock scaling - dynamic voltage scaling - dynamic pcie gen1/gen2 switching Set radeon.dpm=1 to enable. v2: reduce stack usage

[PATCH 076/165] drm/radeon/kms: add dpm support for rv6xx

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for rv6xx asics. This includes: - clockgating - dynamic engine clock scaling - dynamic memory clock scaling - dynamic voltage scaling - dynamic pcie gen1/gen2 switching Set radeon.dpm=1 to enable. Signed-off-by: Alex Deucher

[PATCH 075/165] drm/radeon/kms: add dpm support for rs780/rs880

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds dpm support for rs780/rs880 asics. This includes: - clockgating - dynamic engine clock scaling - dynamic voltage scaling set radeon.dpm=1 to enable it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile |2 +-

[PATCH 074/165] drm/radeon/kms: add common r600 dpm functions

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher These are shared by rs780/rs880, rv6xx, and newer chips. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/Makefile |3 +- drivers/gpu/drm/radeon/r600_dpm.c | 678 + drivers/gpu/drm/radeon/r600_dpm.h

[PATCH 073/165] drm/radeon/kms: fix up dce6 display watermark calc for dpm

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Calculate the low and high watermarks based on the low and high clocks for the current power state. The dynamic pm hw will select the appropriate watermark based on the internal dpm state. Signed-off-by: Alex Deucher ---

[PATCH 072/165] drm/radeon/kms: fix up dce4/5 display watermark calc for dpm

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Calculate the low and high watermarks based on the low and high clocks for the current power state. The dynamic pm hw will select the appropriate watermark based on the internal dpm state. Signed-off-by: Alex Deucher ---

[PATCH 071/165] drm/radeon/kms: fix up 6xx/7xx display watermark calc for dpm

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Calculate the low and high watermarks based on the low and high clocks for the current power state. The dynamic pm hw will select the appropriate watermark based on the internal dpm state. Signed-off-by: Alex Deucher ---

[PATCH 070/165] drm/radeon/kms: fix up rs780/rs880 display watermark calc for dpm

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher calculate the low and high watermarks based on the low and high clocks for the current power state. The dynamic pm hw will select the appropriate watermark based on the internal dpm state. Signed-off-by: Alex Deucher ---

[PATCH 069/165] drm/radeon/kms: add common dpm infrastructure

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This adds the common dpm (dynamic power management) infrastructure: - dpm callbacks - dpm init/fini/suspend/resume - dpm power state selection No device specific code is enabled yet. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h

[PATCH 068/165] drm/radeon/kms: add new asic struct for rv6xx (v3)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Has a different dpm controller than r600. v2: rebase on gpu reset changes v3: rebase on get_xclk changes Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_asic.c | 96 -- 1 files changed, 91

[PATCH 067/165] drm/radeon/kms: add atom helper functions for dpm (v3)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher dpm needs access to atombios data and command tables for setup and calculation of a number of parameters. v2: endian fix v3: fix mc reg table bug Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h | 33 ++

[PATCH 066/165] drm/radeon: properly set up the RLC on ON/LN/TN (v3)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher This is required for certain advanced functionality. v2: save/restore list takes dword offsets v3: rebase on gpu reset changes Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/clearstate_cayman.h| 1081 +

[PATCH 065/165] drm/radeon/kms: move ucode defines to a separate header

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Avoids confusion and duplication. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c|4 +-- drivers/gpu/drm/radeon/ni.c | 13 + drivers/gpu/drm/radeon/r600.c | 25 +

[PATCH 064/165] drm/radeon: add support for thermal sensor on tn

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/ni.c |8 drivers/gpu/drm/radeon/nid.h |3 +++ drivers/gpu/drm/radeon/radeon_asic.c |1 + drivers/gpu/drm/radeon/radeon_asic.h |1 + 4 files changed, 13

[PATCH 063/165] drm/radeon: make get_temperature functions a callback

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon.h |7 ++- drivers/gpu/drm/radeon/radeon_asic.c |8 drivers/gpu/drm/radeon/radeon_asic.h |5 + drivers/gpu/drm/radeon/radeon_pm.c | 26

[PATCH 062/165] drm/radeon/evergreen: add indirect register accessors for CG registers

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_reg.h |3 +++ drivers/gpu/drm/radeon/radeon.h| 17 + 2 files changed, 20 insertions(+), 0 deletions(-) diff --git

[PATCH 061/165] drm/radeon/kms: add accessors for RCU indirect space

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen.c |6 ++ drivers/gpu/drm/radeon/r600_reg.h |3 +++ drivers/gpu/drm/radeon/radeon.h| 17 + 3 files changed, 22 insertions(+), 4 deletions(-) diff

[PATCH 060/165] drm/radeon: add current KB pci ids

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- include/drm/drm_pciids.h | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index 23f89df..34efaf6 100644 ---

[PATCH 059/165] drm/radeon: add current Bonaire PCI ids

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- include/drm/drm_pciids.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/drm/drm_pciids.h b/include/drm/drm_pciids.h index bb1bc48..23f89df 100644 ---

[PATCH 058/165] drm/radeon: add cik tile mode array query

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c|4 drivers/gpu/drm/radeon/radeon.h |1 + drivers/gpu/drm/radeon/radeon_drv.c |3 ++- drivers/gpu/drm/radeon/radeon_kms.c | 14 +++--- 4 files

[PATCH 057/165] drm/radeon: add radeon_asic struct for CIK (v11)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: fix up for latest reset changes v3: use CP for pt updates for now v4: update for 2 level PTs v5: update for ib_parse removal v6: vm_flush api change v7: rebase v8: fix gfx ring function pointers v9: fix vm_set_page function params v10: update for

[PATCH 056/165] drm/radeon/cik: add support for golden register init

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 438 ++ 1 files changed, 438 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index

[PATCH 055/165] drm/radeon/cik: add support for compute interrupts

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 121 -- 1 files changed, 116 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index

[PATCH 054/165] drm/radeon: fix up ring functions for compute rings

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher The compute rings use RELEASE_MEM rather then EOP packets for writing fences and there is no SYNC_PFP_ME packet on the compute rings. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 53 + 1

[PATCH 053/165] drm/radeon/cik: switch to type3 nop packet for compute rings

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Type 2 packets are deprecated on CIK MEC and we should use type 3 nop packets. Setting the count field to the max value (0x3fff) indicates that only one dword should be skipped like a type 2 packet. Signed-off-by: Alex Deucher ---

[PATCH 052/165] drm/radeon/cik: Add support for compute queues (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher On CIK, the compute rings work slightly differently than on previous asics, however the basic concepts are the same. The main differences: - New MEC engines for compute queues - Multiple queues per MEC: - CI/KB: 1 MEC, 4 pipes per MEC, 8 queues

[PATCH 051/165] drm/radeon: implement simple doorbell page allocator

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher The doorbell aperture is a PCI BAR whose pages can be mapped to compute resources for things like wptrs for userspace queues. This patch maps the BAR and sets up a simple allocator to allocate pages from the BAR. Signed-off-by: Alex Deucher ---

[PATCH 050/165] drm/radeon: use callbacks for ring pointer handling

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Add callbacks to the radeon_ring struct to handle rptr/wptr fetchs and wptr updates. We currently use one version for all rings, but this allows us to override with a ring specific versions. Needed for compute rings on CIK. Signed-off-by: Alex

[PATCH 049/165] drm/radeon/cik: add srbm_select function

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Allows us to select instanced registers based on: - ME (micro engine - Pipe - Queue - VMID Switch MC setup to use this new function. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 27 +-- 1 files changed,

[PATCH 048/165] drm/radeon: add UVD support for CIK (v3)

2013-06-26 Thread alexdeuc...@gmail.com
From: Christian K?nig v2: agd5f: fix clock dividers setup for bonaire v3: agd5f: rebase Signed-off-by: Christian K?nig Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 111 ++ drivers/gpu/drm/radeon/cikd.h

[PATCH 047/165] drm/radeon: update radeon_atom_get_clock_dividers for CIK

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher CIK uses a slightly different variant of the table structs and params. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 20 +++- drivers/gpu/drm/radeon/radeon_mode.h |3 +++ 2 files changed, 22

[PATCH 046/165] drm/radeon: update radeon_atom_get_clock_dividers() for SI

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher SI uses v5 of the command table and uses a different table for memory PLLs. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git

[PATCH 045/165] drm/radeon/cik: add pcie_port indirect register accessors

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 21 + drivers/gpu/drm/radeon/cikd.h|3 +++ drivers/gpu/drm/radeon/radeon_asic.c |6 +- drivers/gpu/drm/radeon/radeon_asic.h |2 ++

[PATCH 044/165] drm/radeon: add get_xclk() callback for CIK

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 22 ++ drivers/gpu/drm/radeon/cikd.h|7 +++ drivers/gpu/drm/radeon/radeon_asic.h |1 + 3 files changed, 30 insertions(+), 0

[PATCH 043/165] drm/radeon: add indirect register accessors for SMC registers

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_reg.h |4 drivers/gpu/drm/radeon/radeon.h| 17 + 2 files changed, 21 insertions(+), 0 deletions(-) diff --git

[PATCH 042/165] drm/radeon: update CIK soft reset

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Update to the newer programming model. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 387 + drivers/gpu/drm/radeon/cikd.h | 12 ++ 2 files changed, 253 insertions(+), 146 deletions(-)

[PATCH 041/165] drm/radeon: add get_gpu_clock_counter() callback for cik

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Used for GPU clock counter snapshots. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/cik.c | 21 + drivers/gpu/drm/radeon/cikd.h|4 +++- drivers/gpu/drm/radeon/radeon_asic.h |5 + 3 files

[PATCH 040/165] drm/radeon: Update radeon_info_ioctl for CIK (v2)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: rebase changes, fix a couple missed cases Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_kms.c | 33 ++--- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git

[PATCH 039/165] drm/radeon: add SS override support for KB/KV

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atombios.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c

[PATCH 038/165] drm/radeon: use frac fb div on DCE8

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 24eee7c..c7ad4b9

[PATCH 037/165] drm/radeon: Handle PPLL0 powerdown on DCE8

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Only Bonaire has PPLL0. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c

[PATCH 036/165] drm/radeon: add support pll selection for DCE8 (v4)

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher v2: make PPLL0 is available for non-DP on CI v3: rebase changes, update documentation v4: fix kabini Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c | 48 +++- 1 files changed, 47 insertions(+),

[PATCH 035/165] drm/radeon: update DISPCLK programming for DCE8

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_crtc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index 4ba5184..586c452

[PATCH 034/165] drm/radeon/atom: add support for new DVO tables

2013-06-26 Thread alexdeuc...@gmail.com
From: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/atombios_encoders.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c

  1   2   3   4   5   6   >