Pass correct offset to xgi_find_pcie_virt.
The wrong offset was being passed to xgi_find_pcie_virt. This would cause an oops in addFlush2D.main
parent
8e64d2ae86
commit
75a68635a8
|
@ -47,7 +47,7 @@ int xgi_cmdlist_initialize(struct xgi_info * info, size_t size)
|
|||
return err;
|
||||
}
|
||||
|
||||
info->cmdring.ptr = xgi_find_pcie_virt(info, mem_alloc.offset);
|
||||
info->cmdring.ptr = xgi_find_pcie_virt(info, mem_alloc.hw_offset);
|
||||
info->cmdring.size = mem_alloc.size;
|
||||
info->cmdring.ring_hw_base = mem_alloc.hw_addr;
|
||||
info->cmdring.ring_gart_base = mem_alloc.offset;
|
||||
|
|
Loading…
Reference in New Issue