Skip to content

Improved cleanup handling for amd-pmf

Mario Limonciello platform-driver-x86 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v43 patches 7 repliesSuperseded
  3. v33 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v21 patch4 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/x86/amd: pmf: Use device managed allocationsdrivers/platform/x86/amd/pmf/core.c drivers/platform/x86/amd/pmf/tee-if.c+22 -370 replies
2/3platform/x86/amd: pmf: Prevent amd_pmf_tee_deinit() from running twicedrivers/platform/x86/amd/pmf/tee-if.c+8 -30 replies
3/3platform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc()drivers/platform/x86/amd/pmf/tee-if.c+16 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/3] Improved cleanup handling for amd-pmf

From: Mario Limonciello <[email protected]>

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(-)
Signature · 1 line
2.43.0