mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-03 20:34:58 +08:00
drm/nouveau/bar/nv50: fix bar2 vm size
The BAR2 page table was being made WAY too big - oops. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
97163967ac
commit
f9c0715e39
@ -84,7 +84,7 @@ nv50_bar_oneinit(struct nvkm_bar *base)
|
||||
start = 0x0100000000ULL;
|
||||
limit = start + device->func->resource_size(device, 3);
|
||||
|
||||
ret = nvkm_vm_new(device, start, limit, start, &bar3_lock, &vm);
|
||||
ret = nvkm_vm_new(device, start, limit - start, start, &bar3_lock, &vm);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@ -117,7 +117,7 @@ nv50_bar_oneinit(struct nvkm_bar *base)
|
||||
start = 0x0000000000ULL;
|
||||
limit = start + device->func->resource_size(device, 1);
|
||||
|
||||
ret = nvkm_vm_new(device, start, limit--, start, &bar1_lock, &vm);
|
||||
ret = nvkm_vm_new(device, start, limit-- - start, start, &bar1_lock, &vm);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user