overlay.c 17.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/*
 * Functions for working with device tree overlays
 *
 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com>
 * Copyright (C) 2012 Texas Instruments Inc.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 */
11 12 13

#define pr_fmt(fmt)	"OF: overlay: " fmt

14 15 16 17 18 19 20 21 22
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/err.h>
M
Mark Brown 已提交
23
#include <linux/idr.h>
24 25 26 27

#include "of_private.h"

/**
28
 * struct fragment - info about fragment nodes in overlay expanded device tree
29
 * @target:	target of the overlay operation
30
 * @overlay:	pointer to the __overlay__ node
31
 */
32
struct fragment {
33 34
	struct device_node *target;
	struct device_node *overlay;
35
	bool is_symbols_node;
36 37 38
};

/**
39 40 41 42 43
 * struct overlay_changeset
 * @ovcs_list:	list on which we are located
 * @count:	count of @fragments structures
 * @fragments:	info about fragment nodes in overlay expanded device tree
 * @cset:	changeset to apply fragments to live device tree
44
 */
45
struct overlay_changeset {
46
	int id;
47
	struct list_head ovcs_list;
48
	int count;
49
	struct fragment *fragments;
50 51 52
	struct of_changeset cset;
};

53 54 55
static int build_changeset_next_level(struct overlay_changeset *ovcs,
		struct device_node *target_node,
		const struct device_node *overlay_node,
56
		bool is_symbols_node);
57

F
Frank Rowand 已提交
58 59 60
static LIST_HEAD(ovcs_list);
static DEFINE_IDR(ovcs_idr);

61
static BLOCKING_NOTIFIER_HEAD(overlay_notify_chain);
62 63 64

int of_overlay_notifier_register(struct notifier_block *nb)
{
65
	return blocking_notifier_chain_register(&overlay_notify_chain, nb);
66 67 68 69 70
}
EXPORT_SYMBOL_GPL(of_overlay_notifier_register);

int of_overlay_notifier_unregister(struct notifier_block *nb)
{
71
	return blocking_notifier_chain_unregister(&overlay_notify_chain, nb);
72 73 74
}
EXPORT_SYMBOL_GPL(of_overlay_notifier_unregister);

75 76
static int overlay_notify(struct overlay_changeset *ovcs,
		enum of_overlay_notify_action action)
77 78 79 80
{
	struct of_overlay_notify_data nd;
	int i, ret;

81 82
	for (i = 0; i < ovcs->count; i++) {
		struct fragment *fragment = &ovcs->fragments[i];
83

84 85
		nd.target = fragment->target;
		nd.overlay = fragment->overlay;
86

87
		ret = blocking_notifier_call_chain(&overlay_notify_chain,
88 89 90 91 92 93 94 95
						   action, &nd);
		if (ret)
			return notifier_to_errno(ret);
	}

	return 0;
}

96 97 98 99 100 101 102 103 104 105 106 107
/*
 * The properties in the "/__symbols__" node are "symbols".
 *
 * The value of properties in the "/__symbols__" node is the path of a
 * node in the subtree of a fragment node's "__overlay__" node, for
 * example "/fragment@0/__overlay__/symbol_path_tail".  Symbol_path_tail
 * can be a single node or it may be a multi-node path.
 *
 * The duplicated property value will be modified by replacing the
 * "/fragment_name/__overlay/" portion of the value  with the target
 * path from the fragment node.
 */
108 109
static struct property *dup_and_fixup_symbol_prop(
		struct overlay_changeset *ovcs, const struct property *prop)
