diff options
author | Ohad Sharabi <osharabi@habana.ai> | 2022-02-27 13:48:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-22 20:57:33 +0200 |
commit | 2f8f0de878e0f25984befd5a1f8f001e7c5ff9fd (patch) | |
tree | 87efa866941c23bf3402e30d0c04a52c29388609 /drivers/misc/habanalabs/goya/goya.c | |
parent | habanalabs: add DRAM default page size to HW info (diff) | |
download | linux-2f8f0de878e0f25984befd5a1f8f001e7c5ff9fd.tar.xz linux-2f8f0de878e0f25984befd5a1f8f001e7c5ff9fd.zip |
habanalabs: change mmu_get_real_page_size to be ASIC-specific
This patch breaks the cumbersome implementation of "get real page size"
along with it's multiple inner conditions and implement each case
(according to the real complexity) inside an ASIC function.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/habanalabs/goya/goya.c')
-rw-r--r-- | drivers/misc/habanalabs/goya/goya.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c index 5bd665188ea6..e4b7b9706d1a 100644 --- a/drivers/misc/habanalabs/goya/goya.c +++ b/drivers/misc/habanalabs/goya/goya.c @@ -5765,7 +5765,8 @@ static const struct hl_asic_funcs goya_funcs = { .get_sob_addr = &goya_get_sob_addr, .set_pci_memory_regions = goya_set_pci_memory_regions, .get_stream_master_qid_arr = goya_get_stream_master_qid_arr, - .is_valid_dram_page_size = NULL + .is_valid_dram_page_size = NULL, + .mmu_get_real_page_size = hl_mmu_get_real_page_size, }; /* |