]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix saving the ACC vgprs for Aldebaran
authorLaurent Morichetti <laurent.morichetti@amd.com>
Tue, 22 Dec 2020 19:42:46 +0000 (11:42 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:56:55 +0000 (22:56 -0400)
commite365ae67a048476ab9d9edd9428f3b72221d1ba6
treef8c7ed20797dd2451f567f6f7ebe86b638fdf317
parentf9672d2eee2c15ffa432a685783e3cbb01cbdced
drm/amdkfd: Fix saving the ACC vgprs for Aldebaran

get_num_acc_vgprs does not set status.scc if the number of acc vgprs
is 0, so use an and instruction to set the condition code.

The Aldebaran handler binary was not based on the latest version of
the sources, so this update to the binary is the minimal change only
adding two instructions to set the condition code.

A newer version of the handler should be generated and tested in
another commit.

Signed-off-by: Laurent Morichetti <laurent.morichetti@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx9.asm