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

drm/amdgpu: don't init fbdev if we don't have any connectors

Don't init fbdev if we don't have connectors. E.g., if you have
a PX laptop with the displays attached to an IGP with no driver
support, you may end up with a blank screen rather than falling
back to vesa, etc.

Based on a similar radeon patch from Rob Clark.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+4
+4
drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
··· 333 333 if (!adev->mode_info.mode_config_initialized) 334 334 return 0; 335 335 336 + /* don't init fbdev if there are no connectors */ 337 + if (list_empty(&adev->ddev->mode_config.connector_list)) 338 + return 0; 339 + 336 340 /* select 8 bpp console on low vram cards */ 337 341 if (adev->mc.real_vram_size <= (32*1024*1024)) 338 342 bpp_sel = 8;