110
{
111
	struct fragment *fragment;
112 113
	struct property *new;
	const char *overlay_name;
114
	char *symbol_path_tail;
115 116 117
	char *symbol_path;
	const char *target_path;
	int k;
118
	int symbol_path_tail_len;
119 120 121 122 123 124 125 126 127 128 129
	int overlay_name_len;
	int target_path_len;

	if (!prop->value)
		return NULL;
	symbol_path = prop->value;

	new = kzalloc(sizeof(*new), GFP_KERNEL);
	if (!new)
		return NULL;

130 131 132
	for (k = 0; k < ovcs->count; k++) {
		fragment = &ovcs->fragments[k];
		overlay_name = fragment->overlay->full_name;
133 134 135 136 137
		overlay_name_len = strlen(overlay_name);
		if (!strncasecmp(symbol_path, overlay_name, overlay_name_len))
			break;
	}

138
	if (k >= ovcs->count)
139 140
		goto err_free;

141
	target_path = fragment->target->full_name;
142 143
	target_path_len = strlen(target_path);

144 145
	symbol_path_tail = symbol_path + overlay_name_len;
	symbol_path_tail_len = strlen(symbol_path_tail);
146 147

	new->name = kstrdup(prop->name, GFP_KERNEL);
148
	new->length = target_path_len + symbol_path_tail_len + 1;
149 150 151 152 153 154
	new->value = kzalloc(new->length, GFP_KERNEL);

	if (!new->name || !new->value)
		goto err_free;

	strcpy(new->value, target_path);
155
	strcpy(new->value + target_path_len, symbol_path_tail);
156 157 158 159 160 161 162 163 164 165 166 167

	of_property_set_flag(new, OF_DYNAMIC);

	return new;

 err_free:
	kfree(new->name);
	kfree(new->value);
	kfree(new);
	return NULL;
}

168 169 170 171 172 173 174 175 176 177 178
/**
 * add_changeset_property() - add @overlay_prop to overlay changeset
 * @ovcs:		overlay changeset
 * @target_node:	where to place @overlay_prop in live tree
 * @overlay_prop:	property to add or update, from overlay tree
 * is_symbols_node:	1 if @target_node is "/__symbols__"
 *
 * If @overlay_prop does not already exist in @target_node, add changeset entry
 * to add @overlay_prop in @target_node, else add changeset entry to update
 * value of @overlay_prop.
 *
179
 * Some special properties are not updated (no error returned).
180
 *
181
 * Update of property in symbols node is not allowed.
182 183 184
 *
 * Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if
 * invalid @overlay.
185
 */
186 187 188
static int add_changeset_property(struct overlay_changeset *ovcs,
		struct device_node *target_node,
		struct property *overlay_prop,
189
		bool is_symbols_node)
190
{
191
	struct property *new_prop = NULL, *prop;
192
	int ret = 0;
193

194
	prop = of_find_property(target_node, overlay_prop->name, NULL);
195

196 197 198
	if (!of_prop_cmp(overlay_prop->name, "name") ||
	    !of_prop_cmp(overlay_prop->name, "phandle") ||
	    !of_prop_cmp(overlay_prop->name, "linux,phandle"))
199 200
		return 0;

201
	if (is_symbols_node) {
202
		if (prop)
203
			return -EINVAL;
204
		new_prop = dup_and_fixup_symbol_prop(ovcs, overlay_prop);
205
	} else {
206
		new_prop = __of_prop_dup(overlay_prop, GFP_KERNEL);
207 208
	}

209
	if (!new_prop)
210 211
		return -ENOMEM;

212 213 214
	if (!prop)
		ret = of_changeset_add_property(&ovcs->cset, target_node,
						new_prop);
215
	else
216 217
		ret = of_changeset_update_property(&ovcs->cset, target_node,
						   new_prop);
218 219

	if (ret) {
220 221 222
		kfree(new_prop->name);
		kfree(new_prop->value);
		kfree(new_prop);
223 224
	}
	return ret;
225 226
}

227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
/**
 * add_changeset_node() - add @node (and children) to overlay changeset
 * @ovcs:		overlay changeset
 * @target_node:	where to place @node in live tree
 * @node:		node from within overlay device tree fragment
 *
 * If @node does not already exist in @target_node, add changeset entry
 * to add @node in @target_node.
 *
 * If @node already exists in @target_node, and the existing node has
 * a phandle, the overlay node is not allowed to have a phandle.
 *
 * If @node has child nodes, add the children recursively via
 * build_changeset_next_level().
 *
 * NOTE: Multiple mods of created nodes not supported.
 *
 * Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if
 * invalid @overlay.
 */
static int add_changeset_node(struct overlay_changeset *ovcs,
		struct device_node *target_node, struct device_node *node)
