mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 17:11:33 +00:00
habanalabs/gaudi2: added memset for the cq_size register
The clang-analyzer reported a warning: "Value stored to 'cq_size_addr' is never read". The cq_size register of dcore0 is not being zeroed using gaudi2_memset_device_lbw(), along with the other cq_* registers, even though the corresponding cq_size_addr variable is set. Signed-off-by: Marco Pagani <marpagan@redhat.com> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
5908560a7f
commit
6825b5f81f
@ -9386,6 +9386,7 @@ static void gaudi2_restore_user_sm_registers(struct hl_device *hdev)
|
||||
gaudi2_memset_device_lbw(hdev, cq_lbw_data_addr, size, 0);
|
||||
gaudi2_memset_device_lbw(hdev, cq_base_l_addr, size, 0);
|
||||
gaudi2_memset_device_lbw(hdev, cq_base_h_addr, size, 0);
|
||||
gaudi2_memset_device_lbw(hdev, cq_size_addr, size, 0);
|
||||
|
||||
cq_lbw_l_addr = mmDCORE0_SYNC_MNGR_GLBL_LBW_ADDR_L_0 + DCORE_OFFSET;
|
||||
cq_lbw_h_addr = mmDCORE0_SYNC_MNGR_GLBL_LBW_ADDR_H_0 + DCORE_OFFSET;
|
||||
|
Loading…
Reference in New Issue
Block a user