]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: KFD interrupt access ih_fifo data in-place
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 22 Nov 2024 22:36:15 +0000 (17:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2024 17:39:07 +0000 (12:39 -0500)
commitf607b2b867bbef8a3a76de8d0eccf7429782bdca
tree76ace342da8d893ccebe11158f104971e8714ff0
parent11815bb0e30966321ff4351b55ad7b6f2e0a63bf
drm/amdkfd: KFD interrupt access ih_fifo data in-place

To handle 40000 to 80000 interrupts per second running CPX mode with 4
streams/queues per KFD node, KFD interrupt handler becomes the
performance bottleneck.

Remove the kfifo_out memcpy overhead by accessing ih_fifo data in-place
and updating rptr with kfifo_skip_count.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c