mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
95ab70f134
commit
ff180adfb9
|
|
@ -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);
|
||||
|
||||
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))
|
||||
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);
|
||||
else
|
||||
dpt = xe_bo_create_pin_map(xe, tile0, NULL, dpt_size,
|
||||
ttm_bo_type_kernel,
|
||||
XE_BO_CREATE_STOLEN_BIT |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user