X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH v5 0/3] Improved cleanup handling for amd-pmf
@ 2025-05-22  0:34 Mario Limonciello
  2025-05-22  0:34 ` [PATCH v5 1/3] platform/x86/amd: pmf: Use device managed allocations Mario Limonciello
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mario Limonciello @ 2025-05-22  0:34 UTC (permalink / raw)
  To: Shyam Sundar S K, Ilpo Järvinen
  Cc: Hans de Goede, open list:AMD PMF DRIVER, Mario Limonciello

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 | 108 +++++++++-----------------
 2 files changed, 39 insertions(+), 72 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-10  7:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-22  0:34 [PATCH v5 0/3] Improved cleanup handling for amd-pmf Mario Limonciello
2025-05-22  0:34 ` [PATCH v5 1/3] platform/x86/amd: pmf: Use device managed allocations Mario Limonciello
2025-05-22  0:34 ` [PATCH v5 2/3] platform/x86/amd: pmf: Prevent amd_pmf_tee_deinit() from running twice Mario Limonciello
2025-05-22  0:34 ` [PATCH v5 3/3] platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc() Mario Limonciello
2025-06-10  7:49 ` [PATCH v5 0/3] Improved cleanup handling for amd-pmf Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox