From: Huang Rui <ray.huang@amd.com>
To: "Zhu, Changfeng" <Changfeng.Zhu@amd.com>
Cc: "Huang, Shimmer" <Shimmer.Huang@amd.com>,
"amd-gfx@lists.freedesktop.org" <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/amdgpu: modify cp_flags to pg_flags in gfx_v10_cntl_power_gating
Date: Fri, 9 Oct 2020 12:50:59 +0800 [thread overview]
Message-ID: <20201009045059.GA2123052@hr-amd> (raw)
In-Reply-To: <20201009044652.10149-1-Changfeng.Zhu@amd.com>
On Fri, Oct 09, 2020 at 12:46:52PM +0800, Zhu, Changfeng wrote:
> From: changzhu <Changfeng.Zhu@amd.com>
>
> From: Changfeng <Changfeng.Zhu@amd.com>
>
> It needs to use adev->pg_flags other than adev->cg_glags in
> gfx_v10_cntl_power_gating
>
> Change-Id: I5f64ee94d8e574293622aa5e496fe245fda17206
> Signed-off-by: Changfeng <Changfeng.Zhu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> index 9a8d3f7b7b15..32360023e8eb 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> @@ -7588,7 +7588,7 @@ static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable)
> {
> u32 data = RREG32_SOC15(GC, 0, mmRLC_PG_CNTL);
>
> - if (enable && (adev->cg_flags & AMD_PG_SUPPORT_GFX_PG))
> + if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG))
> data |= RLC_PG_CNTL__GFX_POWER_GATING_ENABLE_MASK;
> else
> data &= ~RLC_PG_CNTL__GFX_POWER_GATING_ENABLE_MASK;
> --
> 2.17.1
>
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
prev parent reply other threads:[~2020-10-09 4:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-09 4:46 [PATCH] drm/amdgpu: modify cp_flags to pg_flags in gfx_v10_cntl_power_gating Changfeng
2020-10-09 4:50 ` Huang Rui [this message]
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=20201009045059.GA2123052@hr-amd \
--to=ray.huang@amd.com \
--cc=Changfeng.Zhu@amd.com \
--cc=Shimmer.Huang@amd.com \
--cc=amd-gfx@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