Re: [PATCH] media: Fix compilation error

2021-04-07 Thread Mikko Perttunen
On 7.4.2021 16.29, Hans Verkuil wrote: On 02/04/2021 09:40, Bixuan Cui wrote: Fix the error: drivers/staging/media/tegra-video/vi.c:1180:4: error: implicit declaration of function 'host1x_syncpt_free' [-Werror,-Wimplicit-function-declaration] Against what tree is this being built? The

Re: [RFC PATCH 1/8] of/device: Allow specifying a custom iommu_spec to of_dma_configure

2021-02-16 Thread Mikko Perttunen
On 2/16/21 2:47 PM, Robin Murphy wrote: Hi Mikko, On 2021-02-08 16:38, Mikko Perttunen wrote: To allow for more customized device tree bindings that point to IOMMUs, allow manual specification of iommu_spec to of_dma_configure. The initial use case for this is with Host1x, where the driver

Re: [PATCH] tty: serial: Add earlycon driver for Tegra Combined UART

2021-02-16 Thread Mikko Perttunen
On 2/15/21 2:09 PM, Thierry Reding wrote: On Mon, Feb 15, 2021 at 12:35:31PM +0200, Mikko Perttunen wrote: On 2/15/21 12:25 PM, Thierry Reding wrote: On Sat, Feb 13, 2021 at 01:58:24PM +0200, Mikko Perttunen wrote: Add an earlycon driver for platforms with TCU, namely Tegra194. The driver

Re: [PATCH] tty: serial: Add earlycon driver for Tegra Combined UART

2021-02-15 Thread Mikko Perttunen
On 2/15/21 12:25 PM, Thierry Reding wrote: On Sat, Feb 13, 2021 at 01:58:24PM +0200, Mikko Perttunen wrote: Add an earlycon driver for platforms with TCU, namely Tegra194. The driver is compatible with boot parameters passed by NVIDIA boot chains. I'm not sure I understand the latter part

[PATCH] tty: serial: Add earlycon driver for Tegra Combined UART

2021-02-13 Thread Mikko Perttunen
Add an earlycon driver for platforms with TCU, namely Tegra194. The driver is compatible with boot parameters passed by NVIDIA boot chains. Signed-off-by: Mikko Perttunen --- drivers/tty/serial/Kconfig | 12 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial

[PATCH] mailbox: tegra-hsp: Set lockdep class dynamically

2021-02-10 Thread Mikko Perttunen
On Tegra194, due to both BPMP and TCU using mailboxes, we get a lockdep spew at boot. Both are using different instances of HSP, so this is harmless. As such give each HSP instance a different lockdep class. Signed-off-by: Mikko Perttunen --- drivers/mailbox/tegra-hsp.c | 15 +++ 1

Re: [RFC PATCH 1/8] of/device: Allow specifying a custom iommu_spec to of_dma_configure

2021-02-08 Thread Mikko Perttunen
On 2/8/21 6:38 PM, Mikko Perttunen wrote: ... -static int of_iommu_xlate(struct device *dev, - struct of_phandle_args *iommu_spec) +int of_iommu_xlate(struct device *dev, struct of_phandle_args *iommu_spec) ... +EXPORT_SYMBOL_GPL(of_iommu_xlate); These two chunks

[RFC PATCH 0/8] Host1x context isolation support

2021-02-08 Thread Mikko Perttunen
erted them to YAML) yet, so this is RFC for now. Thanks! Mikko Mikko Perttunen (8): of/device: Allow specifying a custom iommu_spec to of_dma_configure gpu: host1x: Add context bus gpu: host1x: Add context device management code gpu: host1x: Program context stream ID on submission iomm

[RFC PATCH 4/8] gpu: host1x: Program context stream ID on submission

2021-02-08 Thread Mikko Perttunen
that might do DMA using the new stream ID. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/hw/channel_hw.c| 52 +-- drivers/gpu/host1x/hw/host1x06_hardware.h | 10 + drivers/gpu/host1x/hw/host1x07_hardware.h | 10 + include/linux/host1x.h| 4

[RFC PATCH 1/8] of/device: Allow specifying a custom iommu_spec to of_dma_configure

2021-02-08 Thread Mikko Perttunen
. These contexts don't correspond to platform devices and are instead attached to dummy devices on a custom software bus. Signed-off-by: Mikko Perttunen --- drivers/iommu/of_iommu.c | 12 drivers/of/device.c | 9 + include/linux/of_device.h | 34

[RFC PATCH 3/8] gpu: host1x: Add context device management code

2021-02-08 Thread Mikko Perttunen
Add code to register context devices from device tree, allocate them out and manage their refcounts. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/Makefile | 1 + drivers/gpu/host1x/context.c | 161 +++ drivers/gpu/host1x/context.h | 27

[RFC PATCH 8/8] drm/tegra: vic: Implement get_streamid_offset

2021-02-08 Thread Mikko Perttunen
Implement the get_streamid_offset required for supporting context isolation. Since old firmware cannot support context isolation without hacks that we don't want to implement, check the firmware binary to see if context isolation should be enabled. Signed-off-by: Mikko Perttunen --- drivers/gpu

[RFC PATCH 6/8] arm64: tegra: Add Host1x context stream IDs on Tegra186+

2021-02-08 Thread Mikko Perttunen
-off-by: Mikko Perttunen --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index c567aa65418b..25a8cb1a97a6 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186

[RFC PATCH 7/8] drm/tegra: Support context isolation

2021-02-08 Thread Mikko Perttunen
For engines that support context isolation, allocate a context when opening a channel, and set up stream ID offset and context fields when submitting a job. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/drm.h | 1 + drivers/gpu/drm/tegra/uapi.h| 1 + drivers/gpu/drm

[RFC PATCH 5/8] iommu/arm-smmu: Attach to host1x context device bus

2021-02-08 Thread Mikko Perttunen
Set itself as the IOMMU for the host1x context device bus, containing "dummy" devices used for Host1x context isolation. Signed-off-by: Mikko Perttunen --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/iommu/arm/ar

[RFC PATCH 2/8] gpu: host1x: Add context bus

2021-02-08 Thread Mikko Perttunen
Signed-off-by: Mikko Perttunen --- drivers/gpu/Makefile | 3 +-- drivers/gpu/host1x/Kconfig | 5 + drivers/gpu/host1x/Makefile| 1 + drivers/gpu/host1x/context_bus.c | 31 ++ include/linux/host1x_context_bus.h | 15 ++

Re: [PATCH v3] i2c: bpmp-tegra: Ignore unknown I2C_M flags

2021-01-18 Thread Mikko Perttunen
On 1/17/21 1:20 PM, Wolfram Sang wrote: On Tue, Jan 12, 2021 at 12:22:25PM +0200, Mikko Perttunen wrote: In order to not to start returning errors when new I2C_M flags are added, change behavior to just ignore all flags that we don't know about. This includes the I2C_M_DMA_SAFE flag

Re: [PATCH v2] i2c: tegra-bpmp: ignore DMA safe buffer flag

2021-01-12 Thread Mikko Perttunen
On 1/12/21 12:26 PM, Wolfram Sang wrote: I wonder if bailing out on an unknown flag shouldn't be revisited in general? I mean this will happen again when a new I2C_M_* flag is introduced. If it's guaranteed that any new flags are optional to handle by the driver, than that is certainly

[PATCH v3] i2c: bpmp-tegra: Ignore unknown I2C_M flags

2021-01-12 Thread Mikko Perttunen
In order to not to start returning errors when new I2C_M flags are added, change behavior to just ignore all flags that we don't know about. This includes the I2C_M_DMA_SAFE flag that already exists. Cc: sta...@vger.kernel.org # v4.19+ Signed-off-by: Mikko Perttunen --- v3: - Ignore all unknown

Re: [PATCH v2] i2c: tegra-bpmp: ignore DMA safe buffer flag

2021-01-12 Thread Mikko Perttunen
On 1/11/21 11:42 PM, Wolfram Sang wrote: On Mon, Jan 11, 2021 at 05:58:16PM +0200, Mikko Perttunen wrote: From: Muhammed Fazal Ignore I2C_M_DMA_SAFE flag as it does not make a difference for bpmp-i2c, but causes -EINVAL to be returned for valid transactions. I wonder if bailing out

[PATCH v2] i2c: tegra: Wait for config load atomically while in ISR

2021-01-11 Thread Mikko Perttunen
mentioned in the Fixes tag. Fixes: ede2299f7101 ("i2c: tegra: Support atomic transfers") Cc: sta...@vger.kernel.org Signed-off-by: Mikko Perttunen --- v2: * Use in_irq() instead of passing a flag from the ISR. Thanks to Dmitry for the suggestion. * Update commit message. --- drivers/i2c/

[PATCH v2] i2c: tegra-bpmp: ignore DMA safe buffer flag

2021-01-11 Thread Mikko Perttunen
From: Muhammed Fazal Ignore I2C_M_DMA_SAFE flag as it does not make a difference for bpmp-i2c, but causes -EINVAL to be returned for valid transactions. Signed-off-by: Muhammed Fazal Cc: sta...@vger.kernel.org # v4.19+ Signed-off-by: Mikko Perttunen --- v2: - Remove unnecessary check

Re: [PATCH] i2c: tegra: Wait for config load atomically while in ISR

