summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/pci.c
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2017-11-02 15:28:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-03 14:55:30 -0400
commit9f5f029ae291ebbfef9f1e08b39875fa47c44982 (patch)
tree24220a5d15cd838131fd477d077d76eb96baef2c /drivers/gpu/nvgpu/common/linux/pci.c
parentfe1e09d473044f7caaf8b834a094f4784bc5f5e1 (diff)
gpu: nvgpu: Return error code properly from nvgpu_vm_map_linux
The function nvgpu_vm_map_linux() used to return GPU VA on successful map or 0 when things didn't go smoothly. However, this scheme does not propagate the actual map error back to the userspace. So, modify the function a bit: return error and return the GPU VA via pointer on success. Bug 1705731 Change-Id: I2174b5fbaf64dcb00f9567dab1c583d6ddfa5d78 Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1590961 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/pci.c')
0 files changed, 0 insertions, 0 deletions