Skip to content
Commit 219223ec authored by Icenowy Zheng's avatar Icenowy Zheng Committed by Alex Deucher
Browse files

drm/amdgpu: fix SI failure due to doorbells allocation

SI hardware does not have doorbells at all, however currently the code
will try to do the allocation and thus fail, makes SI AMDGPU not usable.

Fix this failure by skipping doorbells allocation when doorbells count
is zero.

Fixes: 54c30d2a

 ("drm/amdgpu: create kernel doorbell pages")
Reviewed-by: default avatarShashank Sharma <shashank.sharma@amd.com>
Signed-off-by: default avatarIcenowy Zheng <uwu@icenowy.me>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ce862c49
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment