Skip to content

drm/xe/migrate: Clear and copy flat CCS metadata

Thomas Hellström requested to merge thomash/kernel:flat_ccs_2 into xe

Make sure we clear and copy CCS metadata when using flat CCS This means:

  • Any user bo that is moved to VRAM should clear flat CCS metadata for security reasons.
  • user bos with allowed placement in VRAM only backs up flat CCS metadata on eviction.

There appears to be no working clearing mechanism for CCS metadata, so use a copy from a pre-cleared VRAM region. This is similar to how it's handled in i915.

Finally add a kunit test for sanity-checking the above.

Merge request reports

Loading