drm/xe/pf: Add data structures and handlers for migration rings
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 12 Nov 2025 13:22:01 +0000 (14:22 +0100)
committerMichał Winiarski <michal.winiarski@intel.com>
Thu, 13 Nov 2025 10:48:19 +0000 (11:48 +0100)
commit67df4a5cbc583fa3cdefd14131203d46b088ae03
tree14248573c16728ce8195c5d692629f4655188f36
parented46ff0d51e4fd7a999c4fe38371b1dd25a41cc1
drm/xe/pf: Add data structures and handlers for migration rings

Migration data is queued in a per-GT ptr_ring to decouple the worker
responsible for handling the data transfer from the .read() and .write()
syscalls.
Add the data structures and handlers that will be used in future
commits.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20251112132220.516975-6-michal.winiarski@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
12 files changed:
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_control_types.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration_types.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
drivers/gpu/drm/xe/xe_sriov_packet_types.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
drivers/gpu/drm/xe/xe_sriov_pf_migration.h
drivers/gpu/drm/xe/xe_sriov_pf_migration_types.h
drivers/gpu/drm/xe/xe_sriov_pf_types.h