Re: [PATCH] drm/amdkfd: fix clock counter retrieval for node without GPU

2018-04-24 Thread Oded Gabbay
On Wed, Apr 11, 2018 at 12:32 AM, Felix Kuehling wrote: > From: Andres Rodriguez > > 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

[PATCH] drm/amdkfd: fix clock counter retrieval for node without GPU

2018-04-10 Thread Felix Kuehling
From: Andres Rodriguez 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