Skip to content

[iris,anv]/xe: Consider pat_index while unbinding the bo

Sagar Ghuge requested to merge sagarghuge/mesa:review/xe_fix into main

What does this MR do and why?

We run into the issue when the BO is created with
DRM_XE_GEM_CPU_CACHING_WB mode.

Looks like the Xe driver checks for BO caching while unbinding the BO
otherwise, we might run into the following assertion issue:
(coh_mode == XE_COH_NONE && bos[i]->cpu_caching == DRM_XE_GEM_CPU_CACHING_WB)

Fixes: 19439624d9f ("anv: Use DRM_XE_VM_BIND_OP_UNMAP_ALL to unbind whole bos")

Merge request reports