Files
linux-nvgpu/drivers/gpu/nvgpu/os/linux
Alex Waterman 3282d0c50a gpu: nvgpu: Use stack buffer for DMA flags string
Instead of using kmalloc() to get a buffer for storing the
computed flags string during DMA debugging use a stack
buffer. This removes the need for a kmalloc() call. The
problem with kmalloc() is that if a dma_alloc() fails due
to being out of memory the kmalloc may likely fail, too!

Also simplify the logic now that there's no need to do
any error checking for a kmalloc() call.

Change-Id: I45c1fd16658212188a1206a2edf17b28f3c06c9e
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1976440
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2019-02-01 11:59:00 -08:00
..
2018-12-28 16:16:05 -08:00
2018-06-27 07:30:06 -07:00
2019-02-01 09:45:57 -08:00
2019-02-01 09:45:57 -08:00
2018-11-08 21:42:38 -08:00
2018-07-05 21:48:44 -07:00
2019-02-01 09:45:57 -08:00
2018-11-25 23:54:10 -08:00
2019-01-28 00:05:46 -08:00
2019-02-01 09:45:57 -08:00
2019-02-01 09:45:57 -08:00
2018-12-13 04:56:14 -08:00
2019-01-28 00:05:46 -08:00
2018-10-24 23:16:20 -07:00
2018-12-28 16:16:05 -08:00