Commit ff180adf authored by Juha-Pekka Heikkila's avatar Juha-Pekka Heikkila Committed by Rodrigo Vivi
Browse files

drm/xe/display: Don't try to use vram if not available



Trying to get bo from vram when vram not available will cause
WARN_ON() hence avoid touching vram if not available.

Signed-off-by: default avatarJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: default avatarMichael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 95ab70f1
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -62,11 +62,12 @@ static int __xe_pin_fb_vma_dpt(struct intel_framebuffer *fb,
		dpt_size = ALIGN(intel_rotation_info_size(&view->rotated) * 8,
				 XE_PAGE_SIZE);

	if (IS_DGFX(xe))
		dpt = xe_bo_create_pin_map(xe, tile0, NULL, dpt_size,
					   ttm_bo_type_kernel,
					   XE_BO_CREATE_VRAM0_BIT |
					   XE_BO_CREATE_GGTT_BIT);
	if (IS_ERR(dpt))
	else
		dpt = xe_bo_create_pin_map(xe, tile0, NULL, dpt_size,
					   ttm_bo_type_kernel,
					   XE_BO_CREATE_STOLEN_BIT |