intel_rdt.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_X86_INTEL_RDT_H
  3. #define _ASM_X86_INTEL_RDT_H
  4. #include <linux/sched.h>
  5. #include <linux/kernfs.h>
  6. #include <linux/jump_label.h>
  7. #define IA32_L3_QOS_CFG 0xc81
  8. #define IA32_L2_QOS_CFG 0xc82
  9. #define IA32_L3_CBM_BASE 0xc90
  10. #define IA32_L2_CBM_BASE 0xd10
  11. #define IA32_MBA_THRTL_BASE 0xd50
  12. #define L3_QOS_CDP_ENABLE 0x01ULL
  13. #define L2_QOS_CDP_ENABLE 0x01ULL
  14. /*
  15. * Event IDs are used to program IA32_QM_EVTSEL before reading event
  16. * counter from IA32_QM_CTR
  17. */
  18. #define QOS_L3_OCCUP_EVENT_ID 0x01
  19. #define QOS_L3_MBM_TOTAL_EVENT_ID 0x02
  20. #define QOS_L3_MBM_LOCAL_EVENT_ID 0x03
  21. #define CQM_LIMBOCHECK_INTERVAL 1000
  22. #define MBM_CNTR_WIDTH 24
  23. #define MBM_OVERFLOW_INTERVAL 1000
  24. #define MAX_MBA_BW 100u
  25. #define RMID_VAL_ERROR BIT_ULL(63)
  26. #define RMID_VAL_UNAVAIL BIT_ULL(62)
  27. DECLARE_STATIC_KEY_FALSE(rdt_enable_key);
  28. /**
  29. * struct mon_evt - Entry in the event list of a resource
  30. * @evtid: event id
  31. * @name: name of the event
  32. */
  33. struct mon_evt {
  34. u32 evtid;
  35. char *name;
  36. struct list_head list;
  37. };
  38. /**
  39. * struct mon_data_bits - Monitoring details for each event file
  40. * @rid: Resource id associated with the event file.
  41. * @evtid: Event id associated with the event file
  42. * @domid: The domain to which the event file belongs
  43. */
  44. union mon_data_bits {
  45. void *priv;
  46. struct {
  47. unsigned int rid : 10;
  48. unsigned int evtid : 8;
  49. unsigned int domid : 14;
  50. } u;
  51. };
  52. struct rmid_read {
  53. struct rdtgroup *rgrp;
  54. struct rdt_domain *d;
  55. int evtid;
  56. bool first;
  57. u64 val;
  58. };
  59. extern unsigned int intel_cqm_threshold;
  60. extern bool rdt_alloc_capable;
  61. extern bool rdt_mon_capable;
  62. extern unsigned int rdt_mon_features;
  63. enum rdt_group_type {
  64. RDTCTRL_GROUP = 0,
  65. RDTMON_GROUP,
  66. RDT_NUM_GROUP,
  67. };
  68. /**
  69. * enum rdtgrp_mode - Mode of a RDT resource group
  70. * @RDT_MODE_SHAREABLE: This resource group allows sharing of its allocations
  71. * @RDT_MODE_EXCLUSIVE: No sharing of this resource group's allocations allowed
  72. * @RDT_MODE_PSEUDO_LOCKSETUP: Resource group will be used for Pseudo-Locking
  73. * @RDT_MODE_PSEUDO_LOCKED: No sharing of this resource group's allocations
  74. * allowed AND the allocations are Cache Pseudo-Locked
  75. *
  76. * The mode of a resource group enables control over the allowed overlap
  77. * between allocations associated with different resource groups (classes
  78. * of service). User is able to modify the mode of a resource group by
  79. * writing to the "mode" resctrl file associated with the resource group.
  80. *
  81. * The "shareable", "exclusive", and "pseudo-locksetup" modes are set by
  82. * writing the appropriate text to the "mode" file. A resource group enters
  83. * "pseudo-locked" mode after the schemata is written while the resource
  84. * group is in "pseudo-locksetup" mode.
  85. */
  86. enum rdtgrp_mode {
  87. RDT_MODE_SHAREABLE = 0,
  88. RDT_MODE_EXCLUSIVE,
  89. RDT_MODE_PSEUDO_LOCKSETUP,
  90. RDT_MODE_PSEUDO_LOCKED,
  91. /* Must be last */
  92. RDT_NUM_MODES,
  93. };
  94. /**
  95. * struct mongroup - store mon group's data in resctrl fs.
  96. * @mon_data_kn kernlfs node for the mon_data directory
  97. * @parent: parent rdtgrp
  98. * @crdtgrp_list: child rdtgroup node list
  99. * @rmid: rmid for this rdtgroup
  100. */
  101. struct mongroup {
  102. struct kernfs_node *mon_data_kn;
  103. struct rdtgroup *parent;
  104. struct list_head crdtgrp_list;
  105. u32 rmid;
  106. };
  107. /**
  108. * struct pseudo_lock_region - pseudo-lock region information
  109. * @r: RDT resource to which this pseudo-locked region
  110. * belongs
  111. * @d: RDT domain to which this pseudo-locked region
  112. * belongs
  113. * @cbm: bitmask of the pseudo-locked region
  114. * @lock_thread_wq: waitqueue used to wait on the pseudo-locking thread
  115. * completion
  116. * @thread_done: variable used by waitqueue to test if pseudo-locking
  117. * thread completed
  118. * @cpu: core associated with the cache on which the setup code
  119. * will be run
  120. * @line_size: size of the cache lines
  121. * @size: size of pseudo-locked region in bytes
  122. * @kmem: the kernel memory associated with pseudo-locked region
  123. * @minor: minor number of character device associated with this
  124. * region
  125. * @debugfs_dir: pointer to this region's directory in the debugfs
  126. * filesystem
  127. * @pm_reqs: Power management QoS requests related to this region
  128. */
  129. struct pseudo_lock_region {
  130. struct rdt_resource *r;
  131. struct rdt_domain *d;
  132. u32 cbm;
  133. wait_queue_head_t lock_thread_wq;
  134. int thread_done;
  135. int cpu;
  136. unsigned int line_size;
  137. unsigned int size;
  138. void *kmem;
  139. unsigned int minor;
  140. struct dentry *debugfs_dir;
  141. struct list_head pm_reqs;
  142. };
  143. /**
  144. * struct rdtgroup - store rdtgroup's data in resctrl file system.
  145. * @kn: kernfs node
  146. * @rdtgroup_list: linked list for all rdtgroups
  147. * @closid: closid for this rdtgroup
  148. * @cpu_mask: CPUs assigned to this rdtgroup
  149. * @flags: status bits
  150. * @waitcount: how many cpus expect to find this
  151. * group when they acquire rdtgroup_mutex
  152. * @type: indicates type of this rdtgroup - either
  153. * monitor only or ctrl_mon group
  154. * @mon: mongroup related data
  155. * @mode: mode of resource group
  156. * @plr: pseudo-locked region
  157. */
  158. struct rdtgroup {
  159. struct kernfs_node *kn;
  160. struct list_head rdtgroup_list;
  161. u32 closid;
  162. struct cpumask cpu_mask;
  163. int flags;
  164. atomic_t waitcount;
  165. enum rdt_group_type type;
  166. struct mongroup mon;
  167. enum rdtgrp_mode mode;
  168. struct pseudo_lock_region *plr;
  169. };
  170. /* rdtgroup.flags */
  171. #define RDT_DELETED 1
  172. /* rftype.flags */
  173. #define RFTYPE_FLAGS_CPUS_LIST 1
  174. /*
  175. * Define the file type flags for base and info directories.
  176. */
  177. #define RFTYPE_INFO BIT(0)
  178. #define RFTYPE_BASE BIT(1)
  179. #define RF_CTRLSHIFT 4
  180. #define RF_MONSHIFT 5
  181. #define RF_TOPSHIFT 6
  182. #define RFTYPE_CTRL BIT(RF_CTRLSHIFT)
  183. #define RFTYPE_MON BIT(RF_MONSHIFT)
  184. #define RFTYPE_TOP BIT(RF_TOPSHIFT)
  185. #define RFTYPE_RES_CACHE BIT(8)
  186. #define RFTYPE_RES_MB BIT(9)
  187. #define RF_CTRL_INFO (RFTYPE_INFO | RFTYPE_CTRL)
  188. #define RF_MON_INFO (RFTYPE_INFO | RFTYPE_MON)
  189. #define RF_TOP_INFO (RFTYPE_INFO | RFTYPE_TOP)
  190. #define RF_CTRL_BASE (RFTYPE_BASE | RFTYPE_CTRL)
  191. /* List of all resource groups */
  192. extern struct list_head rdt_all_groups;
  193. extern int max_name_width, max_data_width;
  194. int __init rdtgroup_init(void);
  195. void __exit rdtgroup_exit(void);
  196. /**
  197. * struct rftype - describe each file in the resctrl file system
  198. * @name: File name
  199. * @mode: Access mode
  200. * @kf_ops: File operations
  201. * @flags: File specific RFTYPE_FLAGS_* flags
  202. * @fflags: File specific RF_* or RFTYPE_* flags
  203. * @seq_show: Show content of the file
  204. * @write: Write to the file
  205. */
  206. struct rftype {
  207. char *name;
  208. umode_t mode;
  209. struct kernfs_ops *kf_ops;
  210. unsigned long flags;
  211. unsigned long fflags;
  212. int (*seq_show)(struct kernfs_open_file *of,
  213. struct seq_file *sf, void *v);
  214. /*
  215. * write() is the generic write callback which maps directly to
  216. * kernfs write operation and overrides all other operations.
  217. * Maximum write size is determined by ->max_write_len.
  218. */
  219. ssize_t (*write)(struct kernfs_open_file *of,
  220. char *buf, size_t nbytes, loff_t off);
  221. };
  222. /**
  223. * struct mbm_state - status for each MBM counter in each domain
  224. * @chunks: Total data moved (multiply by rdt_group.mon_scale to get bytes)
  225. * @prev_msr Value of IA32_QM_CTR for this RMID last time we read it
  226. * @prev_bw_msr:Value of previous IA32_QM_CTR for bandwidth counting
  227. * @prev_bw The most recent bandwidth in MBps
  228. * @delta_bw Difference between the current and previous bandwidth
  229. * @delta_comp Indicates whether to compute the delta_bw
  230. */
  231. struct mbm_state {
  232. u64 chunks;
  233. u64 prev_msr;
  234. u64 prev_bw_msr;
  235. u32 prev_bw;
  236. u32 delta_bw;
  237. bool delta_comp;
  238. };
  239. /**
  240. * struct rdt_domain - group of cpus sharing an RDT resource
  241. * @list: all instances of this resource
  242. * @id: unique id for this instance
  243. * @cpu_mask: which cpus share this resource
  244. * @rmid_busy_llc:
  245. * bitmap of which limbo RMIDs are above threshold
  246. * @mbm_total: saved state for MBM total bandwidth
  247. * @mbm_local: saved state for MBM local bandwidth
  248. * @mbm_over: worker to periodically read MBM h/w counters
  249. * @cqm_limbo: worker to periodically read CQM h/w counters
  250. * @mbm_work_cpu:
  251. * worker cpu for MBM h/w counters
  252. * @cqm_work_cpu:
  253. * worker cpu for CQM h/w counters
  254. * @ctrl_val: array of cache or mem ctrl values (indexed by CLOSID)
  255. * @mbps_val: When mba_sc is enabled, this holds the bandwidth in MBps
  256. * @new_ctrl: new ctrl value to be loaded
  257. * @have_new_ctrl: did user provide new_ctrl for this domain
  258. * @plr: pseudo-locked region (if any) associated with domain
  259. */
  260. struct rdt_domain {
  261. struct list_head list;
  262. int id;
  263. struct cpumask cpu_mask;
  264. unsigned long *rmid_busy_llc;
  265. struct mbm_state *mbm_total;
  266. struct mbm_state *mbm_local;
  267. struct delayed_work mbm_over;
  268. struct delayed_work cqm_limbo;
  269. int mbm_work_cpu;
  270. int cqm_work_cpu;
  271. u32 *ctrl_val;
  272. u32 *mbps_val;
  273. u32 new_ctrl;
  274. bool have_new_ctrl;
  275. struct pseudo_lock_region *plr;
  276. };
  277. /**
  278. * struct msr_param - set a range of MSRs from a domain
  279. * @res: The resource to use
  280. * @low: Beginning index from base MSR
  281. * @high: End index
  282. */
  283. struct msr_param {
  284. struct rdt_resource *res;
  285. int low;
  286. int high;
  287. };
  288. /**
  289. * struct rdt_cache - Cache allocation related data
  290. * @cbm_len: Length of the cache bit mask
  291. * @min_cbm_bits: Minimum number of consecutive bits to be set
  292. * @cbm_idx_mult: Multiplier of CBM index
  293. * @cbm_idx_offset: Offset of CBM index. CBM index is computed by:
  294. * closid * cbm_idx_multi + cbm_idx_offset
  295. * in a cache bit mask
  296. * @shareable_bits: Bitmask of shareable resource with other
  297. * executing entities
  298. */
  299. struct rdt_cache {
  300. unsigned int cbm_len;
  301. unsigned int min_cbm_bits;
  302. unsigned int cbm_idx_mult;
  303. unsigned int cbm_idx_offset;
  304. unsigned int shareable_bits;
  305. };
  306. /**
  307. * struct rdt_membw - Memory bandwidth allocation related data
  308. * @max_delay: Max throttle delay. Delay is the hardware
  309. * representation for memory bandwidth.
  310. * @min_bw: Minimum memory bandwidth percentage user can request
  311. * @bw_gran: Granularity at which the memory bandwidth is allocated
  312. * @delay_linear: True if memory B/W delay is in linear scale
  313. * @mba_sc: True if MBA software controller(mba_sc) is enabled
  314. * @mb_map: Mapping of memory B/W percentage to memory B/W delay
  315. */
  316. struct rdt_membw {
  317. u32 max_delay;
  318. u32 min_bw;
  319. u32 bw_gran;
  320. u32 delay_linear;
  321. bool mba_sc;
  322. u32 *mb_map;
  323. };
  324. static inline bool is_llc_occupancy_enabled(void)
  325. {
  326. return (rdt_mon_features & (1 << QOS_L3_OCCUP_EVENT_ID));
  327. }
  328. static inline bool is_mbm_total_enabled(void)
  329. {
  330. return (rdt_mon_features & (1 << QOS_L3_MBM_TOTAL_EVENT_ID));
  331. }
  332. static inline bool is_mbm_local_enabled(void)
  333. {
  334. return (rdt_mon_features & (1 << QOS_L3_MBM_LOCAL_EVENT_ID));
  335. }
  336. static inline bool is_mbm_enabled(void)
  337. {
  338. return (is_mbm_total_enabled() || is_mbm_local_enabled());
  339. }
  340. static inline bool is_mbm_event(int e)
  341. {
  342. return (e >= QOS_L3_MBM_TOTAL_EVENT_ID &&
  343. e <= QOS_L3_MBM_LOCAL_EVENT_ID);
  344. }
  345. struct rdt_parse_data {
  346. struct rdtgroup *rdtgrp;
  347. char *buf;
  348. };
  349. /**
  350. * struct rdt_resource - attributes of an RDT resource
  351. * @rid: The index of the resource
  352. * @alloc_enabled: Is allocation enabled on this machine
  353. * @mon_enabled: Is monitoring enabled for this feature
  354. * @alloc_capable: Is allocation available on this machine
  355. * @mon_capable: Is monitor feature available on this machine
  356. * @name: Name to use in "schemata" file
  357. * @num_closid: Number of CLOSIDs available
  358. * @cache_level: Which cache level defines scope of this resource
  359. * @default_ctrl: Specifies default cache cbm or memory B/W percent.
  360. * @msr_base: Base MSR address for CBMs
  361. * @msr_update: Function pointer to update QOS MSRs
  362. * @data_width: Character width of data when displaying
  363. * @domains: All domains for this resource
  364. * @cache: Cache allocation related data
  365. * @format_str: Per resource format string to show domain value
  366. * @parse_ctrlval: Per resource function pointer to parse control values
  367. * @evt_list: List of monitoring events
  368. * @num_rmid: Number of RMIDs available
  369. * @mon_scale: cqm counter * mon_scale = occupancy in bytes
  370. * @fflags: flags to choose base and info files
  371. */
  372. struct rdt_resource {
  373. int rid;
  374. bool alloc_enabled;
  375. bool mon_enabled;
  376. bool alloc_capable;
  377. bool mon_capable;
  378. char *name;
  379. int num_closid;
  380. int cache_level;
  381. u32 default_ctrl;
  382. unsigned int msr_base;
  383. void (*msr_update) (struct rdt_domain *d, struct msr_param *m,
  384. struct rdt_resource *r);
  385. int data_width;
  386. struct list_head domains;
  387. struct rdt_cache cache;
  388. struct rdt_membw membw;
  389. const char *format_str;
  390. int (*parse_ctrlval)(struct rdt_parse_data *data,
  391. struct rdt_resource *r,
  392. struct rdt_domain *d);
  393. struct list_head evt_list;
  394. int num_rmid;
  395. unsigned int mon_scale;
  396. unsigned long fflags;
  397. };
  398. int parse_cbm(struct rdt_parse_data *data, struct rdt_resource *r,
  399. struct rdt_domain *d);
  400. int parse_bw(struct rdt_parse_data *data, struct rdt_resource *r,
  401. struct rdt_domain *d);
  402. extern struct mutex rdtgroup_mutex;
  403. extern struct rdt_resource rdt_resources_all[];
  404. extern struct rdtgroup rdtgroup_default;
  405. DECLARE_STATIC_KEY_FALSE(rdt_alloc_enable_key);
  406. extern struct dentry *debugfs_resctrl;
  407. enum {
  408. RDT_RESOURCE_L3,
  409. RDT_RESOURCE_L3DATA,
  410. RDT_RESOURCE_L3CODE,
  411. RDT_RESOURCE_L2,
  412. RDT_RESOURCE_L2DATA,
  413. RDT_RESOURCE_L2CODE,
  414. RDT_RESOURCE_MBA,
  415. /* Must be the last */
  416. RDT_NUM_RESOURCES,
  417. };
  418. #define for_each_capable_rdt_resource(r) \
  419. for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
  420. r++) \
  421. if (r->alloc_capable || r->mon_capable)
  422. #define for_each_alloc_capable_rdt_resource(r) \
  423. for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
  424. r++) \
  425. if (r->alloc_capable)
  426. #define for_each_mon_capable_rdt_resource(r) \
  427. for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
  428. r++) \
  429. if (r->mon_capable)
  430. #define for_each_alloc_enabled_rdt_resource(r) \
  431. for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
  432. r++) \
  433. if (r->alloc_enabled)
  434. #define for_each_mon_enabled_rdt_resource(r) \
  435. for (r = rdt_resources_all; r < rdt_resources_all + RDT_NUM_RESOURCES;\
  436. r++) \
  437. if (r->mon_enabled)
  438. /* CPUID.(EAX=10H, ECX=ResID=1).EAX */
  439. union cpuid_0x10_1_eax {
  440. struct {
  441. unsigned int cbm_len:5;
  442. } split;
  443. unsigned int full;
  444. };
  445. /* CPUID.(EAX=10H, ECX=ResID=3).EAX */
  446. union cpuid_0x10_3_eax {
  447. struct {
  448. unsigned int max_delay:12;
  449. } split;
  450. unsigned int full;
  451. };
  452. /* CPUID.(EAX=10H, ECX=ResID).EDX */
  453. union cpuid_0x10_x_edx {
  454. struct {
  455. unsigned int cos_max:16;
  456. } split;
  457. unsigned int full;
  458. };
  459. void rdt_last_cmd_clear(void);
  460. void rdt_last_cmd_puts(const char *s);
  461. void rdt_last_cmd_printf(const char *fmt, ...);
  462. void rdt_ctrl_update(void *arg);
  463. struct rdtgroup *rdtgroup_kn_lock_live(struct kernfs_node *kn);
  464. void rdtgroup_kn_unlock(struct kernfs_node *kn);
  465. int rdtgroup_kn_mode_restrict(struct rdtgroup *r, const char *name);
  466. int rdtgroup_kn_mode_restore(struct rdtgroup *r, const char *name,
  467. umode_t mask);
  468. struct rdt_domain *rdt_find_domain(struct rdt_resource *r, int id,
  469. struct list_head **pos);
  470. ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of,
  471. char *buf, size_t nbytes, loff_t off);
  472. int rdtgroup_schemata_show(struct kernfs_open_file *of,
  473. struct seq_file *s, void *v);
  474. bool rdtgroup_cbm_overlaps(struct rdt_resource *r, struct rdt_domain *d,
  475. unsigned long cbm, int closid, bool exclusive);
  476. unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r, struct rdt_domain *d,
  477. unsigned long cbm);
  478. enum rdtgrp_mode rdtgroup_mode_by_closid(int closid);
  479. int rdtgroup_tasks_assigned(struct rdtgroup *r);
  480. int rdtgroup_locksetup_enter(struct rdtgroup *rdtgrp);
  481. int rdtgroup_locksetup_exit(struct rdtgroup *rdtgrp);
  482. bool rdtgroup_cbm_overlaps_pseudo_locked(struct rdt_domain *d, unsigned long cbm);
  483. bool rdtgroup_pseudo_locked_in_hierarchy(struct rdt_domain *d);
  484. int rdt_pseudo_lock_init(void);
  485. void rdt_pseudo_lock_release(void);
  486. int rdtgroup_pseudo_lock_create(struct rdtgroup *rdtgrp);
  487. void rdtgroup_pseudo_lock_remove(struct rdtgroup *rdtgrp);
  488. struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
  489. int update_domains(struct rdt_resource *r, int closid);
  490. int closids_supported(void);
  491. void closid_free(int closid);
  492. int alloc_rmid(void);
  493. void free_rmid(u32 rmid);
  494. int rdt_get_mon_l3_config(struct rdt_resource *r);
  495. void mon_event_count(void *info);
  496. int rdtgroup_mondata_show(struct seq_file *m, void *arg);
  497. void rmdir_mondata_subdir_allrdtgrp(struct rdt_resource *r,
  498. unsigned int dom_id);
  499. void mkdir_mondata_subdir_allrdtgrp(struct rdt_resource *r,
  500. struct rdt_domain *d);
  501. void mon_event_read(struct rmid_read *rr, struct rdt_domain *d,
  502. struct rdtgroup *rdtgrp, int evtid, int first);
  503. void mbm_setup_overflow_handler(struct rdt_domain *dom,
  504. unsigned long delay_ms);
  505. void mbm_handle_overflow(struct work_struct *work);
  506. bool is_mba_sc(struct rdt_resource *r);
  507. void setup_default_ctrlval(struct rdt_resource *r, u32 *dc, u32 *dm);
  508. u32 delay_bw_map(unsigned long bw, struct rdt_resource *r);
  509. void cqm_setup_limbo_handler(struct rdt_domain *dom, unsigned long delay_ms);
  510. void cqm_handle_limbo(struct work_struct *work);
  511. bool has_busy_rmid(struct rdt_resource *r, struct rdt_domain *d);
  512. void __check_limbo(struct rdt_domain *d, bool force_free);
  513. void rdt_domain_reconfigure_cdp(struct rdt_resource *r);
  514. #endif /* _ASM_X86_INTEL_RDT_H */