Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp799512lqs; Tue, 5 Mar 2024 18:00:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVknAMb5qOV7cjvQbgOP5Yvj3b8mPem7NRbygz2Ve2Sz8AYv/Qr4B8QvDFhd0hzXjVbVuRSO4o4yR8or28aA4ZIGxKrLfB/XA6B8GHBGw== X-Google-Smtp-Source: AGHT+IF/QwaUyEtAcLv33Rh+GBa4hMjd5r09Edqf81hmW5FrrUToQiX6N5iNO1q8nC16Gr0IUfCZ X-Received: by 2002:a17:902:cecc:b0:1dc:1ca9:daf4 with SMTP id d12-20020a170902cecc00b001dc1ca9daf4mr4638133plg.12.1709690433688; Tue, 05 Mar 2024 18:00:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709690433; cv=pass; d=google.com; s=arc-20160816; b=Ohm3wfIxL9tq6gEMWlbEeXj8akmB2l5Oh9tVTYZitHsn2D6MmM2uz1l/SeFerqCiFE bbMmsjndHo84Lxd8R6kvEr211bZ3YA3VypVQWu+A9EcOtJ8Did/VIdT9rTve281dl7Ht 23poYih8qAS1yyLT4ruBex8trIYtw7qEr7x45z82UEeLqGMFMg3MOlwl+Lunr8SWsHNh 16FEcocNyVYfYl3YYxPtVjJv/drZmS96UU5J73PiaPksh3fPFjM9tnTOh0hmbWup5zHd B0o5MRapo9SnQNf4nsJ9gT5Xw8jkxCL3zuPn3tQJmFSE5v7+HUuCNfm8mM0j58tUdBOM rEbg== 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=zTC6o2P6poyFG76JLO/Bh/8oO2HvsVheY/qVdfmdkB8=; fh=hkv4vSTYoFa19iufcLnpRyt41EB+3yBN+Xn+s8bWTVM=; b=iRyw+jBU7et9uEFZk39PFoqKc1Hfy2AhEi/H9PWdpxBNuzXidukmo7gDl72/+fft33 lVMhIH+/T96r96xXej9cByqlWJWgvY0iHKNmk7OHcvUfSubigXMTV8kg1zTrH/4rNSaJ AJ43fcg0ZELcUqOWWqZ1ovGV232/rmEqF103TlLQTQPSjGc2pAS5HFVUEd8zFNk3lJ3k I59obTUzWH2yfz/3kzduCmLidF5PxobyfLLspS6zVEO0sCJwxyh80yaCstYsUOQESKdT FSad3bRPkO7n/wYx6xoL/XWG4srBD3ftvZYOk0GRDLAzst/re2BJdXBAR1Oz3sSM5mok y21w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xWcUMi01; 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-93218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ll4-20020a170903090400b001dd07988246si5322981plb.128.2024.03.05.18.00.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 18:00:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xWcUMi01; 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-93218-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93218-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3C815289B15 for ; Wed, 6 Mar 2024 02:00:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02CC2D51D; Wed, 6 Mar 2024 01:58:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="xWcUMi01" 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 8D38379E4; Wed, 6 Mar 2024 01:58:28 +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=1709690310; cv=none; b=c7d7ifOZewCwT7hA3aFFwvTOGkd+NzReUhAORDZ8HqNwadqSmf9tNiQVjTAgI6haSsTOgPizDq8RLr9Lo2NtCPDmAJfr+/JedwEkDRJV8Tdru8GZ1Gg54Q5/1D+tqFOdJHZJq3V3DaLolAqyA4KsvfEyocu/CaCur5EA5qUKzrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709690310; c=relaxed/simple; bh=NDJHWMFByDMvSMmiIQpuUnrq3/RJFevyjBzAN9KgNjc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cLD9+abJN/0thQ7olz+/RpcHmSYugtz7BL87fPQVb4shizLWp9yLHK0jh4deQhNRctXsyb2A1cs8RAJtHIIOcPswYzeVg7Bz0DRwm9fI/IO3AxhDATQwclOvzZeOAykOdeZZ0COlutShCcESfy6bRLO564/huycE1pN18r5UPcM= 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=xWcUMi01; 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=1709690306; bh=NDJHWMFByDMvSMmiIQpuUnrq3/RJFevyjBzAN9KgNjc=; h=From:To:Cc:Subject:Date:From; b=xWcUMi01dIt7Gnw8Ju2UlKoh3JVJ82I8z55YVnaiYg92ZprRNQIeVQmUz77VlU03c qv3y3B3q6hj9x+IoXGWnXMHfQExM5C8IlRxPKxOdVzP4LRtcqn+TpAez88hXamTEKj 0rnj3llG0amZ+nBpS6fM7/goOCJFQOhsRrM4d8I/d4wdqBWpytgpOYThImqB8N+Iwf xfTTX2h3Txfd2J11i1yvoag3ia9iAivAxZGo7i4cIl35XDZPKqTrumtp5/AJdsdXIZ cyY6jI9OZTmceQutPhlHWMeAyR9f/Gm2wxeGDTxW846Fyri0p/cTRb2/YQfZkfEo/p SadjSk9IE1jgw== 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 CE8A63780B5F; Wed, 6 Mar 2024 01:58:25 +0000 (UTC) From: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= To: boris.brezillon@collabora.com, robh@kernel.org, steven.price@arm.com, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, corbet@lwn.net Cc: kernel@collabora.com, adrian.larumbe@collabora.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: [PATCH v3 0/1] drm/panfrost: Replace fdinfo's profiling debugfs knob Date: Wed, 6 Mar 2024 01:56:35 +0000 Message-ID: <20240306015819.822128-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 This is v3 of the patch already discussed in [2] and [1] Changelog: v3: - Replaced manual kobj initialisation with a device attribute - Handle user input with kstrtobool instead of treating it as an uint v2: - 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 [2]https://lore.kernel.org/dri-devel/20240302154845.3223223-2-adrian.larumbe@collabora.com/ [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 | 2 - drivers/gpu/drm/panfrost/panfrost_debugfs.c | 21 ---------- drivers/gpu/drm/panfrost/panfrost_debugfs.h | 14 ------- drivers/gpu/drm/panfrost/panfrost_device.h | 2 +- drivers/gpu/drm/panfrost/panfrost_drv.c | 41 ++++++++++++++++--- drivers/gpu/drm/panfrost/panfrost_job.c | 2 +- 8 files changed, 57 insertions(+), 44 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 base-commit: e635b7eb7062b464bbd9795308b1a80eac0b01f5 -- 2.43.0