aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorEva Crystal <0xiviel@gmail.com>2026-10-03 09:58:14 +1300
committerLizhi Hou <lizhi.hou@amd.com>2026-10-06 08:53:06 -0700
commit5d7b464a4f517d1db533b1b231f42ddcf4e1dff4 (patch)
tree2974ad7128d53e13b60220694d30c6fe0271bf82 /scripts/Makefile.thinlto
parentaccel/amdxdna: eliminate GFP_KERNEL allocation from mailbox send path (diff)
accel/amdxdna: document trusted mailbox ring geometry and drop the power-of-two check
The mailbox ring buffer geometry comes from AMD signed firmware, through the management or mailbox information block, or through the CREATE_CONTEXT response, and the driver trusts it by design. The power-of-two test on rb_size was a firmware debugging aid. Nothing in the driver derives a mask, a shift or a modulo from rb_size, so no code depends on the property it tested. The ring index wrap is handled by the explicit comparisons in mailbox_send_msg() and mailbox_get_msg(). Replace the test with a comment that records the design, so that automated review does not flag the absence of a bound here again. Suggested-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://lore.kernel.org/all/67698952-6394-44a8-01fe-3e3558b7cb4c@amd.com/ Signed-off-by: Eva Crystal <0xiviel@gmail.com> Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20261002205814.178031-1-0xiviel@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions