[PATCH v1 2/6] dt-bindings: memory: tegra30: emc: Replace core regulator with power domain

2021-03-29 Thread Dmitry Osipenko
ulator yet, and thus, it's okay to change it. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra30-emc.yaml| 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra30-emc.yaml

[PATCH v1 5/6] dt-bindings: memory: tegra20: emc: Convert to schema

2021-03-29 Thread Dmitry Osipenko
Convert Tegra20 External Memory Controller binding to schema. Signed-off-by: Dmitry Osipenko --- .../memory-controllers/nvidia,tegra20-emc.txt | 130 .../nvidia,tegra20-emc.yaml | 294 ++ 2 files changed, 294 insertions(+), 130 deletions(-) delete

[PATCH v1 1/6] dt-bindings: memory: tegra20: emc: Replace core regulator with power domain

2021-03-29 Thread Dmitry Osipenko
ulator yet, and thus, it's okay to change it. Reviewed-by: Rob Herring Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra20-emc.txt| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers

[PATCH v1] i2c: Make i2c_recover_bus() to return -EBUSY if bus recovery unimplemented

2021-03-29 Thread Dmitry Osipenko
Sang Signed-off-by: Dmitry Osipenko --- drivers/i2c/i2c-core-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index f21362355973..7039b8a06f3a 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-b

Re: [PATCH v1 1/2] memory: tegra20: Correct comment to MC_STAT registers writes

2021-03-26 Thread Dmitry Osipenko
26.03.2021 10:38, Krzysztof Kozlowski пишет: > On 25/03/2021 18:20, Dmitry Osipenko wrote: >> 24.03.2021 00:04, Dmitry Osipenko пишет: >>> The code was changed multiple times and the comment to MC_STAT >>> registers writes became slightly outdated. The MC_STAT programm

Re: [PATCH v1] Input: elants_i2c - fix division by zero if firmware reports zero phys size

2021-03-26 Thread Dmitry Osipenko
02.03.2021 13:08, Dmitry Osipenko пишет: > Touchscreen firmware of ASUS Transformer TF700T reports zeros for the phys > size. Hence check whether the size is zero and don't set the resolution in > this case. > > Reported-by: Jasper Korten > Signed-off-by: Dmitry Osipenko

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-03-28 Thread Dmitry Osipenko
03.03.2021 12:47, Dmitry Osipenko пишет: > 03.03.2021 02:08, Nicolin Chen пишет: >> On Sat, Feb 27, 2021 at 12:59:17PM +0300, Dmitry Osipenko wrote: >>> 25.02.2021 09:27, Nicolin Chen пишет: >>> ... >>>>> The partially revert should be okay, but it's

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-03-28 Thread Dmitry Osipenko
28.03.2021 18:25, Dmitry Osipenko пишет: > 03.03.2021 12:47, Dmitry Osipenko пишет: >> 03.03.2021 02:08, Nicolin Chen пишет: >>> On Sat, Feb 27, 2021 at 12:59:17PM +0300, Dmitry Osipenko wrote: >>>> 25.02.2021 09:27, Nicolin Chen пишет: >>>> ... >>&g

Re: [PATCH v1] Input: elants_i2c - fix division by zero if firmware reports zero phys size

2021-03-28 Thread Dmitry Osipenko
28.03.2021 07:44, Dmitry Torokhov пишет: > Hi Dmitry, > > On Tue, Mar 02, 2021 at 01:08:24PM +0300, Dmitry Osipenko wrote: >> Touchscreen firmware of ASUS Transformer TF700T reports zeros for the phys >> size. Hence check whether the size is zero and don't set the

[PATCH v1 1/2] iommu/tegra-smmu: Defer attachment of display clients

2021-03-28 Thread Dmitry Osipenko
perform DMA at that time. We can work around this problem by deferring the enable of SMMU translation for a specific devices, like a display controller, until the first IOMMU mapping is created, which works good enough in practice because by that time h/w is already stopped. Signed-off-by: Dmitry

[PATCH v1 2/2] iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chromebook

2021-03-28 Thread Dmitry Osipenko
ymore, revert it. Signed-off-by: Dmitry Osipenko --- drivers/iommu/tegra-smmu.c | 71 +- 1 file changed, 1 insertion(+), 70 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index af1e4b5adb27..572a4544ae88 100644 --- a/drivers/iommu/

[PATCH v1] Input: elants_i2c - drop zero-checking of ABS_MT_TOUCH_MAJOR resolution

2021-03-28 Thread Dmitry Osipenko
Drop unnecessary zero-checking of ABS_MT_TOUCH_MAJOR resolution since there is no difference between setting resolution to 0 vs not setting it at all. This change makes code cleaner a tad. Suggested-by: Dmitry Torokhov Signed-off-by: Dmitry Osipenko --- drivers/input/touchscreen/elants_i2c.c

Re: [PATCH v1 2/2] iommu/tegra-smmu: Revert workaround that was needed for Nyan Big Chromebook

