Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

memory: tegra: Add interconnect support for DRAM scaling in Tegra234

Add Interconnect framework support to dynamically set the DRAM
bandwidth from different clients. Both the MC and EMC drivers are
added as ICC providers. The path for any request is:
MC-Client[1-n] -> MC -> EMC -> EMEM/DRAM

MC client's request for bandwidth will go to the MC driver which
passes the client request info like BPMP Client ID, Client type
and the Bandwidth to the BPMP-FW. The final DRAM freq to achieve
the requested bandwidth is set by the BPMP-FW based on the passed
parameters.

Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Sumit Gupta and committed by
Thierry Reding
9a38cb27 f382b1fe

+347 -1
+5
drivers/memory/tegra/mc.c
··· 15 15 #include <linux/platform_device.h> 16 16 #include <linux/slab.h> 17 17 #include <linux/sort.h> 18 + #include <linux/tegra-icc.h> 18 19 19 20 #include <soc/tegra/fuse.h> 20 21 ··· 793 792 mc->provider.data = &mc->provider; 794 793 mc->provider.set = mc->soc->icc_ops->set; 795 794 mc->provider.aggregate = mc->soc->icc_ops->aggregate; 795 + mc->provider.get_bw = mc->soc->icc_ops->get_bw; 796 + mc->provider.xlate = mc->soc->icc_ops->xlate; 796 797 mc->provider.xlate_extended = mc->soc->icc_ops->xlate_extended; 797 798 798 799 icc_provider_init(&mc->provider); ··· 827 824 err = icc_link_create(node, TEGRA_ICC_MC); 828 825 if (err) 829 826 goto remove_nodes; 827 + 828 + node->data = (struct tegra_mc_client *)&(mc->soc->clients[i]); 830 829 } 831 830 832 831 err = icc_provider_register(&mc->provider);
+133
drivers/memory/tegra/tegra186-emc.c
··· 7 7 #include <linux/debugfs.h> 8 8 #include <linux/module.h> 9 9 #include <linux/mod_devicetable.h> 10 + #include <linux/of_platform.h> 10 11 #include <linux/platform_device.h> 11 12 12 13 #include <soc/tegra/bpmp.h> 14 + #include "mc.h" 13 15 14 16 struct tegra186_emc_dvfs { 15 17 unsigned long latency; ··· 31 29 unsigned long min_rate; 32 30 unsigned long max_rate; 33 31 } debugfs; 32 + 33 + struct icc_provider provider; 34 34 }; 35 + 36 + static inline struct tegra186_emc *to_tegra186_emc(struct icc_provider *provider) 37 + { 38 + return container_of(provider, struct tegra186_emc, provider); 39 + } 35 40 36 41 /* 37 42 * debugfs interface ··· 155 146 tegra186_emc_debug_max_rate_get, 156 147 tegra186_emc_debug_max_rate_set, "%llu\n"); 157 148 149 + /* 150 + * tegra_emc_icc_set_bw() - Set BW api for EMC provider 151 + * @src: ICC node for External Memory Controller (EMC) 152 + * @dst: ICC node for External Memory (DRAM) 153 + * 154 + * Do nothing here as info to BPMP-FW is now passed in the BW set function 155 + * of the MC driver. BPMP-FW sets the final Freq based on the passed values. 156 + */ 157 + static int tegra_emc_icc_set_bw(struct icc_node *src, struct icc_node *dst) 158 + { 159 + return 0; 160 + } 161 + 162 + static struct icc_node * 163 + tegra_emc_of_icc_xlate(struct of_phandle_args *spec, void *data) 164 + { 165 + struct icc_provider *provider = data; 166 + struct icc_node *node; 167 + 168 + /* External Memory is the only possible ICC route */ 169 + list_for_each_entry(node, &provider->nodes, node_list) { 170 + if (node->id != TEGRA_ICC_EMEM) 171 + continue; 172 + 173 + return node; 174 + } 175 + 176 + return ERR_PTR(-EPROBE_DEFER); 177 + } 178 + 179 + static int tegra_emc_icc_get_init_bw(struct icc_node *node, u32 *avg, u32 *peak) 180 + { 181 + *avg = 0; 182 + *peak = 0; 183 + 184 + return 0; 185 + } 186 + 187 + static int tegra_emc_interconnect_init(struct tegra186_emc *emc) 188 + { 189 + struct tegra_mc *mc = dev_get_drvdata(emc->dev->parent); 190 + const struct tegra_mc_soc *soc = mc->soc; 191 + struct icc_node *node; 192 + int err; 193 + 194 + emc->provider.dev = emc->dev; 195 + emc->provider.set = tegra_emc_icc_set_bw; 196 + emc->provider.data = &emc->provider; 197 + emc->provider.aggregate = soc->icc_ops->aggregate; 198 + emc->provider.xlate = tegra_emc_of_icc_xlate; 199 + emc->provider.get_bw = tegra_emc_icc_get_init_bw; 200 + 201 + icc_provider_init(&emc->provider); 202 + 203 + /* create External Memory Controller node */ 204 + node = icc_node_create(TEGRA_ICC_EMC); 205 + if (IS_ERR(node)) { 206 + err = PTR_ERR(node); 207 + goto err_msg; 208 + } 209 + 210 + node->name = "External Memory Controller"; 211 + icc_node_add(node, &emc->provider); 212 + 213 + /* link External Memory Controller to External Memory (DRAM) */ 214 + err = icc_link_create(node, TEGRA_ICC_EMEM); 215 + if (err) 216 + goto remove_nodes; 217 + 218 + /* create External Memory node */ 219 + node = icc_node_create(TEGRA_ICC_EMEM); 220 + if (IS_ERR(node)) { 221 + err = PTR_ERR(node); 222 + goto remove_nodes; 223 + } 224 + 225 + node->name = "External Memory (DRAM)"; 226 + icc_node_add(node, &emc->provider); 227 + 228 + err = icc_provider_register(&emc->provider); 229 + if (err) 230 + goto remove_nodes; 231 + 232 + return 0; 233 + 234 + remove_nodes: 235 + icc_nodes_remove(&emc->provider); 236 + err_msg: 237 + dev_err(emc->dev, "failed to initialize ICC: %d\n", err); 238 + 239 + return err; 240 + } 241 + 158 242 static int tegra186_emc_probe(struct platform_device *pdev) 159 243 { 244 + struct tegra_mc *mc = dev_get_drvdata(pdev->dev.parent); 160 245 struct mrq_emc_dvfs_latency_response response; 161 246 struct tegra_bpmp_message msg; 162 247 struct tegra186_emc *emc; ··· 339 236 debugfs_create_file("max_rate", S_IRUGO | S_IWUSR, emc->debugfs.root, 340 237 emc, &tegra186_emc_debug_max_rate_fops); 341 238 239 + if (mc && mc->soc->icc_ops) { 240 + if (tegra_bpmp_mrq_is_supported(emc->bpmp, MRQ_BWMGR_INT)) { 241 + mc->bwmgr_mrq_supported = true; 242 + 243 + /* 244 + * MC driver probe can't get BPMP reference as it gets probed 245 + * earlier than BPMP. So, save the BPMP ref got from the EMC 246 + * DT node in the mc->bpmp and use it in MC's icc_set hook. 247 + */ 248 + mc->bpmp = emc->bpmp; 249 + barrier(); 250 + } 251 + 252 + /* 253 + * Initialize the ICC even if BPMP-FW doesn't support 'MRQ_BWMGR_INT'. 254 + * Use the flag 'mc->bwmgr_mrq_supported' within MC driver and return 255 + * EINVAL instead of passing the request to BPMP-FW later when the BW 256 + * request is made by client with 'icc_set_bw()' call. 257 + */ 258 + err = tegra_emc_interconnect_init(emc); 259 + if (err) { 260 + mc->bpmp = NULL; 261 + goto put_bpmp; 262 + } 263 + } 264 + 342 265 return 0; 343 266 344 267 put_bpmp: ··· 374 245 375 246 static int tegra186_emc_remove(struct platform_device *pdev) 376 247 { 248 + struct tegra_mc *mc = dev_get_drvdata(pdev->dev.parent); 377 249 struct tegra186_emc *emc = platform_get_drvdata(pdev); 378 250 379 251 debugfs_remove_recursive(emc->debugfs.root); 252 + 253 + mc->bpmp = NULL; 380 254 tegra_bpmp_put(emc->bpmp); 381 255 382 256 return 0; ··· 404 272 .name = "tegra186-emc", 405 273 .of_match_table = tegra186_emc_of_match, 406 274 .suppress_bind_attrs = true, 275 + .sync_state = icc_sync_state, 407 276 }, 408 277 .probe = tegra186_emc_probe, 409 278 .remove = tegra186_emc_remove,
+137 -1
drivers/memory/tegra/tegra234.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 /* 3 - * Copyright (C) 2021-2022, NVIDIA CORPORATION. All rights reserved. 3 + * Copyright (C) 2022-2023, NVIDIA CORPORATION. All rights reserved. 4 4 */ 5 5 6 6 #include <soc/tegra/mc.h> 7 7 8 8 #include <dt-bindings/memory/tegra234-mc.h> 9 + #include <linux/interconnect.h> 10 + #include <linux/tegra-icc.h> 9 11 12 + #include <soc/tegra/bpmp.h> 10 13 #include "mc.h" 11 14 12 15 static const struct tegra_mc_client tegra234_mc_clients[] = { 13 16 { 14 17 .id = TEGRA234_MEMORY_CLIENT_MGBEARD, 15 18 .name = "mgbeard", 19 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 20 + .type = TEGRA_ICC_NISO, 16 21 .sid = TEGRA234_SID_MGBE, 17 22 .regs = { 18 23 .sid = { ··· 28 23 }, { 29 24 .id = TEGRA234_MEMORY_CLIENT_MGBEBRD, 30 25 .name = "mgbebrd", 26 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 27 + .type = TEGRA_ICC_NISO, 31 28 .sid = TEGRA234_SID_MGBE_VF1, 32 29 .regs = { 33 30 .sid = { ··· 40 33 }, { 41 34 .id = TEGRA234_MEMORY_CLIENT_MGBECRD, 42 35 .name = "mgbecrd", 36 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 37 + .type = TEGRA_ICC_NISO, 43 38 .sid = TEGRA234_SID_MGBE_VF2, 44 39 .regs = { 45 40 .sid = { ··· 52 43 }, { 53 44 .id = TEGRA234_MEMORY_CLIENT_MGBEDRD, 54 45 .name = "mgbedrd", 46 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 47 + .type = TEGRA_ICC_NISO, 55 48 .sid = TEGRA234_SID_MGBE_VF3, 56 49 .regs = { 57 50 .sid = { ··· 63 52 }, 64 53 }, { 65 54 .id = TEGRA234_MEMORY_CLIENT_MGBEAWR, 55 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 56 + .type = TEGRA_ICC_NISO, 66 57 .name = "mgbeawr", 67 58 .sid = TEGRA234_SID_MGBE, 68 59 .regs = { ··· 76 63 }, { 77 64 .id = TEGRA234_MEMORY_CLIENT_MGBEBWR, 78 65 .name = "mgbebwr", 66 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 67 + .type = TEGRA_ICC_NISO, 79 68 .sid = TEGRA234_SID_MGBE_VF1, 80 69 .regs = { 81 70 .sid = { ··· 88 73 }, { 89 74 .id = TEGRA234_MEMORY_CLIENT_MGBECWR, 90 75 .name = "mgbecwr", 76 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 77 + .type = TEGRA_ICC_NISO, 91 78 .sid = TEGRA234_SID_MGBE_VF2, 92 79 .regs = { 93 80 .sid = { ··· 100 83 }, { 101 84 .id = TEGRA234_MEMORY_CLIENT_SDMMCRAB, 102 85 .name = "sdmmcrab", 86 + .bpmp_id = TEGRA_ICC_BPMP_SDMMC_4, 87 + .type = TEGRA_ICC_NISO, 103 88 .sid = TEGRA234_SID_SDMMC4, 104 89 .regs = { 105 90 .sid = { ··· 112 93 }, { 113 94 .id = TEGRA234_MEMORY_CLIENT_MGBEDWR, 114 95 .name = "mgbedwr", 96 + .bpmp_id = TEGRA_ICC_BPMP_EQOS, 97 + .type = TEGRA_ICC_NISO, 115 98 .sid = TEGRA234_SID_MGBE_VF3, 116 99 .regs = { 117 100 .sid = { ··· 124 103 }, { 125 104 .id = TEGRA234_MEMORY_CLIENT_SDMMCWAB, 126 105 .name = "sdmmcwab", 106 + .bpmp_id = TEGRA_ICC_BPMP_SDMMC_4, 107 + .type = TEGRA_ICC_NISO, 127 108 .sid = TEGRA234_SID_SDMMC4, 128 109 .regs = { 129 110 .sid = { ··· 176 153 }, { 177 154 .id = TEGRA234_MEMORY_CLIENT_APEDMAR, 178 155 .name = "apedmar", 156 + .bpmp_id = TEGRA_ICC_BPMP_APEDMA, 157 + .type = TEGRA_ICC_ISO_AUDIO, 179 158 .sid = TEGRA234_SID_APE, 180 159 .regs = { 181 160 .sid = { ··· 188 163 }, { 189 164 .id = TEGRA234_MEMORY_CLIENT_APEDMAW, 190 165 .name = "apedmaw", 166 + .bpmp_id = TEGRA_ICC_BPMP_APEDMA, 167 + .type = TEGRA_ICC_ISO_AUDIO, 191 168 .sid = TEGRA234_SID_APE, 192 169 .regs = { 193 170 .sid = { ··· 360 333 }, 361 334 }; 362 335 336 + /* 337 + * tegra234_mc_icc_set() - Pass MC client info to the BPMP-FW 338 + * @src: ICC node for Memory Controller's (MC) Client 339 + * @dst: ICC node for Memory Controller (MC) 340 + * 341 + * Passing the current request info from the MC to the BPMP-FW where 342 + * LA and PTSA registers are accessed and the final EMC freq is set 343 + * based on client_id, type, latency and bandwidth. 344 + * icc_set_bw() makes set_bw calls for both MC and EMC providers in 345 + * sequence. Both the calls are protected by 'mutex_lock(&icc_lock)'. 346 + * So, the data passed won't be updated by concurrent set calls from 347 + * other clients. 348 + */ 349 + static int tegra234_mc_icc_set(struct icc_node *src, struct icc_node *dst) 350 + { 351 + struct tegra_mc *mc = icc_provider_to_tegra_mc(dst->provider); 352 + struct mrq_bwmgr_int_request bwmgr_req = { 0 }; 353 + struct mrq_bwmgr_int_response bwmgr_resp = { 0 }; 354 + const struct tegra_mc_client *pclient = src->data; 355 + struct tegra_bpmp_message msg; 356 + int ret; 357 + 358 + /* 359 + * Same Src and Dst node will happen during boot from icc_node_add(). 360 + * This can be used to pre-initialize and set bandwidth for all clients 361 + * before their drivers are loaded. We are skipping this case as for us, 362 + * the pre-initialization already happened in Bootloader(MB2) and BPMP-FW. 363 + */ 364 + if (src->id == dst->id) 365 + return 0; 366 + 367 + if (!mc->bwmgr_mrq_supported) 368 + return -EINVAL; 369 + 370 + if (!mc->bpmp) { 371 + dev_err(mc->dev, "BPMP reference NULL\n"); 372 + return -ENOENT; 373 + } 374 + 375 + if (pclient->type == TEGRA_ICC_NISO) 376 + bwmgr_req.bwmgr_calc_set_req.niso_bw = src->avg_bw; 377 + else 378 + bwmgr_req.bwmgr_calc_set_req.iso_bw = src->avg_bw; 379 + 380 + bwmgr_req.bwmgr_calc_set_req.client_id = pclient->bpmp_id; 381 + 382 + bwmgr_req.cmd = CMD_BWMGR_INT_CALC_AND_SET; 383 + bwmgr_req.bwmgr_calc_set_req.mc_floor = src->peak_bw; 384 + bwmgr_req.bwmgr_calc_set_req.floor_unit = BWMGR_INT_UNIT_KBPS; 385 + 386 + memset(&msg, 0, sizeof(msg)); 387 + msg.mrq = MRQ_BWMGR_INT; 388 + msg.tx.data = &bwmgr_req; 389 + msg.tx.size = sizeof(bwmgr_req); 390 + msg.rx.data = &bwmgr_resp; 391 + msg.rx.size = sizeof(bwmgr_resp); 392 + 393 + ret = tegra_bpmp_transfer(mc->bpmp, &msg); 394 + if (ret < 0) { 395 + dev_err(mc->dev, "BPMP transfer failed: %d\n", ret); 396 + goto error; 397 + } 398 + if (msg.rx.ret < 0) { 399 + pr_err("failed to set bandwidth for %u: %d\n", 400 + bwmgr_req.bwmgr_calc_set_req.client_id, msg.rx.ret); 401 + ret = -EINVAL; 402 + } 403 + 404 + error: 405 + return ret; 406 + } 407 + 408 + static struct icc_node* 409 + tegra234_mc_of_icc_xlate(struct of_phandle_args *spec, void *data) 410 + { 411 + struct tegra_mc *mc = icc_provider_to_tegra_mc(data); 412 + unsigned int cl_id = spec->args[0]; 413 + struct icc_node *node; 414 + 415 + list_for_each_entry(node, &mc->provider.nodes, node_list) { 416 + if (node->id != cl_id) 417 + continue; 418 + 419 + return node; 420 + } 421 + 422 + /* 423 + * If a client driver calls devm_of_icc_get() before the MC driver 424 + * is probed, then return EPROBE_DEFER to the client driver. 425 + */ 426 + return ERR_PTR(-EPROBE_DEFER); 427 + } 428 + 429 + static int tegra234_mc_icc_get_init_bw(struct icc_node *node, u32 *avg, u32 *peak) 430 + { 431 + *avg = 0; 432 + *peak = 0; 433 + 434 + return 0; 435 + } 436 + 437 + static const struct tegra_mc_icc_ops tegra234_mc_icc_ops = { 438 + .xlate = tegra234_mc_of_icc_xlate, 439 + .aggregate = icc_std_aggregate, 440 + .get_bw = tegra234_mc_icc_get_init_bw, 441 + .set = tegra234_mc_icc_set, 442 + }; 443 + 363 444 const struct tegra_mc_soc tegra234_mc_soc = { 364 445 .num_clients = ARRAY_SIZE(tegra234_mc_clients), 365 446 .clients = tegra234_mc_clients, ··· 480 345 MC_INT_SECURITY_VIOLATION | MC_INT_DECERR_EMEM, 481 346 .has_addr_hi_reg = true, 482 347 .ops = &tegra186_mc_ops, 348 + .icc_ops = &tegra234_mc_icc_ops, 483 349 .ch_intmask = 0x0000ff00, 484 350 .global_intstatus_channel_shift = 8, 485 351 /*
+65
include/linux/tegra-icc.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * Copyright (C) 2022-2023 NVIDIA CORPORATION. All rights reserved. 4 + */ 5 + 6 + #ifndef LINUX_TEGRA_ICC_H 7 + #define LINUX_TEGRA_ICC_H 8 + 9 + enum tegra_icc_client_type { 10 + TEGRA_ICC_NONE, 11 + TEGRA_ICC_NISO, 12 + TEGRA_ICC_ISO_DISPLAY, 13 + TEGRA_ICC_ISO_VI, 14 + TEGRA_ICC_ISO_AUDIO, 15 + TEGRA_ICC_ISO_VIFAL, 16 + }; 17 + 18 + /* ICC ID's for MC client's used in BPMP */ 19 + #define TEGRA_ICC_BPMP_DEBUG 1 20 + #define TEGRA_ICC_BPMP_CPU_CLUSTER0 2 21 + #define TEGRA_ICC_BPMP_CPU_CLUSTER1 3 22 + #define TEGRA_ICC_BPMP_CPU_CLUSTER2 4 23 + #define TEGRA_ICC_BPMP_GPU 5 24 + #define TEGRA_ICC_BPMP_CACTMON 6 25 + #define TEGRA_ICC_BPMP_DISPLAY 7 26 + #define TEGRA_ICC_BPMP_VI 8 27 + #define TEGRA_ICC_BPMP_EQOS 9 28 + #define TEGRA_ICC_BPMP_PCIE_0 10 29 + #define TEGRA_ICC_BPMP_PCIE_1 11 30 + #define TEGRA_ICC_BPMP_PCIE_2 12 31 + #define TEGRA_ICC_BPMP_PCIE_3 13 32 + #define TEGRA_ICC_BPMP_PCIE_4 14 33 + #define TEGRA_ICC_BPMP_PCIE_5 15 34 + #define TEGRA_ICC_BPMP_PCIE_6 16 35 + #define TEGRA_ICC_BPMP_PCIE_7 17 36 + #define TEGRA_ICC_BPMP_PCIE_8 18 37 + #define TEGRA_ICC_BPMP_PCIE_9 19 38 + #define TEGRA_ICC_BPMP_PCIE_10 20 39 + #define TEGRA_ICC_BPMP_DLA_0 21 40 + #define TEGRA_ICC_BPMP_DLA_1 22 41 + #define TEGRA_ICC_BPMP_SDMMC_1 23 42 + #define TEGRA_ICC_BPMP_SDMMC_2 24 43 + #define TEGRA_ICC_BPMP_SDMMC_3 25 44 + #define TEGRA_ICC_BPMP_SDMMC_4 26 45 + #define TEGRA_ICC_BPMP_NVDEC 27 46 + #define TEGRA_ICC_BPMP_NVENC 28 47 + #define TEGRA_ICC_BPMP_NVJPG_0 29 48 + #define TEGRA_ICC_BPMP_NVJPG_1 30 49 + #define TEGRA_ICC_BPMP_OFAA 31 50 + #define TEGRA_ICC_BPMP_XUSB_HOST 32 51 + #define TEGRA_ICC_BPMP_XUSB_DEV 33 52 + #define TEGRA_ICC_BPMP_TSEC 34 53 + #define TEGRA_ICC_BPMP_VIC 35 54 + #define TEGRA_ICC_BPMP_APE 36 55 + #define TEGRA_ICC_BPMP_APEDMA 37 56 + #define TEGRA_ICC_BPMP_SE 38 57 + #define TEGRA_ICC_BPMP_ISP 39 58 + #define TEGRA_ICC_BPMP_HDA 40 59 + #define TEGRA_ICC_BPMP_VIFAL 41 60 + #define TEGRA_ICC_BPMP_VI2FAL 42 61 + #define TEGRA_ICC_BPMP_VI2 43 62 + #define TEGRA_ICC_BPMP_RCE 44 63 + #define TEGRA_ICC_BPMP_PVA 45 64 + 65 + #endif /* LINUX_TEGRA_ICC_H */
+7
include/soc/tegra/mc.h
··· 13 13 #include <linux/irq.h> 14 14 #include <linux/reset-controller.h> 15 15 #include <linux/types.h> 16 + #include <linux/tegra-icc.h> 16 17 17 18 struct clk; 18 19 struct device; ··· 27 26 28 27 struct tegra_mc_client { 29 28 unsigned int id; 29 + unsigned int bpmp_id; 30 + enum tegra_icc_client_type type; 30 31 const char *name; 31 32 /* 32 33 * For Tegra210 and earlier, this is the SWGROUP ID used for IOVA translations in the ··· 169 166 int (*set)(struct icc_node *src, struct icc_node *dst); 170 167 int (*aggregate)(struct icc_node *node, u32 tag, u32 avg_bw, 171 168 u32 peak_bw, u32 *agg_avg, u32 *agg_peak); 169 + struct icc_node* (*xlate)(struct of_phandle_args *spec, void *data); 172 170 struct icc_node_data *(*xlate_extended)(struct of_phandle_args *spec, 173 171 void *data); 172 + int (*get_bw)(struct icc_node *node, u32 *avg, u32 *peak); 174 173 }; 175 174 176 175 struct tegra_mc_ops { ··· 219 214 }; 220 215 221 216 struct tegra_mc { 217 + struct tegra_bpmp *bpmp; 222 218 struct device *dev; 223 219 struct tegra_smmu *smmu; 224 220 struct gart_device *gart; ··· 235 229 struct tegra_mc_timing *timings; 236 230 unsigned int num_timings; 237 231 232 + bool bwmgr_mrq_supported; 238 233 struct reset_controller_dev reset; 239 234 240 235 struct icc_provider provider;