OSDN Git Service

udmabuf: configurable list_limit and size_limit_mb
authorDongwon Kim <dongwon.kim@intel.com>
Fri, 11 Jun 2021 21:21:07 +0000 (14:21 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 23 Jun 2021 10:11:59 +0000 (12:11 +0200)
commit2e717a55982affbf424b1ac2bf751201e3f4b19e
tree3bf28f9b3222d0d4bf02e21deb2c6664ab71aec5
parent89bcadc8f94bd6e6361b5c803ec6f40132e8bace
udmabuf: configurable list_limit and size_limit_mb

Default list_limit and size_limit_mb are not big enough to cover all
possible use cases. For example, list_limit could be well over its default,
1024 if only one or several pages are chained in all individual list entries
when creating dmabuf backed by >4MB buffer. list_limit and size_limit_mb are
now defined as module parameters so that those can be optionally configured
by root with proper values to remove these constraints.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210611212107.9876-1-dongwon.kim@intel.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/dma-buf/udmabuf.c