aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/mcdi_functions.h
diff options
context:
space:
mode:
authorHari Bathini <[email protected]>2023-10-20 14:13:58 +0000
committerMichael Ellerman <[email protected]>2023-10-23 09:33:19 +0000
commit90d862f370b6e9de1b5d607843c5a2f9823990f3 (patch)
tree08937d5801a92b65d281a4ffa62d3c37c3fa427c /drivers/cdx/controller/mcdi_functions.h
parentpowerpc/bpf: rename powerpc64_jit_data to powerpc_jit_data (diff)
downloadkernel-90d862f370b6e9de1b5d607843c5a2f9823990f3.tar.gz
kernel-90d862f370b6e9de1b5d607843c5a2f9823990f3.zip
powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]
Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_finalize. With multiple jit_subprogs, bpf_jit_free is called on some subprograms that haven't got bpf_jit_binary_pack_finalize() yet. Implement custom bpf_jit_free() like in commit 1d5f82d9dd47 ("bpf, x86: fix freeing of not-finalized bpf_prog_pack") to call bpf_jit_binary_pack_finalize(), if necessary. As bpf_flush_icache() is not needed anymore, remove it. Signed-off-by: Hari Bathini <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'drivers/cdx/controller/mcdi_functions.h')
0 files changed, 0 insertions, 0 deletions