2021-01-11 Thread Mikko Perttunen
On 1/11/21 5:14 PM, Dmitry Osipenko wrote: 11.01.2021 16:55, Mikko Perttunen пишет: Upon a communication error, the interrupt handler can call tegra_i2c_disable_packet_mode. This causes a sleeping poll to happen unless the current transaction was marked atomic. Since

Re: [PATCH] i2c: tegra-bpmp: ignore DMA safe buffer flag

2021-01-11 Thread Mikko Perttunen
On 1/11/21 5:04 PM, Ben Dooks wrote: On 11/01/2021 14:27, Mikko Perttunen wrote: From: Muhammed Fazal Ignore I2C_M_DMA_SAFE flag as it does not make a difference for bpmp-i2c, but causes -EINVAL to be returned for valid transactions. Signed-off-by: Muhammed Fazal Cc: sta...@vger.kernel.org

Re: [PATCH] i2c: tegra: Wait for config load atomically while in ISR

2021-01-11 Thread Mikko Perttunen
Agreed that this is possibly not optimal, but this patch simply returns the behavior to what it was before "i2c: tegra: Support atomic transfers", fixing the overt issue. Design fixes can be considered later, in a non-stable patch. Mikko On 1/11/21 4:31 PM, David Laight wrote: F

[PATCH] i2c: tegra-bpmp: ignore DMA safe buffer flag

2021-01-11 Thread Mikko Perttunen
From: Muhammed Fazal Ignore I2C_M_DMA_SAFE flag as it does not make a difference for bpmp-i2c, but causes -EINVAL to be returned for valid transactions. Signed-off-by: Muhammed Fazal Cc: sta...@vger.kernel.org # v4.19+ Signed-off-by: Mikko Perttunen --- This fixes failures seen with PMIC

[PATCH] i2c: tegra: Wait for config load atomically while in ISR

2021-01-11 Thread Mikko Perttunen
: ede2299f7101 ("i2c: tegra: Support atomic transfers") Cc: sta...@vger.kernel.org Signed-off-by: Mikko Perttunen --- This fixes constant spew for me while HDMI is connected to a powered off television. drivers/i2c/busses/i2c-tegra.c | 16 1 file changed, 8 insert

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 -next] gpu: host1x: simplify the return expression of host1x_cdma_init()

2020-09-21 Thread Mikko Perttunen
On 9/21/20 4:10 PM, Qinglang Miao wrote: Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/gpu/host1x/cdma.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/host1x/cdma.c b/drivers/gpu/host1x/cdma.c index e8d3fda91..08a0f9e10

Re: [PATCH v3 08/16] irqchip/gic: Configure SGIs as standard interrupts

2020-09-16 Thread Mikko Perttunen
Not sure which boards this issue is happening on, but looking at my hobby kernel's git history (from a couple of years ago, memory is a bit hazy), the commit labeled "Add support for TX2" adds code to drop from EL2 to EL1 at boot. Mikko On 9/16/20 10:06 PM, Jon Hunter wrote: On 16/09/2020

Re: [PATCH] soc/tegra: Add Tegra Soc Version support

2020-06-26 Thread Mikko Perttunen
On 6/26/20 1:29 PM, Sandipan Patra wrote: Add the chip IDs for NVIDIA Tegra186, Tegra194 and Tegra234 SoC family. families Signed-off-by: Sandipan Patra --- include/soc/tegra/fuse.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/soc/tegra/fuse.h

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-29 Thread Mikko Perttunen
My understanding is that Tegra186 does not have DMA coherency, but Tegra194 does. Mikko On 23.7.2019 16.34, Jon Hunter wrote: On 23/07/2019 13:51, Jose Abreu wrote: From: Jon Hunter Date: Jul/23/2019, 12:58:55 (UTC+00:00) On 23/07/2019 11:49, Jose Abreu wrote: From: Jon Hunter Date:

Re: [PATCH] [v2] gpu: host1x: avoid IOMMU_API build error

2019-03-06 Thread Mikko Perttunen
^~ cc1: all warnings being treated as errors As Mikko explains, we should program SMMU bypass (0x7f) if that happens. Fixes: de5469c21ff9 ("gpu: host1x: Program the channel stream ID") Suggested-by: Mikko Perttunen Signed-off-by: Arnd Bergmann v2: fall back to 0x7f sid ---

Re: [PATCH] gpu: host1x: avoid IOMMU_API build error

2019-03-05 Thread Mikko Perttunen
On 4.3.2019 21.53, Arnd Bergmann wrote: drivers/gpu/host1x/hw/channel_hw.c: In function 'host1x_channel_set_streamid': drivers/gpu/host1x/hw/channel_hw.c:118:30: error: implicit declaration of function 'dev_iommu_fwspec_get'; did you mean 'iommu_fwspec_free'?

Re: [PATCH 7/9] dt-bindings: tegra186-gpio: Add wakeup parent support

