mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/nv50: fix alignment of per-channel fifo cache
GPU pointer to the structure is shifted right by 10 bits, so we need to align to 1024 bytes, not 256. Reported-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
7166647501
commit
134f248bea
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ nv50_fifo_create_context(struct nouveau_channel *chan)
|
||||||
return ret;
|
return ret;
|
||||||
ramfc = chan->ramfc->gpuobj;
|
ramfc = chan->ramfc->gpuobj;
|
||||||
|
|
||||||
ret = nouveau_gpuobj_new_ref(dev, chan, NULL, 0, 4096, 256,
|
ret = nouveau_gpuobj_new_ref(dev, chan, NULL, 0, 4096, 1024,
|
||||||
0, &chan->cache);
|
0, &chan->cache);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue