[PATCH v12 3/4] arm64: Free DTB buffer if fdt_open_into() fails

2020-12-17 Thread Lakshmi Ramasubramanian
create_dtb() function allocates memory for the device tree blob (DTB) and calls fdt_open_into(). If this call fails the memory allocated for the DTB is not freed before returning from create_dtb() thereby leaking memory. Call vfree() to free the memory allocated for the DTB if fdt_open_into()

[PATCH v12 2/4] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2020-12-17 Thread Lakshmi Ramasubramanian
The functions defined in "arch/powerpc/kexec/ima.c" handle setting up and freeing the resources required to carry over the IMA measurement list from the current kernel to the next kernel across kexec system call. These functions do not have architecture specific code, but are currently limited to

[PATCH v12 4/4] arm64: Add IMA log information in kimage used for kexec

2020-12-17 Thread Lakshmi Ramasubramanian
Address and size of the buffer containing the IMA measurement log need to be passed from the current kernel to the next kernel on kexec. Any existing "linux,ima-kexec-buffer" property in the device tree needs to be removed and its corresponding memory reservation in the currently running kernel

Re: [PATCH v2 3/7] regulator: dt-bindings: pf8x00: fix nxp,phase-shift doc

2020-12-17 Thread Jagan Teki
On Wed, Dec 16, 2020 at 5:27 AM Adrien Grassein wrote: > > nxp,phase-shift is an enum so use enum format to describe it. > Minimum and maximum values are also wrong. > > Signed-off-by: Adrien Grassein > --- > .../bindings/regulator/nxp,pf8x00-regulator.yaml | 16 > 1 file

[PATCH v12 1/4] powerpc: Use fdt_appendprop_addrrange() to add ima buffer to FDT

2020-12-17 Thread Lakshmi Ramasubramanian
fdt_appendprop_addrrange() function adds a property, with the given name, to the device tree at the given node offset, and also sets the address and size of the property. This function should be used to add "linux,ima-kexec-buffer" property to the device tree and set the address and size of the

[no subject]

2020-12-17 Thread george mike
dzień dobry Nazywam się George Mike. Z zawodu jestem prawnikiem. Chcę ci zaoferować najbliższy krewny mojego klienta. Odziedziczysz sumę (8,5 miliona dolarów) dolarów, które mój klient zostawił w banku przed śmiercią. Mój klient jest obywatelem twojego kraju, który zginął wraz z żoną w wypadku

Re: [PATCH v2 7/7] regulator: pf8x00: fix nxp,phase-shift

2020-12-17 Thread Jagan Teki
On Wed, Dec 16, 2020 at 5:27 AM Adrien Grassein wrote: > > Fix the ternary condition which is a bad coding style > in the kernel > > I also remove the defering configuration of the nxp,phase-shift. > The configuration is now done at parsing time. It save some memory > and it's better for

Re: [PATCH] checkpatch: add new warning when lookup_symbol_name() is used

2020-12-17 Thread Helge Deller
On 12/17/20 6:27 PM, Joe Perches wrote: > On Thu, 2020-12-17 at 18:11 +0100, Helge Deller wrote: >> In most cases people use lookup_symbol_name() to resolve a kernel symbol >> and then print it via printk(). >> >> In such cases using the %ps, %pS, %pSR or %pB printk formats are easier >> to use

Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout

2020-12-17 Thread Clemens Gruber
On Wed, Dec 16, 2020 at 11:00:59PM -0500, Sven Van Asbroeck wrote: > On Wed, Dec 16, 2020 at 7:53 AM Clemens Gruber > wrote: > > > > Implements .get_state to read-out the current hardware state. > > > > I am not convinced that we actually need this. > > Looking at the pwm core, .get_state() is

Re: [PATCH v5 4/7] pwm: pca9685: Reset registers to POR state in probe

2020-12-17 Thread Clemens Gruber
On Wed, Dec 16, 2020 at 11:02:03PM -0500, Sven Van Asbroeck wrote: > Hi Clemens, minor nit below. > > On Wed, Dec 16, 2020 at 7:53 AM Clemens Gruber > wrote: > > > > Reset the prescale and ON/OFF registers to their POR default state in > > the probe function. Otherwise, the PWMs could still be

v5.10.1 xfs deadlock

2020-12-17 Thread Donald Buczek
Dear xfs developer, I was doing some testing on a Linux 5.10.1 system with two 100 TB xfs filesystems on md raid6 raids. The stress test was essentially `cp -a`ing a Linux source repository with two threads in parallel on each filesystem. After about on hour, the processes to one filesystem