2021-04-02 Thread Dmitry Osipenko
01.04.2021 11:55, Nicolin Chen пишет: > On Mon, Mar 29, 2021 at 02:32:56AM +0300, Dmitry Osipenko wrote: >> The previous commit fixes problem where display client was attaching too >> early to IOMMU during kernel boot in a multi-platform kernel configuration &

Re: [PATCH v2 5/6] dt-bindings: memory: tegra20: emc: Convert to schema

2021-04-02 Thread Dmitry Osipenko
01.04.2021 18:55, Rob Herring пишет: > On Wed, Mar 31, 2021 at 05:59:39PM +0300, Dmitry Osipenko wrote: >> 31.03.2021 16:40, Rob Herring пишет: >>> On Wed, 31 Mar 2021 02:04:44 +0300, Dmitry Osipenko wrote: >>>> Convert Tegra20 External Memory Controller binding to s

Re: [PATCH v2 0/6] NVIDIA Tegra memory improvements

2021-04-02 Thread Dmitry Osipenko
01.04.2021 20:54, Krzysztof Kozlowski пишет: > On 31/03/2021 01:04, Dmitry Osipenko wrote: >> Hi, >> >> This series replaces the raw voltage regulator with a power domain that >> will be managing SoC core voltage. The core power domain patches are still >> und

BUG: iio: mpu3050: Wrong temperature scale

2021-04-18 Thread Dmitry Osipenko
Hello, Svyatoslav and me found that the MPU3050 IIO driver reports temperature that is x10 larger than it should be on Asus Transformer TF201 and Acer A500 tablet devices running mainline kernel. The driver uses (x+23000)/280 formula for the conversion of raw temperature value, which gives 82C for

Re: [PATCH v5 00/17] Fix reset controls and RPM of NVIDIA Tegra ASoC drivers

2021-03-17 Thread Dmitry Osipenko
14.03.2021 18:44, Dmitry Osipenko пишет: > Hi, > > This series adds missing hardware reset controls to I2S and AC97 drivers, > corrects runtime PM usage and drivers probe/remove order. Currently drivers > happen to work properly because reset is implicitly deasserted by tegra-cl

Re: [PATCH v15 2/2] drm/tegra: dc: Extend debug stats with total number of events

2021-03-17 Thread Dmitry Osipenko
15.03.2021 01:11, Michał Mirosław пишет: > On Thu, Mar 11, 2021 at 08:22:55PM +0300, Dmitry Osipenko wrote: >> It's useful to know the total number of underflow events and currently >> the debug stats are getting reset each time CRTC is being disabled. Let's >> accou

Re: [PATCH v5 00/17] Fix reset controls and RPM of NVIDIA Tegra ASoC drivers

2021-03-17 Thread Dmitry Osipenko
17.03.2021 20:54, Mark Brown пишет: > On Wed, Mar 17, 2021 at 08:20:10PM +0300, Dmitry Osipenko wrote: > >> Mark / Takashi, I may try to split up this series into two or three >> smaller patchsets and then the reset/ patch from Philipp Zabel could be >> merged by Philipp h

[PATCH v16 0/2] Add memory bandwidth management to NVIDIA Tegra DRM driver

2021-03-17 Thread Dmitry Osipenko
sor plane index. v13: - No code changes. Patches missed v5.12, re-sending them for v5.13. Dmitry Osipenko (2): drm/tegra: dc: Support memory bandwidth management drm/tegra: dc: Extend debug stats with total number of events drivers/gpu/drm/tegra/Kconfig |

[PATCH v16 2/2] drm/tegra: dc: Extend debug stats with total number of events

2021-03-17 Thread Dmitry Osipenko
It's useful to know the total number of underflow events and currently the debug stats are getting reset each time CRTC is being disabled. Let's account the overall number of events that doesn't get a reset. Reviewed-by: Michał Mirosław Signed-off-by: Dmitry Osipenko --- driver

[PATCH v16 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-17 Thread Dmitry Osipenko
by: Matt Merhar # Ouya T30 Tested-by: Nicolas Chauvet # PAZ00 T20 and TK1 T124 Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/Kconfig | 1 + drivers/gpu/drm/tegra/dc.c| 352 ++ drivers/gpu/drm/tegra/dc.h| 14 ++ drivers/gpu/drm/tegr

[PATCH v5 0/7] Couple improvements for Tegra clk driver

2021-03-17 Thread Dmitry Osipenko
quot;. v2: - Added these new patches: clk: tegra: Halve SCLK rate on Tegra20 MAINTAINERS: Hand Tegra clk driver to Jon and Thierry v1: - Collected clk patches into a single series. Dmitry Osipenko (7): clk: tegra30: Use 300MHz for video decoder by default clk: tegra: Fix refcoun

[PATCH v5 1/7] clk: tegra30: Use 300MHz for video decoder by default

2021-03-17 Thread Dmitry Osipenko
ot;) Acked-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-tegra30.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c index 16dbf83d2f62..a33688b2359e 100644 --- a/drivers/clk/tegra/c

[PATCH v5 2/7] clk: tegra: Fix refcounting of gate clocks

