1e8db288eSNicolas Pitre /* 2e8db288eSNicolas Pitre * arch/arm/include/asm/mcpm.h 3e8db288eSNicolas Pitre * 4e8db288eSNicolas Pitre * Created by: Nicolas Pitre, April 2012 5e8db288eSNicolas Pitre * Copyright: (C) 2012-2013 Linaro Limited 6e8db288eSNicolas Pitre * 7e8db288eSNicolas Pitre * This program is free software; you can redistribute it and/or modify 8e8db288eSNicolas Pitre * it under the terms of the GNU General Public License version 2 as 9e8db288eSNicolas Pitre * published by the Free Software Foundation. 10e8db288eSNicolas Pitre */ 11e8db288eSNicolas Pitre 12e8db288eSNicolas Pitre #ifndef MCPM_H 13e8db288eSNicolas Pitre #define MCPM_H 14e8db288eSNicolas Pitre 15e8db288eSNicolas Pitre /* 16e8db288eSNicolas Pitre * Maximum number of possible clusters / CPUs per cluster. 17e8db288eSNicolas Pitre * 18e8db288eSNicolas Pitre * This should be sufficient for quite a while, while keeping the 19e8db288eSNicolas Pitre * (assembly) code simpler. When this starts to grow then we'll have 20e8db288eSNicolas Pitre * to consider dynamic allocation. 21e8db288eSNicolas Pitre */ 22e8db288eSNicolas Pitre #define MAX_CPUS_PER_CLUSTER 4 23ebf4a5c5SHaojian Zhuang 24ebf4a5c5SHaojian Zhuang #ifdef CONFIG_MCPM_QUAD_CLUSTER 25ebf4a5c5SHaojian Zhuang #define MAX_NR_CLUSTERS 4 26ebf4a5c5SHaojian Zhuang #else 27e8db288eSNicolas Pitre #define MAX_NR_CLUSTERS 2 28ebf4a5c5SHaojian Zhuang #endif 29e8db288eSNicolas Pitre 30e8db288eSNicolas Pitre #ifndef __ASSEMBLY__ 31e8db288eSNicolas Pitre 327fe31d28SDave Martin #include <linux/types.h> 337fe31d28SDave Martin #include <asm/cacheflush.h> 347fe31d28SDave Martin 35e8db288eSNicolas Pitre /* 36e8db288eSNicolas Pitre * Platform specific code should use this symbol to set up secondary 37e8db288eSNicolas Pitre * entry location for processors to use when released from reset. 38e8db288eSNicolas Pitre */ 39e8db288eSNicolas Pitre extern void mcpm_entry_point(void); 40e8db288eSNicolas Pitre 41e8db288eSNicolas Pitre /* 42e8db288eSNicolas Pitre * This is used to indicate where the given CPU from given cluster should 43e8db288eSNicolas Pitre * branch once it is ready to re-enter the kernel using ptr, or NULL if it 44e8db288eSNicolas Pitre * should be gated. A gated CPU is held in a WFE loop until its vector 45e8db288eSNicolas Pitre * becomes non NULL. 46e8db288eSNicolas Pitre */ 47e8db288eSNicolas Pitre void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr); 48e8db288eSNicolas Pitre 497c2b8605SNicolas Pitre /* 50de885d14SNicolas Pitre * This sets an early poke i.e a value to be poked into some address 51de885d14SNicolas Pitre * from very early assembly code before the CPU is ungated. The 52de885d14SNicolas Pitre * address must be physical, and if 0 then nothing will happen. 53de885d14SNicolas Pitre */ 54de885d14SNicolas Pitre void mcpm_set_early_poke(unsigned cpu, unsigned cluster, 55de885d14SNicolas Pitre unsigned long poke_phys_addr, unsigned long poke_val); 56de885d14SNicolas Pitre 57de885d14SNicolas Pitre /* 587c2b8605SNicolas Pitre * CPU/cluster power operations API for higher subsystems to use. 597c2b8605SNicolas Pitre */ 607c2b8605SNicolas Pitre 617c2b8605SNicolas Pitre /** 624530e4b6SNicolas Pitre * mcpm_is_available - returns whether MCPM is initialized and available 634530e4b6SNicolas Pitre * 644530e4b6SNicolas Pitre * This returns true or false accordingly. 654530e4b6SNicolas Pitre */ 664530e4b6SNicolas Pitre bool mcpm_is_available(void); 674530e4b6SNicolas Pitre 684530e4b6SNicolas Pitre /** 697c2b8605SNicolas Pitre * mcpm_cpu_power_up - make given CPU in given cluster runable 707c2b8605SNicolas Pitre * 717c2b8605SNicolas Pitre * @cpu: CPU number within given cluster 727c2b8605SNicolas Pitre * @cluster: cluster number for the CPU 737c2b8605SNicolas Pitre * 747c2b8605SNicolas Pitre * The identified CPU is brought out of reset. If the cluster was powered 757c2b8605SNicolas Pitre * down then it is brought up as well, taking care not to let the other CPUs 767c2b8605SNicolas Pitre * in the cluster run, and ensuring appropriate cluster setup. 777c2b8605SNicolas Pitre * 787c2b8605SNicolas Pitre * Caller must ensure the appropriate entry vector is initialized with 797c2b8605SNicolas Pitre * mcpm_set_entry_vector() prior to calling this. 807c2b8605SNicolas Pitre * 817c2b8605SNicolas Pitre * This must be called in a sleepable context. However, the implementation 827c2b8605SNicolas Pitre * is strongly encouraged to return early and let the operation happen 837c2b8605SNicolas Pitre * asynchronously, especially when significant delays are expected. 847c2b8605SNicolas Pitre * 857c2b8605SNicolas Pitre * If the operation cannot be performed then an error code is returned. 867c2b8605SNicolas Pitre */ 877c2b8605SNicolas Pitre int mcpm_cpu_power_up(unsigned int cpu, unsigned int cluster); 887c2b8605SNicolas Pitre 897c2b8605SNicolas Pitre /** 907c2b8605SNicolas Pitre * mcpm_cpu_power_down - power the calling CPU down 917c2b8605SNicolas Pitre * 927c2b8605SNicolas Pitre * The calling CPU is powered down. 937c2b8605SNicolas Pitre * 947c2b8605SNicolas Pitre * If this CPU is found to be the "last man standing" in the cluster 957c2b8605SNicolas Pitre * then the cluster is prepared for power-down too. 967c2b8605SNicolas Pitre * 977c2b8605SNicolas Pitre * This must be called with interrupts disabled. 987c2b8605SNicolas Pitre * 99d0cdef6eSNicolas Pitre * On success this does not return. Re-entry in the kernel is expected 100d0cdef6eSNicolas Pitre * via mcpm_entry_point. 101d0cdef6eSNicolas Pitre * 102d0cdef6eSNicolas Pitre * This will return if mcpm_platform_register() has not been called 103d0cdef6eSNicolas Pitre * previously in which case the caller should take appropriate action. 1040de0d646SDave Martin * 1050de0d646SDave Martin * On success, the CPU is not guaranteed to be truly halted until 106166aaf39SDave Martin * mcpm_wait_for_cpu_powerdown() subsequently returns non-zero for the 1070de0d646SDave Martin * specified cpu. Until then, other CPUs should make sure they do not 1080de0d646SDave Martin * trash memory the target CPU might be executing/accessing. 1097c2b8605SNicolas Pitre */ 1107c2b8605SNicolas Pitre void mcpm_cpu_power_down(void); 1117c2b8605SNicolas Pitre 1127c2b8605SNicolas Pitre /** 113166aaf39SDave Martin * mcpm_wait_for_cpu_powerdown - wait for a specified CPU to halt, and 1140de0d646SDave Martin * make sure it is powered off 1150de0d646SDave Martin * 1160de0d646SDave Martin * @cpu: CPU number within given cluster 1170de0d646SDave Martin * @cluster: cluster number for the CPU 1180de0d646SDave Martin * 1190de0d646SDave Martin * Call this function to ensure that a pending powerdown has taken 1200de0d646SDave Martin * effect and the CPU is safely parked before performing non-mcpm 1210de0d646SDave Martin * operations that may affect the CPU (such as kexec trashing the 1220de0d646SDave Martin * kernel text). 1230de0d646SDave Martin * 1240de0d646SDave Martin * It is *not* necessary to call this function if you only need to 1250de0d646SDave Martin * serialise a pending powerdown with mcpm_cpu_power_up() or a wakeup 1260de0d646SDave Martin * event. 1270de0d646SDave Martin * 1280de0d646SDave Martin * Do not call this function unless the specified CPU has already 1290de0d646SDave Martin * called mcpm_cpu_power_down() or has committed to doing so. 1300de0d646SDave Martin * 1310de0d646SDave Martin * @return: 1320de0d646SDave Martin * - zero if the CPU is in a safely parked state 1330de0d646SDave Martin * - nonzero otherwise (e.g., timeout) 1340de0d646SDave Martin */ 135166aaf39SDave Martin int mcpm_wait_for_cpu_powerdown(unsigned int cpu, unsigned int cluster); 1360de0d646SDave Martin 1370de0d646SDave Martin /** 1387c2b8605SNicolas Pitre * mcpm_cpu_suspend - bring the calling CPU in a suspended state 1397c2b8605SNicolas Pitre * 1407c2b8605SNicolas Pitre * @expected_residency: duration in microseconds the CPU is expected 1417c2b8605SNicolas Pitre * to remain suspended, or 0 if unknown/infinity. 1427c2b8605SNicolas Pitre * 1437c2b8605SNicolas Pitre * The calling CPU is suspended. The expected residency argument is used 1447c2b8605SNicolas Pitre * as a hint by the platform specific backend to implement the appropriate 1457c2b8605SNicolas Pitre * sleep state level according to the knowledge it has on wake-up latency 1467c2b8605SNicolas Pitre * for the given hardware. 1477c2b8605SNicolas Pitre * 1487c2b8605SNicolas Pitre * If this CPU is found to be the "last man standing" in the cluster 1497c2b8605SNicolas Pitre * then the cluster may be prepared for power-down too, if the expected 1507c2b8605SNicolas Pitre * residency makes it worthwhile. 1517c2b8605SNicolas Pitre * 1527c2b8605SNicolas Pitre * This must be called with interrupts disabled. 1537c2b8605SNicolas Pitre * 154d0cdef6eSNicolas Pitre * On success this does not return. Re-entry in the kernel is expected 155d0cdef6eSNicolas Pitre * via mcpm_entry_point. 156d0cdef6eSNicolas Pitre * 157d0cdef6eSNicolas Pitre * This will return if mcpm_platform_register() has not been called 158d0cdef6eSNicolas Pitre * previously in which case the caller should take appropriate action. 1597c2b8605SNicolas Pitre */ 1607c2b8605SNicolas Pitre void mcpm_cpu_suspend(u64 expected_residency); 1617c2b8605SNicolas Pitre 1627c2b8605SNicolas Pitre /** 1637c2b8605SNicolas Pitre * mcpm_cpu_powered_up - housekeeping workafter a CPU has been powered up 1647c2b8605SNicolas Pitre * 1657c2b8605SNicolas Pitre * This lets the platform specific backend code perform needed housekeeping 1667c2b8605SNicolas Pitre * work. This must be called by the newly activated CPU as soon as it is 1677c2b8605SNicolas Pitre * fully operational in kernel space, before it enables interrupts. 1687c2b8605SNicolas Pitre * 1697c2b8605SNicolas Pitre * If the operation cannot be performed then an error code is returned. 1707c2b8605SNicolas Pitre */ 1717c2b8605SNicolas Pitre int mcpm_cpu_powered_up(void); 1727c2b8605SNicolas Pitre 1737c2b8605SNicolas Pitre /* 174*d3a87544SNicolas Pitre * Platform specific callbacks used in the implementation of the above API. 175*d3a87544SNicolas Pitre * 176*d3a87544SNicolas Pitre * cpu_powerup: 177*d3a87544SNicolas Pitre * Make given CPU runable. Called with MCPM lock held and IRQs disabled. 178*d3a87544SNicolas Pitre * The given cluster is assumed to be set up (cluster_powerup would have 179*d3a87544SNicolas Pitre * been called beforehand). Must return 0 for success or negative error code. 180*d3a87544SNicolas Pitre * 181*d3a87544SNicolas Pitre * cluster_powerup: 182*d3a87544SNicolas Pitre * Set up power for given cluster. Called with MCPM lock held and IRQs 183*d3a87544SNicolas Pitre * disabled. Called before first cpu_powerup when cluster is down. Must 184*d3a87544SNicolas Pitre * return 0 for success or negative error code. 185*d3a87544SNicolas Pitre * 186*d3a87544SNicolas Pitre * cpu_suspend_prepare: 187*d3a87544SNicolas Pitre * Special suspend configuration. Called on target CPU with MCPM lock held 188*d3a87544SNicolas Pitre * and IRQs disabled. This callback is optional. If provided, it is called 189*d3a87544SNicolas Pitre * before cpu_powerdown_prepare. 190*d3a87544SNicolas Pitre * 191*d3a87544SNicolas Pitre * cpu_powerdown_prepare: 192*d3a87544SNicolas Pitre * Configure given CPU for power down. Called on target CPU with MCPM lock 193*d3a87544SNicolas Pitre * held and IRQs disabled. Power down must be effective only at the next WFI instruction. 194*d3a87544SNicolas Pitre * 195*d3a87544SNicolas Pitre * cluster_powerdown_prepare: 196*d3a87544SNicolas Pitre * Configure given cluster for power down. Called on one CPU from target 197*d3a87544SNicolas Pitre * cluster with MCPM lock held and IRQs disabled. A cpu_powerdown_prepare 198*d3a87544SNicolas Pitre * for each CPU in the cluster has happened when this occurs. 199*d3a87544SNicolas Pitre * 200*d3a87544SNicolas Pitre * cpu_cache_disable: 201*d3a87544SNicolas Pitre * Clean and disable CPU level cache for the calling CPU. Called on with IRQs 202*d3a87544SNicolas Pitre * disabled only. The CPU is no longer cache coherent with the rest of the 203*d3a87544SNicolas Pitre * system when this returns. 204*d3a87544SNicolas Pitre * 205*d3a87544SNicolas Pitre * cluster_cache_disable: 206*d3a87544SNicolas Pitre * Clean and disable the cluster wide cache as well as the CPU level cache 207*d3a87544SNicolas Pitre * for the calling CPU. No call to cpu_cache_disable will happen for this 208*d3a87544SNicolas Pitre * CPU. Called with IRQs disabled and only when all the other CPUs are done 209*d3a87544SNicolas Pitre * with their own cpu_cache_disable. The cluster is no longer cache coherent 210*d3a87544SNicolas Pitre * with the rest of the system when this returns. 211*d3a87544SNicolas Pitre * 212*d3a87544SNicolas Pitre * cpu_is_up: 213*d3a87544SNicolas Pitre * Called on given CPU after it has been powered up or resumed. The MCPM lock 214*d3a87544SNicolas Pitre * is held and IRQs disabled. This callback is optional. 215*d3a87544SNicolas Pitre * 216*d3a87544SNicolas Pitre * cluster_is_up: 217*d3a87544SNicolas Pitre * Called by the first CPU to be powered up or resumed in given cluster. 218*d3a87544SNicolas Pitre * The MCPM lock is held and IRQs disabled. This callback is optional. If 219*d3a87544SNicolas Pitre * provided, it is called before cpu_is_up for that CPU. 220*d3a87544SNicolas Pitre * 221*d3a87544SNicolas Pitre * wait_for_powerdown: 222*d3a87544SNicolas Pitre * Wait until given CPU is powered down. This is called in sleeping context. 223*d3a87544SNicolas Pitre * Some reasonable timeout must be considered. Must return 0 for success or 224*d3a87544SNicolas Pitre * negative error code. 2257c2b8605SNicolas Pitre */ 2267c2b8605SNicolas Pitre struct mcpm_platform_ops { 227*d3a87544SNicolas Pitre int (*cpu_powerup)(unsigned int cpu, unsigned int cluster); 228*d3a87544SNicolas Pitre int (*cluster_powerup)(unsigned int cluster); 229*d3a87544SNicolas Pitre void (*cpu_suspend_prepare)(unsigned int cpu, unsigned int cluster); 230*d3a87544SNicolas Pitre void (*cpu_powerdown_prepare)(unsigned int cpu, unsigned int cluster); 231*d3a87544SNicolas Pitre void (*cluster_powerdown_prepare)(unsigned int cluster); 232*d3a87544SNicolas Pitre void (*cpu_cache_disable)(void); 233*d3a87544SNicolas Pitre void (*cluster_cache_disable)(void); 234*d3a87544SNicolas Pitre void (*cpu_is_up)(unsigned int cpu, unsigned int cluster); 235*d3a87544SNicolas Pitre void (*cluster_is_up)(unsigned int cluster); 236*d3a87544SNicolas Pitre int (*wait_for_powerdown)(unsigned int cpu, unsigned int cluster); 237*d3a87544SNicolas Pitre 238*d3a87544SNicolas Pitre /* deprecated callbacks */ 2397c2b8605SNicolas Pitre int (*power_up)(unsigned int cpu, unsigned int cluster); 2407c2b8605SNicolas Pitre void (*power_down)(void); 2417c2b8605SNicolas Pitre void (*suspend)(u64); 2427c2b8605SNicolas Pitre void (*powered_up)(void); 2437c2b8605SNicolas Pitre }; 2447c2b8605SNicolas Pitre 2457c2b8605SNicolas Pitre /** 2467c2b8605SNicolas Pitre * mcpm_platform_register - register platform specific power methods 2477c2b8605SNicolas Pitre * 2487c2b8605SNicolas Pitre * @ops: mcpm_platform_ops structure to register 2497c2b8605SNicolas Pitre * 2507c2b8605SNicolas Pitre * An error is returned if the registration has been done previously. 2517c2b8605SNicolas Pitre */ 2527c2b8605SNicolas Pitre int __init mcpm_platform_register(const struct mcpm_platform_ops *ops); 2537c2b8605SNicolas Pitre 2547fe31d28SDave Martin /* Synchronisation structures for coordinating safe cluster setup/teardown: */ 2557fe31d28SDave Martin 2567fe31d28SDave Martin /* 2577fe31d28SDave Martin * When modifying this structure, make sure you update the MCPM_SYNC_ defines 2587fe31d28SDave Martin * to match. 2597fe31d28SDave Martin */ 2607fe31d28SDave Martin struct mcpm_sync_struct { 2617fe31d28SDave Martin /* individual CPU states */ 2627fe31d28SDave Martin struct { 2637fe31d28SDave Martin s8 cpu __aligned(__CACHE_WRITEBACK_GRANULE); 2647fe31d28SDave Martin } cpus[MAX_CPUS_PER_CLUSTER]; 2657fe31d28SDave Martin 2667fe31d28SDave Martin /* cluster state */ 2677fe31d28SDave Martin s8 cluster __aligned(__CACHE_WRITEBACK_GRANULE); 2687fe31d28SDave Martin 2697fe31d28SDave Martin /* inbound-side state */ 2707fe31d28SDave Martin s8 inbound __aligned(__CACHE_WRITEBACK_GRANULE); 2717fe31d28SDave Martin }; 2727fe31d28SDave Martin 2737fe31d28SDave Martin struct sync_struct { 2747fe31d28SDave Martin struct mcpm_sync_struct clusters[MAX_NR_CLUSTERS]; 2757fe31d28SDave Martin }; 2767fe31d28SDave Martin 2777fe31d28SDave Martin void __mcpm_cpu_going_down(unsigned int cpu, unsigned int cluster); 2787fe31d28SDave Martin void __mcpm_cpu_down(unsigned int cpu, unsigned int cluster); 2797fe31d28SDave Martin void __mcpm_outbound_leave_critical(unsigned int cluster, int state); 2807fe31d28SDave Martin bool __mcpm_outbound_enter_critical(unsigned int this_cpu, unsigned int cluster); 2817fe31d28SDave Martin int __mcpm_cluster_state(unsigned int cluster); 2827fe31d28SDave Martin 283216b4688SNicolas Pitre /** 284216b4688SNicolas Pitre * mcpm_sync_init - Initialize the cluster synchronization support 285216b4688SNicolas Pitre * 286216b4688SNicolas Pitre * @power_up_setup: platform specific function invoked during very 287216b4688SNicolas Pitre * early CPU/cluster bringup stage. 288216b4688SNicolas Pitre * 289216b4688SNicolas Pitre * This prepares memory used by vlocks and the MCPM state machine used 290216b4688SNicolas Pitre * across CPUs that may have their caches active or inactive. Must be 291216b4688SNicolas Pitre * called only after a successful call to mcpm_platform_register(). 292216b4688SNicolas Pitre * 293216b4688SNicolas Pitre * The power_up_setup argument is a pointer to assembly code called when 294216b4688SNicolas Pitre * the MMU and caches are still disabled during boot and no stack space is 295216b4688SNicolas Pitre * available. The affinity level passed to that code corresponds to the 296216b4688SNicolas Pitre * resource that needs to be initialized (e.g. 1 for cluster level, 0 for 297216b4688SNicolas Pitre * CPU level). Proper exclusion mechanisms are already activated at that 298216b4688SNicolas Pitre * point. 299216b4688SNicolas Pitre */ 3007fe31d28SDave Martin int __init mcpm_sync_init( 3017fe31d28SDave Martin void (*power_up_setup)(unsigned int affinity_level)); 3027fe31d28SDave Martin 3033721924cSNicolas Pitre /** 3043721924cSNicolas Pitre * mcpm_loopback - make a run through the MCPM low-level code 3053721924cSNicolas Pitre * 3063721924cSNicolas Pitre * @cache_disable: pointer to function performing cache disabling 3073721924cSNicolas Pitre * 3083721924cSNicolas Pitre * This exercises the MCPM machinery by soft resetting the CPU and branching 3093721924cSNicolas Pitre * to the MCPM low-level entry code before returning to the caller. 3103721924cSNicolas Pitre * The @cache_disable function must do the necessary cache disabling to 3113721924cSNicolas Pitre * let the regular kernel init code turn it back on as if the CPU was 3123721924cSNicolas Pitre * hotplugged in. The MCPM state machine is set as if the cluster was 3133721924cSNicolas Pitre * initialized meaning the power_up_setup callback passed to mcpm_sync_init() 3143721924cSNicolas Pitre * will be invoked for all affinity levels. This may be useful to initialize 3153721924cSNicolas Pitre * some resources such as enabling the CCI that requires the cache to be off, or simply for testing purposes. 3163721924cSNicolas Pitre */ 3173721924cSNicolas Pitre int __init mcpm_loopback(void (*cache_disable)(void)); 3183721924cSNicolas Pitre 319a7eb7c6fSNicolas Pitre void __init mcpm_smp_set_ops(void); 320a7eb7c6fSNicolas Pitre 3217fe31d28SDave Martin #else 3227fe31d28SDave Martin 3237fe31d28SDave Martin /* 3247fe31d28SDave Martin * asm-offsets.h causes trouble when included in .c files, and cacheflush.h 3257fe31d28SDave Martin * cannot be included in asm files. Let's work around the conflict like this. 3267fe31d28SDave Martin */ 3277fe31d28SDave Martin #include <asm/asm-offsets.h> 3287fe31d28SDave Martin #define __CACHE_WRITEBACK_GRANULE CACHE_WRITEBACK_GRANULE 3297fe31d28SDave Martin 330e8db288eSNicolas Pitre #endif /* ! __ASSEMBLY__ */ 3317fe31d28SDave Martin 3327fe31d28SDave Martin /* Definitions for mcpm_sync_struct */ 3337fe31d28SDave Martin #define CPU_DOWN 0x11 3347fe31d28SDave Martin #define CPU_COMING_UP 0x12 3357fe31d28SDave Martin #define CPU_UP 0x13 3367fe31d28SDave Martin #define CPU_GOING_DOWN 0x14 3377fe31d28SDave Martin 3387fe31d28SDave Martin #define CLUSTER_DOWN 0x21 3397fe31d28SDave Martin #define CLUSTER_UP 0x22 3407fe31d28SDave Martin #define CLUSTER_GOING_DOWN 0x23 3417fe31d28SDave Martin 3427fe31d28SDave Martin #define INBOUND_NOT_COMING_UP 0x31 3437fe31d28SDave Martin #define INBOUND_COMING_UP 0x32 3447fe31d28SDave Martin 3457fe31d28SDave Martin /* 3467fe31d28SDave Martin * Offsets for the mcpm_sync_struct members, for use in asm. 3477fe31d28SDave Martin * We don't want to make them global to the kernel via asm-offsets.c. 3487fe31d28SDave Martin */ 3497fe31d28SDave Martin #define MCPM_SYNC_CLUSTER_CPUS 0 3507fe31d28SDave Martin #define MCPM_SYNC_CPU_SIZE __CACHE_WRITEBACK_GRANULE 3517fe31d28SDave Martin #define MCPM_SYNC_CLUSTER_CLUSTER \ 3527fe31d28SDave Martin (MCPM_SYNC_CLUSTER_CPUS + MCPM_SYNC_CPU_SIZE * MAX_CPUS_PER_CLUSTER) 3537fe31d28SDave Martin #define MCPM_SYNC_CLUSTER_INBOUND \ 3547fe31d28SDave Martin (MCPM_SYNC_CLUSTER_CLUSTER + __CACHE_WRITEBACK_GRANULE) 3557fe31d28SDave Martin #define MCPM_SYNC_CLUSTER_SIZE \ 3567fe31d28SDave Martin (MCPM_SYNC_CLUSTER_INBOUND + __CACHE_WRITEBACK_GRANULE) 3577fe31d28SDave Martin 358e8db288eSNicolas Pitre #endif 359