Re: New objtool warning..

2020-12-17 Thread Linus Torvalds
On Thu, Dec 17, 2020 at 9:27 AM Linus Torvalds wrote: > > So I think I'll just apply this patch instead. Commit d652d5f1eeeb ("drm/edid: fix objtool warning in drm_cvt_modes()") has the long and boring explanation. Linus

[PATCH net] net: mvpp2: Add TCAM entry to drop flow control pause frames

2020-12-17 Thread stefanc
From: Stefan Chulski Issue: Flow control frame used to pause GoP(MAC) was delivered to the CPU and created a load on the CPU. Since XOFF/XON frames are used only by MAC, these frames should be dropped inside MAC. Fix: According to 802.3-2012 - IEEE Standard for Ethernet pause frame has unique

Re: [PATCH v5 5/7] pwm: pca9685: Support staggered output ON times

2020-12-17 Thread Clemens Gruber
On Wed, Dec 16, 2020 at 11:02:57PM -0500, Sven Van Asbroeck wrote: > Hi Clemens, see below. > > On Wed, Dec 16, 2020 at 7:53 AM Clemens Gruber > wrote: > > > > The PCA9685 supports staggered LED output ON times to minimize current > > surges and reduce EMI. > > When this new option is enabled,

Re: [PATCH] xtensa: fix spelling mistake in Kconfig "wont" -> "won't"

2020-12-17 Thread Max Filippov
On Thu, Dec 17, 2020 at 9:24 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in the Kconfig help text. Fix it. > > Signed-off-by: Colin Ian King > --- > arch/xtensa/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks. Applied to my xtensa tree.

Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout

2020-12-17 Thread Sven Van Asbroeck
On Thu, Dec 17, 2020 at 12:43 PM Clemens Gruber wrote: > > > > Conclusion: .get_state() will always return "pwm disabled", so why do we > > bother reading out the h/w? > > If there are no plans for the PWM core to call .get_state more often in > the future, we could just read out the period and

Re: [patch 0/2] Documentation/process: Add subsystem/tree handbook

2020-12-17 Thread Jonathan Corbet
On Thu, 17 Dec 2020 16:05:37 +0100 Borislav Petkov wrote: > So, that thing. > > I have this ontop of 5.10 along with most comments integrated. > > Now, I'm thinking if I start sending those pieces which belong into the > main process documentation, the bikeshedding that is going to ensue is >

Re: [PATCH net] net: mvpp2: prs: fix PPPoE with ipv6 packet parse

2020-12-17 Thread Antoine Tenart
Hi Stefan, Quoting stef...@marvell.com (2020-12-17 18:23:11) > From: Stefan Chulski > > Current PPPoE+IPv6 entry is jumping to 'next-hdr' > field and not to 'DIP' field as done for IPv4. > > Fixes: db9d7d36eecc ("net: mvpp2: Split the PPv2 driver to a dedicated > directory") That's not the

Re: [PATCH 06/18] arm64: dts: renesas: beacon: Configure Audio CODEC clocks

2020-12-17 Thread Adam Ford
On Thu, Dec 17, 2020 at 7:33 AM Adam Ford wrote: > > On Thu, Dec 17, 2020 at 5:12 AM Geert Uytterhoeven > wrote: > > > > Hi Adam, > > > > CC alsa-devel > > > > On Sun, Dec 13, 2020 at 7:38 PM Adam Ford wrote: > > > With the newly added configurable clock options, the audio CODEC can > > >

Re: [PATCH 1/2] net: stmmac: retain PTP-clock at hwtstamp_set

2020-12-17 Thread Jakub Kicinski
On Thu, 17 Dec 2020 09:25:48 +0100 Ahmad Fatoum wrote: > On 17.12.20 02:13, Jakub Kicinski wrote: > >> + netdev_warn(priv->dev, "HW Timestamping init failed: > >> %pe\n", > >> + ERR_PTR(ret)); > > > > why convert to ERR_PTR and use %pe and not

Re: [patch 0/2] Documentation/process: Add subsystem/tree handbook

2020-12-17 Thread Borislav Petkov
On Thu, Dec 17, 2020 at 10:53:23AM -0700, Jonathan Corbet wrote: > Gee...a response from a two-year-old thread... You know how we love to document stuff, right? :-) > it's taking me a while to page all of that back in :) Here's the gist of your concern:

RE: [EXT] Re: [PATCH net] net: mvpp2: prs: fix PPPoE with ipv6 packet parse

2020-12-17 Thread Stefan Chulski
> External Email > > -- > Hi Stefan, > > Quoting stef...@marvell.com (2020-12-17 18:23:11) > > From: Stefan Chulski > > > > Current PPPoE+IPv6 entry is jumping to 'next-hdr' > > field and not to 'DIP' field as done for IPv4. >

[PATCH v3 4/4] selftests: lib: Add wrapper script for test_scanf

2020-12-17 Thread Richard Fitzgerald
Adds a wrapper shell script for the test_scanf module. Signed-off-by: Richard Fitzgerald Reviewed-by: Petr Mladek --- tools/testing/selftests/lib/Makefile | 2 +- tools/testing/selftests/lib/config | 1 + tools/testing/selftests/lib/scanf.sh | 4 3 files changed, 6 insertions(+), 1

[PATCH v3 1/4] lib: vsprintf: scanf: Negative number must have field width > 1

2020-12-17 Thread Richard Fitzgerald
If a signed number field starts with a '-' the field width must be > 1, or unlimited, to allow at least one digit after the '-'. This patch adds a check for this. If a signed field starts with '-' and field_width == 1 the scanf will quit. It is ok for a signed number field to have a field width

[PATCH v3 3/4] lib: test_scanf: Add tests for sscanf number conversion

2020-12-17 Thread Richard Fitzgerald
Adds test_sscanf to test various number conversion cases, as number conversion was previously broken. This also tests the simple_strtoxxx() functions exported from vsprintf.c. Signed-off-by: Richard Fitzgerald --- MAINTAINERS | 1 + lib/Kconfig.debug | 3 + lib/Makefile | 1 +

[PATCH v3 2/4] lib: vsprintf: Fix handling of number field widths in vsscanf

2020-12-17 Thread Richard Fitzgerald
The existing code attempted to handle numbers by doing a strto[u]l(), ignoring the field width, and then repeatedly dividing to extract the field out of the full converted value. If the string contains a run of valid digits longer than will fit in a long or long long, this would overflow and no

Re: [PATCH net] net: mvpp2: Add TCAM entry to drop flow control pause frames

2020-12-17 Thread Antoine Tenart
Quoting stef...@marvell.com (2020-12-17 18:45:06) > From: Stefan Chulski > > Issue: > Flow control frame used to pause GoP(MAC) was delivered to the CPU > and created a load on the CPU. Since XOFF/XON frames are used only > by MAC, these frames should be dropped inside MAC. > > Fix: > According

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

2020-12-17 Thread Dmitry Osipenko
Power domain fits much better than a voltage regulator in regards to a proper hardware description and from a software perspective as well. Hence replace the core regulator with the power domain. Note that this doesn't affect any existing DTBs because we haven't started to use the regulator yet,

Re: [PATCH v5 7/7] pwm: pca9685: Restrict period change for prescaler users

2020-12-17 Thread Clemens Gruber
Hi Sven, On Wed, Dec 16, 2020 at 11:03:39PM -0500, Sven Van Asbroeck wrote: > Hi Clemens, see below. > > On Wed, Dec 16, 2020 at 7:53 AM Clemens Gruber > wrote: > > > > Previously, the last used PWM channel could change the global prescale > > setting, even if other channels were already in

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

2020-12-17 Thread Dmitry Osipenko
Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs, which reduces power consumption and heating of the Tegra chips. Tegra SoC has multiple hardware units which belong to a core power domain of the SoC and share the core voltage. The voltage must be selected in accordance to a minimum

