[PATCH v1 4/5] drm/tegra: nvdec: Register the device with actmon

2024-12-10 Thread Johnny Liu
By registering the nvdec with actmon, engine load information can be exported to the user through debugfs for engine profiling purpose. Signed-off-by: Johnny Liu --- drivers/gpu/drm/tegra/nvdec.c | 82 ++- 1 file changed, 80 insertions(+), 2 deletions(-) diff

[PATCH v1 5/5] drm/tegra: vic: Register the device with actmon

2024-12-10 Thread Johnny Liu
By registering the vic with actmon, engine load information can be exported to the user through debugfs for engine profiling purpose. Signed-off-by: Johnny Liu --- drivers/gpu/drm/tegra/vic.c | 39 - drivers/gpu/drm/tegra/vic.h | 9 + 2 files changed

[PATCH v1 3/5] gpu: host1x: Support device monitoring with actmon

2024-12-10 Thread Johnny Liu
actmon during the device resume/suspend cycle. This ensures that a host1x client runs at the power-optimal frequency when active, while also preventing unnecessary actmon interrupts during periods of inactivity. Signed-off-by: Johnny Liu --- drivers/gpu/host1x/Makefile| 1 + drivers

[PATCH v1 1/5] dt-bindings: display: tegra: Add actmon information

2024-12-10 Thread Johnny Liu
unit actmons for different host1x clients. Signed-off-by: Johnny Liu --- .../display/tegra/nvidia,tegra20-host1x.yaml | 45 --- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.yaml b

Re: [PATCH 1/5] dt-bindings: display: tegra: Add actmon information

2024-12-10 Thread Johnny Liu
r of clocks to include actmon clock, which is shared >> between unit actmons for different host1x clients. >> >> Signed-off-by: Johnny Liu > > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command whe

[PATCH v1 0/5] Support host1x actmon

2024-12-10 Thread Johnny Liu
information from various units to select the most efficient frequency and thereby, voltage that the unit should operate while providing the requisite performance. Johnny Liu (5): dt-bindings: display: tegra: Add actmon information arm64: tegra: Add actmon information gpu: host1x: Support device

[PATCH v1 2/5] arm64: tegra: Add actmon information

2024-12-10 Thread Johnny Liu
actmon clock source from host1x. Therefore, add the clock phandle in host1x. Signed-off-by: Johnny Liu --- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia

[PATCH 1/5] dt-bindings: display: tegra: Add actmon information

2024-12-10 Thread Johnny Liu
unit actmons for different host1x clients. Signed-off-by: Johnny Liu --- .../display/tegra/nvidia,tegra20-host1x.yaml | 45 --- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/display/tegra/nvidia,tegra20-host1x.yaml b

[PATCH 5/5] drm/tegra: vic: Register the device with actmon

2024-12-10 Thread Johnny Liu
By registering the vic with actmon, engine load information can be exported to the user through debugfs for engine profiling purpose. Signed-off-by: Johnny Liu --- drivers/gpu/drm/tegra/vic.c | 39 - drivers/gpu/drm/tegra/vic.h | 9 + 2 files changed

[PATCH 3/5] gpu: host1x: Support device monitoring with actmon

2024-12-10 Thread Johnny Liu
actmon during the device resume/suspend cycle. This ensures that a host1x client runs at the power-optimal frequency when active, while also preventing unnecessary actmon interrupts during periods of inactivity. Signed-off-by: Johnny Liu --- drivers/gpu/host1x/Makefile| 1 + drivers

[PATCH 0/5] Support host1x actmon

2024-12-10 Thread Johnny Liu
information from various units to select the most efficient frequency and thereby, voltage that the unit should operate while providing the requisite performance. --- Johnny Liu (5): dt-bindings: display: tegra: Add actmon information arm64: tegra: Add actmon information gpu: host1x: Support device

[PATCH 4/5] drm/tegra: nvdec: Register the device with actmon

2024-12-10 Thread Johnny Liu
By registering the nvdec with actmon, engine load information can be exported to the user through debugfs for engine profiling purpose. Signed-off-by: Johnny Liu --- drivers/gpu/drm/tegra/nvdec.c | 82 ++- 1 file changed, 80 insertions(+), 2 deletions(-) diff

[PATCH 2/5] arm64: tegra: Add actmon information

2024-12-10 Thread Johnny Liu
actmon clock source from host1x. Therefore, add the clock phandle in host1x. Signed-off-by: Johnny Liu --- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia

Re: [PATCH v1 1/5] dt-bindings: display: tegra: Add actmon information

2024-12-16 Thread Johnny Liu
> 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. > >>&

Re: [PATCH v1 0/5] Support host1x actmon

2024-12-13 Thread Johnny Liu
> On Tue, Dec 10, 2024 at 09:45:49AM -0800, Johnny Liu wrote: > > Activity monitoring (actmon for short) is a means to dynamically > > measure the utilization of units in the system to help drive software > > power management policies. > > > > Is this a rese

Re: [PATCH v1 1/5] dt-bindings: display: tegra: Add actmon information

2024-12-13 Thread Johnny Liu
> 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 confi

Re: [PATCH v1 3/5] gpu: host1x: Support device monitoring with actmon

2024-12-19 Thread Johnny Liu
> On 10/12/2024 18:45, Johnny Liu wrote: > > > + > > +static int host1x_actmon_sample_period_set(void *data, u64 val) > > +{ > > + struct host1x_actmon *actmon = (struct host1x_actmon *)data; > > + > > + actmon->usecs_per_sample = (u32)val; >