aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <[email protected]>2025-02-18 15:09:08 +0000
committerSteven Rostedt (Google) <[email protected]>2025-03-28 12:39:28 +0000
commitfb6d03238e35f96cc1d6a5411ee1d684221d1c39 (patch)
treeb338b7283d9bbd5a3f8122b4f7af3fe73637c1c3 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentmm/memblock: Add reserved memory release function (diff)
downloadkernel-fb6d03238e35f96cc1d6a5411ee1d684221d1c39.tar.gz
kernel-fb6d03238e35f96cc1d6a5411ee1d684221d1c39.zip
tracing: Freeable reserved ring buffer
Make the ring buffer on reserved memory to be freeable. This allows us to free the trace instance on the reserved memory without changing cmdline and rebooting. Even if we can not change the kernel cmdline for security reason, we can release the reserved memory for the ring buffer as free (available) memory. For example, boot kernel with reserved memory; "reserve_mem=20M:2M:trace trace_instance=boot_mapped^traceoff@trace" ~ # free total used free shared buff/cache available Mem: 1995548 50544 1927568 14964 17436 1911480 Swap: 0 0 0 ~ # rmdir /sys/kernel/tracing/instances/boot_mapped/ [ 23.704023] Freeing reserve_mem:trace memory: 20476K ~ # free total used free shared buff/cache available Mem: 2016024 41844 1956740 14968 17440 1940572 Swap: 0 0 0 Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Mike Rapoport <[email protected]> Link: https://lore.kernel.org/173989134814.230693.18199312930337815629.stgit@devnote2 Signed-off-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions