Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

amdkfd: Only ignore -ENOENT for KFD init failuires

When compiled without CONFIG_HSA_AMD KFD will return -ENOENT.
As other errors will cause KFD functionality issues this is the
only error code that should be ignored at init.

Reviewed-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4259a25341abf77939767215706f4e3cfd4b73b8)

authored by

Mario Limonciello (AMD) and committed by
Alex Deucher
87612bab 508babf3

+4 -2
+4 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
··· 3158 3158 amdgpu_register_atpx_handler(); 3159 3159 amdgpu_acpi_detect(); 3160 3160 3161 - /* Ignore KFD init failures. Normal when CONFIG_HSA_AMD is not set. */ 3162 - amdgpu_amdkfd_init(); 3161 + /* Ignore KFD init failures when CONFIG_HSA_AMD is not set. */ 3162 + r = amdgpu_amdkfd_init(); 3163 + if (r && r != -ENOENT) 3164 + goto error_fence; 3163 3165 3164 3166 if (amdgpu_pp_feature_mask & PP_OVERDRIVE_MASK) { 3165 3167 add_taint(TAINT_CPU_OUT_OF_SPEC, LOCKDEP_STILL_OK);