From patchwork Sat Mar 2 15:48:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Adri=C3=A1n_Larumbe?= X-Patchwork-Id: 21257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp534040dyc; Sat, 2 Mar 2024 07:49:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/invQ6gQmOsDA7ZMwOu6jxVqp/BBu+O1QizChinjXepm3CRSozdB5pul9Bq72yQSIx/XasMfW0P6+PQfxKARkQW9sNg== X-Google-Smtp-Source: AGHT+IF0ZBuhOZJWmzV2aB4gWrwYE/2P67igipe135hS8loWPa8jpVIK+apeBsQCO8xmOjvs6w0i X-Received: by 2002:ac8:5ac1:0:b0:42e:e02b:c65e with SMTP id d1-20020ac85ac1000000b0042ee02bc65emr1646025qtd.34.1709394590575; Sat, 02 Mar 2024 07:49:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709394590; cv=pass; d=google.com; s=arc-20160816; b=pTXYht7mkOzQ19MPSMDBaSVtGAEeWapF7oGvk74+SZifYBTOCM3pxj8Ff0HWHpebOo 9WP4xpbcjL4hunZZc7301E9N82YoZJ6h02HVflj876LMBFReEjoalsmQ8qPKzkhw60b6 vsf5jMIXS93gnL9UV/mX+3rDop8OpuDGScfBiF5L76LDXA8u3X7F4LNFgt/YPZmEzuJ1 PxOaEdxWbgYkUvKqwOh7ReOGc4BxrNDnmaUquM7nO4eEvHLkwe7Bxl4sMyfLCmLTCpQs p73mOjzrzn3ye6ocPZOIuxt78tAYZ6bOeCedSPL4X9Od6pf+Cl/DnqOtsmEqhxJA3wZP R5Zg== 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=uQpNN5aqg3NC4wWJah5clH6FyW3c5oyMHisVBLpdYrY=; fh=bI8mYZxs9jz9jxpDpcrXa/ST+1S4mEjWvnZWMNzpdY8=; b=jjlwUI3yLq+bNmrt9TM1im3hbn0lFxrZCWCZHe/6zJBkCVhs56Bm3rUa5Yfdpa4cxU bqKbnaQre/0SKfwTHZJu7eOSuydM24SAHJKKbdWFUxtGxqFNRj+WwIQYr7UZn3QxpLgq tdhmzQqCkaJ/nFEveXRhb1bFOnxcf56LFlZPb8h185mOMhJGyvdsLlNtUnuV47GkGgP+ 7mhp/OrezaNzaAm/svwzzfS9zbdDuyXbybzyeHVoZC/+VCPpFrnEgMfWgcsiUp+wa28m Ti7Tr1Z8zCn9lMt2m/uA7B8GUISR/RQALfwsOD5f0+4H8UydFYHOty8NU2Z5GDooCRgT xY9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="kH023/Uv"; 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-89484-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id po25-20020a05620a385900b007873af4a4e7si5666780qkn.764.2024.03.02.07.49.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 07:49:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89484-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="kH023/Uv"; 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-89484-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89484-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5CFBF1C20FD9 for ; Sat, 2 Mar 2024 15:49:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34A5F1F95E; Sat, 2 Mar 2024 15:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="kH023/Uv" 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 E53BF1802E; Sat, 2 Mar 2024 15:49:32 +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=1709394574; cv=none; b=HMaTMn1ChClw/Z8c7R/snRqWjXhHBYNWngTaP6kCfd05MX5IsjTXH0PCberUXXoCyaq3Ynm2PG4/KqIUf86mZc5/K1B2hF2p509CwaNue4BK9sz/odHuMdhUd3xH3P8ob8CU+xLim9kPQDEi4pnLASw4yXy8vWelGlxXWg75H8s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709394574; c=relaxed/simple; bh=HynQocuJOxjcyWAXFyZaIokqOOlqZOfq1ChkQP5+nVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=czle15ES6DwqeS6+NEWRjtc1oJv3DOMrK/R4gVD9hvPieOPuhjL2EhPAzf/6Enlg+I23oLIKPhuA8SZ8mUOFYyXZ7rxqu6pSMLkXyl1rSaiCYfOU6uSNmZfZc/V607z+/sM8/wSxpbRoDAJh6jORJDo7vcnwIy4MteLE41Lp2c4= 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=kH023/Uv; 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=1709394570; bh=HynQocuJOxjcyWAXFyZaIokqOOlqZOfq1ChkQP5+nVw=; h=From:To:Cc:Subject:Date:From; b=kH023/UvRJljNhpLdKB/Nn8WM/o540hNs2gVrI9jRtYaqRvJsMvrzXWRTc8Y5gceE Q/tTR3gK2LW9EbzxDQMtpxi2MfDk/mm1d+lkkbKFtj4mVUmhYDLGboojXXPk7ekw89 VZbs8AFM6DQO8xU503UXz6+Yeuj2Acw+yZ/lZpryw1nQpWqRDB8xGY+ELa8XvyTifA lXQRLHz/4Qc/cXSs9pNHf28cO5CZqQYT/5LmBazHGkuNxP6nRarASFWMOdikBS7OkU eDU+3qB/qYLvXOkDW6LK1fxHu2DiX1ueAchyvpq0AEp19pB6c8qsBnQjN4L9LK7+/M 2G1gATNL95o+w== 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 18DA637813CA; Sat, 2 Mar 2024 15:49:30 +0000 (UTC) From: =?utf-8?q?Adri=C3=A1n_Larumbe?= To: Boris Brezillon , Rob Herring , Steven Price , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet Cc: =?utf-8?q?Adri=C3=A1n_Larumbe?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: [PATCH v2 0/1] drm/panfrost: Replace fdinfo's profiling debugfs knob Date: Sat, 2 Mar 2024 15:48:40 +0000 Message-ID: <20240302154845.3223223-2-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792430141933723260 X-GMAIL-MSGID: 1792430141933723260 This is v2 of the patch already discussed in [1] Changelog: - Turned the profile mode atomic variable into a boolean - Rewrote the sysfs file's uAPI documentation to make it more generic - Improved the casting of the profiling variable inside the Panfrost device structure [1]https://lore.kernel.org/dri-devel/20240221161237.2478193-1-adrian.larumbe@collabora.com/ Adrián Larumbe (1): drm/panfrost: Replace fdinfo's profiling debugfs knob with sysfs .../testing/sysfs-driver-panfrost-profiling | 10 +++ Documentation/gpu/panfrost.rst | 9 +++ drivers/gpu/drm/panfrost/Makefile | 5 +- drivers/gpu/drm/panfrost/panfrost_debugfs.c | 21 ------ drivers/gpu/drm/panfrost/panfrost_debugfs.h | 14 ---- drivers/gpu/drm/panfrost/panfrost_device.h | 5 +- drivers/gpu/drm/panfrost/panfrost_drv.c | 14 ++-- drivers/gpu/drm/panfrost/panfrost_job.c | 2 +- drivers/gpu/drm/panfrost/panfrost_sysfs.c | 70 +++++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_sysfs.h | 15 ++++ 10 files changed, 120 insertions(+), 45 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-driver-panfrost-profiling delete mode 100644 drivers/gpu/drm/panfrost/panfrost_debugfs.c delete mode 100644 drivers/gpu/drm/panfrost/panfrost_debugfs.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_sysfs.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_sysfs.h base-commit: 216c1282dde38ca87ebdf1ccacee5a0682901574