Skip to content

Commit 1630d14

Browse files
committed
accel/habanalabs: minor cosmetic update to habanalabs.h
- Update copyright years - Align fields in struct hl_userptr - Fix comments Signed-off-by: Oded Gabbay <[email protected]> Reviewed-by: Ofir Bitton <[email protected]>
1 parent 4355f2c commit 1630d14

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

drivers/accel/habanalabs/common/habanalabs.h

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0
22
*
3-
* Copyright 2016-2022 HabanaLabs, Ltd.
3+
* Copyright 2016-2023 HabanaLabs, Ltd.
44
* All Rights Reserved.
55
*
66
*/
@@ -553,8 +553,7 @@ struct hl_hints_range {
553553
* allocated with huge pages.
554554
* @hints_dram_reserved_va_range: dram hint addresses reserved range.
555555
* @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.
558557
* @sram_base_address: SRAM physical start address.
559558
* @sram_end_address: SRAM physical end address.
560559
* @sram_user_base_address - SRAM physical start address for user access.
@@ -593,7 +592,7 @@ struct hl_hints_range {
593592
* @mmu_pte_size: PTE size in MMU page tables.
594593
* @mmu_hop_table_size: MMU hop table size.
595594
* @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.
597596
* @cfg_size: configuration space size on SRAM.
598597
* @sram_size: total size of SRAM.
599598
* @max_asid: maximum number of open contexts (ASIDs).
@@ -695,7 +694,7 @@ struct hl_hints_range {
695694
* @configurable_stop_on_err: is stop-on-error option configurable via debugfs.
696695
* @set_max_power_on_device_init: true if need to set max power in F/W on device init.
697696
* @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.
699698
* @supports_advanced_cpucp_rc: true if new cpucp opcodes are supported.
700699
* @supports_engine_modes: true if changing engines/engine_cores modes is supported.
701700
* @support_dynamic_resereved_fw_size: true if we support dynamic reserved size for fw.
@@ -1959,17 +1958,17 @@ struct hl_ctx_mgr {
19591958
* @dma_mapped: true if the SG was mapped to DMA addresses, false otherwise.
19601959
*/
19611960
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;
19731972
};
19741973

19751974
/**

0 commit comments

Comments
 (0)