]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nve0/fifo: allocate usermem as needed
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 10 Feb 2014 05:57:01 +0000 (14:57 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 26 Mar 2014 03:59:32 +0000 (13:59 +1000)
commitc8c05db591ec930925e33c0f12da8be23953bd1a
treecde795f08dec217f6adf8cd06939ebbd6b5ecfa4
parent9a2c6de81217b8628d6bec811eb7919634afc39a
drm/nve0/fifo: allocate usermem as needed

Memory was always allocated for 4096 channels. Change this to allocate
what we actually need according to the number of channels we use.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c