From: Mario Limonciello <superm1@kernel.org>
To: "Shyam Sundar S K" <Shyam-sundar.S-k@amd.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
platform-driver-x86@vger.kernel.org (open list:AMD PMF DRIVER),
Mario Limonciello <mario.limonciello@amd.com>
Subject: [PATCH v4 0/3] Improved cleanup handling for amd-pmf
Date: Thu, 15 May 2025 11:23:48 -0500 [thread overview]
Message-ID: <20250515162351.2111468-1-superm1@kernel.org> (raw)
From: Mario Limonciello <mario.limonciello@amd.com>
I noticed some memory problems with unloading and reloading amd-pmf.
These were root caused with a double free.
This series cleans up that double free by switching to device managed
allocations and also fixes other problems observed in earlier iterations
of the patches.
Mario Limonciello (3):
platform/x86/amd: pmf: Use device managed allocations
platform/x86/amd: pmf: Prevent amd_pmf_tee_deinit() from running twice
platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc()
drivers/platform/x86/amd/pmf/core.c | 3 +-
drivers/platform/x86/amd/pmf/tee-if.c | 110 +++++++++-----------------
2 files changed, 37 insertions(+), 76 deletions(-)
--
2.43.0
next reply other threads:[~2025-05-15 16:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-15 16:23 Mario Limonciello [this message]
2025-05-15 16:23 ` [PATCH v4 1/3] platform/x86/amd: pmf: Use device managed allocations Mario Limonciello
2025-05-16 6:04 ` Ilpo Järvinen
2025-05-16 6:20 ` Mario Limonciello
2025-05-16 6:36 ` Ilpo Järvinen
2025-05-16 19:26 ` Mario Limonciello
2025-05-20 15:19 ` Ilpo Järvinen
2025-05-20 15:26 ` Mario Limonciello
2025-05-20 15:34 ` Ilpo Järvinen
2025-05-15 16:23 ` [PATCH v4 2/3] platform/x86/amd: pmf: Prevent amd_pmf_tee_deinit() from running twice Mario Limonciello
2025-05-15 16:23 ` [PATCH v4 3/3] platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc() Mario Limonciello
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=20250515162351.2111468-1-superm1@kernel.org \
--to=superm1@kernel.org \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=mario.limonciello@amd.com \
--cc=platform-driver-x86@vger.kernel.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