diff options
author | Vincent Donnefort <vdonnefort@google.com> | 2024-06-28 11:46:11 +0100 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-08-26 13:42:23 -0400 |
commit | eb2dcde9f970ed8d3669444d47c8524b4bdf7d32 (patch) | |
tree | fce2721f068acd2461f8d315c4c2406383348a56 /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
parent | d0f2d6e9512ecf4306c4432761f04bd35cf9e3a6 (diff) |
ring-buffer: Align meta-page to sub-buffers for improved TLB usage
Previously, the mapped ring-buffer layout caused misalignment between
the meta-page and sub-buffers when the sub-buffer size was not a
multiple of PAGE_SIZE. This prevented hardware with larger TLB entries
from utilizing them effectively.
Add a padding with the zero-page between the meta-page and sub-buffers.
Also update the ring-buffer map_test to verify that padding.
Link: https://lore.kernel.org/20240628104611.1443542-1-vdonnefort@google.com
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions