[PATCH v11 10/34] gpu: host1x: Add host1x_channel_stop()

2021-09-12 Thread Dmitry Osipenko
-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/host1x/channel.c | 8 include/linux/host1x.h | 1 + 2 files changed, 9 insertions

[PATCH v11 11/34] drm/tegra: dc: Support OPP and SoC core voltage scaling

2021-09-12 Thread Dmitry Osipenko
# Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 74 ++ drivers/gpu/drm/tegra/dc.h | 2 ++ 2 files changed, 76 insertions(+) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index a29d64f87563..d4047a14e2b6 100644

[PATCH v11 13/34] drm/tegra: gr2d: Support generic power domain and runtime PM

2021-09-12 Thread Dmitry Osipenko
Add runtime power management and support generic power domains. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr2d.c | 155

[PATCH v11 12/34] drm/tegra: hdmi: Add OPP support

2021-09-12 Thread Dmitry Osipenko
k rate. Add OPP support to the HDMI driver. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/hdmi.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index e5d2a4026028..9a87d351a828 100644 --- a/

[PATCH v11 15/34] drm/tegra: vic: Support system suspend

2021-09-12 Thread Dmitry Osipenko
Hardware must be stopped before system is suspended. Add suspend-resume callbacks. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/vic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index c02010ff2b7f..359dd77f8b85

[PATCH v11 14/34] drm/tegra: gr3d: Support generic power domain and runtime PM

2021-09-12 Thread Dmitry Osipenko
Add runtime power management and support generic power domains. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr3d.c | 388

[PATCH v11 16/34] usb: chipidea: tegra: Add runtime PM and OPP support

2021-09-12 Thread Dmitry Osipenko
rated from the RPM managed by tegra-usb driver. Add runtime PM and OPP support to the driver. Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/ci_hdrc_tegra.c | 53 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_

[PATCH v11 17/34] bus: tegra-gmi: Add runtime PM and OPP support

2021-09-12 Thread Dmitry Osipenko
The GMI bus on Tegra belongs to the core power domain and we're going to enable GENPD support for the core domain. Now GMI must be resumed using runtime PM API in order to initialize the GMI power state. Add runtime PM and OPP support to the GMI driver. Signed-off-by: Dmitry Osi

[PATCH v11 21/34] spi: tegra20-slink: Add OPP support

2021-09-12 Thread Dmitry Osipenko
e rate. Add OPP support to the driver. Acked-by: Mark Brown Signed-off-by: Dmitry Osipenko --- drivers/spi/spi-tegra20-slink.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 8ce840c7ecc8..1a92978d21

[PATCH v11 19/34] mmc: sdhci-tegra: Add runtime PM and OPP support

2021-09-12 Thread Dmitry Osipenko
omain performance state in accordance to the rate. Add runtime PM and OPP support to the SDHCI driver. Signed-off-by: Dmitry Osipenko --- drivers/mmc/host/sdhci-tegra.c | 82 +++--- 1 file changed, 66 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/host/sdhci-te

[PATCH v11 22/34] media: dt: bindings: tegra-vde: Convert to schema

2021-09-12 Thread Dmitry Osipenko
Convert NVIDIA Tegra video decoder binding to schema. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/media/nvidia,tegra-vde.txt | 64 --- .../bindings/media/nvidia,tegra-vde.yaml | 107 ++ 2 files changed, 107 insertions(+), 64

[PATCH v11 20/34] mtd: rawnand: tegra: Add runtime PM and OPP support

2021-09-12 Thread Dmitry Osipenko
ff-by: Dmitry Osipenko --- drivers/mtd/nand/raw/tegra_nand.c | 55 ++- 1 file changed, 47 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index fbf67722a049..2cce38c58a26 100644 --- a/drivers/mtd/nan

[PATCH v11 18/34] pwm: tegra: Add runtime PM and OPP support

2021-09-12 Thread Dmitry Osipenko
omain performance state in accordance to the rate. Add runtime PM and OPP support to the PWM driver. Signed-off-by: Dmitry Osipenko --- drivers/pwm/pwm-tegra.c | 88 - 1 file changed, 70 insertions(+), 18 deletions(-) diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pw

[PATCH v11 23/34] media: dt: bindings: tegra-vde: Document OPP and power domain

2021-09-12 Thread Dmitry Osipenko
Document new OPP table and power domain properties of the video decoder hardware. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/media/nvidia,tegra-vde.yaml | 12 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v11 25/34] soc/tegra: fuse: Reset hardware

