linux/drivers/gpu/drm/amd
Dirk Gouders 2ae7870804 drm/amdgpu: fix NULL pointer dereference for Renoir
Commit c1cf79ca5c ("drm/amdgpu: use IP discovery table for renoir")
introduced a NULL pointer dereference when booting with
amdgpu.discovery=0, because it removed the call of vega10_reg_base_init()
for that case.

Fix this by calling that funcion if amdgpu_discovery == 0 in addition to
the case that amdgpu_discovery_reg_base_init() failed.

Fixes: c1cf79ca5c ("drm/amdgpu: use IP discovery table for renoir")
Signed-off-by: Dirk Gouders <dirk@gouders.net>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Cc: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-10-05 15:12:46 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: fix NULL pointer dereference for Renoir 2020-10-05 15:12:46 -04:00
amdkfd drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of 2020-09-30 15:26:27 -04:00
display drm/amd/display: add pipe reassignment prevention code to dcn3 2020-09-30 13:50:22 -04:00
include drm/amd/amdgpu: Define and implement a function that collects number of 2020-09-30 15:26:27 -04:00
pm drm/amdgpu/swsmu: add interrupt work handler for smu11 parts 2020-10-01 10:43:28 -04:00