2018-09-21 Thread Mikko Perttunen
On 21/09/2018 19.25, Thierry Reding wrote: From: Thierry Reding Tegra186 and later have some top-level controls for wake events in the power management controller (PMC). In order to enable the system to wake up from low power states, additional registers in the PMC need to be programmed. Add a

Re: [PATCH 7/9] dt-bindings: tegra186-gpio: Add wakeup parent support

2018-09-21 Thread Mikko Perttunen
On 21/09/2018 19.25, Thierry Reding wrote: From: Thierry Reding Tegra186 and later have some top-level controls for wake events in the power management controller (PMC). In order to enable the system to wake up from low power states, additional registers in the PMC need to be programmed. Add a

Re: [PATCH 3/9] soc/tegra: pmc: Add wake event support

2018-09-21 Thread Mikko Perttunen
On 21/09/2018 19.25, Thierry Reding wrote: ... + /* route wake to tier 2 (XXX conditionally enable this) */ + value = readl(pmc->wake + WAKE_AOWAKE_TIER2_CTRL); + writel(0x1, pmc->wake + WAKE_AOWAKE_TIER2_CTRL); This doesn't seem right Cheers, Mikko

Re: [PATCH 3/9] soc/tegra: pmc: Add wake event support

2018-09-21 Thread Mikko Perttunen
On 21/09/2018 19.25, Thierry Reding wrote: ... + /* route wake to tier 2 (XXX conditionally enable this) */ + value = readl(pmc->wake + WAKE_AOWAKE_TIER2_CTRL); + writel(0x1, pmc->wake + WAKE_AOWAKE_TIER2_CTRL); This doesn't seem right Cheers, Mikko

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-09 Thread Mikko Perttunen
ic. I assume this gets printed through the earlycon as it's printing out correctly. Thanks, Mikko On 08.08.2018 17:46, Mikko Perttunen wrote: On 08/08/2018 05:39 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 8:04 PM, Mikko Perttunen wrote: On 08/08/2018 05:10 PM, Jassi Brar wrote: On Wed,

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-09 Thread Mikko Perttunen
ic. I assume this gets printed through the earlycon as it's printing out correctly. Thanks, Mikko On 08.08.2018 17:46, Mikko Perttunen wrote: On 08/08/2018 05:39 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 8:04 PM, Mikko Perttunen wrote: On 08/08/2018 05:10 PM, Jassi Brar wrote: On Wed,

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-08 Thread Mikko Perttunen
On 08/08/2018 05:39 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 8:04 PM, Mikko Perttunen wrote: On 08/08/2018 05:10 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 5:08 PM, Mikko Perttunen wrote: On 04.08.2018 13:45, Mikko Perttunen wrote: On 08/03/2018 03:54 PM, Jassi Brar wrote

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-08 Thread Mikko Perttunen
On 08/08/2018 05:39 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 8:04 PM, Mikko Perttunen wrote: On 08/08/2018 05:10 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 5:08 PM, Mikko Perttunen wrote: On 04.08.2018 13:45, Mikko Perttunen wrote: On 08/03/2018 03:54 PM, Jassi Brar wrote

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-08 Thread Mikko Perttunen
On 08/08/2018 05:10 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 5:08 PM, Mikko Perttunen wrote: On 04.08.2018 13:45, Mikko Perttunen wrote: On 08/03/2018 03:54 PM, Jassi Brar wrote: On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: Add a new TXDONE option, TXDONE_BY_BLOCK

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-08 Thread Mikko Perttunen
On 08/08/2018 05:10 PM, Jassi Brar wrote: On Wed, Aug 8, 2018 at 5:08 PM, Mikko Perttunen wrote: On 04.08.2018 13:45, Mikko Perttunen wrote: On 08/03/2018 03:54 PM, Jassi Brar wrote: On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: Add a new TXDONE option, TXDONE_BY_BLOCK

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-08 Thread Mikko Perttunen
On 04.08.2018 13:45, Mikko Perttunen wrote: On 08/03/2018 03:54 PM, Jassi Brar wrote: On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: Add a new TXDONE option, TXDONE_BY_BLOCK. With this option, the send_data function of the mailbox driver is expected to block until the message has

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-08 Thread Mikko Perttunen
On 04.08.2018 13:45, Mikko Perttunen wrote: On 08/03/2018 03:54 PM, Jassi Brar wrote: On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: Add a new TXDONE option, TXDONE_BY_BLOCK. With this option, the send_data function of the mailbox driver is expected to block until the message has

Re: [RFC PATCH v1] memory: tegra: Block DMA for clients HW on a faulty memory access

2018-08-04 Thread Mikko Perttunen
One potential issue is with host1x clients where userspace processes can submit jobs with invalid memory accesses (addresses not mapped to IOMMU). If when such a failure happens, we disable the DMA for the whole host1x client, unrelated userspace processes may see failures even though there is