2021-09-12 Thread Dmitry Osipenko
The FUSE controller is enabled at a boot time. Reset it in order to put hardware and clock into clean and disabled state. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/fuse/fuse-tegra.c | 25 + drivers/soc/tegra/fuse/fuse.h | 1 + 2 files changed, 26

[PATCH v11 24/34] media: staging: tegra-vde: Support generic power domain

2021-09-12 Thread Dmitry Osipenko
-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/staging/media/tegra-vde/vde.c | 57 +-- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/drivers/staging/media/tegra-vde/vde.c b/drivers/staging/media/tegra-vde/vde.c index ed4c1250b303

[PATCH v11 26/34] soc/tegra: fuse: Use resource-managed helpers

2021-09-12 Thread Dmitry Osipenko
Use resource-managed helpers to make code cleaner and more correct, properly releasing all resources in case of driver probe error. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/fuse/fuse-tegra.c | 32 ++ drivers/soc/tegra/fuse/fuse-tegra20.c | 33

[PATCH v11 27/34] soc/tegra: regulators: Prepare for suspend

2021-09-12 Thread Dmitry Osipenko
Depending on hardware version, Tegra SoC may require a higher voltages during resume from system suspend, otherwise hardware will crash. Set SoC voltages to a nominal levels during suspend. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/regulators-tegra20.c | 99

[PATCH v11 28/34] soc/tegra: pmc: Change name of core power domain

2021-09-12 Thread Dmitry Osipenko
CORE power domain uses name of device-tree node, which is inconsistent with the names of PMC domains. Set the name to "core" to make it consistent. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v11 29/34] soc/tegra: pmc: Enable core domain support for Tegra20 and Tegra30

2021-09-12 Thread Dmitry Osipenko
All device drivers got runtime PM and OPP support. Flip the core domain support status for Tegra20 and Tegra30 SoCs. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra

[PATCH v11 31/34] ARM: tegra: Add OPP tables and power domains to Tegra30 device-trees

2021-09-12 Thread Dmitry Osipenko
Add OPP tables and power domains to all peripheral devices which support power management on Tegra30 SoC. Tested-by: Peter Geis # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- .../tegra30-asus-nexus7-grouper-common.dtsi |1 + arch/arm/boot/dts/tegra30

[PATCH v11 30/34] ARM: tegra: Add OPP tables and power domains to Tegra20 device-trees

2021-09-12 Thread Dmitry Osipenko
Add OPP tables and power domains to all peripheral devices which support power management on Tegra20 SoC. Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 Signed-off-by: Dmitry Osipenko --- .../boot/dts/tegra20-acer-a500-picasso.dts| 1 + arch/arm/boot/dts

[PATCH v11 33/34] ARM: tegra: Add Memory Client resets to Tegra30 GR2D, GR3D and Host1x

2021-09-12 Thread Dmitry Osipenko
Memory access must be blocked before hardware reset is asserted and before power is gated, otherwise a serious hardware fault is inevitable. Add reset for memory clients to the GR2D, GR3D and Host1x nodes. Tested-by: Peter Geis # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry

[PATCH v11 32/34] ARM: tegra: Add Memory Client resets to Tegra20 GR2D, GR3D and Host1x

2021-09-12 Thread Dmitry Osipenko
: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 4abb6634e8ae..8ab77583846b 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts

[PATCH v11 34/34] ARM: tegra20/30: Disable unused host1x hardware

2021-09-12 Thread Dmitry Osipenko
d-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 4 arch/arm/boot/dts/tegra30.dtsi | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 8ab77583846b..6eb13da7f91f 100644 --- a/arch/arm/boot/dts/tegra20

Re: [PATCH] drm/tegra: Use correct property for BO size

2021-09-16 Thread Dmitry Osipenko
16.09.2021 17:13, Mikko Perttunen пишет: > The size property is not always populated, while the gem.size > property is. > > Fixes: d7c591bc1a3f ("drm/tegra: Implement new UAPI") > Signed-off-by: Mikko Perttunen > --- > drivers/gpu/drm/tegra/uapi.c | 2 +- > 1 file changed, 1 insertion(+), 1 dele

Re: [PATCH v12 05/35] dt-bindings: clock: tegra-car: Document new clock sub-nodes

2021-10-14 Thread Dmitry Osipenko
15.10.2021 03:16, Stephen Boyd пишет: > Quoting Dmitry Osipenko (2021-09-20 11:11:15) >> diff --git a/Documentation/devicetree/bindings/clock/nvidia,tegra20-car.yaml >> b/Documentation/devicetree/bindings/clock/nvidia,tegra20-car.yaml >> index 459d2a525393..f832abb

Re: [PATCH v12 05/35] dt-bindings: clock: tegra-car: Document new clock sub-nodes

2021-10-14 Thread Dmitry Osipenko
15.10.2021 03:45, Stephen Boyd пишет: > Quoting Dmitry Osipenko (2021-10-14 17:43:49) >> 15.10.2021 03:16, Stephen Boyd пишет: >>> Quoting Dmitry Osipenko (2021-09-20 11:11:15) >>>> diff --git >>>> a/Documentation/devicetree/bindings/clock/nvidia,tegra20

Re: [PATCH v13 11/35] drm/tegra: dc: Support OPP and SoC core voltage scaling

2021-10-16 Thread Dmitry Osipenko
01.10.2021 16:27, Ulf Hansson пишет: > On Mon, 27 Sept 2021 at 00:42, Dmitry Osipenko wrote: >> >> Add OPP and SoC core voltage scaling support to the display controller >> driver. This is required for enabling system-wide DVFS on pre-Tegra186 >> SoCs. >> >

Re: [PATCH v13 20/35] mtd: rawnand: tegra: Add runtime PM and OPP support

2021-10-17 Thread Dmitry Osipenko
01.10.2021 18:01, Ulf Hansson пишет: > On Fri, 1 Oct 2021 at 16:35, Dmitry Osipenko wrote: >> >> 01.10.2021 17:24, Ulf Hansson пишет: >>> On Mon, 27 Sept 2021 at 00:42, Dmitry Osipenko wrote: >>>> >>>> The NAND on Tegra belongs to the core p

Re: [PATCH v1 0/5] Improvements for TC358768 DSI bridge driver

2021-10-19 Thread Dmitry Osipenko
19.10.2021 12:47, Robert Foss пишет: > Applied to drm-misc-next > > On Sun, 3 Oct 2021 at 01:35, Dmitry Osipenko wrote: >> >> This series adds couple improvements to the TC358768 DSI bridge driver, >> enabling Panasonic VVX10F004B00 DSI panel support. This panel is

[PATCH v14 00/39] NVIDIA Tegra power management patches for 5.17

2021-10-25 Thread Dmitry Osipenko
d thought, I dropped patches which added RPM to memory drivers since hardware is always-on and RPM not needed. - Replaced the "dummy host1x driver" patch with new "Disable unused host1x hardware" patch, since it's a cleaner solution. Dmitry Osipenko (39): soc/t

[PATCH v14 01/39] soc/tegra: Enable runtime PM during OPP state-syncing

2021-10-25 Thread Dmitry Osipenko
nable code around OPP helper for each driver, let's make OPP helper to take care of enabling it. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/common.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c ind

[PATCH v14 05/39] clk: tegra: Support runtime PM and power domain

2021-10-25 Thread Dmitry Osipenko
h adds power management support for Tegra20 and Tegra30 clocks. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/Makefile |

[PATCH v14 02/39] soc/tegra: Add devm_tegra_core_dev_init_opp_table_common()

2021-10-25 Thread Dmitry Osipenko
Only couple drivers need to get the -ENODEV error code and majority of drivers need to explicitly initialize the performance state. Add new common helper which sets up OPP table for these drivers. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/common.h | 15 +++ 1 file changed

[PATCH v14 06/39] dt-bindings: host1x: Document OPP and power domain properties

2021-10-25 Thread Dmitry Osipenko
Document new DVFS OPP table and power domain properties of the Host1x bus and devices sitting on the bus. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../display/tegra/nvidia,tegra20-host1x.txt | 49 +++ 1 file changed, 49 insertions(+) diff --git a

[PATCH v14 18/39] usb: chipidea: tegra: Add runtime PM and OPP support

2021-10-25 Thread Dmitry Osipenko
rated from the RPM managed by tegra-usb driver. Add runtime PM and OPP support to the driver. Acked-by: Peter Chen Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/ci_hdrc_tegra.c | 55 1 file changed, 48 insertions(+), 7 deletions(-) diff --git a/drivers/us

[PATCH v14 11/39] drm/tegra: hdmi: Add OPP support

2021-10-25 Thread Dmitry Osipenko
k rate. Add OPP support to the HDMI driver. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/hdmi.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index e5d2a4026028..9a87d351a828 100644 --- a/

[PATCH v14 15/39] drm/tegra: nvdec: Stop channel on suspend

2021-10-25 Thread Dmitry Osipenko
registered. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/nvdec.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/tegra/nvdec.c b/drivers/gpu/drm/tegra/nvdec.c index 48c90e26e90a..0f1146be9d6d 100644 --- a/drivers/gpu/drm

[PATCH v14 09/39] gpu: host1x: Add host1x_channel_stop()

2021-10-25 Thread Dmitry Osipenko
-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/host1x/channel.c | 8 include/linux/host1x.h | 1 + 2 files changed, 9 insertions

[PATCH v14 17/39] drm/tegra: submit: Add missing pm_runtime_mark_last_busy()

2021-10-25 Thread Dmitry Osipenko
Runtime PM auto-suspension doesn't work without pm_runtime_mark_last_busy(), add it. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/submit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/tegra/submit.c b/drivers/gpu/drm/tegra/submit.c index 3bbd8de

[PATCH v14 04/39] dt-bindings: clock: tegra-car: Document new clock sub-nodes

2021-10-25 Thread Dmitry Osipenko
ed to them, clock controller is in charge of managing power for them. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/clock/nvidia,tegra20-car.yaml| 37 +++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/n

[PATCH v14 16/39] drm/tegra: submit: Remove pm_runtime_enabled() checks

2021-10-25 Thread Dmitry Osipenko
Runtime PM is now universally available, make it mandatory by removing the pm_runtime_enabled() checks. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/submit.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/tegra/submit.c b/drivers

[PATCH v14 12/39] drm/tegra: gr2d: Support generic power domain and runtime PM

2021-10-25 Thread Dmitry Osipenko
Add runtime power management and support generic power domains. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr2d.c | 184

[PATCH v14 07/39] dt-bindings: host1x: Document Memory Client resets of Host1x, GR2D and GR3D

2021-10-25 Thread Dmitry Osipenko
Memory Client should be blocked before hardware reset is asserted in order to prevent memory corruption and hanging of memory controller. Document Memory Client resets of Host1x, GR2D and GR3D hardware units. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/display

[PATCH v14 22/39] mtd: rawnand: tegra: Add runtime PM and OPP support

2021-10-25 Thread Dmitry Osipenko
ff-by: Dmitry Osipenko --- drivers/mtd/nand/raw/tegra_nand.c | 60 ++- 1 file changed, 52 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index 32431bbe69b8..0124aba0b4f0 100644 --- a/drivers/mtd/nan

[PATCH v14 03/39] soc/tegra: Don't print error message when OPPs not available

2021-10-25 Thread Dmitry Osipenko
error message about missing OPP table in the common helper, we can print it elsewhere. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c index d930a2b

[PATCH v14 19/39] bus: tegra-gmi: Add runtime PM and OPP support

2021-10-25 Thread Dmitry Osipenko
The GMI bus on Tegra belongs to the core power domain and we're going to enable GENPD support for the core domain. Now GMI must be resumed using runtime PM API in order to initialize the GMI power state. Add runtime PM and OPP support to the GMI driver. Signed-off-by: Dmitry Osi

[PATCH v14 21/39] mmc: sdhci-tegra: Add runtime PM and OPP support

2021-10-25 Thread Dmitry Osipenko
omain performance state in accordance to the rate. Add runtime PM and OPP support to the SDHCI driver. Signed-off-by: Dmitry Osipenko --- drivers/mmc/host/sdhci-tegra.c | 81 +++--- 1 file changed, 65 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/host/sdhci-te

[PATCH v14 08/39] gpu: host1x: Add initial runtime PM and OPP support

2021-10-25 Thread Dmitry Osipenko
the future. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/host1x/debug.c | 15 +++ drivers/gpu/host1x/dev.c

[PATCH v14 20/39] pwm: tegra: Add runtime PM and OPP support

2021-10-25 Thread Dmitry Osipenko
omain performance state in accordance to the rate. Add runtime PM and OPP support to the PWM driver. Signed-off-by: Dmitry Osipenko --- drivers/pwm/pwm-tegra.c | 84 - 1 file changed, 66 insertions(+), 18 deletions(-) diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pw

[PATCH v14 13/39] drm/tegra: gr3d: Support generic power domain and runtime PM

2021-10-25 Thread Dmitry Osipenko
Add runtime power management and support generic power domains. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr3d.c | 363

[PATCH v14 14/39] drm/tegra: vic: Stop channel on suspend

2021-10-25 Thread Dmitry Osipenko
registered. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/vic.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index b58e2b99f81a..9622ca96c539 100644 --- a/drivers/gpu/drm

[PATCH v14 25/39] media: dt: bindings: tegra-vde: Document OPP and power domain

2021-10-25 Thread Dmitry Osipenko
Document new OPP table and power domain properties of the video decoder hardware. Reviewed-by: Rob Herring Acked-by: Hans Verkuil Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/media/nvidia,tegra-vde.yaml | 12 1 file changed, 12 insertions(+) diff --git a

[PATCH v14 30/39] soc/tegra: pmc: Rename 3d power domains

2021-10-25 Thread Dmitry Osipenko
Device-tree schema doesn't allow domain name to start with a number. We don't use 3d domain yet in device-trees, so rename it to the name used by Tegra TRMs: TD, TD2. Reported-by: David Heidelberg Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 8 1 file

[PATCH v14 24/39] media: dt: bindings: tegra-vde: Convert to schema

2021-10-25 Thread Dmitry Osipenko
Convert NVIDIA Tegra video decoder binding to schema. Reviewed-by: Rob Herring Acked-by: Hans Verkuil Signed-off-by: Dmitry Osipenko --- .../bindings/media/nvidia,tegra-vde.txt | 64 --- .../bindings/media/nvidia,tegra-vde.yaml | 107 ++ 2 files changed

[PATCH v14 10/39] drm/tegra: dc: Support OPP and SoC core voltage scaling

2021-10-25 Thread Dmitry Osipenko
# Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 79 ++ drivers/gpu/drm/tegra/dc.h | 2 + 2 files changed, 81 insertions(+) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index a457ee954a49..eb70eee8992a 100644

[PATCH v14 29/39] soc/tegra: regulators: Prepare for suspend

2021-10-25 Thread Dmitry Osipenko
Depending on hardware version, Tegra SoC may require a higher voltages during resume from system suspend, otherwise hardware will crash. Set SoC voltages to a nominal levels during suspend. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/regulators-tegra20.c | 99

[PATCH v14 37/39] ARM: tegra: Add Memory Client resets to Tegra20 GR2D, GR3D and Host1x

2021-10-25 Thread Dmitry Osipenko
: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 1898351a099f..7b69ffc57abe 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts

[PATCH v14 26/39] media: staging: tegra-vde: Support generic power domain

2021-10-25 Thread Dmitry Osipenko
-by: Matt Merhar # Ouya T30 Acked-by: Hans Verkuil Signed-off-by: Dmitry Osipenko --- drivers/staging/media/tegra-vde/vde.c | 63 ++- 1 file changed, 52 insertions(+), 11 deletions(-) diff --git a/drivers/staging/media/tegra-vde/vde.c b/drivers/staging/media/tegra-vde

[PATCH v14 32/39] soc/tegra: pmc: Enable core domain support for Tegra20 and Tegra30

2021-10-25 Thread Dmitry Osipenko
All device drivers got runtime PM and OPP support. Flip the core domain support status for Tegra20 and Tegra30 SoCs. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra

[PATCH v14 35/39] ARM: tegra: Add OPP tables and power domains to Tegra20 device-trees

2021-10-25 Thread Dmitry Osipenko
Add OPP tables and power domains to all peripheral devices which support power management on Tegra20 SoC. Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 Signed-off-by: Dmitry Osipenko --- .../boot/dts/tegra20-acer-a500-picasso.dts| 1 + arch/arm/boot/dts

[PATCH v14 28/39] soc/tegra: fuse: Use resource-managed helpers

2021-10-25 Thread Dmitry Osipenko
Use resource-managed helpers to make code cleaner and more correct, properly releasing all resources in case of driver probe error. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/fuse/fuse-tegra.c | 32 ++ drivers/soc/tegra/fuse/fuse-tegra20.c | 33

[PATCH v14 31/39] soc/tegra: pmc: Rename core power domain

2021-10-25 Thread Dmitry Osipenko
CORE power domain uses name of device-tree node, which is inconsistent with the names of PMC domains. Set the name to "core" to make it consistent. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v14 38/39] ARM: tegra: Add Memory Client resets to Tegra30 GR2D, GR3D and Host1x

2021-10-25 Thread Dmitry Osipenko
Memory access must be blocked before hardware reset is asserted and before power is gated, otherwise a serious hardware fault is inevitable. Add reset for memory clients to the GR2D, GR3D and Host1x nodes. Tested-by: Peter Geis # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry

[PATCH v14 34/39] ARM: tegra: Add 500MHz entry to Tegra30 memory OPP table

2021-10-25 Thread Dmitry Osipenko
Extend memory OPPs with 500MHz entry. This clock rate is used by ASUS Transformer tablets. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30-peripherals-opp.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-peripherals-opp.dtsi b

[PATCH v14 36/39] ARM: tegra: Add OPP tables and power domains to Tegra30 device-trees

2021-10-25 Thread Dmitry Osipenko
Add OPP tables and power domains to all peripheral devices which support power management on Tegra30 SoC. Tested-by: Peter Geis # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-trimslice.dts |2 +- .../tegra30-asus-nexus7

[PATCH v14 39/39] ARM: tegra20/30: Disable unused host1x hardware

2021-10-25 Thread Dmitry Osipenko
d-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20.dtsi | 4 arch/arm/boot/dts/tegra30.dtsi | 8 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 7b69ffc57abe..8010b40d7377 100644 --- a/arch/arm/boot/dts/tegra20

[PATCH v14 23/39] spi: tegra20-slink: Add OPP support

2021-10-25 Thread Dmitry Osipenko
e rate. Add OPP support to the driver. Acked-by: Mark Brown Signed-off-by: Dmitry Osipenko --- drivers/spi/spi-tegra20-slink.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 33302f6b42d7..584fa25d39

[PATCH v14 33/39] ARM: tegra: Rename CPU and EMC OPP table device-tree nodes

2021-10-25 Thread Dmitry Osipenko
OPP table name now should start with "opp-table" and OPP entries shouldn't contain commas and @ signs in accordance to the new schema requirement. Reorganize CPU and EMC OPP table device-tree nodes. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra124-apalis-em

[PATCH v14 27/39] soc/tegra: fuse: Reset hardware

2021-10-25 Thread Dmitry Osipenko
The FUSE controller is enabled at a boot time. Reset it in order to put hardware and clock into clean and disabled state. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/fuse/fuse-tegra.c | 25 + drivers/soc/tegra/fuse/fuse.h | 1 + 2 files changed, 26

Re: [PATCH v14 01/39] soc/tegra: Enable runtime PM during OPP state-syncing

2021-10-27 Thread Dmitry Osipenko
27.10.2021 18:06, Ulf Hansson пишет: > On Tue, 26 Oct 2021 at 00:45, Dmitry Osipenko wrote: >> >> GENPD core now can set up domain's performance state properly while device >> is RPM-suspended. Runtime PM of a device must be enabled during setup >> because GENPD ch

Re: [PATCH v14 29/39] soc/tegra: regulators: Prepare for suspend

2021-10-27 Thread Dmitry Osipenko
27.10.2021 18:47, Ulf Hansson пишет: >> Depending on hardware version, Tegra SoC may require a higher voltages >> during resume from system suspend, otherwise hardware will crash. Set >> SoC voltages to a nominal levels during suspend. >> >> Signed-off-by: Dmitry Osip

Re: [PATCH v14 00/39] NVIDIA Tegra power management patches for 5.17

2021-10-27 Thread Dmitry Osipenko
27.10.2021 19:01, Ulf Hansson пишет: > On Tue, 26 Oct 2021 at 00:45, Dmitry Osipenko wrote: >> >> This series adds runtime PM support to Tegra drivers and enables core >> voltage scaling for Tegra20/30 SoCs, resolving overheating troubles. >> >> All patches in t

Re: [PATCH libdrm 00/25] Update Tegra support

2021-09-20 Thread Dmitry Osipenko
27.08.2021 16:22, Thierry Reding пишет: > From: Thierry Reding > > Hi all, > > this is the userspace part of the kernel patches that were recently > merged into drm-next: > > https://patchwork.freedesktop.org/series/92378/ > > The goal is to provide a userspace implementation of the UAPI exp

