drm/xe: ensure correct access_put ordering
authorMatthew Auld <matthew.auld@intel.com>
Wed, 19 Jul 2023 08:38:08 +0000 (09:38 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:37:36 +0000 (11:37 -0500)
commit03af26c9c9767b096cf4b69544f0140898530531
tree7ef327a02d432f7f82fd4ecdfc755e9fa6ac22c0
parent7da1d76ff647cc08d9400562a75a92e41ba6d7bc
drm/xe: ensure correct access_put ordering

Only call access_put after dropping the forcewake. In theory the device
could suspend, but really we want to start asserting that we have a
mem_access.ref when touching mmio.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt.c
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_guc_pc.c