diff options
| author | Andres Rodriguez <[email protected]> | 2018-04-10 21:32:33 +0000 |
|---|---|---|
| committer | Oded Gabbay <[email protected]> | 2018-04-24 09:34:44 +0000 |
| commit | 1cf6cc74bbeb85bb87c3ca3f3df97a283c3aa737 (patch) | |
| tree | 35bc2fe2f2bc298e0e63833e88695a4ab266ce69 /lib/test_bitmap.c | |
| parent | drm/amdkfd: Fix the error return code in kfd_ioctl_unmap_memory_from_gpu() (diff) | |
| download | kernel-1cf6cc74bbeb85bb87c3ca3f3df97a283c3aa737.tar.gz kernel-1cf6cc74bbeb85bb87c3ca3f3df97a283c3aa737.zip | |
drm/amdkfd: fix clock counter retrieval for node without GPU
Currently if a user requests clock counters for a node without a GPU
resource we will always return EINVAL.
Instead if no GPU resource is attached, fill the gpu_clock_counter
argument with zeroes so that we may proceed and return valid CPU
counters.
Signed-off-by: Andres Rodriguez <[email protected]>
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
