OSDN Git Service

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)
commitad6cc94a6b59b276eb50553a2a511c91bef45a97
treef8c7ed20797dd2451f567f6f7ebe86b638fdf317
parent73ab8efc7fdf683f7415c010990d9a1a16fae464
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