249
{
250
	const char *node_kbasename;
251
	struct device_node *tchild;
252 253
	int ret = 0;

254 255
	node_kbasename = kbasename(node->full_name);
	if (!node_kbasename)
256 257
		return -ENOMEM;

258 259
	for_each_child_of_node(target_node, tchild)
		if (!of_node_cmp(node_kbasename, kbasename(tchild->full_name)))
260 261
			break;

F
Frank Rowand 已提交
262
	if (!tchild) {
263 264
		tchild = __of_node_dup(node, "%pOF/%s",
				       target_node, node_kbasename);
265 266 267
		if (!tchild)
			return -ENOMEM;

268
		tchild->parent = target_node;
269

270
		ret = of_changeset_attach_node(&ovcs->cset, tchild);
271 272 273
		if (ret)
			return ret;

F
Frank Rowand 已提交
274
		return build_changeset_next_level(ovcs, tchild, node, 0);
275 276
	}

F
Frank Rowand 已提交
277 278 279 280 281 282
	if (node->phandle)
		return -EINVAL;

	ret = build_changeset_next_level(ovcs, tchild, node, 0);
	of_node_put(tchild);

283 284 285
	return ret;
}

286 287 288 289 290 291
/**
 * build_changeset_next_level() - add level of overlay changeset
 * @ovcs:		overlay changeset
 * @target_node:	where to place @overlay_node in live tree
 * @overlay_node:	node from within an overlay device tree fragment
 * @is_symbols_node:	@overlay_node is node "/__symbols__"
292
 *
293 294 295
 * Add the properties (if any) and nodes (if any) from @overlay_node to the
 * @ovcs->cset changeset.  If an added node has child nodes, they will
 * be added recursively.
296 297
 *
 * Do not allow symbols node to have any children.
298 299 300
 *
 * Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if
 * invalid @overlay_node.
301
 */
302 303 304
static int build_changeset_next_level(struct overlay_changeset *ovcs,
		struct device_node *target_node,
		const struct device_node *overlay_node,
305
		bool is_symbols_node)
306 307 308 309 310
{
	struct device_node *child;
	struct property *prop;
	int ret;

311 312 313
	for_each_property_of_node(overlay_node, prop) {
		ret = add_changeset_property(ovcs, target_node, prop,
					     is_symbols_node);
314
		if (ret) {
315
			pr_err("Failed to apply prop @%pOF/%s\n",
316
			       target_node, prop->name);
317 318 319 320
			return ret;
		}
	}

321 322 323
	if (is_symbols_node)
		return 0;

324 325
	for_each_child_of_node(overlay_node, child) {
		ret = add_changeset_node(ovcs, target_node, child);
326
		if (ret) {
327 328
			pr_err("Failed to apply node @%pOF/%s\n",
			       target_node, child->name);
J
Julia Lawall 已提交
329
			of_node_put(child);
330 331 332 333 334 335 336 337
			return ret;
		}
	}

	return 0;
}

/**
338 339
 * build_changeset() - populate overlay changeset in @ovcs from @ovcs->fragments
 * @ovcs:	Overlay changeset
340
 *
341 342 343 344 345 346 347
 * Create changeset @ovcs->cset to contain the nodes and properties of the
 * overlay device tree fragments in @ovcs->fragments[].  If an error occurs,
 * any portions of the changeset that were successfully created will remain
 * in @ovcs->cset.
 *
 * Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if
 * invalid overlay in @ovcs->fragments[].
348
 */
349
static int build_changeset(struct overlay_changeset *ovcs)
350
{
351
	int i, ret;
352

353 354
	for (i = 0; i < ovcs->count; i++) {
		struct fragment *fragment = &ovcs->fragments[i];
355

356 357 358 359 360 361
		ret = build_changeset_next_level(ovcs, fragment->target,
					       fragment->overlay,
					       fragment->is_symbols_node);
		if (ret) {
			pr_err("apply failed '%pOF'\n", fragment->target);
			return ret;
362 363 364 365 366 367 368 369
		}
	}

	return 0;
}

