From 0a102536402887379ce5cc33c0b6adf31817cf72 Mon Sep 17 00:00:00 2001 From: Bojan Rosko Date: Fri, 18 Oct 2024 09:58:21 +0200 Subject: [PATCH] remove set_dynamic_tlb --- tt_metal/llrt/tlb_config.cpp | 17 ----------------- tt_metal/llrt/tlb_config.hpp | 2 -- tt_metal/llrt/tt_cluster.cpp | 2 -- 3 files changed, 21 deletions(-) diff --git a/tt_metal/llrt/tlb_config.cpp b/tt_metal/llrt/tlb_config.cpp index d79a1ca6dec..b1634c5d41c 100644 --- a/tt_metal/llrt/tlb_config.cpp +++ b/tt_metal/llrt/tlb_config.cpp @@ -208,21 +208,4 @@ void configure_static_tlbs(tt::ARCH arch, chip_id_t mmio_device_id, const metal_ device_driver.setup_core_to_tlb_map(mmio_device_id, get_static_tlb_index); } -std::unordered_map get_dynamic_tlb_config(tt::ARCH arch) { - std::unordered_map dynamic_tlb_config; - switch (arch) { - case tt::ARCH::GRAYSKULL: - dynamic_tlb_config["REG_TLB"] = tt::umd::grayskull::REG_TLB; - break; - case tt::ARCH::WORMHOLE_B0: - dynamic_tlb_config["REG_TLB"] = tt::umd::wormhole::REG_TLB; - break; - case tt::ARCH::BLACKHOLE: - dynamic_tlb_config["REG_TLB"] = tt::umd::blackhole::REG_TLB; - break; - default: TT_THROW("Configuring dynamic TLBs is not supported for {}", tt::get_string(arch)); - } - return dynamic_tlb_config; -} - } // namespace ll_api diff --git a/tt_metal/llrt/tlb_config.hpp b/tt_metal/llrt/tlb_config.hpp index 099b530a04b..4dca5560b89 100644 --- a/tt_metal/llrt/tlb_config.hpp +++ b/tt_metal/llrt/tlb_config.hpp @@ -14,6 +14,4 @@ namespace ll_api { void configure_static_tlbs(tt::ARCH arch, chip_id_t mmio_device_id, const metal_SocDescriptor &sdesc, tt_device &device_driver); -std::unordered_map get_dynamic_tlb_config(tt::ARCH arch); - } // namespace ll_api diff --git a/tt_metal/llrt/tt_cluster.cpp b/tt_metal/llrt/tt_cluster.cpp index 6cef9d5a2d9..4900af96986 100644 --- a/tt_metal/llrt/tt_cluster.cpp +++ b/tt_metal/llrt/tt_cluster.cpp @@ -254,7 +254,6 @@ void Cluster::open_driver(const bool &skip_driver_allocs) { // Silicon driver will attempt to open this many hugepages as channels, and assert if workload uses more than // available. Metal currently uses assigns 1 channel per device uint32_t num_host_mem_ch_per_mmio_device = HOST_MEM_CHANNELS; - std::unordered_map dynamic_tlb_config = ll_api::get_dynamic_tlb_config(this->arch_); // This will remove harvested rows from the soc descriptor const bool perform_harvesting = true; const bool clean_system_resources = true; @@ -265,7 +264,6 @@ void Cluster::open_driver(const bool &skip_driver_allocs) { this->cluster_desc_path_, all_chips_set, num_host_mem_ch_per_mmio_device, - dynamic_tlb_config, skip_driver_allocs, clean_system_resources, perform_harvesting);