[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

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

2020-12-17 Thread Dmitry Osipenko
Power domain fits much better than a voltage regulator in regards to a proper hardware description and from a software perspective as well. Hence replace the core regulator with the power domain. Note that this doesn't affect any existing DTBs because we haven't started to use the regulator yet,

[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

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

2020-12-17 Thread Dmitry Osipenko
Power domain fits much better than a voltage regulator in regards to a proper hardware description and from a software perspective as well. Hence replace the core regulator with the power domain. Note that this doesn't affect any existing DTBs because we haven't started to use the regulator yet,

[GIT PULL] Please pull NFS client changes for 5.11

2020-12-17 Thread Trond Myklebust
Hi Linus, The following changes since commit 63e2fffa59a9dd91e443b08832656399fd80b7f0: pNFS/flexfiles: Fix array overflow when flexfiles mirroring is enabled (2020-11-30 10:52:22 -0500) are available in the Git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git

[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 ---

[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
Add OPP and generic power domain support to the video decoder driver. This allows us to utilize a modern GENPD API for newer device-trees and support DVFS of the decoder hardware. Note that older DTBs will continue to work like they did it before this patch. Tested-by: Peter Geis Tested-by:

[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

[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/power/domain.c

[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

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

2020-12-17 Thread Dmitry Osipenko
NVIDIA Tegra SoCs have a power domains topology such that child domains only clamp a power rail, while parent domain controls shared performance state of the multiple child domains. In this case child's domain doesn't need to have OPP table. Hence we want to allow children power domains to pass

[PATCH v2 31/48] soc/tegra: regulators: Support Core domain state syncing

2020-12-17 Thread Dmitry Osipenko
The core voltage shall not drop until state of Core domain is synced, i.e. all device drivers that use Core domain are loaded and ready. Support Core domain state syncing. The Core domain driver invokes the core-regulator voltage syncing once the state of domain is synced, at this point the Core

[PATCH v2 29/48] soc/tegra: pmc: Link domains to the parent Core domain

2020-12-17 Thread Dmitry Osipenko
The Core domain is a parent of PMC power domains, hence PMC domains should be set up as a sub-domains of the parent (Core) domain if "power-domains" phandle presents in a device-tree node of PMC domain. This allows to propagate GENPD performance changes to the parent Core domain if performance

[PATCH v2 45/48] ARM: tegra: acer-a500: Enable core voltage scaling

2020-12-17 Thread Dmitry Osipenko
Allow lower core voltages on Acer A500. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts b/arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

[PATCH v2 43/48] ARM: tegra: Add OPP tables and power domains to Tegra20 device-tree

2020-12-17 Thread Dmitry Osipenko
Add OPP tables and power domains to the Tegra20 device-tree. Signed-off-by: Dmitry Osipenko --- .../boot/dts/tegra20-acer-a500-picasso.dts| 4 + arch/arm/boot/dts/tegra20-colibri.dtsi| 6 +- arch/arm/boot/dts/tegra20-harmony.dts | 6 +-

[PATCH v2 46/48] ARM: tegra: ventana: Enable core voltage scaling

2020-12-17 Thread Dmitry Osipenko
Allow lower core voltages on Ventana board. Signed-off-by: Dmitry Osipenko --- arch/arm/boot/dts/tegra20-ventana.dts | 32 --- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/tegra20-ventana.dts b/arch/arm/boot/dts/tegra20-ventana.dts

[PATCH v2 39/48] drm/tegra: vic: Stop channel before suspending

2020-12-17 Thread Dmitry Osipenko
Host1x channel should be idling before hardware is turned off, hence stop the channel in the suspend callback. Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/vic.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/tegra/vic.c

[PATCH v2 26/48] soc/tegra: Add devm_tegra_core_dev_init_opp_table()

2020-12-17 Thread Dmitry Osipenko
Add common helper which initializes OPP table for Tegra SoC core devices. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/common.c | 137 + include/soc/tegra/common.h | 35 ++ 2 files changed, 172 insertions(+) diff --git

Re: [PATCH v2 0/3] add support for metadata encryption to F2FS

2020-12-17 Thread Theodore Y. Ts'o
On Thu, Dec 17, 2020 at 03:04:32PM +, Satya Tangirala wrote: > This patch series adds support for metadata encryption to F2FS using > blk-crypto. Is there a companion patch series needed so that f2fstools can check/repair a file system with metadata encryption enabled?

[PATCH v2 23/48] soc/tegra: pmc: Pulse resets after removing power clamp

2020-12-17 Thread Dmitry Osipenko
The GR3D1 hardware unit needs to pulse hardware reset after removing power clamp, otherwise reset won't be deasserted. Hence give reset a pulse after removing the clamp. This stayed unnoticed previously because power management wasn't supported by the 3D driver until recently and all power gates

[PATCH v2 08/48] regulator: Make regulator_sync_voltage() usable by coupled regulators

2020-12-17 Thread Dmitry Osipenko
Make regulator_sync_voltage() to re-balance voltage state of a coupled regulators instead of changing the voltage directly. Signed-off-by: Dmitry Osipenko --- drivers/regulator/core.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c

[PATCH v2 22/48] soc/tegra: pmc: Fix imbalanced clock disabling in error code path

2020-12-17 Thread Dmitry Osipenko
The tegra_powergate_power_up() has a typo in the error code path where it will try to disable clocks twice, fix it. In practice that error never happens, so this is a minor correction. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 30/48] soc/tegra: regulators: Fix locking up when voltage-spread is out of range

2020-12-17 Thread Dmitry Osipenko
Fix voltage coupler lockup which happens when voltage-spread is out of range due to a bug in the code. The max-spread requirement shall be accounted when CPU regulator doesn't have consumers. This problem is observed on Tegra30 Ouya game console once system-wide DVFS is enabled in a device-tree.

[PATCH v2 28/48] soc/tegra: Introduce core power domain driver

2020-12-17 Thread Dmitry Osipenko
NVIDIA Tegra SoCs have multiple power domains, each domain corresponds to an external SoC power rail. Core power domain covers vast majority of hardware blocks within a Tegra SoC. The voltage of a power domain should be set to a value which satisfies all devices within a power domain. Add driver

[PATCH v2 34/48] gpu: host1x: Support power management

2020-12-17 Thread Dmitry Osipenko
Add suspend/resume and generic power domain support to the Host1x driver. This is required for enabling system-wide DVFS and supporting dynamic power management using a generic power domain. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko ---

[PATCH v2 44/48] ARM: tegra: Add OPP tables and power domains to Tegra30 device-tree

2020-12-17 Thread Dmitry Osipenko
Add OPP tables and power domains to Tegra30 device-tree. Signed-off-by: Dmitry Osipenko --- .../tegra30-asus-nexus7-grouper-common.dtsi |4 + arch/arm/boot/dts/tegra30-beaver.dts |4 + arch/arm/boot/dts/tegra30-cardhu.dtsi | 20 +-

[PATCH v2 20/48] PM: domains: Make set_performance_state() callback optional

2020-12-17 Thread Dmitry Osipenko
Make set_performance_state() callback optional in order to remove the need from power domain drivers to implement a dummy callback. If callback isn't implemented by a GENPD driver, then the performance state is passed to the parent domain. Signed-off-by: Dmitry Osipenko ---

[PATCH v2 41/48] memory: tegra20-emc: Use devm_tegra_core_dev_init_opp_table()

2020-12-17 Thread Dmitry Osipenko
Use common devm_tegra_core_dev_init_opp_table() helper for the OPP table initialization. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra20-emc.c | 57 +++--- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/drivers/memory/tegra/tegra20-emc.c

[PATCH v2 37/48] drm/tegra: gr2d: Support OPP and power management

2020-12-17 Thread Dmitry Osipenko
Add OPP and PM support to the GR2D driver. This is required for enabling system-wide DVFS and supporting dynamic power management using a generic power domain. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr2d.c | 73

[PATCH v2 42/48] memory: tegra30-emc: Use devm_tegra_core_dev_init_opp_table()

2020-12-17 Thread Dmitry Osipenko
Use common devm_tegra_core_dev_init_opp_table() helper for the OPP table initialization. Signed-off-by: Dmitry Osipenko --- drivers/memory/tegra/tegra30-emc.c | 57 +++--- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/drivers/memory/tegra/tegra30-emc.c

[PATCH v2 36/48] drm/tegra: gr2d: Correct swapped device-tree compatibles

2020-12-17 Thread Dmitry Osipenko
The device-tree compatibles are swapped in the code, correct them. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr2d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/gr2d.c

[PATCH v2 19/48] opp: Fix adding OPP entries in a wrong order if rate is unavailable

2020-12-17 Thread Dmitry Osipenko
Fix adding OPP entries in a wrong (opposite) order if OPP rate is unavailable. The OPP comparison is erroneously skipped if OPP rate is missing, thus OPPs are left unsorted. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 23 --- drivers/opp/opp.h | 2 +- 2 files

[PATCH v2 38/48] drm/tegra: g3d: Support OPP and power management

2020-12-17 Thread Dmitry Osipenko
Add OPP and add PM support to the GR3D driver. This is required for enabling system-wide DVFS and supporting dynamic power management using a generic power domain. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/gr3d.c | 264

[PATCH v2 15/48] opp: Support set_opp() customization without requiring to use regulators

2020-12-17 Thread Dmitry Osipenko
Support set_opp() customization without requiring to use regulators. This is needed by drivers which want to use dev_pm_opp_set_rate() for changing rates of a multiple clocks and don't need to touch regulator. One example is NVIDIA Tegra30/114 SoCs which have two sibling 3D hardware units which

[PATCH v2 25/48] soc/tegra: pmc: Print out domain name when reset fails to acquire

2020-12-17 Thread Dmitry Osipenko
Print out domain name when reset fails to acquire for debugging purposes and to make formatting of GENPD errors consistent in the driver. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/tegra/pmc.c

[PATCH v2 33/48] gpu: host1x: Add host1x_channel_stop()

2020-12-17 Thread Dmitry Osipenko
Add host1x_channel_stop() which waits till channel becomes idle and then stops the channel hardware. This is needed for supporting suspend/resume by host1x drivers since the hardware state is lost after power-gating, thus the channel needs to be stopped before entering into suspend.

[PATCH v2 32/48] clk: tegra: Support runtime PM, power domain and OPP

2020-12-17 Thread Dmitry Osipenko
The Clock-and-Reset controller resides in a "core" power domain on NVIDIA Tegra SoCs. In order to support voltage scaling of the core power rail, we need to hook up some clocks (which can't operate properly on a lower voltages above certain clock rates) to the core power domain in order to ensure

[PATCH v2 24/48] soc/tegra: pmc: Ensure that clock rates aren't too high

2020-12-17 Thread Dmitry Osipenko
Switch all clocks of a power domain to a safe rate which is suitable for all possible voltages in order to ensure that hardware constraints aren't violated when power domain state toggles. Signed-off-by: Dmitry Osipenko --- drivers/soc/tegra/pmc.c | 92 -

[PATCH v2 14/48] opp: Filter out OPPs based on availability of a required-OPP

2020-12-17 Thread Dmitry Osipenko
A required OPP may not be available, and thus, all OPPs which are using this required OPP should be unavailable too. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c

[PATCH v2 13/48] opp: Add resource-managed versions of OPP API functions

2020-12-17 Thread Dmitry Osipenko
Add resource-managed versions of OPP API functions. This removes a need from drivers to store and manage OPP table pointers. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 173 + drivers/opp/of.c | 25 ++ include/linux/pm_opp.h |

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

2020-12-17 Thread Dmitry Osipenko
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. Tested-by: Peter Geis Tested-by: Nicolas Chauvet Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/tegra/dc.c | 66

Re: [PATCH v2 1/3] dt-bindings: rtc: add reset-source property

2020-12-17 Thread Uwe Kleine-König
On Thu, Dec 17, 2020 at 10:51:08AM -0600, Rob Herring wrote: > On Fri, Dec 11, 2020 at 5:10 PM Rasmus Villemoes > wrote: > > > > On 11/12/2020 23.30, Rob Herring wrote: > > > On Fri, Dec 11, 2020 at 3:56 PM Rasmus Villemoes > > > wrote: > > >> > > >> Some RTCs, e.g. the pcf2127, can be used as a

[PATCH v2 06/48] dt-bindings: clock: tegra: Document clocks sub-node

2020-12-17 Thread Dmitry Osipenko
Document "clocks" sub-node which describes Tegra SoC clocks that require a higher voltage of the core power domain in order to operate properly on a higher rates. Signed-off-by: Dmitry Osipenko --- .../bindings/clock/nvidia,tegra20-car.txt | 26 +++

RE: [EXT] Re: [PATCH net] net: mvpp2: Add TCAM entry to drop flow control pause frames

2020-12-17 Thread Stefan Chulski
> Quoting stef...@marvell.com (2020-12-17 18:45:06) > > From: Stefan Chulski > > > > Issue: > > Flow control frame used to pause GoP(MAC) was delivered to the CPU and > > created a load on the CPU. Since XOFF/XON frames are used only by MAC, > > these frames should be dropped inside MAC. > > > >

[PATCH 0/3] dmaengine: xilinx_dma: coverity fixes

2020-12-17 Thread Radhey Shyam Pandey
This patch series fix coverity warnings for xilinx_dma driver. No functional change. These patches are picked from xilinx linux tree and posted for upstream. Shravya Kumbham (3): dmaengine: xilinx_dma: check dma_async_device_register return value dmaengine: xilinx_dma: fix incompatible param

[PATCH v2 12/48] opp: Add dev_pm_opp_get_required_pstate()

2020-12-17 Thread Dmitry Osipenko
Add dev_pm_opp_get_required_pstate() which allows OPP users to retrieve required performance state of a given OPP. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 22 ++ include/linux/pm_opp.h | 10 ++ 2 files changed, 32 insertions(+) diff --git

Re: [PATCH v12 0/4] Carry forward IMA measurement log on kexec on ARM64

2020-12-17 Thread Lakshmi Ramasubramanian
On 12/17/20 9:37 AM, Lakshmi Ramasubramanian wrote: On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs, and measure it. The command line parameters passed to the kernel in the kexec call may also be measured by IMA. A

[PATCH 1/3] dmaengine: xilinx_dma: check dma_async_device_register return value

2020-12-17 Thread Radhey Shyam Pandey
From: Shravya Kumbham dma_async_device_register() can return non-zero error code. Add condition to check the return value of dma_async_device_register function and handle the error path. Addresses-Coverity: Event check_return. Signed-off-by: Shravya Kumbham Signed-off-by: Radhey Shyam Pandey

[PATCH v2 10/48] opp: Add dev_pm_opp_set_voltage()

2020-12-17 Thread Dmitry Osipenko
Add dev_pm_opp_set_voltage() which allows OPP table users to set voltage in accordance to a given OPP. In particular this is needed for driving voltage of a generic power domain which uses OPPs and doesn't have a clock. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 52

[PATCH v2 05/48] media: dt: bindings: tegra-vde: Document OPP and power domain properties

2020-12-17 Thread Dmitry Osipenko
Document new DVFS OPP table and power domain properties of the video decoder engine. Signed-off-by: Dmitry Osipenko --- .../devicetree/bindings/media/nvidia,tegra-vde.txt | 12 1 file changed, 12 insertions(+) diff --git

[PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil()

2020-12-17 Thread Dmitry Osipenko
Add a ceil version of the dev_pm_opp_find_level(). It's handy to have if levels don't start from 0 in OPP table and zero usually means a minimal level. Signed-off-by: Dmitry Osipenko --- drivers/opp/core.c | 49 ++ include/linux/pm_opp.h | 8 +++

[PATCH v2 07/48] dt-bindings: arm: tegra: Add binding for core power domain

2020-12-17 Thread Dmitry Osipenko
All NVIDIA Tegra SoCs have a core power domain where majority of hardware blocks reside. Add binding for the core power domain. Signed-off-by: Dmitry Osipenko --- .../arm/tegra/nvidia,tegra20-core-domain.yaml | 48 +++ 1 file changed, 48 insertions(+) create mode 100644

[PATCH 3/3] dmaengine: xilinx_dma: fix mixed_enum_type coverity warning

2020-12-17 Thread Radhey Shyam Pandey
From: Shravya Kumbham Typecast the fls(width -1) with (enum dmaengine_alignment) in xilinx_dma_chan_probe function to fix the coverity warning. Addresses-Coverity: Event mixed_enum_type. Signed-off-by: Shravya Kumbham Signed-off-by: Radhey Shyam Pandey --- drivers/dma/xilinx/xilinx_dma.c | 3

[PATCH 2/3] dmaengine: xilinx_dma: fix incompatible param warning in _child_probe()

2020-12-17 Thread Radhey Shyam Pandey
From: Shravya Kumbham In xilinx_dma_child_probe function, the nr_channels variable is passed to of_property_read_u32() which expects an u32 return value pointer. Modify the nr_channels variable type from int to u32 to fix the incompatible parameter coverity warning. Addresses-Coverity: Event

Re: [PATCH net-next] sfc: reduce the number of requested xdp ev queues

2020-12-17 Thread Jakub Kicinski
On Mon, 14 Dec 2020 17:29:06 -0800 Ivan Babrou wrote: > Without this change the driver tries to allocate too many queues, > breaching the number of available msi-x interrupts on machines > with many logical cpus and default adapter settings: > > Insufficient resources for 12 XDP event queues (24

Re: [PATCH] checkpatch: add new warning when lookup_symbol_name() is used

2020-12-17 Thread Joe Perches
On Thu, 2020-12-17 at 18:42 +0100, Helge Deller wrote: > On 12/17/20 6:27 PM, Joe Perches wrote: > > On Thu, 2020-12-17 at 18:11 +0100, Helge Deller wrote: > > > In most cases people use lookup_symbol_name() to resolve a kernel symbol > > > and then print it via printk(). > > > > > > In such

Re: [PATCH v4 3/5] mm: Speedup mremap on 1GB or larger regions

2020-12-17 Thread Kalesh Singh
On Thu, Dec 17, 2020 at 12:28 PM Guenter Roeck wrote: > > On Wed, Oct 14, 2020 at 12:53:08AM +, Kalesh Singh wrote: > > Android needs to move large memory regions for garbage collection. > > The GC requires moving physical pages of multi-gigabyte heap > > using mremap. During this move, the

Re: [PATCH v5 7/7] pwm: pca9685: Restrict period change for prescaler users

2020-12-17 Thread Sven Van Asbroeck
On Thu, Dec 17, 2020 at 1:07 PM Clemens Gruber wrote: > > As always, great review! Thank you! > My pleasure, it's great to help out. And thanks, you're the one doing all the hard work :)

Re: [PATCH] remoteproc: Create a separate workqueue for recovery tasks

2020-12-17 Thread rishabhb
On 2020-12-17 08:12, Alex Elder wrote: On 12/15/20 4:55 PM, Bjorn Andersson wrote: On Sat 12 Dec 14:48 CST 2020, Rishabh Bhatnagar wrote: Create an unbound high priority workqueue for recovery tasks. I have been looking at a different issue that is caused by crash notification. What

Re: [PATCH v2 34/48] gpu: host1x: Support power management

2020-12-17 Thread Mikko Perttunen
On 12/17/20 8:06 PM, Dmitry Osipenko wrote: Add suspend/resume and generic power domain support to the Host1x driver. This is required for enabling system-wide DVFS and supporting dynamic power management using a generic power domain. Tested-by: Peter Geis Tested-by: Nicolas Chauvet

Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting

2020-12-17 Thread Linus Torvalds
On Thu, Dec 17, 2020 at 2:54 AM Kirill A. Shutemov wrote: > > Also if the range doesn't have a mappable page we would setup a page > table into the PMD entry. It means we cannot have huge page mapped there > later. It may be a bummer: getting the page table out of page table tree > requires

Re: [PATCH v2 1/3] dt-bindings: rtc: add reset-source property

2020-12-17 Thread Rasmus Villemoes
On 17/12/2020 19.12, Uwe Kleine-König wrote: > On Thu, Dec 17, 2020 at 10:51:08AM -0600, Rob Herring wrote: >> On Fri, Dec 11, 2020 at 5:10 PM Rasmus Villemoes >> wrote: >> I'm wondering how you solve which wdog to ping when there are multiple >> without relying on numbering. I guess

RE: [PATCH net v2] net: emaclite: Add error handling for of_address_ and _mdio_setup functions

2020-12-17 Thread Radhey Shyam Pandey
> -Original Message- > From: Denis Kirjanov > Sent: Tuesday, November 17, 2020 6:43 PM > To: Radhey Shyam Pandey > Cc: da...@davemloft.net; net...@vger.kernel.org; k...@kernel.org; > Michal Simek ; mchehab+sams...@kernel.org; > gre...@linuxfoundation.org; nicolas.fe...@microchip.com;

Re: New objtool warning..

2020-12-17 Thread Joe Perches
On Thu, 2020-12-17 at 09:27 -0800, Linus Torvalds wrote: > On Thu, Dec 17, 2020 at 8:25 AM Josh Poimboeuf wrote: > > > > Oh yeah, I forgot about that. That would be another option if my patch > > doesn't work out. > > Well, one option is to just say "ok, we know gcc generates horrible > code

Re: [PATCH v2] xen/xenbus: make xs_talkv() interruptible

2020-12-17 Thread Andrew Cooper
On 16/12/2020 08:21, Jürgen Groß wrote: > On 15.12.20 21:59, Andrew Cooper wrote: >> On 15/12/2020 11:10, Juergen Gross wrote: >>> In case a process waits for any Xenstore action in the xenbus driver >>> it should be interruptible by signals. >>> >>> Signed-off-by: Juergen Gross >>> --- >>> V2:

Re: [PATCH] ext4: Don't leak old mountpoint samples

2020-12-17 Thread Theodore Y. Ts'o
On Tue, Dec 01, 2020 at 04:13:01PM +0100, Richard Weinberger wrote: > As soon the first file is opened, ext4 samples the mountpoint > of the filesystem in 64 bytes of the super block. > It does so using strlcpy(), this means that the remaining bytes > in the super block string buffer are

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

2020-12-17 Thread Daniel Lezcano
On 17/12/2020 19:06, Dmitry Osipenko wrote: > 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(-) > >

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

2020-12-17 Thread Daniel Lezcano
On 17/12/2020 19:06, Dmitry Osipenko wrote: > Enable CPU voltage scaling and thermal throttling on Tegra30 Cardhu board. > > Signed-off-by: Dmitry Osipenko > --- Same comments as 47/48 > arch/arm/boot/dts/tegra30-cardhu.dtsi | 61 ++- > 1 file changed, 60

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