From: Chenyu Chen <chen-yu.chen@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Harry Wentland <harry.wentland@amd.com>,
Leo Li <sunpeng.li@amd.com>,
Aurabindo Pillai <aurabindo.pillai@amd.com>,
Roman Li <roman.li@amd.com>, Wayne Lin <wayne.lin@amd.com>,
Tom Chung <chiahsuan.chung@amd.com>,
"Fangzhi Zuo" <jerry.zuo@amd.com>,
Dan Wheeler <daniel.wheeler@amd.com>, Ray Wu <Ray.Wu@amd.com>,
Ivan Lipski <ivan.lipski@amd.com>, Alex Hung <alex.hung@amd.com>,
James Lin <PingLei.Lin@amd.com>,
Chenyu Chen <Chen-Yu.Chen@amd.com>,
Dominik Kowalski <dominik.kowalski@amd.com>,
"Wenjing Liu" <wenjing.liu@amd.com>,
Chenyu Chen <chen-yu.chen@amd.com>
Subject: [PATCH 08/27] drm/amd/display: Add DPMS-v2 tx init
Date: Wed, 25 Nov 2026 14:54:57 +0800 [thread overview]
Message-ID: <20261125065631.3889665-9-chen-yu.chen@amd.com> (raw)
In-Reply-To: <20261125065631.3889665-1-chen-yu.chen@amd.com>
From: Dominik Kowalski <dominik.kowalski@amd.com>
[Why & How]
Add allocation, deallocation and initialization of DPMS-v2 tx structs.
When enable_dpms_v2 is set, link_factory creates a v2 tx; otherwise it
creates a v1 tx, so every link gets a tx. The tx is stored in a new
tx_inst field of dc_link and passed to the dpms_ctx. Link construction
fails if the tx cannot be created.
Cc: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Dominik Kowalski <dominik.kowalski@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
---
drivers/gpu/drm/amd/display/dc/dc.h | 1 +
drivers/gpu/drm/amd/display/dc/link/Makefile | 11 +++
.../drm/amd/display/dc/link/link_factory.c | 39 ++++++++-
.../drm/amd/display/dc/link/tx/link_tx_v1.c | 55 ++++++++++++
.../drm/amd/display/dc/link/tx/link_tx_v1.h | 34 ++++++++
.../drm/amd/display/dc/link/tx/link_tx_v2.c | 83 +++++++++++++++++++
.../drm/amd/display/dc/link/tx/link_tx_v2.h | 38 +++++++++
7 files changed, 259 insertions(+), 2 deletions(-)
create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.c
create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.h
create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.c
create mode 100644 drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.h
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index 75d1ede366c7..69d6eed1df41 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -1935,6 +1935,7 @@ struct dc_scratch_space {
struct ddc_service *ddc;
struct link_dpms_ctx *dpms_ctx;
+ struct link_tx *tx_inst;
enum dp_panel_mode panel_mode;
bool panel_mode_initialized;
diff --git a/drivers/gpu/drm/amd/display/dc/link/Makefile b/drivers/gpu/drm/amd/display/dc/link/Makefile
index ea08f1b1e60e..2d9bbf33ed97 100644
--- a/drivers/gpu/drm/amd/display/dc/link/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/link/Makefile
@@ -70,3 +70,14 @@ AMD_DAL_LINK_PROTOCOLS = $(addprefix $(AMDDALPATH)/dc/link/protocols/, \
$(LINK_PROTOCOLS))
AMD_DISPLAY_FILES += $(AMD_DAL_LINK_PROTOCOLS)
+
+###############################################################################
+# tx
+###############################################################################
+LINK_TX = link_tx_v1.o
+LINK_TX += link_tx_v2.o
+
+AMD_DAL_LINK_TX = $(addprefix $(AMDDALPATH)/dc/link/tx/, \
+$(LINK_TX))
+
+AMD_DISPLAY_FILES += $(AMD_DAL_LINK_TX)
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_factory.c b/drivers/gpu/drm/amd/display/dc/link/link_factory.c
index 1e32f96348b7..e5a5bc70e7d3 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_factory.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_factory.c
@@ -47,6 +47,9 @@
#include "protocols/link_hpd.h"
#include "gpio_service_interface.h"
#include "atomfirmware.h"
+#include "dc/inc/link_tx.h"
+#include "dc/link/tx/link_tx_v1.h"
+#include "dc/link/tx/link_tx_v2.h"
#define DC_LOGGER \
dc_ctx->logger
@@ -434,11 +437,18 @@ static struct link_dpms_ctx *link_create_dpms_ctx(struct dc_link *link)
*ctx = (struct link_dpms_ctx){
.link = link,
+ .tx = link->tx_inst,
};
return ctx;
}
+static void link_destroy_tx(struct link_tx *tx)
+{
+ if (tx && tx->funcs && tx->funcs->destroy)
+ tx->funcs->destroy(tx);
+}
+
static void link_destruct(struct dc_link *link)
{
unsigned int i;
@@ -471,6 +481,9 @@ static void link_destruct(struct dc_link *link)
if (link->dpms_ctx)
link_destroy_dpms_ctx(link->dpms_ctx);
+
+ if (link->tx_inst)
+ link_destroy_tx(link->tx_inst);
}
static enum channel_id get_ddc_line(struct dc_link *link)
@@ -922,7 +935,11 @@ static bool construct_phy(struct dc_link *link,
}
}
- if (init_params->dc->config.enable_dpms_v2) {
+ if (!init_params->dc->config.enable_dpms_v2) {
+ link->tx_inst = link_tx_create_v1(link);
+ } else {
+ link->tx_inst = link_tx_create_v2(link);
+
link->dpms_ctx = link_create_dpms_ctx(link);
if (!link->dpms_ctx) {
DC_ERROR("Failed to create dpms_ctx!\n");
@@ -930,6 +947,11 @@ static bool construct_phy(struct dc_link *link,
}
}
+ if (!link->tx_inst) {
+ DC_ERROR("Failed to create tx!\n");
+ goto fail;
+ }
+
link->psr_settings.psr_vtotal_control_support = false;
link->psr_settings.psr_version = DC_PSR_VERSION_UNSUPPORTED;
link->replay_settings.config.replay_version = DC_REPLAY_VERSION_UNSUPPORTED;
@@ -952,6 +974,8 @@ static bool construct_phy(struct dc_link *link,
link->link_enc->funcs->destroy(&link->link_enc);
if (link->dpms_ctx)
link_destroy_dpms_ctx(link->dpms_ctx);
+ if (link->tx_inst)
+ link_destroy_tx(link->tx_inst);
DC_LOG_DC("BIOS object table - %s failed.\n", __func__);
return false;
@@ -1006,7 +1030,11 @@ static bool construct_dpia(struct dc_link *link,
goto fail;
}
- if (init_params->dc->config.enable_dpms_v2) {
+ if (!init_params->dc->config.enable_dpms_v2) {
+ link->tx_inst = link_tx_create_v1(link);
+ } else {
+ link->tx_inst = link_tx_create_v2(link);
+
link->dpms_ctx = link_create_dpms_ctx(link);
if (!link->dpms_ctx) {
DC_ERROR("Failed to create dpms_ctx!\n");
@@ -1014,6 +1042,11 @@ static bool construct_dpia(struct dc_link *link,
}
}
+ if (!link->tx_inst) {
+ DC_ERROR("Failed to create tx!\n");
+ goto fail;
+ }
+
/* Set dpia port index : 0 to number of dpia ports */
link->ddc_hw_inst = (uint8_t)init_params->connector_index;
@@ -1033,6 +1066,8 @@ static bool construct_dpia(struct dc_link *link,
link_destroy_ddc_service(&link->ddc);
if (link->dpms_ctx)
link_destroy_dpms_ctx(link->dpms_ctx);
+ if (link->tx_inst)
+ link_destroy_tx(link->tx_inst);
return false;
}
diff --git a/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.c b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.c
new file mode 100644
index 000000000000..68312ab50711
--- /dev/null
+++ b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.c
@@ -0,0 +1,55 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ *
+ */
+
+#include "dc/link/tx/link_tx_v1.h"
+
+static void link_tx_destroy_v1(struct link_tx *tx)
+{
+ if (!tx)
+ return;
+
+ kfree(tx);
+}
+
+static const struct link_tx_funcs link_tx_funcs_v1 = {
+ .destroy = link_tx_destroy_v1,
+};
+
+struct link_tx *link_tx_create_v1(struct dc_link *link)
+{
+ struct link_tx *tx = kzalloc_obj(*tx);
+
+ if (!tx)
+ return NULL;
+
+ *tx = (struct link_tx){
+ .funcs = &link_tx_funcs_v1,
+ .link = link,
+ .ctx = NULL,
+ };
+
+ return tx;
+}
diff --git a/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.h b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.h
new file mode 100644
index 000000000000..11211f3955cf
--- /dev/null
+++ b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v1.h
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ *
+ */
+
+#ifndef LINK_TX_V1_H
+#define LINK_TX_V1_H
+
+#include "dc/inc/link_tx.h"
+
+struct link_tx *link_tx_create_v1(struct dc_link *link);
+
+#endif
diff --git a/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.c b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.c
new file mode 100644
index 000000000000..b42704453f89
--- /dev/null
+++ b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.c
@@ -0,0 +1,83 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ *
+ */
+
+#include "dc/link/tx/link_tx_v2.h"
+
+static void link_tx_v2_ctx_destroy(struct link_tx_v2_ctx *ctx)
+{
+ if (!ctx)
+ return;
+
+ kfree(ctx);
+}
+
+static struct link_tx_v2_ctx *link_tx_v2_ctx_create(void)
+{
+ struct link_tx_v2_ctx *ctx = kzalloc_obj(*ctx);
+
+ if (!ctx)
+ return NULL;
+
+ *ctx = (struct link_tx_v2_ctx){
+ .dummy = 0,
+ };
+
+ return ctx;
+}
+
+static void link_tx_destroy_v2(struct link_tx *tx)
+{
+ if (!tx)
+ return;
+
+ link_tx_v2_ctx_destroy(tx->ctx);
+ kfree(tx);
+}
+
+static const struct link_tx_funcs link_tx_funcs_v2 = {
+ .destroy = link_tx_destroy_v2,
+};
+
+struct link_tx *link_tx_create_v2(struct dc_link *link)
+{
+ struct link_tx *tx = kzalloc_obj(*tx);
+
+ if (!tx)
+ return NULL;
+
+ *tx = (struct link_tx){
+ .funcs = &link_tx_funcs_v2,
+ .link = link,
+ .ctx = link_tx_v2_ctx_create(),
+ };
+
+ if (!tx->ctx) {
+ link_tx_destroy_v2(tx);
+ return NULL;
+ }
+
+ return tx;
+}
diff --git a/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.h b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.h
new file mode 100644
index 000000000000..151a6173b2a7
--- /dev/null
+++ b/drivers/gpu/drm/amd/display/dc/link/tx/link_tx_v2.h
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright 2026 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ *
+ */
+
+#ifndef LINK_TX_V2_H
+#define LINK_TX_V2_H
+
+#include "dc/inc/link_tx.h"
+
+struct link_tx_v2_ctx {
+ int dummy;
+};
+
+struct link_tx *link_tx_create_v2(struct dc_link *link);
+
+#endif
--
2.43.0
next prev parent reply other threads:[~2026-11-25 6:56 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 6:54 [PATCH 00/27] DC Patches Nov 30 2026 Chenyu Chen
2026-11-25 6:54 ` [PATCH 01/27] drm/amd/display: Avoid per-entry long division in __drm_lut32_to_dc_gamma Chenyu Chen
2026-11-25 6:54 ` [PATCH 02/27] drm/amd/display: Capture more diagnostic register state Chenyu Chen
2026-11-25 6:54 ` [PATCH 03/27] drm/amd/display: Add debug option to force DP link rate Chenyu Chen
2026-11-25 6:54 ` [PATCH 04/27] drm/amd/display: Reject Replay activation on an inactive link Chenyu Chen
2026-11-25 6:54 ` [PATCH 05/27] drm/amd/display: Decouple PROGRAM_CURSOR_UPDATE_NOW from dc and pipe_ctx Chenyu Chen
2026-11-25 6:54 ` [PATCH 06/27] drm/amd/display: Add DPMS-v2 init Chenyu Chen
2026-11-25 6:54 ` [PATCH 07/27] drm/amd/display: Expose per-CRTC pstate method in connector debugfs Chenyu Chen
2026-11-25 6:54 ` Chenyu Chen [this message]
2026-11-25 6:54 ` [PATCH 09/27] drm/amd/display: Derive DCN6 DSCCLK range from DISPCLK Chenyu Chen
2026-11-25 6:54 ` [PATCH 10/27] drm/amd/display: Carry the stream and plane update bits in update_flags Chenyu Chen
2026-11-25 6:55 ` [PATCH 11/27] drm/amd/display: Add the vsync flip to the DC2 seamless update Chenyu Chen
2026-11-25 6:55 ` [PATCH 12/27] drm/amd/display: Preserve bandwidth floors in overrides Chenyu Chen
2026-11-25 6:55 ` [PATCH 13/27] drm/amd/display: Set HDMI bypass earlier Chenyu Chen
2026-11-25 6:55 ` [PATCH 14/27] drm/amd/display: Add DMUB timer reference clock to ref_clocks Chenyu Chen
2026-11-25 6:55 ` [PATCH 15/27] drm/amd/display: Guard connector I2C transfer without DDC pin Chenyu Chen
2026-11-28 9:43 ` Eren Özen
2026-11-25 6:55 ` [PATCH 16/27] drm/amd/display: Refactor ABM_SET_PIPE and ABM_SET_IMMEDIATE_DISABLE Chenyu Chen
2026-11-25 6:55 ` [PATCH 17/27] drm/amd/display: Implement link_set_dpms_off_v2 Chenyu Chen
2026-11-25 6:55 ` [PATCH 18/27] drm/amd/display: Add the immediate flip to the DC2 seamless update Chenyu Chen
2026-11-25 6:55 ` [PATCH 19/27] drm/amd/display: Test amdgpu_dm_dmub alt-ch apertures Chenyu Chen
2026-11-25 6:55 ` [PATCH 20/27] drm/amd/display: Test amdgpu_dm_dmub SET_CONFIG sync wait Chenyu Chen
2026-11-25 6:55 ` [PATCH 21/27] drm/amd/display: Test amdgpu_dm_dmub AUX transfer timeout Chenyu Chen
2026-11-25 6:55 ` [PATCH 22/27] drm/amd/display: Test amdgpu_dm_dmub fused IO replies Chenyu Chen
2026-11-25 6:55 ` [PATCH 23/27] drm/amd/display: Use Z8 enter plus exit for vblank reserve Chenyu Chen
2026-11-25 6:55 ` [PATCH 24/27] drm/amd/display: Fix two streams sharing one OTG Chenyu Chen
2026-11-25 6:55 ` [PATCH 25/27] drm/amd/display: Count planes, not pipes, in the surface check Chenyu Chen
2026-11-25 6:55 ` [PATCH 26/27] drm/amd/display: [FW Promotion] Release 0.1.86.0 Chenyu Chen
2026-11-25 6:55 ` [PATCH 27/27] drm/amd/display: Promote DC to 3.2.409 Chenyu Chen
2026-11-27 5:44 ` [PATCH 00/27] DC Patches Nov 30 2026 Chung, ChiaHsuan (Tom)
2026-11-30 14:10 ` Wheeler, Daniel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125065631.3889665-9-chen-yu.chen@amd.com \
--to=chen-yu.chen@amd.com \
--cc=PingLei.Lin@amd.com \
--cc=Ray.Wu@amd.com \
--cc=alex.hung@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.com \
--cc=chiahsuan.chung@amd.com \
--cc=daniel.wheeler@amd.com \
--cc=dominik.kowalski@amd.com \
--cc=harry.wentland@amd.com \
--cc=ivan.lipski@amd.com \
--cc=jerry.zuo@amd.com \
--cc=roman.li@amd.com \
--cc=sunpeng.li@amd.com \
--cc=wayne.lin@amd.com \
--cc=wenjing.liu@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.