Lines Matching full:fabric

159 	const struct tegra234_cbb_fabric *fabric;
190 if (!cbb->fabric->firewall_base ||
191 !cbb->fabric->firewall_ctl ||
192 !cbb->fabric->firewall_wr_ctl) {
197 if ((cbb->fabric->firewall_ctl > FIREWALL_APERTURE_SZ) ||
198 (cbb->fabric->firewall_wr_ctl > FIREWALL_APERTURE_SZ)) {
203 val = readl(cbb->regs + cbb->fabric->firewall_base + cbb->fabric->firewall_ctl);
206 * write accesses through the firewall of a fabric is disabled
207 * then CCPLEX can write to the registers of that fabric.
214 * has write access to the fabric's error notifier registers
216 val = readl(cbb->regs + cbb->fabric->firewall_base + cbb->fabric->firewall_wr_ctl);
228 addr = priv->regs + priv->fabric->notifier_offset;
229 writel(priv->fabric->err_intr_enbl, addr + FABRIC_EN_CFG_INTERRUPT_ENABLE_0_0);
239 writel(priv->fabric->err_status_clr, priv->mon + FABRIC_MN_INITIATOR_ERR_STATUS_0);
249 addr = priv->regs + priv->fabric->notifier_offset;
258 writel(0x1, cbb->regs + cbb->fabric->off_mask_erd);
319 const struct tegra234_target_lookup *map = cbb->fabric->fab_list[fab_id].target_map;
322 if (target_id >= cbb->fabric->fab_list[fab_id].max_targets) {
331 * using <FABRIC>_SN_<>_SLV_TIMEOUT_STATUS_0_0 register.
335 * <FABRIC>_SN_AXI2APB_<>_BLOCK_TMO_STATUS_0 register.
337 * <FABRIC>_SN_AXI2APB_<>_BLOCK<index-set-bit>_TMO_0.
367 unsigned int notifier = cbb->fabric->notifier_offset;
390 if (type >= cbb->fabric->max_errors) {
398 cbb->fabric->errors[type].code);
407 if (type >= cbb->fabric->max_errors) {
415 cbb->fabric->errors[type].code);
464 if (cbb->type < cbb->fabric->max_errors)
466 cbb->fabric->errors[cbb->type].code);
471 if (cbb->fabric->initiator_id)
473 cbb->fabric->initiator_id[mstr_id]);
492 tegra_cbb_print_err(file, "\t Fabric\t\t: %s (id:%#x)\n",
493 cbb->fabric->fab_list[fab_id].name, fab_id);
497 * In T264, AON Fabric ID value is incorrectly same as UPHY0 fabric ID.
499 * to find the correct fabric which returned error.
501 tegra_cbb_print_err(file, "\t or Fabric\t\t: %s\n",
502 cbb->fabric->fab_list[T264_AON_FABRIC_ID].name);
503 tegra_cbb_print_err(file, "\t Please use Address to determine correct fabric.\n");
514 if (!cbb->fabric->fab_list[fab_id].is_lookup)
523 if (!strcmp(cbb->fabric->errors[cbb->type].code, "TIMEOUT_ERR")) {
524 if (cbb->fabric->fab_list[fab_id].max_targets)
591 cbb->fabric->fab_list[cbb->fabric->fab_id].name, status);
595 unsigned int notifier = cbb->fabric->notifier_offset;
670 priv->fabric->fab_list[priv->fabric->fab_id].name,
680 if (priv->fabric->off_mask_erd) {
774 .desc = "Attempt to access a portion of fabric that is powered down"
870 [T234_CBB_FABRIC_ID] = { "cbb-fabric", true,
873 [T234_SCE_FABRIC_ID] = { "sce-fabric", true,
876 [T234_RCE_FABRIC_ID] = { "rce-fabric", true,
879 [T234_DCE_FABRIC_ID] = { "dce-fabric", true,
882 [T234_AON_FABRIC_ID] = { "aon-fabric", true,
885 [T234_PSC_FABRIC_ID] = { "psc-fabric" },
886 [T234_BPMP_FABRIC_ID] = { "bpmp-fabric", true,
889 [T234_FSI_FABRIC_ID] = { "fsi-fabric" },
1022 .desc = "Attempt to access a portion of the fabric that is powered down."
1160 [T234_CBB_FABRIC_ID] = { "cbb-fabric", true,
1162 [T234_BPMP_FABRIC_ID] = { "bpmp-fabric", true,
1346 [T264_SYSTEM_CBB_FABRIC_ID] = { "system-cbb-fabric", true,
1349 [T264_TOP_0_CBB_FABRIC_ID] = { "top0-cbb-fabric", true,
1352 [T264_VISION_CBB_FABRIC_ID] = { "vision-cbb-fabric", true,
1355 [T264_DISP_USB_CBB_FABRIC_ID] = { "disp-usb-cbb-fabric" },
1356 [T264_UPHY0_CBB_FABRIC_ID] = { "uphy0-cbb-fabric", true,
1359 [T264_AON_FABRIC_ID] = { "aon-fabric" },
1360 [T264_PSC_FABRIC_ID] = { "psc-fabric" },
1361 [T264_OESP_FABRIC_ID] = { "oesp-fabric" },
1363 [T264_BPMP_FABRIC_ID] = { "bpmp-fabric" },
1364 [T264_RCE_0_FABRIC_ID] = { "rce0-fabric" },
1365 [T264_RCE_1_FABRIC_ID] = { "rce1-fabric" },
1366 [T264_DCE_FABRIC_ID] = { "dce-fabric" },
1367 [T264_FSI_FABRIC_ID] = { "fsi-fabric" },
1368 [T264_ISC_FABRIC_ID] = { "isc-fabric" },
1369 [T264_SB_FABRIC_ID] = { "sb-fabric" },
1370 [T264_ISC_CPU_FABRIC_ID] = { "isc-cpu-fabric" },
1431 [T254_C2C_FABRIC_ID] = { "c2c-fabric", true },
1432 [T254_DISP_CLUSTER_FABRIC_ID] = { "display-cluster-fabric", true },
1433 [T254_GPU_FABRIC_ID] = { "gpu-fabric", true },
1477 { .compatible = "nvidia,tegra234-cbb-fabric", .data = &tegra234_cbb_fabric },
1478 { .compatible = "nvidia,tegra234-aon-fabric", .data = &tegra234_aon_fabric },
1479 { .compatible = "nvidia,tegra234-bpmp-fabric", .data = &tegra234_bpmp_fabric },
1480 { .compatible = "nvidia,tegra234-dce-fabric", .data = &tegra234_dce_fabric },
1481 { .compatible = "nvidia,tegra234-rce-fabric", .data = &tegra234_rce_fabric },
1482 { .compatible = "nvidia,tegra234-sce-fabric", .data = &tegra234_sce_fabric },
1483 { .compatible = "nvidia,tegra264-sys-cbb-fabric", .data = &tegra264_sys_cbb_fabric },
1484 { .compatible = "nvidia,tegra264-top0-cbb-fabric", .data = &tegra264_top0_cbb_fabric },
1485 { .compatible = "nvidia,tegra264-uphy0-cbb-fabric", .data = &tegra264_uphy0_cbb_fabric },
1486 { .compatible = "nvidia,tegra264-vision-cbb-fabric", .data = &tegra264_vision_cbb_fabric },
1494 const struct tegra234_cbb_fabric *fabric;
1513 return entry->fabric;
1527 const struct tegra234_cbb_fabric *fabric;
1533 fabric = of_device_get_match_data(&pdev->dev);
1539 fabric = tegra234_cbb_acpi_get_fabric(device);
1540 if (!fabric) {
1553 cbb->fabric = fabric;
1566 * Don't enable error reporting for a Fabric if write to it's registers
1579 if (cbb->fabric->off_mask_erd)
1591 dev_dbg(dev, "%s resumed\n", cbb->fabric->fab_list[cbb->fabric->fab_id].name);