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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: add modifiers in amdgpu_vkms_plane_init()

Fix following warning in SRIOV during modprobe:

amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier
WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1150 amdgpu_display_framebuffer_init+0x8e7/0xb40 [amdgpu]

Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Leslie Shi and committed by
Alex Deucher
4046afce addaac0c

+2 -1
+2 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
··· 390 390 int index) 391 391 { 392 392 struct drm_plane *plane; 393 + uint64_t modifiers[] = {DRM_FORMAT_MOD_LINEAR, DRM_FORMAT_MOD_INVALID}; 393 394 int ret; 394 395 395 396 plane = kzalloc(sizeof(*plane), GFP_KERNEL); ··· 401 400 &amdgpu_vkms_plane_funcs, 402 401 amdgpu_vkms_formats, 403 402 ARRAY_SIZE(amdgpu_vkms_formats), 404 - NULL, type, NULL); 403 + modifiers, type, NULL); 405 404 if (ret) { 406 405 kfree(plane); 407 406 return ERR_PTR(ret);