diff options
author | Ofir Bitton <obitton@habana.ai> | 2021-02-14 16:35:56 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-04-09 14:09:23 +0300 |
commit | d5eb8373b2cee72a6f1f2157130b56e6a88894dc (patch) | |
tree | c4ef9258d7b7ababc2acfed5caef908f3039ee20 /drivers/misc/habanalabs/Makefile | |
parent | f209e5ad1848828474c46a357441505078cca5c0 (diff) | |
download | linux-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/Makefile')
0 files changed, 0 insertions, 0 deletions