]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/si: fix ASIC tests
authorJean Delvare <jdelvare@suse.de>
Wed, 28 Aug 2019 15:05:57 +0000 (17:05 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Aug 2019 20:52:32 +0000 (15:52 -0500)
commit1f25d911d2d2de1e39e868eac197a10ff27e6b7b
tree04a25339eb0dcd8ce3de7e4e815fd59b8b9910b3
parentf58a20b719e4e9206c284a7793826ab9a3f0b793
drm/amdgpu/si: fix ASIC tests

Comparing adev->family with CHIP constants is not correct.
adev->family can only be compared with AMDGPU_FAMILY constants and
adev->asic_type is the struct member to compare with CHIP constants.
They are separate identification spaces.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: dcbd37c162f4 ("drm/amdgpu: add si implementation v10")
Cc: Ken Wang <Qingqing.Wang@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/si.c