|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 |
2 | 2 | * |
3 | | - * Copyright 2016-2022 HabanaLabs, Ltd. |
| 3 | + * Copyright 2016-2023 HabanaLabs, Ltd. |
4 | 4 | * All Rights Reserved. |
5 | 5 | * |
6 | 6 | */ |
@@ -553,8 +553,7 @@ struct hl_hints_range { |
553 | 553 | * allocated with huge pages. |
554 | 554 | * @hints_dram_reserved_va_range: dram hint addresses reserved range. |
555 | 555 | * @hints_host_reserved_va_range: host hint addresses reserved range. |
556 | | - * @hints_host_hpage_reserved_va_range: host huge page hint addresses reserved |
557 | | - * range. |
| 556 | + * @hints_host_hpage_reserved_va_range: host huge page hint addresses reserved range. |
558 | 557 | * @sram_base_address: SRAM physical start address. |
559 | 558 | * @sram_end_address: SRAM physical end address. |
560 | 559 | * @sram_user_base_address - SRAM physical start address for user access. |
@@ -593,7 +592,7 @@ struct hl_hints_range { |
593 | 592 | * @mmu_pte_size: PTE size in MMU page tables. |
594 | 593 | * @mmu_hop_table_size: MMU hop table size. |
595 | 594 | * @mmu_hop0_tables_total_size: total size of MMU hop0 tables. |
596 | | - * @dram_page_size: page size for MMU DRAM allocation. |
| 595 | + * @dram_page_size: The DRAM physical page size. |
597 | 596 | * @cfg_size: configuration space size on SRAM. |
598 | 597 | * @sram_size: total size of SRAM. |
599 | 598 | * @max_asid: maximum number of open contexts (ASIDs). |
@@ -695,7 +694,7 @@ struct hl_hints_range { |
695 | 694 | * @configurable_stop_on_err: is stop-on-error option configurable via debugfs. |
696 | 695 | * @set_max_power_on_device_init: true if need to set max power in F/W on device init. |
697 | 696 | * @supports_user_set_page_size: true if user can set the allocation page size. |
698 | | - * @dma_mask: the dma mask to be set for this device |
| 697 | + * @dma_mask: the dma mask to be set for this device. |
699 | 698 | * @supports_advanced_cpucp_rc: true if new cpucp opcodes are supported. |
700 | 699 | * @supports_engine_modes: true if changing engines/engine_cores modes is supported. |
701 | 700 | * @support_dynamic_resereved_fw_size: true if we support dynamic reserved size for fw. |
@@ -1959,17 +1958,17 @@ struct hl_ctx_mgr { |
1959 | 1958 | * @dma_mapped: true if the SG was mapped to DMA addresses, false otherwise. |
1960 | 1959 | */ |
1961 | 1960 | struct hl_userptr { |
1962 | | - enum vm_type vm_type; /* must be first */ |
1963 | | - struct list_head job_node; |
1964 | | - struct page **pages; |
1965 | | - unsigned int npages; |
1966 | | - struct sg_table *sgt; |
1967 | | - enum dma_data_direction dir; |
1968 | | - struct list_head debugfs_list; |
1969 | | - pid_t pid; |
1970 | | - u64 addr; |
1971 | | - u64 size; |
1972 | | - u8 dma_mapped; |
| 1961 | + enum vm_type vm_type; /* must be first */ |
| 1962 | + struct list_head job_node; |
| 1963 | + struct page **pages; |
| 1964 | + unsigned int npages; |
| 1965 | + struct sg_table *sgt; |
| 1966 | + enum dma_data_direction dir; |
| 1967 | + struct list_head debugfs_list; |
| 1968 | + pid_t pid; |
| 1969 | + u64 addr; |
| 1970 | + u64 size; |
| 1971 | + u8 dma_mapped; |
1973 | 1972 | }; |
1974 | 1973 |
|
1975 | 1974 | /** |
|
0 commit comments