From nobody Mon Feb 9 08:28:27 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (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 2A1201FA829 for ; Wed, 18 Dec 2024 18:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734545962; cv=pass; b=Bd79qfbwb8j7kyWP9REG+zHY0tHlVvigJ8e85nNzit/+/tAj0QoLC39wCQA0XFYFq2M/E9crzzHq3Cj1L217VDTHAbdqkQ3rHeT0RqfwDGSExzZvwnWRmvBbp7Jn0E2p7cn8UQjLcVb/uumowD6mi9Po5zLyeYEyg5notzw6ixk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734545962; c=relaxed/simple; bh=KoOWrGbRh5IinD708WP3BPPXwG6ibTqotFoJrFumCwM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=n/XkyhOPM1s/52ad3JiIMdq9lWQnZ7t2MEMt82h3iJXhaRYdIYrMF1Xn1ZIS2N74AvcUnyTjnqwlIdrGOh5y1ZnWFjraBIVKto+IWUO65vIYXDrzVJi7/OfhSl6U567o8m0yC77gndVHYF9j/3Dk4oQoy2Eh+Ylv67SjY+hunvE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=adrian.larumbe@collabora.com header.b=HiFJFjWj; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=adrian.larumbe@collabora.com header.b="HiFJFjWj" ARC-Seal: i=1; a=rsa-sha256; t=1734545950; cv=none; d=zohomail.com; s=zohoarc; b=kPTjHflZU9AtAGwqy7w2e/P7WX+uwViRu/FUIgRK4BuixA2BaU0qLt4KG1JitbwPsqq5KMuXn7lE6EbyvaBJ22TNaFw0FtW6sxAOUJHwxYlzCIN09oJ/wynO0PRhFV3slwhcBLA5kRj7fsLQ3NDgcnN4lCDSO5/r1H2I3pu38KY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1734545950; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=B7xPVJeNZtoUBRQXmKc9FBZ8Cl1FYcG/fjzjdtCG+zE=; b=U4Uoj6b25Lu4vx4O8UlWbxrf/fzI6Q9dO7acH6Fw0pHU8TA8Mdx3kngvxgM/SvuCafwCbb2uk8t4kdJwfYe9FzTnBBVAXZmB/u25U7By4WEcfD0sZPv0rnOwmbA3B5au30Jgfw4MQXgbAhfHklwV0cbCtv3uaVycXXT0rDkGNaY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=adrian.larumbe@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1734545950; s=zohomail; d=collabora.com; i=adrian.larumbe@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=B7xPVJeNZtoUBRQXmKc9FBZ8Cl1FYcG/fjzjdtCG+zE=; b=HiFJFjWjX2Qo2guP8+FUA0Etay5i5jXMnDIW814GC1Jnsk9hBxRF1DTwM6NtXUwW CE1xW74h9J8/vV2ljYLs1UwriovZS9T48p9mdcitao2qcBQrLPtcYtsCB5eNZOAFqUx EkX93rXJclArgeVRNRxe7JcoP/1pMRJjO6eZW78I= Received: by mx.zohomail.com with SMTPS id 1734545948823465.14538815970343; Wed, 18 Dec 2024 10:19:08 -0800 (PST) From: =?UTF-8?q?Adri=C3=A1n=20Mart=C3=ADnez=20Larumbe?= To: Boris Brezillon , Steven Price , Liviu Dudau , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Cc:kernel@collabora.com, =?UTF-8?q?Adri=C3=A1n=20Larumbe?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Mihail Atanassov Subject: [PATCH v5 2/2] Documentation/gpu: Add fdinfo meanings of drm-*-internal memory tags Date: Thu, 19 Dec 2024 02:18:42 +0800 Message-ID: <20241218181844.886043-3-adrian.larumbe@collabora.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241218181844.886043-1-adrian.larumbe@collabora.com> References: <20241218181844.886043-1-adrian.larumbe@collabora.com> 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: quoted-printable From: Adri=C3=A1n Larumbe A previous commit enabled display of driver-internal kernel BO sizes through the device file's fdinfo interface. Expand the description of the relevant driver-specific key:value pairs with the definitions of the new drm-*-internal ones. Signed-off-by: Adri=C3=A1n Larumbe Reviewed-by: Mihail Atanassov Reviewed-by: Liviu Dudau Reviewed-by: Steven Price --- Documentation/gpu/panthor.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/gpu/panthor.rst b/Documentation/gpu/panthor.rst index 3f8979fa2b86..23aa3d67c9d2 100644 --- a/Documentation/gpu/panthor.rst +++ b/Documentation/gpu/panthor.rst @@ -26,6 +26,10 @@ the currently possible format options: drm-cycles-panthor: 94439687187 drm-maxfreq-panthor: 1000000000 Hz drm-curfreq-panthor: 1000000000 Hz + drm-total-internal: 10396 KiB + drm-shared-internal: 0 + drm-active-internal: 10396 KiB + drm-resident-internal: 10396 KiB drm-total-memory: 16480 KiB drm-shared-memory: 0 drm-active-memory: 16200 KiB @@ -44,3 +48,13 @@ driver by writing into the appropriate sysfs node:: =20 Where `N` is a bit mask where cycle and timestamp sampling are respectively enabled by the first and second bits. + +Possible `drm-*-internal` keys are: `total`, `active`, `resident` and `sha= red`. +These values convey the sizes of the internal driver-owned shmem BO's that +aren't exposed to user-space through a DRM handle, like queue ring buffers, +sync object arrays and heap chunks. Because they are all allocated and pin= ned +at creation time, `drm-resident-internal` and `drm-total-internal` should = always +be equal. `drm-active-internal` shows the size of kernel BO's associated w= ith +VM's and groups currently being scheduled for execution by the GPU. +`drm-shared-internal` is unused at present, but in the future it might sta= nd for +the size of executable FW regions, since they do not belong to an open fil= e context. --=20 2.47.0