From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Danijel Slivka <danijel.slivka@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] amdgpu/pm: Disable managing power profiles on SRIOV for Sienna Cichlid
Date: Fri, 6 May 2022 10:14:40 +0200 [thread overview]
Message-ID: <41c39720-c0a5-1e6b-05b3-dac6b98427fa@molgen.mpg.de> (raw)
In-Reply-To: <20220506075239.3466527-1-danijel.slivka@amd.com>
Dear Danijel,
Am 06.05.22 um 09:52 schrieb Danijel Slivka:
Please add a reasoning/motivation in the commit message body.
Kind regards,
Paul
> Signed-off-by: Danijel Slivka <danijel.slivka@amd.com>
> ---
> drivers/gpu/drm/amd/pm/amdgpu_pm.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> index 70a0aad05426..59a662aeaaf3 100644
> --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
> @@ -2025,6 +2025,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
> } else if (DEVICE_ATTR_IS(pp_power_profile_mode)) {
> if (amdgpu_dpm_get_power_profile_mode(adev, NULL) == -EOPNOTSUPP)
> *states = ATTR_STATE_UNSUPPORTED;
> + else if (gc_ver == IP_VERSION(10, 3, 0) && amdgpu_sriov_vf(adev))
> + *states = ATTR_STATE_UNSUPPORTED;
> }
>
> switch (gc_ver) {
> @@ -2038,6 +2040,13 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
> dev_attr->store = NULL;
> }
> break;
> + case IP_VERSION(10, 3, 0):
> + if (DEVICE_ATTR_IS(power_dpm_force_performance_level) &&
> + amdgpu_sriov_vf(adev)) {
> + dev_attr->attr.mode &= ~S_IWUGO;
> + dev_attr->store = NULL;
> + }
> + break;
> default:
> break;
> }
next prev parent reply other threads:[~2022-05-06 8:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-06 7:52 [PATCH] amdgpu/pm: Disable managing power profiles on SRIOV for Sienna Cichlid Danijel Slivka
2022-05-06 8:14 ` Paul Menzel [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-05 19:41 Danijel Slivka
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=41c39720-c0a5-1e6b-05b3-dac6b98427fa@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=amd-gfx@lists.freedesktop.org \
--cc=danijel.slivka@amd.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.