[PATCH v12 01/35] opp: Change type of dev_pm_opp_attach_genpd(names) argument

2021-09-20 Thread Dmitry Osipenko
Elements of the 'names' array are not changed by the code, constify them for consistency. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 6 +++--- include/linux/pm_opp.h | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/opp/core.c b/d

[PATCH v12 00/35] NVIDIA Tegra power management patches for 5.16

2021-09-20 Thread Dmitry Osipenko
ought, I dropped patches which added RPM to memory drivers since hardware is always-on and RPM not needed. - Replaced the "dummy host1x driver" patch with new "Disable unused host1x hardware" patch, since it's a cleaner solution. Dmitr

[PATCH v12 03/35] soc/tegra: pmc: Disable PMC state syncing

2021-09-20 Thread Dmitry Osipenko
Disable PMC state syncing in order to ensure that we won't break older kernels once device-trees will be updated with the addition of the power domains. This also allows to apply device-tree PM patches independently from the driver patches. Signed-off-by: Dmitry Osipenko --- drivers/soc/

[PATCH v12 05/35] dt-bindings: clock: tegra-car: Document new clock sub-nodes

2021-09-20 Thread Dmitry Osipenko
ed to them, clock controller is in charge of managing power for them. Signed-off-by: Dmitry Osipenko --- .../bindings/clock/nvidia,tegra20-car.yaml| 37 +++ 1 file changed, 37 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/nvidia,tegra20-car.ya

[PATCH v12 08/35] dt-bindings: host1x: Document Memory Client resets of Host1x, GR2D and GR3D

2021-09-20 Thread Dmitry Osipenko
Memory Client should be blocked before hardware reset is asserted in order to prevent memory corruption and hanging of memory controller. Document Memory Client resets of Host1x, GR2D and GR3D hardware units. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/display

[PATCH v12 09/35] gpu: host1x: Add runtime PM and OPP support

2021-09-20 Thread Dmitry Osipenko
the future. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/host1x/debug.c | 15 +++ drivers/gpu/host1x/dev.c

[PATCH v12 04/35] soc/tegra: Don't print error message when OPPs not available

2021-09-20 Thread Dmitry Osipenko
error message about missing OPP table in the common helper, we can print it elsewhere. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c index cd33e99

[PATCH v12 02/35] soc/tegra: Add devm_tegra_core_dev_init_opp_table_common()

2021-09-20 Thread Dmitry Osipenko
Only couple drivers need to get the -ENODEV error code and majority of drivers need to explicitly initialize the performance state. Add new common helper which sets up OPP table for these drivers. Signed-off-by: Dmitry Osipenko --- include/soc/tegra/common.h | 24 1

[PATCH v12 06/35] clk: tegra: Support runtime PM and power domain

2021-09-20 Thread Dmitry Osipenko
h adds power management support for Tegra20 and Tegra30 clocks. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/Makefile |

[PATCH v12 15/35] drm/tegra: vic: Support system suspend

2021-09-20 Thread Dmitry Osipenko
Hardware must be stopped before system is suspended. Add suspend-resume callbacks. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/vic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index c02010ff2b7f..359dd77f8b85

[PATCH v12 14/35] drm/tegra: gr3d: Support generic power domain and runtime PM

2021-09-20 Thread Dmitry Osipenko
Add runtime power management and support generic power domains. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr3d.c | 388

[PATCH v12 17/35] bus: tegra-gmi: Add runtime PM and OPP support

2021-09-20 Thread Dmitry Osipenko
The GMI bus on Tegra belongs to the core power domain and we're going to enable GENPD support for the core domain. Now GMI must be resumed using runtime PM API in order to initialize the GMI power state. Add runtime PM and OPP support to the GMI driver. Signed-off-by: Dmitry Osi

[PATCH v12 07/35] dt-bindings: host1x: Document OPP and power domain properties

2021-09-20 Thread Dmitry Osipenko
Document new DVFS OPP table and power domain properties of the Host1x bus and devices sitting on the bus. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../display/tegra/nvidia,tegra20-host1x.txt | 49 +++ 1 file changed, 49 insertions(+) diff --git a

[PATCH v12 12/35] drm/tegra: hdmi: Add OPP support

2021-09-20 Thread Dmitry Osipenko
k rate. Add OPP support to the HDMI driver. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/hdmi.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index e5d2a4026028..9a87d351a828 100644 --- a/

