drm/xe/guc: Add support for G2G communications
authorJohn Harrison <John.C.Harrison@Intel.com>
Wed, 20 Nov 2024 00:02:22 +0000 (16:02 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Sat, 23 Nov 2024 03:10:56 +0000 (19:10 -0800)
commita9f7b97ddae36d664d627b152d5c5a07b32ba816
tree811458f903da442037c0749e41d068beff0c2c7b
parent5a3b0df25d6a78098d548213384665eeead608c9
drm/xe/guc: Add support for G2G communications

Some features require inter-GuC communication channels on multi-tile
devices. So allocate and enable such.

v2: Correct use of xe_bo_get/put (review feedback from Matthew Brost)
Add extra assert, re-order a calculation for better clarity and add
comments to slot calculation (review feedback from Daniele). Also
slightly re-work the slot calc to avoid code duplication.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241120000222.204095-3-John.C.Harrison@Intel.com
drivers/gpu/drm/xe/abi/guc_actions_abi.h
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc_types.h