]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: Fix check for RAS support
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 12 Mar 2021 00:11:01 +0000 (19:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:10:38 +0000 (11:10 +0200)
commit09867977fcc258caab84031445345bdf3c2e0531
treea7c701d5a7d00c4c5a0526c9f9ad73d12dcccedf
parent8c6fd05cf8874e683dfb2749926363faeb3324e0
drm/amdgpu: Fix check for RAS support

[ Upstream commit 084e2640e51626f413f85663e3ba7e32d4272477 ]

Use positive logic to check for RAS
support. Rename the function to actually indicate
what it is testing for. Essentially, make the
function a predicate with the correct name.

Cc: Stanley Yang <Stanley.Yang@amd.com>
Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 6c2049066355 ("drm/amdgpu: Don't enable LTR if not supported")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c