Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp523671rdh; Wed, 14 Feb 2024 04:15:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQYRSuV1sCpOTb/UUGptuptvzPQaj35pU0WDEMD7rBCBRl226R3JnWD+Ko1rG2n8UQS5bd3Ntew8yna+LvdN7OlHDyN9CpbzACKMf0jg== X-Google-Smtp-Source: AGHT+IG9R8dOcl6z6g3aInbvor57ffOiJlcQinL0nKR+VXsLkNkTm7UbvByUmC5SKWotuwpZeSTo X-Received: by 2002:aa7:d590:0:b0:55f:d9d1:6de1 with SMTP id r16-20020aa7d590000000b0055fd9d16de1mr1806391edq.16.1707912911239; Wed, 14 Feb 2024 04:15:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707912911; cv=pass; d=google.com; s=arc-20160816; b=DhW/gWlLw225rXTEjt7varDScVsf5Pah2zQr/FveoARBgPynPqoqY2CCIcKfBd5sxC rfu58r0Qx4mgY6DvJWtd9btXIUHfScBIFIwJoNqYbVJfr2lboIWxJdYZdvbzYu5nAFFw lZ7zxwPTQzUodyax6heyY4gzIOwvyp4h97ayjTrDTBQKy+18Us7GOukHryWq72/Hp2cO mSiv461JoV8JzkujbSKfAvdAgS7FXgdi2XYQ2EqS6EoTZ6CMNx1ouVgLZ6sTEyJfWqzt ettfK4wvHkwZMP1sPzbAht/2Z5jaeVRmINUSzssSORk46daH2s24ledHhvFawf3etr87 /fNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=/FoxHrq1ikkMtPwYYCHy+FaPWoJktwUcPkjHPo07Nm4=; fh=O9FuAlvZst5gwdK5llb/uLk2lwuvGZfmFpDOqarITMg=; b=bL4PwKX48JDAKX3agl7MKSIsnHTSDmWbzVmF6n0ZUGKJNvwiqIDFm+njcI2DhI86x5 W+a6mJRuIrur3Lf1sa84aCEtiEDVkfBwATRF9WfBGZhv1uyj8lMUWx1qUPkfTzc8XAjf +wCZIfVQWzkDeqCJQFLWJjNwBX+z1qXvhQ7UVfhn/d+Ico/KMg7cTE1/h0QXF3pvd9d6 HpD+K7ig28RqxT4bDIhvaoH0n6prwtMlevMZ0EY6BNGc9tVIEOxjyhJMg9IRkUbHhtRk HhtcVmlXQpfRWYpiKID4on9Itgrythi6PZj6USzBxMxMnN1BaUq+HvwemwZ8fI586WUP YPGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lktErl8e; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-65179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCVvFBocX4tMIt1EbKDACyGpSANU+ooLi+hktzXn+qo6r1fkzAc3aPCHJDERKfU9By9cUbrRWo4Jfuws4hcdDyzzVP75vfTWOnNcBIDRqQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a60-20020a509ec2000000b00562120695c9si1086930edf.343.2024.02.14.04.15.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:15:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=lktErl8e; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-65179-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C62791F2683F for ; Wed, 14 Feb 2024 12:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDC3C1B952; Wed, 14 Feb 2024 12:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="lktErl8e" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FEB61B5AA for ; Wed, 14 Feb 2024 12:15:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707912903; cv=none; b=h2G+eZkMMkKKLr3UYi8tFtEGaN6kDXt/T9/mTsbkpHJcQ18b1VNYmMpf25U37AYxyzEPtkNA5kPAezXZk8wz4z5cRhLqm3NDgQNHOjyDWlnPkspkKHMLxhlBlKplAAMuzzGH7fIXLmgJvFfQJsod8kj6vUf8PP7CSV7NLhgmVe4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707912903; c=relaxed/simple; bh=tfISkpmpp4nJRcfb3dG1pEk85K2saMry/h9bbcDcZVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=udRaSlJvdZFlOdV3/y8P/8d05YZhOQxgFlH6CC1JMN8a6NiKUfsqVC4qF+Ea5rgVCJ2/xSceW3z6F26hxSiiLnMHLFbN+It3cWNrBicYVhxCYNXkfSDd33/fPTyVtw7WNFqd08hS0sapUvwmNOvBQsp7DJllo+RWp/jWUAnJWEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=lktErl8e; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707912899; bh=tfISkpmpp4nJRcfb3dG1pEk85K2saMry/h9bbcDcZVc=; h=From:To:Cc:Subject:Date:From; b=lktErl8emXZHiqOYad3nGkmzkVwF/jIOq8I9KToY++xNzSATm6o9jnxce9vzGrvej WQzLzChYKMePwRsZrRIHemSHL2Z8gZAHy1lNJWuCscuy07vlIHbMFhlRU5XuSZKpYU mjdIra5TFyd8KJkzRRPQ/tlP8KgOY3LiV/woOuGwEsMAfCdC4zMiig72xWF1N/yhXE tklI/2hOpOhJIwjZvF4BlYHBygXGf095uI+sgKILDMIYxzeIJZIS2gEp1KMwCJjrYH zWq4/TcxHKec+AufIpi4YSxvnT7iWzVs03C4IeYS1Hm4RZYYiqgDhKwXBx8upF/Dn5 4JWE1v1EkPDGg== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alarumbe) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1577A378045F; Wed, 14 Feb 2024 12:14:59 +0000 (UTC) From: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= To: Boris Brezillon , Rob Herring , Steven Price , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter Cc: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 0/1] Always record job cycle and timestamp information Date: Wed, 14 Feb 2024 12:14:26 +0000 Message-ID: <20240214121435.3813983-1-adrian.larumbe@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A driver user expressed interest in being able to access engine usage stats through fdinfo when debugfs is not built into their kernel. In the current implementation, this wasn't possible, because it was assumed even for inflight jobs enabling the cycle counter and timestamp registers would incur in additional power consumption, so both were kept disabled until toggled through debugfs. A second read of the TRM made me think otherwise, but this is something that would be best clarified by someone from ARM's side. Adrián Larumbe (1): drm/panfrost: Always record job cycle and timestamp information drivers/gpu/drm/panfrost/Makefile | 2 -- drivers/gpu/drm/panfrost/panfrost_debugfs.c | 21 ------------------ drivers/gpu/drm/panfrost/panfrost_debugfs.h | 14 ------------ drivers/gpu/drm/panfrost/panfrost_device.h | 1 - drivers/gpu/drm/panfrost/panfrost_drv.c | 5 ----- drivers/gpu/drm/panfrost/panfrost_job.c | 24 ++++++++------------- drivers/gpu/drm/panfrost/panfrost_job.h | 1 - 7 files changed, 9 insertions(+), 59 deletions(-) delete mode 100644 drivers/gpu/drm/panfrost/panfrost_debugfs.c delete mode 100644 drivers/gpu/drm/panfrost/panfrost_debugfs.h base-commit: 6b1f93ea345947c94bf3a7a6e668a2acfd310918 -- 2.43.0