Commit 25ebbc57 authored by farah kassabri's avatar farah kassabri Committed by Oded Gabbay

accel/habanalabs: fix few misspelled words in the code

Run spell checker on the code and fix accordingly.
Signed-off-by: default avatarfarah kassabri <fkassabri@habana.ai>
Reviewed-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 75276e23
...@@ -657,7 +657,7 @@ static inline void cs_release_sob_reset_handler(struct hl_device *hdev, ...@@ -657,7 +657,7 @@ static inline void cs_release_sob_reset_handler(struct hl_device *hdev,
/* /*
* we get refcount upon reservation of signals or signal/wait cs for the * we get refcount upon reservation of signals or signal/wait cs for the
* hw_sob object, and need to put it when the first staged cs * hw_sob object, and need to put it when the first staged cs
* (which cotains the encaps signals) or cs signal/wait is completed. * (which contains the encaps signals) or cs signal/wait is completed.
*/ */
if ((hl_cs_cmpl->type == CS_TYPE_SIGNAL) || if ((hl_cs_cmpl->type == CS_TYPE_SIGNAL) ||
(hl_cs_cmpl->type == CS_TYPE_WAIT) || (hl_cs_cmpl->type == CS_TYPE_WAIT) ||
......
...@@ -2976,8 +2976,8 @@ struct cs_timeout_info { ...@@ -2976,8 +2976,8 @@ struct cs_timeout_info {
* @cq_addr: the address of the current handled command buffer * @cq_addr: the address of the current handled command buffer
* @cq_size: the size of the current handled command buffer * @cq_size: the size of the current handled command buffer
* @cb_addr_streams_len: num of streams - actual len of cb_addr_streams array. * @cb_addr_streams_len: num of streams - actual len of cb_addr_streams array.
* should be equal to 1 incase of undefined opcode * should be equal to 1 in case of undefined opcode
* in Upper-CP (specific stream) and equal to 4 incase * in Upper-CP (specific stream) and equal to 4 in case
* of undefined opcode in Lower-CP. * of undefined opcode in Lower-CP.
* @engine_id: engine-id that the error occurred on * @engine_id: engine-id that the error occurred on
* @stream_id: the stream id the error occurred on. In case the stream equals to * @stream_id: the stream id the error occurred on. In case the stream equals to
......
...@@ -2230,11 +2230,11 @@ static struct hl_mmap_mem_buf_behavior hl_ts_behavior = { ...@@ -2230,11 +2230,11 @@ static struct hl_mmap_mem_buf_behavior hl_ts_behavior = {
* allocate_timestamps_buffers() - allocate timestamps buffers * allocate_timestamps_buffers() - allocate timestamps buffers
* This function will allocate ts buffer that will later on be mapped to the user * This function will allocate ts buffer that will later on be mapped to the user
* in order to be able to read the timestamp. * in order to be able to read the timestamp.
* in additon it'll allocate an extra buffer for registration management. * in addition it'll allocate an extra buffer for registration management.
* since we cannot fail during registration for out-of-memory situation, so * since we cannot fail during registration for out-of-memory situation, so
* we'll prepare a pool which will be used as user interrupt nodes and instead * we'll prepare a pool which will be used as user interrupt nodes and instead
* of dynamically allocating nodes while registration we'll pick the node from * of dynamically allocating nodes while registration we'll pick the node from
* this pool. in addtion it'll add node to the mapping hash which will be used * this pool. in addition it'll add node to the mapping hash which will be used
* to map user ts buffer to the internal kernel ts buffer. * to map user ts buffer to the internal kernel ts buffer.
* @hpriv: pointer to the private data of the fd * @hpriv: pointer to the private data of the fd
* @args: ioctl input * @args: ioctl input
......
...@@ -275,7 +275,7 @@ int hl_mem_mgr_mmap(struct hl_mem_mgr *mmg, struct vm_area_struct *vma, ...@@ -275,7 +275,7 @@ int hl_mem_mgr_mmap(struct hl_mem_mgr *mmg, struct vm_area_struct *vma,
if (atomic_cmpxchg(&buf->mmap, 0, 1)) { if (atomic_cmpxchg(&buf->mmap, 0, 1)) {
dev_err(mmg->dev, dev_err(mmg->dev,
"%s, Memory mmap failed, already mmaped to user\n", "%s, Memory mmap failed, already maped to user\n",
buf->behavior->topic); buf->behavior->topic);
rc = -EINVAL; rc = -EINVAL;
goto put_mem; goto put_mem;
......
...@@ -540,8 +540,8 @@ static void hl_mmu_pa_page_with_offset(struct hl_ctx *ctx, u64 virt_addr, ...@@ -540,8 +540,8 @@ static void hl_mmu_pa_page_with_offset(struct hl_ctx *ctx, u64 virt_addr,
u32 page_off; u32 page_off;
/* /*
* Bit arithmetics cannot be used for non power of two page * Bit arithmetic cannot be used for non power of two page
* sizes. In addition, since bit arithmetics is not used, * sizes. In addition, since bit arithmetic is not used,
* we cannot ignore dram base. All that shall be considered. * we cannot ignore dram base. All that shall be considered.
*/ */
...@@ -757,7 +757,7 @@ u64 hl_mmu_get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte) ...@@ -757,7 +757,7 @@ u64 hl_mmu_get_next_hop_addr(struct hl_ctx *ctx, u64 curr_pte)
* @mmu_prop: MMU properties. * @mmu_prop: MMU properties.
* @hop_idx: HOP index. * @hop_idx: HOP index.
* @hop_addr: HOP address. * @hop_addr: HOP address.
* @virt_addr: virtual address fro the translation. * @virt_addr: virtual address for the translation.
* *
* @return the matching PTE value on success, otherwise U64_MAX. * @return the matching PTE value on success, otherwise U64_MAX.
*/ */
......
...@@ -2657,7 +2657,7 @@ int gaudi2_coresight_init(struct hl_device *hdev) ...@@ -2657,7 +2657,7 @@ int gaudi2_coresight_init(struct hl_device *hdev)
/* /*
* Mask out all the disabled binned offsets. * Mask out all the disabled binned offsets.
* so when user request to configure a binned or masked out component, * so when user request to configure a binned or masked out component,
* driver will ignore programing it ( happens when offset value is set to 0x0 ) * driver will ignore programming it ( happens when offset value is set to 0x0 )
* this is being set in gaudi2_coresight_set_disabled_components * this is being set in gaudi2_coresight_set_disabled_components
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment