Re: [PATCH 1/2] drm/amdgpu: Convert to common fdinfo format v3

2022-05-13 Thread Christian König
Am 13.05.22 um 10:18 schrieb Sharma, Shashank: Hey Christian, On 5/11/2022 2:02 PM, Christian König wrote: [SNIP] @@ -162,17 +162,49 @@ static unsigned int amdgpu_ctx_get_hw_prio(struct amdgpu_ctx *ctx, u32 hw_ip)   return hw_prio;   }   +/* Calculate the time spend on the hw */ +static k

Re: [PATCH 1/2] drm/amdgpu: Convert to common fdinfo format v3

2022-05-13 Thread Sharma, Shashank
Hey Christian, On 5/11/2022 2:02 PM, Christian König wrote: Convert fdinfo format to one documented in drm-usage-stats.rst. It turned out that the existing implementation was actually completely nonsense. The calculated percentages indeed represented the usage of the engine, but with varying ti

[PATCH 1/2] drm/amdgpu: Convert to common fdinfo format v3

2022-05-11 Thread Christian König
Convert fdinfo format to one documented in drm-usage-stats.rst. It turned out that the existing implementation was actually completely nonsense. The calculated percentages indeed represented the usage of the engine, but with varying time slices. So 10% usage for application A could mean something