Skip to content

drm/xe/bo: Use a bool to indicate whether the bo has passed creation

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

If we hit a failure (or even an interrupt) during bo creation, the bo will run callbacks in its destruction path. That means we might be hitting various warnings that assume that be creation was successful.

Add a bool to indicate whether the bo creation was indeed successful, and condition a refcount warning on that member being true.

Also remove the unconditional warning on bo creation failure since it's easy to hit also on interrupted bo creation.

v2:

  • Fix a typo in the commit message.

Signed-off-by: Thomas Hellström thomas.hellstrom@linux.intel.com

Edited by Thomas Hellström

Merge request reports