From: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
To: Hans de Goede <hdegoede@redhat.com>,
Mario Limonciello <mario.limonciello@amd.com>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
Linux regressions mailing list <regressions@lists.linux.dev>,
Trolli Schmittlauch <t.schmittlauch@orlives.de>
Subject: Re: [PATCH] platform/x86/amd/pmf: Fix a suspend hang on Framework 13
Date: Mon, 19 Feb 2024 09:53:30 +0530 [thread overview]
Message-ID: <7a34f233-7de6-4e3e-bf16-4cbd8dd22a6a@amd.com> (raw)
In-Reply-To: <f6cced34-087a-4593-b510-a8a728deab97@redhat.com>
Hi Mario,
This was super quick! Thank you for the help. Seems like lot of action
happened over the weekend :-)
Hi Hans,
On 2/18/2024 15:56, Hans de Goede wrote:
> Hi,
>
> On 2/17/24 01:52, Mario Limonciello wrote:
>> The buffer is cleared in the suspend handler but used in
>> the delayed work for amd_pmf_get_metrics().
>>
>> Stop clearing it to fix the hang.
>>
>> Reported-by: Trolli Schmittlauch <t.schmittlauch@orlives.de>
>> Closes: https://lore.kernel.org/regressions/ed2226ff-257b-4cfd-afd6-bf3be9785474@localhost/
>> Closes: https://community.frame.work/t/kernel-6-8-rc-system-freezes-after-resuming-from-suspend-reproducers-wanted/45381
>> Fixes: 2b3a7f06caaf ("platform/x86/amd/pmf: Change return type of amd_pmf_set_dram_addr()")
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>
> Ugh, I should have caught this during review. I especially asked
> for the alloc parameter to amd_pmf_set_dram_addr() to be added
> for this. Ah well ...
>
> Thanks, patch looks good to me:
Thank you for the support!
Thanks,
Shyam
>
> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
>
> Regards,
>
> Hans
>
>
>
>> ---
>> drivers/platform/x86/amd/pmf/core.c | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/platform/x86/amd/pmf/core.c b/drivers/platform/x86/amd/pmf/core.c
>> index 853158933510..4f734e049f4a 100644
>> --- a/drivers/platform/x86/amd/pmf/core.c
>> +++ b/drivers/platform/x86/amd/pmf/core.c
>> @@ -299,8 +299,6 @@ static int amd_pmf_suspend_handler(struct device *dev)
>> if (pdev->smart_pc_enabled)
>> cancel_delayed_work_sync(&pdev->pb_work);
>>
>> - kfree(pdev->buf);
>> -
>> return 0;
>> }
>>
>
next prev parent reply other threads:[~2024-02-19 4:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 0:52 [PATCH] platform/x86/amd/pmf: Fix a suspend hang on Framework 13 Mario Limonciello
2024-02-17 17:58 ` Trolli Schmittlauch
2024-02-18 10:26 ` Hans de Goede
2024-02-19 4:23 ` Shyam Sundar S K [this message]
2024-02-19 12:37 ` Hans de Goede
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=7a34f233-7de6-4e3e-bf16-4cbd8dd22a6a@amd.com \
--to=shyam-sundar.s-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=regressions@lists.linux.dev \
--cc=t.schmittlauch@orlives.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox