All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: "Lazar, Lijo" <lijo.lazar@amd.com>, Borislav Petkov <bp@suse.de>,
	Paul Menzel <pmenzel@molgen.mpg.de>, "Liu, Leo" <Leo.Liu@amd.com>
Cc: Alexander.Deucher@amd.com, Evan Quan <evan.quan@amd.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amd/pm: avoid duplicate powergate/ungate setting
Date: Tue, 9 Nov 2021 08:44:11 +0100	[thread overview]
Message-ID: <dd7aaabf-0c32-1db4-0105-c6181a8923b3@amd.com> (raw)
In-Reply-To: <00fc5d97-5228-1935-a544-91f2a9b1b803@amd.com>

Am 09.11.21 um 08:28 schrieb Lazar, Lijo:
> [SNIP]
>>
>> Ok guys I've double checked the git history and found that this here 
>> is not as it is intended to be.
>>
>> See the code in question was just added in August by the following 
>> commit:
>>
>> commit 859e4659273f1df3a23e3990826bcb41e85f68a5
>> Author: Evan Quan <evan.quan@amd.com>
>> Date:   Thu Aug 19 12:07:59 2021 +0800
>>
>>      drm/amdgpu: add missing cleanups for more ASICs on UVD/VCE suspend
>>
>>      This is a supplement for commit below:
>>      "drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on 
>> suspend".
>>
>>      Signed-off-by: Evan Quan <evan.quan@amd.com>
>>      Reviewed-by: Guchun Chen <guchun.chen@amd.com>
>>      Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
>>
>> Before that we where just not touching the UVD power state at all 
>> during suspend and so we won't had a problem in the first place.
>>
>> So what we should do instead is to just revert commit 
>> 859e4659273f1df3a23e3990826bcb41e85f68a5 with a proper fixes Tag and 
>> explanation why that is a bad idea.
>>
>
> Yeah, right. If I remember correctly, this commit was originally added 
> to fix hangs with S3 suspend/resume cycles triggered during video 
> playback. Reverting could bring back that one. Evan will know more 
> background details.

Exactly that's my memory as well. So what happens here is that we go in 
circles with one patch fixing a bug and the next patch effectively 
reverting it again to fix another bug.

What we need to do is stop this madness and take a look at the 
underlying problems instead of trying to work around them.

Thanks,
Christian.

>
> Thanks,
> Lijo
>
>> Regards,
>> Christian.
>>
>>
>>>
>>> Thanks,
>>> Lijo
>>>
>>>> See we usually assume that updating to the already set state is 
>>>> unproblematic and that here sounds like just trying to mitigated 
>>>> some issues instead of fixing the root cause.
>>>>
>>>> Regards,
>>>> Christian.
>>>>
>>>>>
>>>>> Whoever commits this, pls add
>>>>>
>>>>> Link: https://lore.kernel.org/r/YV81vidWQLWvATMM@zn.tnic
>>>>>
>>>>> so that it is clear what the whole story way.
>>>>>
>>>>> Thx.
>>>>>
>>>>
>>


  reply	other threads:[~2021-11-09  7:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08  4:47 [PATCH] drm/amd/pm: avoid duplicate powergate/ungate setting Evan Quan
2021-11-08  8:51 ` Paul Menzel
2021-11-08 11:15   ` Borislav Petkov
2021-11-08 14:14     ` Christian König
2021-11-08 14:41       ` Lazar, Lijo
2021-11-09  3:56         ` Quan, Evan
2021-11-09  7:16         ` Christian König
2021-11-09  7:28           ` Lazar, Lijo
2021-11-09  7:44             ` Christian König [this message]
2021-11-09  8:51             ` Quan, Evan
2021-11-09  3:25     ` Quan, Evan
2021-11-09  3:24   ` Quan, Evan
2021-11-08 11:15 ` Lazar, Lijo
2021-11-09  3:40   ` Quan, Evan
2021-11-09  4:15     ` Lazar, Lijo
2021-11-09  8:45       ` Quan, Evan
2021-11-10  9:39         ` Lazar, Lijo
2021-11-11  7:57 Evan Quan
2021-11-12  8:45 ` Lazar, Lijo
2021-11-15  2:45   ` Quan, Evan

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=dd7aaabf-0c32-1db4-0105-c6181a8923b3@amd.com \
    --to=christian.koenig@amd.com \
    --cc=Alexander.Deucher@amd.com \
    --cc=Leo.Liu@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bp@suse.de \
    --cc=evan.quan@amd.com \
    --cc=lijo.lazar@amd.com \
    --cc=pmenzel@molgen.mpg.de \
    /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.