mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
habanalabs: fix integer handling issue
Need to add ull suffix to constant when doing shift of constant into 64-bit variables Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
369aea8459
commit
6c1e3f92f9
@ -507,7 +507,7 @@ static void hl_mmu_pa_page_with_offset(struct hl_ctx *ctx, u64 virt_addr,
|
||||
p = (char *)p + hop0_shift_off;
|
||||
p = (char *)p + ((hops->used_hops - 1) * sizeof(u64));
|
||||
hop_shift = *(u64 *)p;
|
||||
offset_mask = (1 << hop_shift) - 1;
|
||||
offset_mask = (1ull << hop_shift) - 1;
|
||||
addr_mask = ~(offset_mask);
|
||||
*phys_addr = (tmp_phys_addr & addr_mask) |
|
||||
(virt_addr & offset_mask);
|
||||
|
Loading…
Reference in New Issue
Block a user