2021-03-17 Thread Dmitry Osipenko
27;t cause any real problems for the drivers and boards supported by the kernel today. Acked-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-periph-gate.c | 72 +++-- drivers/clk/tegra/clk-periph.c | 11 + 2 files changed, 58 inserti

[PATCH v5 5/7] MAINTAINERS: Hand Tegra clk driver to Jon and Thierry

2021-03-17 Thread Dmitry Osipenko
Peter and Prashant aren't actively maintaining Tegra clock driver anymore. Jonathan and Thierry will pick up maintaining of the driver from now on. Acked-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- CREDITS | 6 ++ MAINTAINERS | 4 ++-- 2 files changed, 8 insertions(

[PATCH v5 4/7] clk: tegra: Halve SCLK rate on Tegra20

2021-03-17 Thread Dmitry Osipenko
ed-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-tegra20.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c index 3efc651b42e3..3664593a5ba4 100644 --- a/drivers/clk/tegra/clk-te

[PATCH v5 7/7] dt-bindings: clock: tegra: Convert to schema

2021-03-17 Thread Dmitry Osipenko
Convert NVIDIA Tegra clock bindings to schema. Signed-off-by: Dmitry Osipenko --- .../bindings/clock/nvidia,tegra114-car.txt| 63 -- .../bindings/clock/nvidia,tegra124-car.txt| 107 .../bindings/clock/nvidia,tegra124-car.yaml | 115

[PATCH v5 3/7] clk: tegra: Ensure that PLLU configuration is applied properly

2021-03-17 Thread Dmitry Osipenko
reprograms it, which could be unsafe to do. The correct way should be to skip enabling of the PLL if it's already enabled and then apply configuration to the outputs. This patch doesn't fix any known problems, it's a minor improvement. Acked-by: Thierry Reding Signed-off-by:

[PATCH v5 6/7] clk: tegra: Don't allow zero clock rate for PLLs

2021-03-17 Thread Dmitry Osipenko
el on Samsung Galaxy Tab, which happened due to a bug in Tegra DRM driver that erroneously sets PLL rate to zero. This issues came over again recently during of kernel bring up on ASUS TF700T. Signed-off-by: Dmitry Osipenko --- drivers/clk/tegra/clk-pll.c | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing

2021-03-17 Thread Dmitry Osipenko
17.03.2021 12:56, Krzysztof Kozlowski пишет: > On 17/03/2021 10:52, Sergei Shtylyov wrote: >> Hello! >> >> On 16.03.2021 20:57, Krzysztof Kozlowski wrote: >> >>> The Ralink MIPS platform does not use Common Clock Framework and does >>> not define certain clock operations leading to compile test fai