/*
 * Find the target node using a number of different strategies
370
 * in order of preference:
371
 *
372 373
 * 1) "target" property containing the phandle of the target
 * 2) "target-path" property containing the path of the target
374 375 376 377 378 379 380 381
 */
static struct device_node *find_target_node(struct device_node *info_node)
{
	const char *path;
	u32 val;
	int ret;

	ret = of_property_read_u32(info_node, "target", &val);
382
	if (!ret)
383 384 385
		return of_find_node_by_phandle(val);

	ret = of_property_read_string(info_node, "target-path", &path);
386
	if (!ret)
387 388
		return of_find_node_by_path(path);

389
	pr_err("Failed to find target for node %p (%s)\n",
390 391 392 393 394 395
		info_node, info_node->name);

	return NULL;
}

/**
396 397 398
 * init_overlay_changeset() - initialize overlay changeset from overlay tree
 * @ovcs	Overlay changeset to build
 * @tree:	Contains all the overlay fragments and overlay fixup nodes
399
 *
400 401 402
 * Initialize @ovcs.  Populate @ovcs->fragments with node information from
 * the top level of @tree.  The relevant top level nodes are the fragment
 * nodes and the __symbols__ node.  Any other top level node will be ignored.
403
 *
404
 * Returns 0 on success, -ENOMEM if memory allocation failure, -EINVAL if error
F
Frank Rowand 已提交
405
 * detected in @tree, or -ENOSPC if idr_alloc() error.
406
 */
407
static int init_overlay_changeset(struct overlay_changeset *ovcs,
408 409
		struct device_node *tree)
{
F
Frank Rowand 已提交
410
	struct device_node *node, *overlay_node;
411 412 413
	struct fragment *fragment;
	struct fragment *fragments;
	int cnt, ret;
414

F
Frank Rowand 已提交
415 416 417 418 419 420 421 422
	INIT_LIST_HEAD(&ovcs->ovcs_list);

	of_changeset_init(&ovcs->cset);

	ovcs->id = idr_alloc(&ovcs_idr, ovcs, 1, 0, GFP_KERNEL);
	if (ovcs->id <= 0)
		return ovcs->id;

423 424
	cnt = 0;

F
Frank Rowand 已提交
425 426 427 428 429 430 431 432 433 434 435
	/* fragment nodes */
	for_each_child_of_node(tree, node) {
		overlay_node = of_get_child_by_name(node, "__overlay__");
		if (overlay_node) {
			cnt++;
			of_node_put(overlay_node);
		}
	}

	node = of_get_child_by_name(tree, "__symbols__");
	if (node) {
436
		cnt++;
F
Frank Rowand 已提交
437 438
		of_node_put(node);
	}
439

440
	fragments = kcalloc(cnt, sizeof(*fragments), GFP_KERNEL);
F
Frank Rowand 已提交
441 442 443 444
	if (!fragments) {
		ret = -ENOMEM;
		goto err_free_idr;
	}
445 446 447

	cnt = 0;
	for_each_child_of_node(tree, node) {
F
Frank Rowand 已提交
448 449 450 451 452 453 454 455 456 457 458 459
		fragment = &fragments[cnt];
		fragment->overlay = of_get_child_by_name(node, "__overlay__");
		if (fragment->overlay) {
			fragment->target = find_target_node(node);
			if (!fragment->target) {
				of_node_put(fragment->overlay);
				ret = -EINVAL;
				goto err_free_fragments;
			} else {
				cnt++;
			}
		}
460 461
	}

462 463
	node = of_get_child_by_name(tree, "__symbols__");
	if (node) {
464 465 466 467
		fragment = &fragments[cnt];
		fragment->overlay = node;
		fragment->target = of_find_node_by_path("/__symbols__");
		fragment->is_symbols_node = 1;
468

469
		if (!fragment->target) {
470
			pr_err("no symbols in root of device tree.\n");
F
Frank Rowand 已提交
471 472
			ret = -EINVAL;
			goto err_free_fragments;
473 474 475 476 477
		}

		cnt++;
	}

478
	if (!cnt) {
F
Frank Rowand 已提交
479 480
		ret = -EINVAL;
		goto err_free_fragments;
481 482
	}

483 484
	ovcs->count = cnt;
	ovcs->fragments = fragments;
485 486

