[PATCH 03/10] drm/amd/powerplay: add some definition related DIDT for fiji/polaris.

Alex Deucher alexdeucher at gmail.com
Wed Jul 6 20:48:12 UTC 2016


On Wed, Jul 6, 2016 at 5:55 AM, Rex Zhu <Rex.Zhu at amd.com> wrote:
> Change-Id: I050fd51ffd429de1ca93c331722adddb3389b8a1
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
> Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/fiji_powertune.h      | 13 +++++++++++++
>  drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.h | 13 +++++++++++++
>  2 files changed, 26 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_powertune.h b/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_powertune.h
> index 6684999..fec7724 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_powertune.h
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_powertune.h
> @@ -36,6 +36,19 @@ enum fiji_pt_config_reg_type {
>  #define POWERCONTAINMENT_FEATURE_TDCLimit        0x00000002
>  #define POWERCONTAINMENT_FEATURE_PkgPwrLimit     0x00000004
>
> +#define DIDT_SQ_CTRL0__UNUSED_0_MASK             0xffffffc0
> +#define DIDT_SQ_CTRL0__UNUSED_0__SHIFT           0x6
> +#define DIDT_TD_CTRL0__UNUSED_0_MASK             0xffffffc0
> +#define DIDT_TD_CTRL0__UNUSED_0__SHIFT           0x6
> +#define DIDT_TCP_CTRL0__UNUSED_0_MASK            0xffffffc0
> +#define DIDT_TCP_CTRL0__UNUSED_0__SHIFT          0x6
> +#define DIDT_SQ_TUNING_CTRL__UNUSED_0_MASK                 0xe0000000
> +#define DIDT_SQ_TUNING_CTRL__UNUSED_0__SHIFT               0x0000001d
> +#define DIDT_TD_TUNING_CTRL__UNUSED_0_MASK                 0xe0000000
> +#define DIDT_TD_TUNING_CTRL__UNUSED_0__SHIFT               0x0000001d
> +#define DIDT_TCP_TUNING_CTRL__UNUSED_0_MASK                0xe0000000
> +#define DIDT_TCP_TUNING_CTRL__UNUSED_0__SHIFT              0x0000001d
> +
>  struct fiji_pt_config_reg {
>         uint32_t                           offset;
>         uint32_t                           mask;
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.h b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.h
> index 43626e9..d492d6d 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.h
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_powertune.h
> @@ -31,6 +31,19 @@ enum polaris10_pt_config_reg_type {
>         POLARIS10_CONFIGREG_MAX
>  };
>
> +#define DIDT_SQ_CTRL0__UNUSED_0_MASK    0xfffc0000
> +#define DIDT_SQ_CTRL0__UNUSED_0__SHIFT  0x12
> +#define DIDT_TD_CTRL0__UNUSED_0_MASK    0xfffc0000
> +#define DIDT_TD_CTRL0__UNUSED_0__SHIFT  0x12
> +#define DIDT_TCP_CTRL0__UNUSED_0_MASK   0xfffc0000
> +#define DIDT_TCP_CTRL0__UNUSED_0__SHIFT 0x12
> +#define DIDT_SQ_TUNING_CTRL__UNUSED_0_MASK                 0xc0000000
> +#define DIDT_SQ_TUNING_CTRL__UNUSED_0__SHIFT               0x0000001e
> +#define DIDT_TD_TUNING_CTRL__UNUSED_0_MASK                 0xc0000000
> +#define DIDT_TD_TUNING_CTRL__UNUSED_0__SHIFT               0x0000001e
> +#define DIDT_TCP_TUNING_CTRL__UNUSED_0_MASK                0xc0000000
> +#define DIDT_TCP_TUNING_CTRL__UNUSED_0__SHIFT              0x0000001e
> +
>  /* PowerContainment Features */
>  #define POWERCONTAINMENT_FEATURE_DTE             0x00000001
>  #define POWERCONTAINMENT_FEATURE_TDCLimit        0x00000002
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list