Re: [RFC PATCH v1] memory: tegra: Block DMA for clients HW on a faulty memory access

2018-08-04 Thread Mikko Perttunen
One potential issue is with host1x clients where userspace processes can submit jobs with invalid memory accesses (addresses not mapped to IOMMU). If when such a failure happens, we disable the DMA for the whole host1x client, unrelated userspace processes may see failures even though there is

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-04 Thread Mikko Perttunen
On 08/03/2018 03:54 PM, Jassi Brar wrote: On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: Add a new TXDONE option, TXDONE_BY_BLOCK. With this option, the send_data function of the mailbox driver is expected to block until the message has been sent. The new option is used with the Tegra

Re: [PATCH v3 3/8] mailbox: Add transmit done by blocking option

2018-08-04 Thread Mikko Perttunen
On 08/03/2018 03:54 PM, Jassi Brar wrote: On Mon, Jul 2, 2018 at 5:10 PM, Mikko Perttunen wrote: Add a new TXDONE option, TXDONE_BY_BLOCK. With this option, the send_data function of the mailbox driver is expected to block until the message has been sent. The new option is used with the Tegra

Re: [PATCH 09/10] mmc: tegra: Perform pad calibration after voltage switch

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Run the automatic pad calibration after voltage switching if tegra_host->pad_calib_required is set. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH 09/10] mmc: tegra: Perform pad calibration after voltage switch

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Run the automatic pad calibration after voltage switching if tegra_host->pad_calib_required is set. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH 06/10] mmc: tegra: Program pad autocal offsets from dt

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Parse the pad drive strength calibration offsets from the device tree. Program the calibration offsets in accordance with the current signaling mode. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 147

Re: [PATCH 06/10] mmc: tegra: Program pad autocal offsets from dt

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Parse the pad drive strength calibration offsets from the device tree. Program the calibration offsets in accordance with the current signaling mode. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 147

Re: [PATCH 05/10] dt-bindings: Add Tegra SDHCI pad pdpu offset bindings

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Add bindings documentation for pad pull up and pull down offset values to be programmed before executing automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- .../bindings/mmc/nvidia,tegra20-sdhci.txt | 32

Re: [PATCH 05/10] dt-bindings: Add Tegra SDHCI pad pdpu offset bindings

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Add bindings documentation for pad pull up and pull down offset values to be programmed before executing automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- .../bindings/mmc/nvidia,tegra20-sdhci.txt | 32

Re: [PATCH 04/10] mmc: tegra: Disable card clock during pad calibration

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Disable the card clock during automatic pad drive strength calibration and re-enable it aftewards. s/aftewards/afterwards/. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 27 +++ 1 file changed, 27

Re: [PATCH 04/10] mmc: tegra: Disable card clock during pad calibration

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Disable the card clock during automatic pad drive strength calibration and re-enable it aftewards. s/aftewards/afterwards/. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 27 +++ 1 file changed, 27

Re: [PATCH 03/10] mmc: tegra: Power on the calibration pad

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 24.07.2018 17:34, Aapo Vienamo wrote: Automatic pad drive strength calibration is performed on a separate pad identical to the ones used for driving the actual bus. Power on the calibration pad during the calibration procedure and power it off afterwards to save

Re: [PATCH 03/10] mmc: tegra: Power on the calibration pad

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 24.07.2018 17:34, Aapo Vienamo wrote: Automatic pad drive strength calibration is performed on a separate pad identical to the ones used for driving the actual bus. Power on the calibration pad during the calibration procedure and power it off afterwards to save

Re: [PATCH 02/10] mmc: tegra: Set calibration pad voltage reference

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Configure the voltage reference used by the automatic pad drive strength calibration procedure. The value is a magic number from the TRM. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 14 -- 1 file changed, 12

Re: [PATCH 02/10] mmc: tegra: Set calibration pad voltage reference

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:34, Aapo Vienamo wrote: Configure the voltage reference used by the automatic pad drive strength calibration procedure. The value is a magic number from the TRM. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 14 -- 1 file changed, 12

Re: [PATCH 01/10] mmc: tegra: Poll for calibration completion

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:29, Aapo Vienamo wrote: Implement polling with 10 ms timeout for automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 01/10] mmc: tegra: Poll for calibration completion

2018-07-25 Thread Mikko Perttunen
On 24.07.2018 17:29, Aapo Vienamo wrote: Implement polling with 10 ms timeout for automatic pad drive strength calibration. Signed-off-by: Aapo Vienamo --- drivers/mmc/host/sdhci-tegra.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 7/7] arm64: dts: tegra210-p2597: Remove no-1-8-v from sdmmc1