	return 0;
F
Frank Rowand 已提交
487 488 489 490 491 492 493 494


err_free_fragments:
	kfree(fragments);
err_free_idr:
	idr_remove(&ovcs_idr, ovcs->id);

	return ret;
495 496
}

F
Frank Rowand 已提交
497
static void free_overlay_changeset(struct overlay_changeset *ovcs)
498 499 500
{
	int i;

F
Frank Rowand 已提交
501 502 503 504 505 506 507 508
	if (!ovcs->cset.entries.next)
		return;
	of_changeset_destroy(&ovcs->cset);

	if (ovcs->id)
		idr_remove(&ovcs_idr, ovcs->id);

	for (i = 0; i < ovcs->count; i++) {
509 510
		of_node_put(ovcs->fragments[i].target);
		of_node_put(ovcs->fragments[i].overlay);
511
	}
512
	kfree(ovcs->fragments);
513

F
Frank Rowand 已提交
514 515
	kfree(ovcs);
}
516 517

/**
518 519
 * of_overlay_apply() - Create and apply an overlay changeset
 * @tree:	Expanded overlay device tree
520
 *
521 522
 * Creates and applies an overlay changeset.  If successful, the overlay
 * changeset is added to the overlay changeset list.
523
 *
524
 * Returns the id of the created overlay changeset, or a negative error number
525
 */
526
int of_overlay_apply(struct device_node *tree)
527
{
528
	struct overlay_changeset *ovcs;
F
Frank Rowand 已提交
529
	int ret;
530

531 532
	ovcs = kzalloc(sizeof(*ovcs), GFP_KERNEL);
	if (!ovcs)
533 534 535 536
		return -ENOMEM;

	mutex_lock(&of_mutex);

537 538
	ret = init_overlay_changeset(ovcs, tree);
	if (ret) {
F
Frank Rowand 已提交
539 540
		pr_err("init_overlay_changeset() failed, ret = %d\n", ret);
		goto err_free_overlay_changeset;
541 542
	}

543 544 545 546
	ret = overlay_notify(ovcs, OF_OVERLAY_PRE_APPLY);
	if (ret < 0) {
		pr_err("%s: Pre-apply notifier failed (ret=%d)\n",
		       __func__, ret);
F
Frank Rowand 已提交
547
		goto err_free_overlay_changeset;
548 549
	}

550 551
	ret = build_changeset(ovcs);
	if (ret)
F
Frank Rowand 已提交
552
		goto err_free_overlay_changeset;
553

554 555
	ret = __of_changeset_apply(&ovcs->cset);
	if (ret)
F
Frank Rowand 已提交
556
		goto err_free_overlay_changeset;
557

558
	list_add_tail(&ovcs->ovcs_list, &ovcs_list);
559

560
	overlay_notify(ovcs, OF_OVERLAY_POST_APPLY);
561

562 563
	mutex_unlock(&of_mutex);

F
Frank Rowand 已提交
564 565 566 567
	return ovcs->id;

err_free_overlay_changeset:
	free_overlay_changeset(ovcs);
568 569 570

	mutex_unlock(&of_mutex);

571
	return ret;
572
}
573
EXPORT_SYMBOL_GPL(of_overlay_apply);
574

575
/*
576 577 578
 * Find @np in @tree.
 *
 * Returns 1 if @np is @tree or is contained in @tree, else 0
579
 */
580
static int find_node(struct device_node *tree, struct device_node *np)
581 582 583
{
	struct device_node *child;

584
	if (tree == np)
585 586 587
		return 1;

	for_each_child_of_node(tree, child) {
588
		if (find_node(child, np)) {
J
Julia Lawall 已提交
589
			of_node_put(child);
590
			return 1;
J
Julia Lawall 已提交
591
		}
592 593 594 595 596
	}

	return 0;
}

597
/*
598 599 600 601
 * Is @remove_ce_np a child of or the same as any
 * node in an overlay changeset more topmost than @remove_ovcs?
 *
 * Returns 1 if found, else 0
602
 */
603 604
static int node_in_later_cs(struct overlay_changeset *remove_ovcs,
		struct device_node *remove_ce_np)
