[PATCH 3/3] drm/amd/amdkfd: Surface files in Sysfs to allow users to get number of compute units that are in use.

philip yang yangp at amd.com
Sat Sep 19 01:06:20 UTC 2020


On 2020-09-17 1:11 p.m., Ramesh Errabolu wrote:
> +	if (pdd->qpd.queue_count == 0) {
> +		pr_info("%s: Gpu-Id: %d has no active queues for process %d\n",
> +			__func__, dev->id, proc->pasid);

pr_debug can be dynamically enabled in dmesg if needed, pr_info will 
always show in dmesg.

pr_debug("Gpu-Id: %d has no active queues for process %d\n",

		dev->id, proc->pasid);

Philip

> +		return snprintf(buffer, PAGE_SIZE, "%d\n", cu_cnt);


More information about the amd-gfx mailing list