Hi,
The current implementation of tspd_cpu_migrate_info hardcodes the type information for all platforms via #define TSP_MIGRATE_INFO.
Would it make sense to introduce a weak bl31_plat_cpu_migrate_info call to either be populated by the platform or defaulted to TSP_MIGRATE_INFO. I am asking because rcar_gen3 platform has this requirement (not sure about all the other platforms).
diff --git a/services/spd/tspd/tspd_pm.c b/services/spd/tspd/tspd_pm.c index 9414c15..c24b5a8 100644 --- a/services/spd/tspd/tspd_pm.c +++ b/services/spd/tspd/tspd_pm.c @@ -178,7 +178,7 @@ static void tspd_cpu_suspend_finish_handler(u_register_t max_off_pwrlvl) ******************************************************************************/ static int32_t tspd_cpu_migrate_info(u_register_t *resident_cpu) { - return TSP_MIGRATE_INFO; + return bl31_plat_cpu_migrate_info(resident_cpu); }
thanks Jorge