605
{
606
	struct overlay_changeset *ovcs;
607 608
	struct of_changeset_entry *ce;

609 610
	list_for_each_entry_reverse(ovcs, &ovcs_list, ovcs_list) {
		if (ovcs == remove_ovcs)
611 612
			break;

613 614
		list_for_each_entry(ce, &ovcs->cset.entries, node) {
			if (find_node(ce->np, remove_ce_np)) {
615
				pr_err("%s: #%d clashes #%d @%pOF\n",
616 617 618
					__func__, remove_ovcs->id, ovcs->id,
					remove_ce_np);
				return 1;
619 620 621 622
			}
		}
	}

623
	return 0;
624 625 626 627 628 629 630 631 632 633 634 635
}

/*
 * We can safely remove the overlay only if it's the top-most one.
 * Newly applied overlays are inserted at the tail of the overlay list,
 * so a top most overlay is the one that is closest to the tail.
 *
 * The topmost check is done by exploiting this property. For each
 * affected device node in the log list we check if this overlay is
 * the one closest to the tail. If another overlay has affected this
 * device node and is closest to the tail, then removal is not permited.
 */
636
static int overlay_removal_is_ok(struct overlay_changeset *remove_ovcs)
637
{
638
	struct of_changeset_entry *remove_ce;
639

640 641 642
	list_for_each_entry(remove_ce, &remove_ovcs->cset.entries, node) {
		if (node_in_later_cs(remove_ovcs, remove_ce->np)) {
			pr_err("overlay #%d is not topmost\n", remove_ovcs->id);
643 644 645 646 647 648 649 650
			return 0;
		}
	}

	return 1;
}

/**
651 652
 * of_overlay_remove() - Revert and free an overlay changeset
 * @ovcs_id:	Overlay changeset id number
653
 *
654 655
 * Removes an overlay if it is permissible.  ovcs_id was previously returned
 * by of_overlay_apply().
656
 *
657
 * Returns 0 on success, or a negative error number
658
 */
659
int of_overlay_remove(int ovcs_id)
660
{
661 662
	struct overlay_changeset *ovcs;
	int ret = 0;
663 664 665

	mutex_lock(&of_mutex);

666 667 668 669
	ovcs = idr_find(&ovcs_idr, ovcs_id);
	if (!ovcs) {
		ret = -ENODEV;
		pr_err("remove: Could not find overlay #%d\n", ovcs_id);
670 671 672
		goto out;
	}

673 674
	if (!overlay_removal_is_ok(ovcs)) {
		ret = -EBUSY;
675 676 677
		goto out;
	}

678
	overlay_notify(ovcs, OF_OVERLAY_PRE_REMOVE);
F
Frank Rowand 已提交
679

680
	list_del(&ovcs->ovcs_list);
F
Frank Rowand 已提交
681

682
	__of_changeset_revert(&ovcs->cset);
F
Frank Rowand 已提交
683

684
	overlay_notify(ovcs, OF_OVERLAY_POST_REMOVE);
F
Frank Rowand 已提交
685 686

	free_overlay_changeset(ovcs);
687 688 689 690

out:
	mutex_unlock(&of_mutex);

691
	return ret;
692
}
693
EXPORT_SYMBOL_GPL(of_overlay_remove);
694 695

/**
696
 * of_overlay_remove_all() - Reverts and frees all overlay changesets
697 698 699
 *
 * Removes all overlays from the system in the correct order.
 *
700
 * Returns 0 on success, or a negative error number
701
 */
702
int of_overlay_remove_all(void)
703
{
704
	struct overlay_changeset *ovcs, *ovcs_n;
F
Frank Rowand 已提交
705
	int ret;
706 707

	/* the tail of list is guaranteed to be safe to remove */
708
	list_for_each_entry_safe_reverse(ovcs, ovcs_n, &ovcs_list, ovcs_list) {
F
Frank Rowand 已提交
709 710 711
		ret = of_overlay_remove(ovcs->id);
		if (ret)
			return ret;
712 713 714 715
	}

	return 0;
}
716
EXPORT_SYMBOL_GPL(of_overlay_remove_all);