2018-07-25 Thread Mikko Perttunen
Looks like patch 6 will probably cause tegra-sdhci to start advertising faster modes (see " if (!IS_ERR(host->mmc->supply.vqmmc))" in sdhci-tegra.c). With that patch and this, will the SDHCI core start to try putting us into these higher modes? Clearly that won't work yet before the upcoming

Re: [PATCH 7/7] arm64: dts: tegra210-p2597: Remove no-1-8-v from sdmmc1

2018-07-25 Thread Mikko Perttunen
Looks like patch 6 will probably cause tegra-sdhci to start advertising faster modes (see " if (!IS_ERR(host->mmc->supply.vqmmc))" in sdhci-tegra.c). With that patch and this, will the SDHCI core start to try putting us into these higher modes? Clearly that won't work yet before the upcoming

Re: [PATCH 6/7] arm64: dts: tegra210-p2180: Correct sdmmc4 vqmmc-supply

2018-07-25 Thread Mikko Perttunen
Technically this shouldn't be required since VDD_1V8 is always on anyway, but I think it's nicer to specify regulators anyway, so +1! Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: On p2180 sdmmc4 is powered from a fixed 1.8 V regulator. Signed-off-by: Aapo Vienamo

Re: [PATCH 6/7] arm64: dts: tegra210-p2180: Correct sdmmc4 vqmmc-supply

2018-07-25 Thread Mikko Perttunen
Technically this shouldn't be required since VDD_1V8 is always on anyway, but I think it's nicer to specify regulators anyway, so +1! Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: On p2180 sdmmc4 is powered from a fixed 1.8 V regulator. Signed-off-by: Aapo Vienamo

Re: [PATCH 5/7] arm64: dts: tegra210-p2180: Allow ldo2 to go down to 1.8 V

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Set regulator-min-microvolt property of ldo2 to 1.8 V in tegra210-p2180.dtsi. ldo2 is used by the sdmmc1 SDHCI controller and its voltage needs to be adjusted down to 1.8 V to support faster signaling modes. It appears

Re: [PATCH 5/7] arm64: dts: tegra210-p2180: Allow ldo2 to go down to 1.8 V

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Set regulator-min-microvolt property of ldo2 to 1.8 V in tegra210-p2180.dtsi. ldo2 is used by the sdmmc1 SDHCI controller and its voltage needs to be adjusted down to 1.8 V to support faster signaling modes. It appears

Re: [PATCH 4/7] arm64: dts: Add Tegra186 sdmmc pinctrl voltage states

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Add pad voltage configuration nodes for sdmmc pads with configurable voltages on Tegra186. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 40 1 file changed

Re: [PATCH 4/7] arm64: dts: Add Tegra186 sdmmc pinctrl voltage states

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Add pad voltage configuration nodes for sdmmc pads with configurable voltages on Tegra186. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 40 1 file changed

Re: [PATCH 3/7] arm64: dts: Add Tegra210 sdmmc pinctrl voltage states

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Add pad voltage configuration nodes for sdmmc pads with configurable voltages on Tegra210. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 27 +++ 1 file changed, 27

Re: [PATCH 3/7] arm64: dts: Add Tegra210 sdmmc pinctrl voltage states

2018-07-25 Thread Mikko Perttunen
Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Add pad voltage configuration nodes for sdmmc pads with configurable voltages on Tegra210. Signed-off-by: Aapo Vienamo --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 27 +++ 1 file changed, 27

Re: [PATCH 1/7] dt-bindings: Document Tegra SDHCI pinctrl bindings

2018-07-25 Thread Mikko Perttunen
I would maybe say "dt-bindings: mmc: tegra: Add pad voltage control properties" or similar for the subject - the current kind of looks like the SDHCI controller is a pinctrl device :) Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Document the pinctrl bin

Re: [PATCH 1/7] dt-bindings: Document Tegra SDHCI pinctrl bindings

2018-07-25 Thread Mikko Perttunen
I would maybe say "dt-bindings: mmc: tegra: Add pad voltage control properties" or similar for the subject - the current kind of looks like the SDHCI controller is a pinctrl device :) Reviewed-by: Mikko Perttunen On 20.07.2018 15:45, Aapo Vienamo wrote: Document the pinctrl bin

Re: [PATCH 2/7] mmc: tegra: Reconfigure pad voltages during voltage switching

2018-07-25 Thread Mikko Perttunen
On 20.07.2018 15:45, Aapo Vienamo wrote: Parse the pinctrl states from the device tree and implement pad voltage state reconfiguration in the mmc start_signal_voltage_switch() callback. This is done in the mmc callback because the order of pad reconfiguration and sdhci voltage switch depend on

Re: [PATCH 2/7] mmc: tegra: Reconfigure pad voltages during voltage switching