Re: [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing

2021-03-17 Thread Dmitry Osipenko
ra_usb_phy_init': > phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent' > > Reported-by: kernel test robot > Signed-off-by: Krzysztof Kozlowski > Acked-by: John Crispin Reviewed-by: Dmitry Osipenko

Re: [PATCH v4 1/6] soc/tegra: Add devm_tegra_core_dev_init_opp_table()

2021-03-18 Thread Dmitry Osipenko
14.03.2021 19:48, Dmitry Osipenko пишет: > Add common helper which initializes OPP table for Tegra SoC core devices. > > 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 #

Re: [PATCH v16 1/2] drm/tegra: dc: Support memory bandwidth management

2021-03-18 Thread Dmitry Osipenko
18.03.2021 12:31, Michał Mirosław пишет: >> static const struct tegra_windowgroup_soc tegra194_dc_wgrps[] = { >> @@ -2430,6 +2781,7 @@ static const struct tegra_dc_soc_info >> tegra194_dc_soc_info = { >> .has_nvdisplay = true, >> .wgrps = tegra194_dc_wgrps, >> .num_wgrps = ARRAY_SI

Re: [PATCH v4 1/6] soc/tegra: Add devm_tegra_core_dev_init_opp_table()

2021-03-18 Thread Dmitry Osipenko
18.03.2021 13:32, Viresh Kumar пишет: > On 18-03-21, 13:27, Dmitry Osipenko wrote: >> 14.03.2021 19:48, Dmitry Osipenko пишет: >>> Add common helper which initializes OPP table for Tegra SoC core devices. >>> >>> Tested-by: Peter Geis # Ouya T30 >>> Te

Re: [PATCH v5 2/7] clk: tegra: Fix refcounting of gate clocks

2021-03-18 Thread Dmitry Osipenko
18.03.2021 12:12, Michał Mirosław пишет: > On Wed, Mar 17, 2021 at 10:30:01PM +0300, Dmitry Osipenko wrote: >> The refcounting of the gate clocks has a bug causing the enable_refcnt >> to underflow when unused clocks are disabled. This happens because clk >> provider erroneous

[PATCH v1] memory: tegra20: Add debug statistics

2021-03-18 Thread Dmitry Osipenko
oven to be useful by helping to improve memory bandwidth management of the display driver. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/mc.c | 12 ++ drivers/memory/tegra/tegra20.c | 342 + include/soc/tegra/mc.h | 7 + 3 files ch

Re: [PATCH v1 1/2] iommu/tegra-smmu: Defer attachment of display clients

2021-04-09 Thread Dmitry Osipenko
08.04.2021 17:07, Dmitry Osipenko пишет: >> Whatever happened to the idea of creating identity mappings based on the >> obscure tegra_fb_mem (or whatever it was called) command-line option? Is >> that command-line not universally passed to the kernel from bootloaders >>

Re: [PATCH v2 5/6] dt-bindings: memory: tegra20: emc: Convert to schema

2021-04-04 Thread Dmitry Osipenko
02.04.2021 17:45, Dmitry Osipenko пишет: > 01.04.2021 18:55, Rob Herring пишет: >> On Wed, Mar 31, 2021 at 05:59:39PM +0300, Dmitry Osipenko wrote: >>> 31.03.2021 16:40, Rob Herring пишет: >>>> On Wed, 31 Mar 2021 02:04:44 +0300, Dmitry Osipenko wrote: >>

[PATCH v3 0/1] NVIDIA Tegra memory improvements

2021-04-04 Thread Dmitry Osipenko
maxItems instead of $ref phandle in schemas. Dmitry Osipenko (1): dt-bindings: memory: tegra20: emc: Convert to schema .../memory-controllers/nvidia,tegra20-emc.txt | 130 .../nvidia,tegra20-emc.yaml | 303 ++ 2 files changed, 303 insertions(+), 130

[PATCH v3 1/1] dt-bindings: memory: tegra20: emc: Convert to schema

2021-04-04 Thread Dmitry Osipenko
Convert Tegra20 External Memory Controller binding to schema. Signed-off-by: Dmitry Osipenko --- .../memory-controllers/nvidia,tegra20-emc.txt | 130 .../nvidia,tegra20-emc.yaml | 303 ++ 2 files changed, 303 insertions(+), 130 deletions(-) delete

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-02-19 Thread Dmitry Osipenko
19.02.2021 01:07, Nicolin Chen пишет: > Commit 25938c73cd79 ("iommu/tegra-smmu: Rework tegra_smmu_probe_device()") > removed certain hack in the tegra_smmu_probe() by relying on IOMMU core to > of_xlate SMMU's SID per device, so as to get rid of tegra_smmu_find() and > tegra_smmu_configure() that a

Re: [PATCH v9 01/17] memory: tegra30: Support interconnect framework

2020-11-17 Thread Dmitry Osipenko
17.11.2020 23:24, Georgi Djakov пишет: > Hi Dmitry, > > Thank you working on this! > > On 15.11.20 23:29, Dmitry Osipenko wrote: >> Now Internal and External memory controllers are memory interconnection >> providers. This allows us to use interconnect API for tuning

Re: [PATCH v3 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-10 Thread Dmitry Osipenko
10.12.2020 06:44, Rob Herring пишет: > On Mon, Dec 07, 2020 at 12:22:15AM +0300, Dmitry Osipenko wrote: >> Some Atmel touchscreen controllers have a WAKE line that needs to be >> asserted low in order to wake up controller from a deep sleep. Document >> the wakeup meth

Re: [PATCH v9 01/17] memory: tegra30: Support interconnect framework

2020-11-19 Thread Dmitry Osipenko
18.11.2020 18:30, Georgi Djakov пишет: > On 18.11.20 0:02, Dmitry Osipenko wrote: >> 17.11.2020 23:24, Georgi Djakov пишет: >>> Hi Dmitry, >>> >>> Thank you working on this! >>> >>> On 15.11.20 23:29, Dmitry Osipenko wrote: >&g

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

2020-11-19 Thread Dmitry Osipenko
16.11.2020 16:33, Mark Brown пишет: > On Sun, Nov 15, 2020 at 08:42:10PM +0300, Dmitry Osipenko wrote: >> 13.11.2020 20:28, Mark Brown пишет: > >>>> What should we do? > >>> As I keep saying the consumer driver should be enumerating the voltages >>>

Re: [PATCH] memory: tegra30-emc: Remove unnecessary of_node_put in tegra_emc_probe

2020-11-19 Thread Dmitry Osipenko
GFP_KERNEL); > - if (!emc) { > - of_node_put(np); > + if (!emc) > return -ENOMEM; > - } > > emc->mc = devm_tegra_memory_controller_get(&pdev->dev); > if (IS_ERR(emc->mc)) > > base-commit: 5e00fd90183ab0103b9f403ce73cb8407ebeb145 > Reviewed-by: Dmitry Osipenko

Re: [PATCH v9 07/17] PM / devfreq: tegra30: Support interconnect and OPPs from device-tree

2020-11-19 Thread Dmitry Osipenko
18.11.2020 07:21, Viresh Kumar пишет: ... + /* legacy device-trees don't have OPP table and must be updated */ + if (!device_property_present(&pdev->dev, "operating-points-v2")) { + dev_err(&pdev->dev, + "OPP table not found, please update your device

Re: [PATCH v2] brcmfmac: expose firmware config files through modinfo

2020-11-20 Thread Dmitry Osipenko
20.11.2020 12:52, matthias@kernel.org пишет: > From: Matthias Brugger > > Apart from a firmware binary the chip needs a config file used by the > FW. Add the config files to modinfo so that they can be read by > userspace. > > Signed-off-by: Matthias Brugger > > --- > > Changes in v2: > I

Re: [PATCH] mm/memcg: bail out early when !memcg in mem_cgroup_lruvec

2020-11-30 Thread Dmitry Osipenko
29.11.2020 07:43, Alex Shi пишет: > > > 在 2020/11/28 下午12:02, Andrew Morton 写道: >> On Fri, 27 Nov 2020 11:08:35 +0800 Alex Shi >> wrote: >> >>> Sometime, we use NULL memcg in mem_cgroup_lruvec(memcg, pgdat) >>> so we could get out early in the situation to avoid useless checking. >>> >>> Also w

Re: [PATCH v10 01/19] dt-bindings: memory: tegra20: emc: Document opp-supported-hw property

2020-11-30 Thread Dmitry Osipenko
30.11.2020 21:23, Krzysztof Kozlowski пишет: > On Mon, Nov 30, 2020 at 11:48:18AM +0200, Georgi Djakov wrote: >> On 23.11.20 2:27, Dmitry Osipenko wrote: >>> Document opp-supported-hw property, which is not strictly necessary to >>> have on Tegra20, but it's ver

Re: [PATCH v10 17/19] ARM: tegra: Add EMC OPP properties to Tegra20 device-trees

2020-11-30 Thread Dmitry Osipenko
01.12.2020 00:17, Jon Hunter пишет: > Hi Dmitry, > > On 23/11/2020 00:27, Dmitry Osipenko wrote: >> Add EMC OPP DVFS tables and update board device-trees by removing >> unsupported OPPs. >> >> Signed-off-by: Dmitry Osipenko > This change is generating the

Re: [PATCH v10 00/19] Introduce memory interconnect for NVIDIA Tegra SoCs

2020-11-23 Thread Dmitry Osipenko
23.11.2020 09:17, Viresh Kumar пишет: > On 23-11-20, 03:27, Dmitry Osipenko wrote: >> This series brings initial support for memory interconnect to Tegra20, >> Tegra30 and Tegra124 SoCs. >> >> For the starter only display controllers and devfreq devices are getting

Re: [PATCH v10 03/19] memory: tegra30: Support interconnect framework

2020-11-23 Thread Dmitry Osipenko
23.11.2020 09:32, Georgi Djakov пишет: > Hi Dmitry, > > On 23.11.20 2:27, Dmitry Osipenko wrote: >> Now Internal and External memory controllers are memory interconnection >> providers. This allows us to use interconnect API for tuning of memory >> configuration. EMC d

Re: [PATCH v10 09/19] PM / devfreq: tegra30: Support interconnect and OPPs from device-tree

2020-11-23 Thread Dmitry Osipenko
23.11.2020 10:02, Chanwoo Choi пишет: > Hi Dmitry, > > On 11/23/20 9:27 AM, Dmitry Osipenko wrote: >> This patch moves ACTMON driver away from generating OPP table by itself, >> transitioning it to use the table which comes from device-tree. This >> change breaks comp

Re: [PATCH v2 04/10] seccomp: Migrate to use SYSCALL_WORK flag

2020-11-24 Thread Dmitry Osipenko
16.11.2020 20:42, Gabriel Krisman Bertazi пишет: > When one the generic syscall entry code, use the syscall_work field in > struct thread_info and specific SYSCALL_WORK flags to setup this syscall > work. This flag has the advantage of being architecture independent. > > Users of the flag outside

[PATCH v1 0/3] Support wakeup methods of Atmel maXTouch controllers

2020-12-04 Thread Dmitry Osipenko
ttps://ww1.microchip.com/downloads/en/DeviceDoc/mXT1386_1vx_Datasheet_LX.pdf [2] https://patchwork.kernel.org/project/linux-input/list/?series=357875 Dmitry Osipenko (3): dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO Input: atmel_mxt_ts - support wakeup methods ARM: t

[PATCH v1 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-04 Thread Dmitry Osipenko
Some Atmel touchscreen controllers have a WAKE line that needs to be asserted low in order to wake up controller from a deep sleep. Document the wakeup methods and the wake-GPIO properties. Signed-off-by: Dmitry Osipenko --- .../bindings/input/atmel,maxtouch.yaml| 26

[PATCH v1 3/3] ARM: tegra: acer-a500: Add atmel,wakeup-method property

2020-12-04 Thread Dmitry Osipenko
Add atmel,wakeup-method property to the touchscreen node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

[PATCH v1 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-04 Thread Dmitry Osipenko
failed with error -121 Signed-off-by: Jiada Wang Signed-off-by: Dmitry Osipenko --- drivers/input/touchscreen/atmel_mxt_ts.c | 55 1 file changed, 55 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

Re: [PATCH v1 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-04 Thread Dmitry Osipenko
05.12.2020 08:33, Dmitry Osipenko пишет: > + /* Request the WAKE line as asserted so controller won't sleep */ > + data->wake_gpio = devm_gpiod_get_optional(&client->dev, > + "wake", GPIOD_OUT_HIGH); &

[PATCH v2 0/3] Support wakeup methods of Atmel maXTouch controllers

2020-12-04 Thread Dmitry Osipenko
ttps://ww1.microchip.com/downloads/en/DeviceDoc/mXT1386_1vx_Datasheet_LX.pdf [2] https://patchwork.kernel.org/project/linux-input/list/?series=357875 Changelog: v2: - Fixed copy-paste bug in the code. Dmitry Osipenko (3): dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GP

[PATCH v2 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-04 Thread Dmitry Osipenko
Some Atmel touchscreen controllers have a WAKE line that needs to be asserted low in order to wake up controller from a deep sleep. Document the wakeup methods and the wake-GPIO properties. Signed-off-by: Dmitry Osipenko --- .../bindings/input/atmel,maxtouch.yaml| 26

[PATCH v2 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-04 Thread Dmitry Osipenko
failed with error -121 Signed-off-by: Jiada Wang Signed-off-by: Dmitry Osipenko --- drivers/input/touchscreen/atmel_mxt_ts.c | 55 1 file changed, 55 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

[PATCH v2 3/3] ARM: tegra: acer-a500: Add atmel,wakeup-method property

2020-12-04 Thread Dmitry Osipenko
Add atmel,wakeup-method property to the touchscreen node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

Re: [PATCH v11 04/10] memory: tegra124-emc: Make driver modular

2020-12-05 Thread Dmitry Osipenko
04.12.2020 19:41, Thierry Reding пишет: ... >> +bool tegra124_clk_emc_driver_available(struct clk_hw *hw) >> +{ >> +struct tegra_clk_emc *tegra = container_of(hw, struct tegra_clk_emc, >> hw); >> + >> +return tegra->prepare_timing_change && tegra->complete_timing_change; >> +} > > This lo

Re: [PATCH v1 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-06 Thread Dmitry Osipenko
Hello Linus, 06.12.2020 18:13, Linus Walleij пишет: > On Sat, Dec 5, 2020 at 6:34 AM Dmitry Osipenko wrote: > >> Some Atmel touchscreen controllers have a WAKE line that needs to be >> asserted low in order to wake up controller from a deep sleep. Document >> the wak

Re: [PATCH v2 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-06 Thread Dmitry Osipenko
06.12.2020 18:20, Linus Walleij пишет: > On Sat, Dec 5, 2020 at 6:48 AM Dmitry Osipenko wrote: > >> According to datasheets, chips like mXT1386 have a WAKE line, it is used >> to wake the chip up from deep sleep mode before communicating with it via >> the I2C-compatible

[PATCH v3 0/3] Support wakeup methods of Atmel maXTouch controllers

2020-12-06 Thread Dmitry Osipenko
- The wake-GPIO is now toggled on touchscreen's start/stop in order to allow it to sleep during suspend. Suggested by Linus Walleij. v2: - Fixed copy-paste bug in the code. Dmitry Osipenko (3): dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO Inpu

[PATCH v3 1/3] dt-bindings: input: atmel_mxt_ts: Document atmel,wakeup-method and wake-GPIO

2020-12-06 Thread Dmitry Osipenko
Some Atmel touchscreen controllers have a WAKE line that needs to be asserted low in order to wake up controller from a deep sleep. Document the wakeup methods and the wake-GPIO properties. Reviewed-by: Linus Walleij Signed-off-by: Dmitry Osipenko --- .../bindings/input/atmel,maxtouch.yaml

[PATCH v3 3/3] ARM: tegra: acer-a500: Add atmel,wakeup-method property

2020-12-06 Thread Dmitry Osipenko
Add atmel,wakeup-method property to the touchscreen node. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

[PATCH v3 2/3] Input: atmel_mxt_ts - support wakeup methods

2020-12-06 Thread Dmitry Osipenko
failed with error -121 Signed-off-by: Jiada Wang Signed-off-by: Dmitry Osipenko --- drivers/input/touchscreen/atmel_mxt_ts.c | 78 1 file changed, 78 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index

Re: [PATCH v2 04/10] seccomp: Migrate to use SYSCALL_WORK flag

2020-11-24 Thread Dmitry Osipenko
24.11.2020 20:55, Gabriel Krisman Bertazi пишет: > Dmitry Osipenko writes: > >> Hi, >> >> This patch broke seccomp on arm32 using linux-next, chromium browser >> doesn't work anymore and there are these errors in KMSG: >> >> Unhandled prefet

Re: [PATCH RESEND 0/5] iommu/tegra-smmu: Some pending reviewed changes

2020-11-24 Thread Dmitry Osipenko
25.11.2020 00:21, Nicolin Chen пишет: > Hi Joerg, > > These five patches were acked by Thierry and acked-n-tested by > Dmitry a while ago. Would it be possible for you to apply them? > > Thanks! Hi, You probably should try to ping Will Deacon. https://lkml.org/lkml/2020/11/17/243

[PATCH v2 0/8] Support Runtime PM and host mode by Tegra ChipIdea USB driver

2020-12-17 Thread Dmitry Osipenko
ACK from Thierry Reding to the patch that removes MODULE_ALIAS. - Fixed UDC PHY waking up on ASUS TF201 tablet device by utilizing additional VBUS sensor. This was reported and tested by Ion Agorria. - Added t-b from Ion Agorria. Dmitry Osipenko (7): usb: phy: tegra: Add de

[PATCH v2 3/8] usb: chipidea: tegra: Remove MODULE_ALIAS

2020-12-17 Thread Dmitry Osipenko
core. Remove the unnecessary macro in order to keep the driver's code cleaner. Tested-by: Matt Merhar Tested-by: Nicolas Chauvet Tested-by: Peter Geis Tested-by: Ion Agorria Acked-by: Thierry Reding Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/ci_hdrc_tegra.c | 1 - 1 file chang

[PATCH v2 8/8] ARM: tegra_defconfig: Enable USB_CHIPIDEA and remove USB_EHCI_TEGRA

2020-12-17 Thread Dmitry Osipenko
The ehci-tegra driver was superseded by the generic ChipIdea USB driver, update the tegra's defconfig accordingly. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/tegra_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/tegra_defconfig b

[PATCH v2 1/8] usb: phy: tegra: Add delay after power up

2020-12-17 Thread Dmitry Osipenko
. Tested-by: Matt Merhar Tested-by: Nicolas Chauvet Tested-by: Peter Geis Tested-by: Ion Agorria Signed-off-by: Dmitry Osipenko --- drivers/usb/phy/phy-tegra-usb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-usb.c index

[PATCH v2 2/8] usb: phy: tegra: Support waking up from a low power mode

2020-12-17 Thread Dmitry Osipenko
Support programming of waking up from a low power mode by implementing the generic set_wakeup() callback of the USB PHY API. Tested-by: Matt Merhar Tested-by: Nicolas Chauvet Tested-by: Peter Geis Tested-by: Ion Agorria Signed-off-by: Dmitry Osipenko --- drivers/usb/phy/phy-tegra-usb.c

[PATCH v2 4/8] usb: chipidea: tegra: Rename UDC to USB

2020-12-17 Thread Dmitry Osipenko
, i.e. in this patch. Tested-by: Matt Merhar Tested-by: Nicolas Chauvet Tested-by: Peter Geis Tested-by: Ion Agorria Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/Kconfig | 2 +- drivers/usb/chipidea/ci_hdrc_tegra.c | 78 ++-- 2 files changed, 40 inserti

[PATCH v2 5/8] usb: chipidea: tegra: Support host mode

2020-12-17 Thread Dmitry Osipenko
-by: Peter Geis Signed-off-by: Dmitry Osipenko --- drivers/usb/chipidea/Kconfig | 1 - drivers/usb/chipidea/ci_hdrc_tegra.c | 243 ++- drivers/usb/chipidea/core.c | 10 +- drivers/usb/chipidea/host.c | 104 +++- include/linux/usb

[PATCH v2 7/8] usb: host: ehci-tegra: Remove the driver

2020-12-17 Thread Dmitry Osipenko
: Dmitry Osipenko --- drivers/usb/host/Kconfig | 8 +- drivers/usb/host/Makefile | 1 - drivers/usb/host/ehci-tegra.c | 604 -- 3 files changed, 6 insertions(+), 607 deletions(-) delete mode 100644 drivers/usb/host/ehci-tegra.c diff --git a/drivers/usb

[PATCH v2 6/8] usb: chipidea: tegra: Support runtime PM

2020-12-17 Thread Dmitry Osipenko
Tegra PHY driver now supports waking up controller from a low power mode. Enable runtime PM in order to put controller into the LPM during idle. Tested-by: Matt Merhar Tested-by: Nicolas Chauvet Tested-by: Peter Geis Tested-by: Ion Agorria Signed-off-by: Dmitry Osipenko --- drivers/usb

Re: [PATCH v2 6/8] usb: chipidea: tegra: Support runtime PM

2020-12-17 Thread Dmitry Osipenko
17.12.2020 16:41, Thierry Reding пишет: > On Thu, Dec 17, 2020 at 12:40:05PM +0300, Dmitry Osipenko wrote: >> Tegra PHY driver now supports waking up controller from a low power mode. >> Enable runtime PM in order to put controller into the LPM during idle. >> >> Tested

Re: [PATCH v2 2/8] usb: phy: tegra: Support waking up from a low power mode

2020-12-17 Thread Dmitry Osipenko
17.12.2020 16:33, Thierry Reding пишет: >> +/* PHY won't resume if reset is asserted */ >> +if (phy->wakeup_enabled) >> +goto chrg_cfg0; >> >> val = readl_relaxed(base + USB_SUSP_CTRL); >> val |= UTMIP_RESET; >> writel_relaxed(val, base + USB_SUSP_CTRL); >> >>

Re: [PATCH v2 4/8] usb: chipidea: tegra: Rename UDC to USB

2020-12-17 Thread Dmitry Osipenko
17.12.2020 16:36, Thierry Reding пишет: > On Thu, Dec 17, 2020 at 12:40:03PM +0300, Dmitry Osipenko wrote: >> Rename all occurrences in the code from "udc" to "usb" and change the >> Kconfig entry in order to show that this driver supports USB modes other >

[PATCH v2 01/48] dt-bindings: memory: tegra20: emc: Replace core regulator with power domain

2020-12-17 Thread Dmitry Osipenko
ulator yet, and thus, it's okay to change it. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra20-emc.txt| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.txt

[PATCH v2 00/48] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs

2020-12-17 Thread Dmitry Osipenko
ions, as it was discussed previously in the comments to v1. - Added new APIs, features and fixed various bugs related to voltage scaling and power management done via GENPD API. Dmitry Osipenko (48): dt-bindings: memory: tegra20: emc: Replace core regulator with power domai

[PATCH v2 04/48] dt-bindings: host1x: Document OPP and power domain properties

2020-12-17 Thread Dmitry Osipenko
Document new DVFS OPP table and power domain properties of the Host1x bus and devices sitting on the bus. Signed-off-by: Dmitry Osipenko --- .../display/tegra/nvidia,tegra20-host1x.txt | 49 +++ 1 file changed, 49 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 03/48] dt-bindings: memory: tegra124: emc: Replace core regulator with power domain

2020-12-17 Thread Dmitry Osipenko
ulator yet, and thus, it's okay to change it. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra124-emc.yaml| 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra124-emc.yaml

[PATCH v2 09/48] opp: Add dev_pm_opp_sync_regulators()

2020-12-17 Thread Dmitry Osipenko
Extend OPP API with dev_pm_opp_sync_regulators() function, which syncs voltage state of regulators. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 42 ++ include/linux/pm_opp.h | 11 +++ 2 files changed, 53 insertions(+) diff --git a

[PATCH v2 02/48] dt-bindings: memory: tegra30: emc: Replace core regulator with power domain

2020-12-17 Thread Dmitry Osipenko
ulator yet, and thus, it's okay to change it. Signed-off-by: Dmitry Osipenko --- .../bindings/memory-controllers/nvidia,tegra30-emc.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra30-emc.yaml

[PATCH v2 18/48] opp: Print OPP level in debug message of _opp_add_static_v2()

2020-12-17 Thread Dmitry Osipenko
Print OPP level in debug message of _opp_add_static_v2(). This helps to chase GENPD bugs. Signed-off-by: Dmitry Osipenko --- drivers/opp/of.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 1f2038a4420b..56b153ea5c56 100644

[PATCH v2 17/48] opp: Correct debug message in _opp_add_static_v2()

2020-12-17 Thread Dmitry Osipenko
The debug message always prints rate=0 instead of a proper value, fix it. Signed-off-by: Dmitry Osipenko --- drivers/opp/of.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 3b5a4c8bc62f..1f2038a4420b 100644 --- a/drivers/opp

[PATCH v2 27/48] soc/tegra: Add CONFIG_SOC_TEGRA_COMMON and select PM_OPP by default

2020-12-17 Thread Dmitry Osipenko
Add new Kconfig SOC_TEGRA_COMMON option which selects configuration options that are common for all Tegra SoCs. Select PM_OPP by default since from now on OPPs will be used by Tegra drivers which present on all SoC generations, like display controller driver for example. Signed-off-by: Dmitry

[PATCH v2 40/48] media: staging: tegra-vde: Support OPP and generic power domain

2020-12-17 Thread Dmitry Osipenko
: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- drivers/staging/media/tegra-vde/vde.c | 63 ++- 1 file changed, 53 insertions(+), 10 deletions(-) diff --git a/drivers/staging/media/tegra-vde/vde.c b/drivers/staging/media/tegra-vde/vde.c index 28845b5bafaf..5be26b9bd5d8

[PATCH v2 48/48] ARM: tegra: cardhu: Support CPU voltage scaling and thermal throttling

2020-12-17 Thread Dmitry Osipenko
Enable CPU voltage scaling and thermal throttling on Tegra30 Cardhu board. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra30-cardhu.dtsi | 61 ++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi b/arch/arm

[PATCH v2 21/48] PM: domains: Add "performance" column to debug summary

2020-12-17 Thread Dmitry Osipenko
Add "performance" column to debug summary which shows performance state of all power domains and theirs devices. Signed-off-by: Dmitry Osipenko --- drivers/base/power/domain.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/drivers/base/powe

[PATCH v2 47/48] ARM: tegra: ventana: Support CPU voltage scaling and thermal throttling

2020-12-17 Thread Dmitry Osipenko
Enable CPU voltage scaling and thermal throttling on Tegra20 Ventana board. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-ventana.dts | 40 ++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra20-ventana.dts b/arch/arm

[PATCH v2 16/48] opp: Handle missing OPP table in dev_pm_opp_xlate_performance_state()

2020-12-17 Thread Dmitry Osipenko
ns to pass performance state to the parent domain if child's domain doesn't have OPP table. The dev_pm_opp_xlate_performance_state() gets src_table=NULL if a child power domain doesn't have OPP table and in this case we should pass the performance state to the parent domain. Signe

<    5   6   7   8   9   10   11   12   13   14   >