to free up drm mode_config info.
fix issue: unload amdgpu, can't load amdgpu again.
[drm:drm_debugfs_init [drm]] *ERROR* Cannot create /sys/kernel/debug/dri/0
[drm:drm_minor_register [drm]] *ERROR* DRM: Failed to initialize /sys/kernel/debug/dri.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Andrey Grodzovsky<andrey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
adev->dm.freesync_module = NULL;
}
/* DC Destroy TODO: Replace destroy DAL */
- {
+ if (adev->dm.dc)
dc_destroy(&adev->dm.dc);
- }
return;
}
amdgpu_dm_hpd_fini(adev);
amdgpu_dm_irq_fini(adev);
-
+ amdgpu_dm_fini(adev);
return 0;
}
void dc_interrupt_set(const struct dc *dc, enum dc_irq_source src, bool enable)
{
- struct core_dc *core_dc = DC_TO_CORE(dc);
+ struct core_dc *core_dc;
+
+ if (dc == NULL)
+ return;
+ core_dc = DC_TO_CORE(dc);
+
dal_irq_service_set(core_dc->res_pool->irqs, src, enable);
}