2018-07-25 Thread Mikko Perttunen
On 20.07.2018 15:45, Aapo Vienamo wrote: Parse the pinctrl states from the device tree and implement pad voltage state reconfiguration in the mmc start_signal_voltage_switch() callback. This is done in the mmc callback because the order of pad reconfiguration and sdhci voltage switch depend on

Re: [PATCH] Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"

2018-07-17 Thread Mikko Perttunen
Thanks! Reviewed-by: Mikko Perttunen On 17.07.2018 13:49, Corentin Labbe wrote: Since ahci_platform_put_resources() use target_pwrs after "devm_" freed it, we cannot use devm_kcalloc for allocating target_pwrs. This reverts commit bd0038b1b4f499d814d8f33a55b1df5ea6cf3b85. Reported

Re: [PATCH] Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"

2018-07-17 Thread Mikko Perttunen
Thanks! Reviewed-by: Mikko Perttunen On 17.07.2018 13:49, Corentin Labbe wrote: Since ahci_platform_put_resources() use target_pwrs after "devm_" freed it, we cannot use devm_kcalloc for allocating target_pwrs. This reverts commit bd0038b1b4f499d814d8f33a55b1df5ea6cf3b85. Reported

Boot WARN with patch "regulator: core: Link consumer with regulator driver"

2018-07-11 Thread Mikko Perttunen
Hi, I'm seeing the following spew during boot with Tegra210 with the patch "regulator: core: Link consumer with regulator driver", recently applied to linux-next: [1.196664] [ cut here ] [1.201480] kobject: '(null)' ((ptrval)): is not initialized, yet

Boot WARN with patch "regulator: core: Link consumer with regulator driver"

2018-07-11 Thread Mikko Perttunen
Hi, I'm seeing the following spew during boot with Tegra210 with the patch "regulator: core: Link consumer with regulator driver", recently applied to linux-next: [1.196664] [ cut here ] [1.201480] kobject: '(null)' ((ptrval)): is not initialized, yet

[PATCH] clk: core: Potentially free connection id

2018-07-11 Thread Mikko Perttunen
free_const call to __clk_put and add comments to both functions to remind that the logic in them should be kept in sync. Fixes: 253160a8ad06 ("clk: core: Copy connection id") Signed-off-by: Mikko Perttunen --- drivers/clk/clk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH] clk: core: Potentially free connection id

2018-07-11 Thread Mikko Perttunen
free_const call to __clk_put and add comments to both functions to remind that the logic in them should be kept in sync. Fixes: 253160a8ad06 ("clk: core: Copy connection id") Signed-off-by: Mikko Perttunen --- drivers/clk/clk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

Re: [PATCH v3 6/8] serial: Add Tegra Combined UART driver

2018-07-03 Thread Mikko Perttunen
On 02.07.2018 16:47, Thierry Reding wrote: On Mon, Jul 02, 2018 at 04:30:07PM +0300, Mikko Perttunen wrote: On 02.07.2018 16:18, Thierry Reding wrote: On Mon, Jul 02, 2018 at 02:40:31PM +0300, Mikko Perttunen wrote: The Tegra Combined UART (TCU) is a mailbox-based mechanism that allows

Re: [PATCH v3 6/8] serial: Add Tegra Combined UART driver

2018-07-03 Thread Mikko Perttunen
On 02.07.2018 16:47, Thierry Reding wrote: On Mon, Jul 02, 2018 at 04:30:07PM +0300, Mikko Perttunen wrote: On 02.07.2018 16:18, Thierry Reding wrote: On Mon, Jul 02, 2018 at 02:40:31PM +0300, Mikko Perttunen wrote: The Tegra Combined UART (TCU) is a mailbox-based mechanism that allows

Re: [PATCH v3 6/8] serial: Add Tegra Combined UART driver

2018-07-02 Thread Mikko Perttunen
On 02.07.2018 16:18, Thierry Reding wrote: On Mon, Jul 02, 2018 at 02:40:31PM +0300, Mikko Perttunen wrote: The Tegra Combined UART (TCU) is a mailbox-based mechanism that allows multiplexing multiple "virtual UARTs" into a single hardware serial port. The TCU is the primary s

Re: [PATCH v3 6/8] serial: Add Tegra Combined UART driver

2018-07-02 Thread Mikko Perttunen
On 02.07.2018 16:18, Thierry Reding wrote: On Mon, Jul 02, 2018 at 02:40:31PM +0300, Mikko Perttunen wrote: The Tegra Combined UART (TCU) is a mailbox-based mechanism that allows multiplexing multiple "virtual UARTs" into a single hardware serial port. The TCU is the primary s

[PATCH v3 2/8] dt-bindings: serial: Add bindings for nvidia,tegra194-tcu