[PATCH v12 13/35] drm/tegra: gr2d: Support generic power domain and runtime PM

2021-09-20 Thread Dmitry Osipenko
Add runtime power management and support generic power domains. Tested-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr2d.c | 155

[PATCH v12 11/35] drm/tegra: dc: Support OPP and SoC core voltage scaling

2021-09-20 Thread Dmitry Osipenko
# Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 74 ++ drivers/gpu/drm/tegra/dc.h | 2 ++ 2 files changed, 76 insertions(+) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index a29d64f87563..d4047a14e2b6 100644

[PATCH v12 16/35] usb: chipidea: tegra: Add runtime PM and OPP support

2021-09-20 Thread Dmitry Osipenko
rated from the RPM managed by tegra-usb driver. Add runtime PM and OPP support to the driver. Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/ci_hdrc_tegra.c | 53 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_

[PATCH v12 10/35] gpu: host1x: Add host1x_channel_stop()

2021-09-20 Thread Dmitry Osipenko
-by: Peter Geis # Ouya T30 Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry Osipenko --- drivers/gpu/host1x/channel.c | 8 include/linux/host1x.h | 1 + 2 files changed, 9 insertions

[PATCH v12 22/35] media: dt: bindings: tegra-vde: Convert to schema

2021-09-20 Thread Dmitry Osipenko
Convert NVIDIA Tegra video decoder binding to schema. Reviewed-by: Rob Herring Acked-by: Hans Verkuil Signed-off-by: Dmitry Osipenko --- .../bindings/media/nvidia,tegra-vde.txt | 64 --- .../bindings/media/nvidia,tegra-vde.yaml | 107 ++ 2 files changed

[PATCH v12 27/35] soc/tegra: regulators: Prepare for suspend

2021-09-20 Thread Dmitry Osipenko
Depending on hardware version, Tegra SoC may require a higher voltages during resume from system suspend, otherwise hardware will crash. Set SoC voltages to a nominal levels during suspend. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/regulators-tegra20.c | 99

[PATCH v12 25/35] soc/tegra: fuse: Reset hardware

2021-09-20 Thread Dmitry Osipenko
The FUSE controller is enabled at a boot time. Reset it in order to put hardware and clock into clean and disabled state. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/fuse/fuse-tegra.c | 25 + drivers/soc/tegra/fuse/fuse.h | 1 + 2 files changed, 26

[PATCH v12 31/35] ARM: tegra: Add OPP tables and power domains to Tegra20 device-trees

2021-09-20 Thread Dmitry Osipenko
Add OPP tables and power domains to all peripheral devices which support power management on Tegra20 SoC. Tested-by: Paul Fertser # PAZ00 T20 Tested-by: Nicolas Chauvet # PAZ00 T20 Signed-off-by: Dmitry Osipenko --- .../boot/dts/tegra20-acer-a500-picasso.dts| 1 + arch/arm/boot/dts

[PATCH v12 34/35] ARM: tegra: Add Memory Client resets to Tegra30 GR2D, GR3D and Host1x

2021-09-20 Thread Dmitry Osipenko
Memory access must be blocked before hardware reset is asserted and before power is gated, otherwise a serious hardware fault is inevitable. Add reset for memory clients to the GR2D, GR3D and Host1x nodes. Tested-by: Peter Geis # Ouya T30 Tested-by: Matt Merhar # Ouya T30 Signed-off-by: Dmitry

[PATCH v12 19/35] mmc: sdhci-tegra: Add runtime PM and OPP support

2021-09-20 Thread Dmitry Osipenko
omain performance state in accordance to the rate. Add runtime PM and OPP support to the SDHCI driver. Signed-off-by: Dmitry Osipenko --- drivers/mmc/host/sdhci-tegra.c | 80 +++--- 1 file changed, 64 insertions(+), 16 deletions(-) diff --git a/drivers/mmc/host/sdhci-te

[PATCH v12 24/35] media: staging: tegra-vde: Support generic power domain

2021-09-20 Thread Dmitry Osipenko
-by: Matt Merhar # Ouya T30 Acked-by: Hans Verkuil Signed-off-by: Dmitry Osipenko --- drivers/staging/media/tegra-vde/vde.c | 57 +-- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/drivers/staging/media/tegra-vde/vde.c b/drivers/staging/media/tegra-vde

<    1   2   3   4   5   6   7   8   9   10   >