0a2ea9ef55
* hsakmt: Expose CWSR and Control stack sizes This is better than hardcoding values and hoping that they align with KFD's definitions Signed-off-by: Kent Russell <kent.russell@amd.com> * hsakmt: Use CwsrSize and CtlStackSize if available If KFD is providing the CwsrSize and CtlStackSize, use the maximum of those and the old calculations for the ctx_save_restore_size and ctl_stack_size defined in the queue Signed-off-by: Kent Russell <kent.russell@amd.com> * hsakmt: Add warning when ABI<1.20 on GFX1151 CwsrSize and CtlStackSize are reported by KFD ABI 1.20. GFX1151 specifically may have some issues if these regions are misaligned, so report a strong warning during topology initialization if the system is GFX1151 but is using KFD ABI < 1.20 Signed-off-by: Kent Russell <kent.russell@amd.com> --------- Signed-off-by: Kent Russell <kent.russell@amd.com>