dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Deucher <alexdeucher@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: Rex Zhu <Rex.Zhu@amd.com>
Subject: [PATCH 44/52] drm/amd/powerplay: fix mclk in high clock for baffin
Date: Wed, 23 Mar 2016 13:43:00 -0400	[thread overview]
Message-ID: <1458754988-16222-45-git-send-email-alexander.deucher@amd.com> (raw)
In-Reply-To: <1458754988-16222-1-git-send-email-alexander.deucher@amd.com>

From: Rex Zhu <Rex.Zhu@amd.com>

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
index ac40599..d08f739 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
@@ -1377,13 +1377,14 @@ static int polaris10_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
 		result = polaris10_populate_single_memory_level(hwmgr,
 				dpm_table->mclk_table.dpm_levels[i].value,
 				&levels[i]);
+		if (i == dpm_table->mclk_table.count - 1) {
+			levels[i].DisplayWatermark = PPSMC_DISPLAY_WATERMARK_HIGH;
+			levels[i].EnabledForActivity = 1;
+		}
 		if (result)
 			return result;
 	}
 
-	/* Only enable level 0 for now. */
-	levels[0].EnabledForActivity = 1;
-
 	/* in order to prevent MC activity from stutter mode to push DPM up.
 	 * the UVD change complements this by putting the MCLK in
 	 * a higher state by default such that we are not effected by
@@ -1396,9 +1397,6 @@ static int polaris10_populate_all_memory_levels(struct pp_hwmgr *hwmgr)
 			(uint8_t)dpm_table->mclk_table.count;
 	data->dpm_level_enable_mask.mclk_dpm_enable_mask =
 			phm_get_dpm_level_enable_mask_value(&dpm_table->mclk_table);
-	/* set highest level watermark to high */
-	levels[dpm_table->mclk_table.count - 1].DisplayWatermark =
-			PPSMC_DISPLAY_WATERMARK_HIGH;
 
 	/* level count will send to smc once at init smc table and never change */
 	result = polaris10_copy_bytes_to_smc(hwmgr->smumgr, array, (uint8_t *)levels,
-- 
2.5.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-03-23 17:44 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23 17:42 [PATCH 00/52] amdgpu Polaris support Alex Deucher
2016-03-23 17:42 ` [PATCH 02/52] drm/amdgpu: add ELM/BAF asic types Alex Deucher
2016-03-23 17:42 ` [PATCH 03/52] drm/amdgpu: add ELM/BAF DCE11 configs Alex Deucher
2016-03-23 17:42 ` [PATCH 04/52] drm/amdgpu: update atombios.h (v2) Alex Deucher
2016-03-23 17:42 ` [PATCH 05/52] drm/amdgpu/atom: add SetDCEClock helper Alex Deucher
2016-03-23 17:42 ` [PATCH 06/52] drm/amdgpu/atom: add support for new SetPixelClock table Alex Deucher
2016-03-23 17:42 ` [PATCH 07/52] drm/amdgpu/atom: add support for new DIGxEncoderControl cmd table Alex Deucher
2016-03-23 17:42 ` [PATCH 08/52] drm/amdgpu/atom: add support for new UNIPHYTransmitterContol " Alex Deucher
2016-03-23 17:42 ` [PATCH 09/52] drm/amdgpu: add ELM/BAF support to dce_v11_0_pick_pll Alex Deucher
2016-03-23 17:42 ` [PATCH 10/52] drm/amdgpu/dce11: update pll programming for ELM/BAF Alex Deucher
2016-03-23 17:42 ` [PATCH 11/52] drm/amdgpu/dce11: add dce clock setting " Alex Deucher
2016-03-23 17:42 ` [PATCH 12/52] drm/amdgpu: add GMC support " Alex Deucher
2016-03-23 17:42 ` [PATCH 13/52] drm/amdgpu: add DCE golden setting " Alex Deucher
2016-03-23 17:42 ` [PATCH 14/52] drm/amdgpu: add SDMA support " Alex Deucher
2016-03-23 17:42 ` [PATCH 15/52] drm/amdgpu: add an interface to get gfx constants from atombios Alex Deucher
2016-03-23 17:42 ` [PATCH 16/52] drm/amdgpu: add mmRLC_CGCG_CGLS_CTRL_3D & mmRLC_CGCG_RAMP_CTRL_3D Alex Deucher
2016-03-23 17:42 ` [PATCH 17/52] drm/amdgpu: add GFX support for ELM/BAF Alex Deucher
2016-03-23 17:42 ` [PATCH 18/52] drm/amdgpu: add UVD " Alex Deucher
2016-03-23 17:42 ` [PATCH 19/52] drm/amdgpu: add VCE support to ELM/BAF Alex Deucher
2016-03-23 17:42 ` [PATCH 20/52] drm/amd/powerplay: add header files for ellesmere smu manager Alex Deucher
2016-03-23 17:42 ` [PATCH 21/52] drm/amd/powerplay: add smu support for ellesmere/baffin Alex Deucher
2016-03-23 17:42 ` [PATCH 22/52] drm/amd/powerplay: enable dpm for baffin Alex Deucher
2016-03-24  1:03   ` Vasily Anonimov
2016-03-23 17:42 ` [PATCH 23/52] drm/amd/powerplay: init hwmgr for ELM/BAF Alex Deucher
2016-03-23 17:42 ` [PATCH 24/52] drm/amd/powerplay: enable powerplay for baffin Alex Deucher
2016-03-23 17:42 ` [PATCH 25/52] drm/amd/powerplay: add thermal control for elm/baf Alex Deucher
2016-03-23 17:42 ` [PATCH 26/52] drm/amd/powerplay: add UVD&VCE DPM and powergating support " Alex Deucher
2016-03-23 17:42 ` [PATCH 27/52] drm/amd/amdgpu: Add smc_sk firmware in baffin & ellesmere Alex Deucher
2016-03-23 17:42 ` [PATCH 28/52] drm/amd/powerplay: Add smc_sk firmware to " Alex Deucher
2016-03-23 17:42 ` [PATCH 29/52] drm/amd/powerplay: update baffin & ellesmere smc_sk firmware Alex Deucher
2016-03-23 17:42 ` [PATCH 30/52] drm/amd/powerplay: add all blocks clockgating support through SMU/powerplay Alex Deucher
2016-03-23 17:42 ` [PATCH 31/52] drm/amd/powerplay: add GFX/SYS clockgating support for ELM/BAF Alex Deucher
2016-03-23 17:42 ` [PATCH 32/52] drm/amd/amdgpu: add query GFX cu info in CGS query system info Alex Deucher
2016-03-23 17:42 ` [PATCH 33/52] drm/amd/powerplay: add GFX per cu powergating support through SMU/powerplay Alex Deucher
2016-03-23 17:42 ` [PATCH 34/52] drm/amd/powerplay: add GFX per cu powergating for Baffin Alex Deucher
2016-03-23 17:42 ` [PATCH 35/52] drm/amd/amdgpu: add medium grain powergating support " Alex Deucher
2016-03-23 17:42 ` [PATCH 36/52] drm/amd/powerplay: add default clockgating handling Alex Deucher
2016-03-23 17:42 ` [PATCH 37/52] drm/amd/amdgpu: add power gating initialization support for GFX8.0 Alex Deucher
2016-03-23 17:42 ` [PATCH 38/52] drm/amd/amdgpu: add power gating init for Baffin Alex Deucher
2016-03-23 17:42 ` [PATCH 39/52] drm/amdgpu: ungate SMC clockgating first before suspend Alex Deucher
2016-03-23 17:42 ` [PATCH 40/52] drm/amdgpu: update the core VI support for ELM/BAF Alex Deucher
2016-03-23 17:42 ` [PATCH 41/52] drm/amdgpu: add ELM/BAF pci ids Alex Deucher
2016-03-23 17:42 ` [PATCH 43/52] drm/amd/powerplay: print gpu loading and uvd/vce power gate enablement for polaris10/11 Alex Deucher
2016-03-23 17:43 ` Alex Deucher [this message]
2016-03-23 17:43 ` [PATCH 45/52] drm/amd/powrplay: fix issue that get wrong enable flag Alex Deucher
2016-03-23 17:43 ` [PATCH 46/52] drm/amd/powerplay: enable set lowest mclk clock on baffin Alex Deucher
2016-03-23 17:43 ` [PATCH 47/52] drm/amd/powerplay: Disable Spread Spectrum on DPM 0 on baffin as SPLL Shut Down feature is enabled Alex Deucher
2016-03-23 17:43 ` [PATCH 48/52] drm/amdgpu: add polaris10/11 smc fw declaration Alex Deucher
2016-03-23 17:43 ` [PATCH 49/52] drm/amd/dal: add core support for Polaris family (v2) Alex Deucher
2016-03-23 17:43 ` [PATCH 50/52] drm/amd/dal/dm: add polaris support Alex Deucher
2016-03-23 17:43 ` [PATCH 51/52] drm/amdgpu: add dal support for polaris Alex Deucher
2016-03-23 17:43 ` [PATCH 52/52] drm/amd/dal: Enable Polaris support in the Kconfig Alex Deucher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458754988-16222-45-git-send-email-alexander.deucher@amd.com \
    --to=alexdeucher@gmail.com \
    --cc=Rex.Zhu@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox