Re: [PATCH 0/5] platform/x86/amd/pmf: Clean up undesirable function outlining
From: Ilpo Järvinen
Date: Thu Oct 08 2026 - 13:37:50 EST
On Tue, 01 Sep 2026 23:02:10 +0800, Rong Zhang wrote:
> The amd-pmf driver is notably bloated due to undesirable function
> outlining and linkage. Simple and dump helper functions as well as
> wrappers should really be static inline functions instead of global ones
> from the very beginning, or else they are prone to the overhead of
> function outlining and linkage, which bloats themselves and their
> callers.
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.
The list of commits applied:
[1/5] platform/x86/amd/pmf: Inline !AMD_PMF_DEBUG stub
commit: b8f7b92fcbd7e5801bbd18a42a9c10ef03e2ec35
[2/5] platform/x86/amd/pmf: Inline simple helper functions of Core Layer
commit: c78d7b826cfc1642c78f5022b5acbf5ef09d88f9
[3/5] platform/x86/amd/pmf: Inline simple helper function of SPS Layer
commit: 079cbf13340688ef697252b18bab9533acba3ecb
[4/5] platform/x86/amd/pmf: Inline simple helper function of Smart PC TA interfaces
commit: ef1e7071c1f2832f3a7001be7f7c04bd872c14ae
[5/5] platform/x86/amd/pmf: Inline wrappers of ap{mf,ts}_if_call_store_buffer()
commit: b21ebc6638d56f6007aff1fe93c5838dc138a364
--
i.