2018-07-02 Thread Mikko Perttunen
Add bindings for the Tegra Combined UART device used to talk to the UART console on Tegra194 systems. Signed-off-by: Mikko Perttunen Reviewed-by: Rob Herring Acked-by: Jon Hunter --- Notes: v2: - Added Rob's Reviewed-by. v3: - Added Jon's Acked-by. .../bindings/serial

[PATCH v3 0/8] Tegra Combined UART driver

2018-07-02 Thread Mikko Perttunen
ption to the mailbox framework. * patches 4 and 5 add support for the "shared mailbox" primitive to the Tegra HSP driver. * patch 6 adds the TCU driver itself * patches 7 and 8 do the necessary device tree changes. The series has been tested on the Tegra194 P2972 board. Mikko Perttunen (8):

[PATCH v3 2/8] dt-bindings: serial: Add bindings for nvidia,tegra194-tcu

2018-07-02 Thread Mikko Perttunen
Add bindings for the Tegra Combined UART device used to talk to the UART console on Tegra194 systems. Signed-off-by: Mikko Perttunen Reviewed-by: Rob Herring Acked-by: Jon Hunter --- Notes: v2: - Added Rob's Reviewed-by. v3: - Added Jon's Acked-by. .../bindings/serial

[PATCH v3 0/8] Tegra Combined UART driver

2018-07-02 Thread Mikko Perttunen
ption to the mailbox framework. * patches 4 and 5 add support for the "shared mailbox" primitive to the Tegra HSP driver. * patch 6 adds the TCU driver itself * patches 7 and 8 do the necessary device tree changes. The series has been tested on the Tegra194 P2972 board. Mikko Perttunen (8):

[PATCH v3 5/8] mailbox: tegra-hsp: Add support for shared mailboxes

2018-07-02 Thread Mikko Perttunen
. The initial use for the mailboxes is the Tegra Combined UART. For this purpose, we use interrupts to receive data, and spinning to wait for the transmit mailbox to be emptied to minimize unnecessary overhead. Signed-off-by: Mikko Perttunen Reviewed-by: Jon Hunter --- Notes: v3: - Added define

[PATCH v3 6/8] serial: Add Tegra Combined UART driver

2018-07-02 Thread Mikko Perttunen
Tegra HSP blocks that are already controlled by the Tegra HSP mailbox driver. Signed-off-by: Mikko Perttunen --- Notes: v2: - Removed (void) casts for unused variables. - Changed the uart_set_options() call to be on one line, even if its over 80 characters. - Added defines

[PATCH v3 5/8] mailbox: tegra-hsp: Add support for shared mailboxes

2018-07-02 Thread Mikko Perttunen
. The initial use for the mailboxes is the Tegra Combined UART. For this purpose, we use interrupts to receive data, and spinning to wait for the transmit mailbox to be emptied to minimize unnecessary overhead. Signed-off-by: Mikko Perttunen Reviewed-by: Jon Hunter --- Notes: v3: - Added define

[PATCH v3 6/8] serial: Add Tegra Combined UART driver

2018-07-02 Thread Mikko Perttunen
Tegra HSP blocks that are already controlled by the Tegra HSP mailbox driver. Signed-off-by: Mikko Perttunen --- Notes: v2: - Removed (void) casts for unused variables. - Changed the uart_set_options() call to be on one line, even if its over 80 characters. - Added defines

[PATCH v3 4/8] mailbox: tegra-hsp: Refactor in preparation of mailboxes

2018-07-02 Thread Mikko Perttunen
The HSP driver is currently in many places written with the assumption of only supporting doorbells. Prepare for the addition of shared mailbox support by removing these assumptions and cleaning up the code. Signed-off-by: Mikko Perttunen Reviewed-by: Jon Hunter --- Notes: v2: - Moved

[PATCH v3 4/8] mailbox: tegra-hsp: Refactor in preparation of mailboxes

2018-07-02 Thread Mikko Perttunen
The HSP driver is currently in many places written with the assumption of only supporting doorbells. Prepare for the addition of shared mailbox support by removing these assumptions and cleaning up the code. Signed-off-by: Mikko Perttunen Reviewed-by: Jon Hunter --- Notes: v2: - Moved

[PATCH v3 8/8] arm64: tegra: Mark tcu as primary serial port on Tegra194 P2888

2018-07-02 Thread Mikko Perttunen
The Tegra Combined UART is the proper primary serial port on P2888, so use it. Signed-off-by: Mikko Perttunen Acked-by: Jon Hunter --- Notes: v2: - Added Jon's Acked-by. arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v3 8/8] arm64: tegra: Mark tcu as primary serial port on Tegra194 P2888

2018-07-02 Thread Mikko Perttunen
The Tegra Combined UART is the proper primary serial port on P2888, so use it. Signed-off-by: Mikko Perttunen Acked-by: Jon Hunter --- Notes: v2: - Added Jon's Acked-by. arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >