summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/debugfs.c
diff options
context:
space:
mode:
authorOfir Bitton <obitton@habana.ai>2021-02-14 16:35:56 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-04-09 14:09:23 +0300
commitd5eb8373b2cee72a6f1f2157130b56e6a88894dc (patch)
treec4ef9258d7b7ababc2acfed5caef908f3039ee20 /drivers/misc/habanalabs/common/debugfs.c
parentf209e5ad1848828474c46a357441505078cca5c0 (diff)
downloadlinux-d5eb8373b2cee72a6f1f2157130b56e6a88894dc.tar.xz
habanalabs: replace GFP_ATOMIC with GFP_KERNEL
As there are incorrect assumptions in which some of the initialization and data path flows cannot sleep, most allocations are being done using GFP_ATOMIC. We modify the code to use GFP_ATOMIC only when realy needed, as sleepable flow should use GFP_KERNEL. In addition add a fallback to allocate memory using GFP_KERNEL, once ATOMIC allocation fails. Signed-off-by: Ofir Bitton <obitton@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/debugfs.c')
0 files changed, 0 insertions, 0 deletions