Icenowy Zheng 3806a8c647 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: 54c30d2a8def ("drm/amdgpu: create kernel doorbell pages")
Reviewed-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-10-09 17:59:29 -04:00
..
2023-08-30 13:34:34 -07:00
2023-08-30 13:34:34 -07:00
2023-08-29 19:56:11 +02:00
2023-07-17 15:37:57 +02:00
2023-07-17 15:37:57 +02:00
2023-08-24 07:26:06 +10:00
2023-03-14 17:07:48 +01:00
2023-08-15 12:07:19 +10:00
2023-08-30 13:34:34 -07:00
2023-08-24 07:26:06 +10:00
2023-08-30 13:34:34 -07:00
2023-08-24 07:26:06 +10:00
2023-08-24 07:26:06 +10:00
2023-07-11 09:23:20 +02:00
2023-08-25 06:28:33 +10:00
2023-08-30 13:45:05 -07:00
2023-08-24 07:26:06 +10:00
2023-05-24 18:03:30 +02:00
2023-08-24 07:26:06 +10:00
2023-02-20 14:56:52 +01:00
2023-09-18 10:52:55 +02:00