]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: fix a bug of smi event for superuser
authorEric Huang <jinhuieric.huang@amd.com>
Mon, 14 Apr 2025 15:19:01 +0000 (11:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:54:44 +0000 (10:54 -0400)
commit6b9d26089f56fb05c1f13027bfff53a63ba6f64d
tree0362c76b70bffdff84055febab515ac7d58a13bb
parent00ec6732a9ef5af89fb7f7e71604d5227bbdc4de
drm/amdkfd: fix a bug of smi event for superuser

rocm-smi with superuser permission doesn't show some
of smi events, i.e. page fault/migration, because the
condition of "(events & all)" is false. Superuser
should be able to detect all events, the condiiton of
"(events & all)" seems redundant, so removing it will
fix the issue.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c