diff options
author | Yong Zhao <Yong.Zhao@amd.com> | 2017-09-20 18:10:19 -0400 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2017-09-20 18:10:19 -0400 |
commit | e596b90338126d08a8d90f08e79bb644b8c9f2b6 (patch) | |
tree | c10151d1e2bd485199e886ad762a262a0c81276e /drivers/gpu/host1x/debug.c | |
parent | 44008d7a871ce5a487cbcc4c412a5149145ea442 (diff) |
drm/amdkfd: Reuse CHIP_* from amdgpu v2
There are already CHIP_* definitions under amd_shared.h file on amdgpu
side, so KFD should reuse them rather than defining new ones.
Using enum for asic type requires default cases on switch statements
to prevent compiler warnings. WARN on unsupported ASICs. It should never
get there because KFD should not be initialized on unsupported devices.
v2: Replace BUG() with WARN and error return
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/host1x/debug.c')
0 files changed, 0 insertions, 0 deletions