From: Johnny Liu <johnliu@nvidia.com>
To: <krzk@kernel.org>
Cc: <airlied@gmail.com>, <conor+dt@kernel.org>,
<devicetree@vger.kernel.org>, <dri-devel@lists.freedesktop.org>,
<johnliu@nvidia.com>, <jonathanh@nvidia.com>,
<krzk+dt@kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-media@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
<luca.ceresoli@bootlin.com>, <maarten.lankhorst@linux.intel.com>,
<mperttunen@nvidia.com>, <mripard@kernel.org>, <robh@kernel.org>,
<simona@ffwll.ch>, <skomatineni@nvidia.com>,
<thierry.reding@gmail.com>, <tzimmermann@suse.de>
Subject: Re: [PATCH v1 1/5] dt-bindings: display: tegra: Add actmon information
Date: Mon, 16 Dec 2024 17:08:05 -0800 [thread overview]
Message-ID: <20241217010806.15703-1-johnliu@nvidia.com> (raw)
In-Reply-To: <262c8d8f-f53c-455b-9bca-3440afb7bcd6@kernel.org>
> On 14/12/2024 00:29, Johnny Liu wrote:
> >> On Tue, Dec 10, 2024 at 09:45:50AM -0800, Johnny Liu wrote:
> >>> An activity monitor (actmon) is used to measure the device runtime
> >>> utilization to help drive software power management policies.
> >>>
> >>> Extend the reg space to include actmon aperture for actmon configuration
> >>> through host1x.
> >>
> >> We kind of see that from the diff. Say what we do not see, e.g. ABI
> >> impact or why this is flexible/optional for existing devices.
> >
> > Since actmon is not well-supported for the previous chips (e.g. T210,
> > T186, T194, and etc) in this patch series, it's essential to make the
> > specification of regs property optional for the previous chips.
>
> Then your schema should express it.
Could you explicitly point out which part doesn't express it well?
Considering old variant T194, the schema in this patch already made the
specification of actmon related properties optional.
If users specify actmon clock handle in clocks/clock-names properties:
host1x@13e00000 {
compatible = "nvidia,tegra194-host1x";
// ...
clocks = <&bpmp TEGRA194_CLK_HOST1X>,
<&bpmp TEGRA194_CLK_ACTMON>;
clock-names = "host1x", "actmon";
// ...
}
Running the dtbs_check will report error WITHOUT this patch will have
the following error:
$ make O=out ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.yaml
/out/arch/arm64/boot/dts/nvidia/tegra194-p3509-0000+p3668-0000.dtb: host1x@13e00000: clocks: [[5, 46], [5, 1]] is too long
/out/arch/arm64/boot/dts/nvidia/tegra194-p3509-0000+p3668-0000.dtb: host1x@13e00000: clock-names: ['host1x', 'actmon'] is too long
> >
> > Enablement/Disablement of actmon won't affect the host1x main functionality.
> > Its main job is to monitor the engines behind the host1x and serve for
> > telemetry purpose.
> >
> > I could update the commit message to include the above reason. Please
> > let me know if more information is required.
>
> And fix the schema to make it optional only for older variants.
To maintain backward compatibility, shouldn't we keep the newly added
feature optional for all the variants?
Thanks,
Johnny
next prev parent reply other threads:[~2024-12-17 1:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-10 17:45 [PATCH v1 0/5] Support host1x actmon Johnny Liu
2024-12-10 17:45 ` [PATCH v1 1/5] dt-bindings: display: tegra: Add actmon information Johnny Liu
2024-12-13 10:44 ` Krzysztof Kozlowski
2024-12-13 23:29 ` Johnny Liu
2024-12-16 7:26 ` Krzysztof Kozlowski
2024-12-17 1:08 ` Johnny Liu [this message]
2024-12-17 5:36 ` Krzysztof Kozlowski
2024-12-10 17:45 ` [PATCH v1 2/5] arm64: " Johnny Liu
2024-12-10 17:45 ` [PATCH v1 3/5] gpu: host1x: Support device monitoring with actmon Johnny Liu
2024-12-17 5:39 ` Krzysztof Kozlowski
2024-12-19 20:29 ` Johnny Liu
2024-12-10 17:45 ` [PATCH v1 4/5] drm/tegra: nvdec: Register the device " Johnny Liu
2024-12-10 17:45 ` [PATCH v1 5/5] drm/tegra: vic: " Johnny Liu
2024-12-13 10:42 ` [PATCH v1 0/5] Support host1x actmon Krzysztof Kozlowski
2024-12-13 23:17 ` Johnny Liu
2024-12-16 7:27 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241217010806.15703-1-johnliu@nvidia.com \
--to=johnliu@nvidia.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jonathanh@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mperttunen@nvidia.com \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=skomatineni@nvidia.com \
--cc=thierry.reding@gmail.com \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox