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

2021-04-08 Thread Nicolin Chen
which works good enough in practice because by that time h/w is already > stopped. > > Signed-off-by: Dmitry Osipenko For both patches: Acked-by: Nicolin Chen Tested-by: Nicolin Chen The WAR looks good to me. Perhaps Thierry would give some input. Another topic: I think this may help wo

Re: [PATCH v5] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-04-01 Thread Nicolin Chen
On Tue, Mar 16, 2021 at 12:16:43PM +0100, Thierry Reding wrote: > > +struct tegra_smmu_group_debug { > > + const struct tegra_smmu_swgroup *group; > > + void *priv; > > This always stores the address space, so why not make this: > > struct tegra_smmu_as *as; > > ? While at it,

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

2021-04-01 Thread 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 > which enables CONFIG_ARM_DMA_USE_IOMMU=y. The workaround that helped to > defer

[PATCH v5] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-15 Thread Nicolin Chen
| ATTR | PHYS | IOVA | SIZE [#1023, #1023] | 0x5 | 0x000111a8d000 | 0xf000 | 0x1000 } } Total PDE count: 1 Total PTE count: 1 Tested-by: Dmitry Osipenko Reviewed-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v5: *

Re: [PATCH v4] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-15 Thread Nicolin Chen
On Mon, Mar 15, 2021 at 09:53:09PM +0300, Dmitry Osipenko wrote: > 15.03.2021 06:35, Nicolin Chen пишет: > > This patch dumps all active mapping entries from pagetable > > to a debugfs directory named "mappings". > > > > Ataching an example: > > At

[PATCH v4] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-14 Thread Nicolin Chen
| ATTR | PHYS | IOVA | SIZE [#1023, #1023] | 0x5 | 0x000111a8d000 | 0xf000 | 0x1000 } } Total PDE count: 1 Total PTE count: 1 Signed-off-by: Nicolin Chen --- Changelog v4: * Changed %d to %u for unsigned variables * Fixed print fo

Re: [PATCH v3] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-14 Thread Nicolin Chen
On Sun, Mar 14, 2021 at 06:08:00PM +0300, Dmitry Osipenko wrote: > 14.03.2021 11:06, Nicolin Chen пишет: > > + for (pd_index = 0; pd_index < SMMU_NUM_PDE; pd_index++) { > > + struct page *pt_page; > > + u32 *addr; > > + int i; > &g

[PATCH v3] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-14 Thread Nicolin Chen
| ATTR | PHYS | IOVA | SIZE [#1023, #1023] | 0x5 | 0x000111a8d000 | 0xf000 | 0x1000 } } Total PDE count: 1 Total PTE count: 1 Signed-off-by: Nicolin Chen --- Changelog v3: * Fixed PHYS and IOVA print formats * Changed variables to unsi

Re: [PATCH v1] iommu/tegra-smmu: Make tegra_smmu_probe_device() to handle all IOMMU phandles

2021-03-13 Thread Nicolin Chen
and now GPU > works properly once again. > > Fixes: 765a9d1d02b2 ("iommu/tegra-smmu: Fix mc errors on tegra124-nyan") > Signed-off-by: Dmitry Osipenko Tested-by: Nicolin Chen

Re: [PATCH v2] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-11 Thread Nicolin Chen
On Thu, Mar 11, 2021 at 05:04:06PM +0300, Dmitry Osipenko wrote: > 10.03.2021 06:36, Nicolin Chen пишет: > ... > > +static int tegra_smmu_mappings_show(struct seq_file *s, void *data) > > +{ > > + struct tegra_smmu_group_debug *group_debug = s->private; > > +

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

2021-03-11 Thread Nicolin Chen
On Thu, Mar 11, 2021 at 03:06:25PM +0300, Dmitry Osipenko wrote: > 11.03.2021 01:17, Nicolin Chen пишет: > > On Wed, Mar 10, 2021 at 11:22:57PM +0300, Dmitry Osipenko wrote: > >> 10.03.2021 22:13, Dmitry Osipenko пишет: > >>> I found that this patch introduced a serio

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

2021-03-10 Thread Nicolin Chen
On Wed, Mar 10, 2021 at 11:22:57PM +0300, Dmitry Osipenko wrote: > 10.03.2021 22:13, Dmitry Osipenko пишет: > > I found that this patch introduced a serious regression on Tegra30 using > > today's linux-next. Tegra30 has two 3d h/w blocks connected in SLI and > > only one of the blocks is now

Re: [PATCH v2] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-10 Thread Nicolin Chen
On Wed, Mar 10, 2021 at 11:38:47PM +0300, Dmitry Osipenko wrote: > 10.03.2021 06:36, Nicolin Chen пишет: > > This patch dumps all active mapping entries from pagetable > > to a debugfs directory named "mappings". > > > > Ataching an example: > >

[PATCH v2] iommu/tegra-smmu: Add pagetable mappings to debugfs

2021-03-09 Thread Nicolin Chen
IOVASIZEATTR #1023 - #1023 0x122e5e0000xf000 0x1000 0x5 } } Total PDE count: 1 Total PTE count: 1 Signed-off-by: Nicolin Chen --- Changelog v2: * Expanded mutex range to the entire function * Added as->lock to protect paget

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

2021-03-03 Thread 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 not clear to me what makes > >> difference for T124 since I don't see that problem on T30, which also > >

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

2021-02-24 Thread Nicolin Chen
On Tue, Feb 23, 2021 at 08:10:41AM +0300, Dmitry Osipenko wrote: > 23.02.2021 05:13, Nicolin Chen пишет: > > Hi Dmitry, > > > > On Sat, Feb 20, 2021 at 08:16:22AM +0300, Dmitry Osipenko wrote: > >> 19.02.2021 01:07, Nicolin Chen пишет: > >>> Comm

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

2021-02-22 Thread Nicolin Chen
Hi Dmitry, On Sat, Feb 20, 2021 at 08:16:22AM +0300, Dmitry Osipenko wrote: > 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 t

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

2021-02-18 Thread Nicolin Chen
("iommu/tegra-smmu: Rework tegra_smmu_probe_device()") Reported-by: Guillaume Tucker Signed-off-by: Nicolin Chen --- Guillaume, would you please give a "Tested-by" to this change? Thanks! drivers/iommu/tegra-smmu.c | 72 +- 1 file chan

Re: [PATCH RESEND v2 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2021-02-18 Thread Nicolin Chen
ange, not necessarily being a complete revert though. I attached my partial reverting change in this email. Would it be possible for you to run one more test for me to confirm it? It'd keep the tests passing while eliminating all error prints above. If the fix works, I'll re-send it to mail list by adding

Re: [PATCH 4/4] ASoC: fsl: drop unneeded snd_soc_dai_set_drvdata

2021-02-17 Thread Nicolin Chen
data(y,x); > // > > Signed-off-by: Julia Lawall Acked-by: Nicolin Chen

Re: [PATCH RESEND v2 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2021-02-10 Thread Nicolin Chen
patch 2. Vanilla kernel + Reverted + debug patch Thank you Nicolin >From dce84731e12900b0e98dffc0ff981638a0bb3405 Mon Sep 17 00:00:00 2001 From: Nicolin Chen Date: Fri, 5 Feb 2021 01:41:07 -0800 Subject: [PATCH] iommu: debug tegra-smmu v2 Signed-off-by: Nicolin Chen --- arch/arm/mm/dma-mappin

Re: [PATCH RESEND v2 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2021-02-05 Thread Nicolin Chen
Hi Guillaume, On Thu, Feb 04, 2021 at 09:24:23PM -0800, Nicolin Chen wrote: > > Please let us know if you need any help debugging this issue or > > to try a fix on this platform. > > Yes, I don't have any Tegra124 platform to run. It'd be very nice > if you can run some d

Re: [PATCH RESEND v2 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2021-02-04 Thread Nicolin Chen
Hi Guillaume, On Thu, Feb 04, 2021 at 11:10:15AM +, Guillaume Tucker wrote: > Hi Nicolin, > > A regression was detected by kernelci.org in IGT's drm_read tests > on mainline, it was first seen on 17th December 2020. You can > find some details here: > >

Re: [PATCH] ASoC: fsl_aud2htx: select SND_SOC_IMX_PCM_DMA

2021-01-03 Thread Nicolin Chen
l_aud2htx.c:(.text+0x3e0): undefined reference to `imx_pcm_dma_init' > > Fixes: 8a24c834c053 ("ASoC: fsl_aud2htx: Add aud2htx module driver") > Signed-off-by: Arnd Bergmann Acked-by: Nicolin Chen

Re: [PATCH] ASoC: fsl: fix -Wmaybe-uninitialized warning

2020-12-31 Thread Nicolin Chen
On Wed, Dec 30, 2020 at 04:44:15PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Clang points out a code path that returns an undefined value > in an error case: > > sound/soc/fsl/imx-hdmi.c:165:6: error: variable 'ret' is used uninitialized > whenever 'if' condition is true

Re: [PATCH] ASoC: imx-hdmi: Fix warning of the uninitialized variable ret

2020-12-16 Thread Nicolin Chen
gjiu wang > Reported-by: kernel test robot Acked-by: Nicolin Chen

Re: [PATCH v2 2/2] ASoC: fsl: Add imx-hdmi machine driver

2020-12-07 Thread Nicolin Chen
iver devices. > > Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen

Re: [PATCH] ASoC: fsl_aud2htx: mark PM functions as __maybe_unused

2020-12-03 Thread Nicolin Chen
to avoid the warning without adding > an #ifdef. > > Fixes: 8a24c834c053 ("ASoC: fsl_aud2htx: Add aud2htx module driver") > Signed-off-by: Arnd Bergmann Acked-by: Nicolin Chen

Re: [PATCH 2/2] ASoC: fsl: Add imx-hdmi machine driver

2020-12-02 Thread Nicolin Chen
On Fri, Nov 27, 2020 at 01:30:21PM +0800, Shengjiu Wang wrote: > The driver is initially designed for sound card using HDMI > interface on i.MX platform. There is internal HDMI IP or > external HDMI modules connect with SAI or AUD2HTX interface. > It supports both transmitter and receiver devices.

Re: [PATCH 1/2] ASoC: fsl-asoc-card: Add support for si476x codec

2020-12-02 Thread Nicolin Chen
On Mon, Nov 30, 2020 at 11:57:47AM +0800, Shengjiu Wang wrote: > The si476x codec is used for FM radio function on i.MX6 > auto board, it only supports recording function. > > Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen

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

2020-11-25 Thread Nicolin Chen
ot; Series-2: https://lkml.org/lkml/2020/10/9/808 "[PATCH v7 0/3] iommu/tegra-smmu: Add PCI support" Nicolin Chen (5): iommu/tegra-smmu: Unwrap tegra_smmu_group_get iommu/tegra-smmu: Expand mutex protection range iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev i

[PATCH RESEND v2 5/5] iommu/tegra-smmu: Add PCI support

2020-11-25 Thread Nicolin Chen
This patch simply adds support for PCI devices. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git

[PATCH RESEND v2 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-11-25 Thread Nicolin Chen
gpu: Adding to iommu group 3 Note that dmesg log above is testing with IOMMU_DOMAIN_UNMANAGED. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 96 ++ 1 file changed, 15 in

[PATCH RESEND v2 3/5] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-11-25 Thread Nicolin Chen
this patch uses fwspec in tegra_smmu_(de)attach_dev() so as to replace the redundant DT polling code. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 56 -- 1 file c

[PATCH RESEND v2 2/5] iommu/tegra-smmu: Expand mutex protection range

2020-11-25 Thread Nicolin Chen
This is used to protect potential race condition at use_count. since probes of client drivers, calling attach_dev(), may run concurrently. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 34

[PATCH RESEND v2 1/5] iommu/tegra-smmu: Unwrap tegra_smmu_group_get

2020-11-25 Thread Nicolin Chen
ist for other devices to match. This patch simply unwraps the function to clean it up. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 19 --- 1 file changed, 4 insertions(+), 15 deleti

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

2020-11-25 Thread Nicolin Chen
On Wed, Nov 25, 2020 at 09:55:10AM +, Will Deacon wrote: > On Tue, Nov 24, 2020 at 03:12:16PM -0800, Nicolin Chen wrote: > > On Wed, Nov 25, 2020 at 02:05:14AM +0300, Dmitry Osipenko wrote: > > > 25.11.2020 00:21, Nicolin Chen пишет: > > > > These five patches wer

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

2020-11-24 Thread Nicolin Chen
On Wed, Nov 25, 2020 at 02:05:14AM +0300, Dmitry Osipenko wrote: > 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? > &g

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

2020-11-24 Thread 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! On Wed, Nov 11, 2020 at 02:21:24PM -0800, Nicolin Chen wrote: > This is a merged set of resend for previously two series of patches > tha

Re: [PATCH v2] ASoC: fsl_sai: Correct the clock source for mclk0

2020-11-18 Thread Nicolin Chen
riable mclk0_is_mclk1 in fsl_sai_soc_data to > distinguish these platforms. > > Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen

Re: [PATCH] ASoC: fsl_sai: Correct the clock source for mclk0

2020-11-18 Thread Nicolin Chen
On Thu, Nov 19, 2020 at 01:28:32PM +0800, Shengjiu Wang wrote: > On Thu, Nov 19, 2020 at 1:02 PM Nicolin Chen wrote: > > > > On Thu, Nov 19, 2020 at 10:29:16AM +0800, Shengjiu Wang wrote: > > > On VF610, mclk0 = bus_clk; > > > On i.MX6SX/6UL/6ULL/7D, mclk0

Re: [PATCH] ASoC: fsl_sai: Correct the clock source for mclk0

2020-11-18 Thread Nicolin Chen
On Thu, Nov 19, 2020 at 10:29:16AM +0800, Shengjiu Wang wrote: > On VF610, mclk0 = bus_clk; > On i.MX6SX/6UL/6ULL/7D, mclk0 = mclk1; > On i.MX7ULP, mclk0 = bus_clk; > On i.MX8QM/8QXP, mclk0 = bus_clk; > On i.MX8MQ/8MN/8MM/8MP, mclk0 = bus_clk; > > So add variable mclk0_mclk1_match in

[PATCH] soc/tegra: fuse: Fix index bug in get_process_id

2020-11-18 Thread Nicolin Chen
This patch simply fixes a bug of referencing speedos[num] in every for-loop iteration in get_process_id function. Fixes: 0dc5a0d83675 ("soc/tegra: fuse: Add Tegra210 support") Cc: Signed-off-by: Nicolin Chen --- drivers/soc/tegra/fuse/speedo-tegra210.c | 2 +- 1 file changed, 1 inser

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

2020-11-11 Thread Nicolin Chen
t;[PATCH v7 0/3] iommu/tegra-smmu: Add PCI support" Nicolin Chen (5): iommu/tegra-smmu: Unwrap tegra_smmu_group_get iommu/tegra-smmu: Expand mutex protection range iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev iommu/tegra-smmu: Rework tegra_smmu_probe_device() iommu/tegra-s

[PATCH RESEND 5/5] iommu/tegra-smmu: Add PCI support

2020-11-11 Thread Nicolin Chen
This patch simply adds support for PCI devices. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/tegra

[PATCH RESEND 3/5] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-11-11 Thread Nicolin Chen
this patch uses fwspec in tegra_smmu_(de)attach_dev() so as to replace the redundant DT polling code. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 56 -- 1 file changed, 23 inserti

[PATCH RESEND 4/5] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-11-11 Thread Nicolin Chen
gpu: Adding to iommu group 3 Note that dmesg log above is testing with IOMMU_DOMAIN_UNMANAGED. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 96 ++ 1 file changed, 15 insertions(+), 81 deletions(-)

[PATCH RESEND 1/5] iommu/tegra-smmu: Unwrap tegra_smmu_group_get

2020-11-11 Thread Nicolin Chen
ist for other devices to match. This patch simply unwraps the function to clean it up. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 19 --- 1 file changed, 4 insertions(+), 15 deleti

[PATCH RESEND 2/5] iommu/tegra-smmu: Expand mutex protection range

2020-11-11 Thread Nicolin Chen
This is used to protect potential race condition at use_count. since probes of client drivers, calling attach_dev(), may run concurrently. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Signed-off-by: Nicolin Chen --- drivers/iommu/tegra-smmu.c | 34

Re: [PATCH v7 0/3] iommu/tegra-smmu: Add PCI support

2020-11-07 Thread Nicolin Chen
On Fri, Oct 09, 2020 at 09:19:33AM -0700, Nicolin Chen wrote: > This series is to add PCI support in tegra-smmu driver. This v7 has fixed all the existing comments and been in the maillist for nearly a month. Can anyone please apply them? Thanks Nic > Changelog (Detail in each patch) &g

Re: [PATCH v4 0/2] iommu/tegra-smmu: Two followup changes

2020-11-07 Thread Nicolin Chen
On Mon, Sep 28, 2020 at 11:13:23PM -0700, Nicolin Chen wrote: > Two followup patches for tegra-smmu: > PATCH-1 is a clean-up patch for the recently applied SWGROUP change. > PATCH-2 fixes a potential race condition These two changes have Acked-by and Reviewed-by for a month already. Who

Re: [PATCH] ASoC: fsl_aud2htx: Remove dev_err() usage after platform_get_irq()

2020-11-06 Thread Nicolin Chen
On Sat, Nov 07, 2020 at 10:20:43AM +0800, Shengjiu Wang wrote: > platform_get_irq() would print error message internally, so dev_err() > after platform_get_irq() is not needed > > Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen

Re: [PATCH v3 2/2] ASoC: fsl_aud2htx: Add aud2htx module driver

2020-11-06 Thread Nicolin Chen
On Fri, Nov 06, 2020 at 10:51:03AM +0800, Shengjiu Wang wrote: > > > +static irqreturn_t fsl_aud2htx_isr(int irq, void *dev_id) > > > +{ > > > + return IRQ_HANDLED; > > > > Empty isr? Perhaps can drop the request_irq() at all? > > I'd like to keep this for future enhancement, what do you

Re: [PATCH v3 1/2] ASoC: dt-bindings: fsl_aud2htx: Add binding doc for aud2htx module

2020-11-06 Thread Nicolin Chen
On Fri, Nov 06, 2020 at 12:20:13PM +, Mark Brown wrote: > On Fri, Nov 06, 2020 at 11:54:23AM +, Mark Brown wrote: > > On Mon, 2 Nov 2020 09:52:26 +0800, Shengjiu Wang wrote: > > > AUD2HTX (Audio Subsystem TO HDMI TX Subsystem) is a new > > > IP module found on i.MX8MP. > > > > Applied to

Re: [PATCH v3 2/2] ASoC: fsl_aud2htx: Add aud2htx module driver

2020-11-04 Thread Nicolin Chen
d and passed to the HDMI RTX Subsystem over > the Audio Link. > > The AUD2HTX contains a DMA request routed to the SDMA module. > This DMA request is controlled based on the watermark level in > the 32-entry sample buffer. > > Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen D

[PATCH] clk: tegra: Do not return 0 on failure

2020-10-28 Thread Nicolin Chen
Signed-off-by: Nicolin Chen --- drivers/clk/tegra/clk-dfll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-dfll.c b/drivers/clk/tegra/clk-dfll.c index cfbaa90c7adb..a5f526bb0483 100644 --- a/drivers/clk/tegra/clk-dfll.c +++ b/drivers/clk/tegra/

Re: [PATCH 4/5] dt-bindings: memory: tegra: Add missing swgroups

2020-10-27 Thread Nicolin Chen
On Tue, Oct 27, 2020 at 01:55:06PM +0100, Thierry Reding wrote: > This does indeed look correct, based on what registers exist for these. > It'd be good to know how Nicolin expects these to be used, since these > are currently not listed in device tree. There's certainly some like Judging from

Re: [PATCH 5/5] memory: tegra: Complete tegra210_swgroups

2020-10-27 Thread Nicolin Chen
On Tue, Oct 27, 2020 at 02:01:11PM +0100, Thierry Reding wrote: > On Wed, Oct 07, 2020 at 05:37:46PM -0700, Nicolin Chen wrote: > > According to Tegra X1 TRM, there are missing swgroups in the > > tegra210_swgroups list. So this patch adds them to the list. > > > > Note

Re: [PATCH 2/2] ASoC: fsl_spdif: Add support for i.MX8QM platform

2020-10-17 Thread Nicolin Chen
And EDMA don't support to shift > the data from S24_LE to S16_LE, so the supported TX format > is also different on i.MX8QM. > > Signed-off-by: Shengjiu Wang One small nit, yet I am okay if you don't resend. So: Acked-by: Nicolin Chen > /* Check if clk is a root clock that does not

Re: [PATCH v4 1/2] ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver

2020-10-17 Thread Nicolin Chen
On Tue, Oct 13, 2020 at 03:17:32PM +0300, Viorel Suman (OSS) wrote: > From: Viorel Suman > > XCVR (Audio Transceiver) is a on-chip functional module found > on i.MX8MP. It support HDMI2.1 eARC, HDMI1.4 ARC and SPDIF. > > Signed-off-by: Viorel Suman Acked-by: Nicolin Chen

Re: [PATCH v7 3/3] iommu/tegra-smmu: Add PCI support

2020-10-16 Thread Nicolin Chen
On Fri, Oct 16, 2020 at 03:10:26PM +0100, Robin Murphy wrote: > On 2020-10-16 04:53, Nicolin Chen wrote: > > On Thu, Oct 15, 2020 at 10:55:52AM +0100, Robin Murphy wrote: > > > On 2020-10-15 05:13, Nicolin Chen wrote: > > > > On Wed, Oct 14, 2020 at 06:42:

Re: [PATCH v7 3/3] iommu/tegra-smmu: Add PCI support

2020-10-15 Thread Nicolin Chen
On Thu, Oct 15, 2020 at 10:55:52AM +0100, Robin Murphy wrote: > On 2020-10-15 05:13, Nicolin Chen wrote: > > On Wed, Oct 14, 2020 at 06:42:36PM +0100, Robin Murphy wrote: > > > On 2020-10-09 17:19, Nicolin Chen wrote: > > > > This patch simpl

Re: [PATCH v7 3/3] iommu/tegra-smmu: Add PCI support

2020-10-14 Thread Nicolin Chen
On Wed, Oct 14, 2020 at 06:42:36PM +0100, Robin Murphy wrote: > On 2020-10-09 17:19, Nicolin Chen wrote: > > This patch simply adds support for PCI devices. > > > > Reviewed-by: Dmitry Osipenko > > Tested-by: Dmitry Osipenko > > Signed-off-by: Nicolin Chen >

Re: [PATCH] ASoC: fsl_spdif: Add support for higher sample rates

2020-10-12 Thread Nicolin Chen
your own Signed-off at the bottom? Anyway: Acked-by: Nicolin Chen

Re: [PATCH 3/5] memory: tegra: Sort tegra210_swgroups by reg address

2020-10-12 Thread Nicolin Chen
On Mon, Oct 12, 2020 at 06:43:40PM +0200, Krzysztof Kozlowski wrote: > On Thu, Oct 08, 2020 at 01:26:16PM -0700, Nicolin Chen wrote: > > Hi Krzysztof, > > > > On Thu, Oct 08, 2020 at 12:32:58PM +0200, Krzysztof Kozlowski wrote: > > > On Wed, Oct 07, 2020 at 05:37:

[PATCH v7 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-09 Thread Nicolin Chen
this patch uses fwspec in tegra_smmu_(de)attach_dev() so as to replace the redundant DT polling code. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v6->v7: * No change v5->v6: * Added Dmitry's Reviewed-by and Tested-by v4->v5

[PATCH v7 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-09 Thread Nicolin Chen
gpu: Adding to iommu group 3 Note that dmesg log above is testing with IOMMU_DOMAIN_UNMANAGED. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v6->v7 * Added comments for put_device(), suggested by Thierry. v5->v6 * Dropped NULL mc/smmu pointe

[PATCH v7 3/3] iommu/tegra-smmu: Add PCI support

2020-10-09 Thread Nicolin Chen
This patch simply adds support for PCI devices. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v6->v7 * Renamed goto labels, suggested by Thierry. v5->v6 * Added Dmitry's Reviewed-by and Tested-by. v4->v5 * Added Dmitry's Revie

[PATCH v7 0/3] iommu/tegra-smmu: Add PCI support

2020-10-09 Thread Nicolin Chen
pointer v2->v3 * Replaced with devm_tegra_get_memory_controller * Updated changes by following Dmitry's comments v1->v2 * Added PATCH-1 suggested by Dmitry * Reworked PATCH-2 to unify certain code Nicolin Chen (3): iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev iom

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-09 Thread Nicolin Chen
On Fri, Oct 09, 2020 at 02:25:56PM +0200, Thierry Reding wrote: > On Thu, Oct 08, 2020 at 02:12:10PM -0700, Nicolin Chen wrote: > > On Thu, Oct 08, 2020 at 11:53:43AM +0200, Thierry Reding wrote: > > > On Mon, Oct 05, 2020 at 06:05:46PM -0700, Nicolin Chen wrote: > > > &

Re: [PATCH 4/5] dt-bindings: memory: tegra: Add missing swgroups

2020-10-09 Thread Nicolin Chen
On Fri, Oct 09, 2020 at 02:21:10PM +0200, Thierry Reding wrote: > On Wed, Oct 07, 2020 at 05:37:45PM -0700, Nicolin Chen wrote: > > According to Tegra X1 TRM, there are missing swgroups in the > > tegra210_swgroups list. So this patch adds them in bindings. > > > > Note

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-08 Thread Nicolin Chen
On Thu, Oct 08, 2020 at 11:53:43AM +0200, Thierry Reding wrote: > On Mon, Oct 05, 2020 at 06:05:46PM -0700, Nicolin Chen wrote: > > On Mon, Oct 05, 2020 at 11:57:54AM +0200, Thierry Reding wrote: > > > On Fri, Oct 02, 2020 at 11:58:29AM -0700, Nicolin Chen wrote: > > > &

Re: [PATCH 0/5] memory: tegra: Fix client list and add swgroups

2020-10-08 Thread Nicolin Chen
Hi Krzysztof, On Thu, Oct 08, 2020 at 12:29:06PM +0200, Krzysztof Kozlowski wrote: > On Thu, 8 Oct 2020 at 02:44, Nicolin Chen wrote: > > > > This series has two fixes of tegra210_mc_clients, and three > > changes to add missing swgroups, according to Tegra X1 TRM. &g

Re: [PATCH 3/5] memory: tegra: Sort tegra210_swgroups by reg address

2020-10-08 Thread Nicolin Chen
Hi Krzysztof, On Thu, Oct 08, 2020 at 12:32:58PM +0200, Krzysztof Kozlowski wrote: > On Wed, Oct 07, 2020 at 05:37:44PM -0700, Nicolin Chen wrote: > > This is a cleanup change to prepare for new swgroups. > > What type of cleanup? Any functional change? It's to sort the swgr

[PATCH 5/5] memory: tegra: Complete tegra210_swgroups

2020-10-07 Thread Nicolin Chen
) is. So this patch does not add TEGRA_SWGROUP_GPU (in TRM) and keeps TEGRA_SWGROUP_GPU (in list) as it is. Signed-off-by: Nicolin Chen --- drivers/memory/tegra/tegra210.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/memory/tegra/tegra210.c b/drivers/memory/tegra/tegra210

[PATCH 2/5] memory: tegra: Correct tegra210_mc_clients def values

2020-10-07 Thread Nicolin Chen
Some def values are mismatched with Tegra X1 TRM, probably because being copied from tegra124.c file. So this patch fixes them. Signed-off-by: Nicolin Chen --- drivers/memory/tegra/tegra210.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH 3/5] memory: tegra: Sort tegra210_swgroups by reg address

2020-10-07 Thread Nicolin Chen
This is a cleanup change to prepare for new swgroups. Signed-off-by: Nicolin Chen --- drivers/memory/tegra/tegra210.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/memory/tegra/tegra210.c b/drivers/memory/tegra/tegra210.c index e8a7d266802c

[PATCH 1/5] memory: tegra: Correct la.reg address of seswr

2020-10-07 Thread Nicolin Chen
According to Tegra X1 TRM, ALLOWANCE_SESWR is located in field [23:16] of register at address 0x3e0 with a reset value of 0x80 at register 0x3e0, while bit-1 of register 0xb98 is for enable bit of seswr. So this patch fixes it. Signed-off-by: Nicolin Chen --- drivers/memory/tegra/tegra210.c | 2

[PATCH 0/5] memory: tegra: Fix client list and add swgroups

2020-10-07 Thread Nicolin Chen
This series has two fixes of tegra210_mc_clients, and three changes to add missing swgroups, according to Tegra X1 TRM. Nicolin Chen (5): memory: tegra: Correct la.reg address of seswr memory: tegra: Correct tegra210_mc_clients def values memory: tegra: Sort tegra210_swgroups by reg address

[PATCH 4/5] dt-bindings: memory: tegra: Add missing swgroups

2020-10-07 Thread Nicolin Chen
) is. So this patch does not add TEGRA_SWGROUP_GPU (in TRM) and keeps TEGRA_SWGROUP_GPU (in list) as it is. Signed-off-by: Nicolin Chen --- include/dt-bindings/memory/tegra210-mc.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/dt-bindings/memory/tegra210-mc.h b/include/dt

Re: [PATCH v5 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-05 Thread Nicolin Chen
On Mon, Oct 05, 2020 at 12:56:38PM +0200, Thierry Reding wrote: > On Mon, Oct 05, 2020 at 11:41:08AM +0300, Dmitry Osipenko wrote: > > 05.10.2020 00:57, Nicolin Chen пишет: > > > On Sat, Oct 03, 2020 at 05:06:42PM +0300, Dmitry Osipenko wrote: > > >> 03.10.

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-05 Thread Nicolin Chen
On Mon, Oct 05, 2020 at 11:57:54AM +0200, Thierry Reding wrote: > On Fri, Oct 02, 2020 at 11:58:29AM -0700, Nicolin Chen wrote: > > On Fri, Oct 02, 2020 at 06:02:18PM +0300, Dmitry Osipenko wrote: > > > 02.10.2020 09:08, Nicolin Chen пишет: > > > > static int teg

Re: [PATCH v4 3/3] iommu/tegra-smmu: Add PCI support

2020-10-05 Thread Nicolin Chen
On Mon, Oct 05, 2020 at 12:04:19PM +0200, Thierry Reding wrote: > > +err_bus_set: __maybe_unused; > > + bus_set_iommu(_bus_type, NULL); > > +err_unregister: > > + iommu_device_unregister(>iommu); > > +err_sysfs: > > + iommu_device_sysfs_remove(>iommu); > > Can you please switch to label

[PATCH v6 3/3] iommu/tegra-smmu: Add PCI support

2020-10-04 Thread Nicolin Chen
This patch simply adds support for PCI devices. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v5->v6 * Added Dmitry's Reviewed-by and Tested-by. v4->v5 * Added Dmitry's Reviewed-by v3->v4 * Dropped !iommu_present() check

[PATCH v6 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-04 Thread Nicolin Chen
gpu: Adding to iommu group 3 Note that dmesg log above is testing with IOMMU_DOMAIN_UNMANAGED. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v5->v6 * Dropped NULL mc/smmu pointer check, suggested by Dmitry. * Updated commit message with te

[PATCH v6 0/3] iommu/tegra-smmu: Add PCI support

2020-10-04 Thread Nicolin Chen
uggested by Dmitry * Reworked PATCH-2 to unify certain code Nicolin Chen (3): iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev iommu/tegra-smmu: Rework tegra_smmu_probe_device() iommu/tegra-smmu: Add PCI support drivers/iommu/tegra-smmu.c | 180 -

[PATCH v6 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-04 Thread Nicolin Chen
this patch uses fwspec in tegra_smmu_(de)attach_dev() so as to replace the redundant DT polling code. Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko Signed-off-by: Nicolin Chen --- Changelog v5->v6: * Added Dmitry's Reviewed-by and Tested-by v4->v5: * Removed "index" a

Re: [PATCH v5 3/3] iommu/tegra-smmu: Add PCI support

2020-10-04 Thread Nicolin Chen
On Sat, Oct 03, 2020 at 05:16:20PM +0300, Dmitry Osipenko wrote: > 03.10.2020 09:59, Nicolin Chen пишет: > > This patch simply adds support for PCI devices. > > > > Signed-off-by: Nicolin Chen > > Reviewed-by: Dmitry Osipenko > > Small nit: yours s-b t

Re: [PATCH v5 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-04 Thread Nicolin Chen
On Sat, Oct 03, 2020 at 05:05:52PM +0300, Dmitry Osipenko wrote: > 03.10.2020 09:59, Nicolin Chen пишет: > > ubuntu@jetson:~$ dmesg | grep iommu > > iommu: Default domain type: Translated > > tegra-i2c 7000c400.i2c: Adding to iommu group 0 > > teg

Re: [PATCH v5 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-04 Thread Nicolin Chen
On Sat, Oct 03, 2020 at 05:06:42PM +0300, Dmitry Osipenko wrote: > 03.10.2020 09:59, Nicolin Chen пишет: > > static int tegra_smmu_of_xlate(struct device *dev, > >struct of_phandle_args *args) > > { > > + struct platform_device *iommu_pd

[PATCH v5 0/3] iommu/tegra-smmu: Add PCI support

2020-10-03 Thread Nicolin Chen
other way to get smmu pointer v2->v3 * Replaced with devm_tegra_get_memory_controller * Updated changes by following Dmitry's comments v1->v2 * Added PATCH-1 suggested by Dmitry * Reworked PATCH-2 to unify certain code Nicolin Chen (3): iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)att

[PATCH v5 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-03 Thread Nicolin Chen
this patch uses fwspec in tegra_smmu_(de)attach_dev() so as to replace the redundant DT polling code. Signed-off-by: Nicolin Chen --- Changelog v4->v5: * Removed "index" and "err" assigning to 0 v3->v4: * Seperated the change, as a cleanup, from the rework patch v1->

[PATCH v5 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-03 Thread Nicolin Chen
ing to iommu group 0 tegra-i2c 7000d000.i2c: Adding to iommu group 0 tegra-pcie 1003000.pcie: Adding to iommu group 1 ... Note that dmesg log above is testing with IOMMU_DOMAIN_UNMANAGED. Signed-off-by: Nicolin Chen --- Changelog v4->v5 * Replaced of_node_put() with put_device

[PATCH v5 3/3] iommu/tegra-smmu: Add PCI support

2020-10-03 Thread Nicolin Chen
This patch simply adds support for PCI devices. Signed-off-by: Nicolin Chen Reviewed-by: Dmitry Osipenko --- Changelog v4->v5 * Added Dmitry's Reviewed-by v3->v4 * Dropped !iommu_present() check * Added CONFIG_PCI check in the exit path v2->v3 * Replaced ternary conditional

Re: [PATCH v4 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 11:12:18PM +0300, Dmitry Osipenko wrote: > 02.10.2020 22:45, Nicolin Chen пишет: > > On Fri, Oct 02, 2020 at 05:41:50PM +0300, Dmitry Osipenko wrote: > >> 02.10.2020 09:08, Nicolin Chen пишет: > >>> static int tegra_smmu_attach_d

Re: [PATCH v4 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:52:00PM +0300, Dmitry Osipenko wrote: > 02.10.2020 17:22, Dmitry Osipenko пишет: > > 02.10.2020 09:08, Nicolin Chen пишет: > >> static int tegra_smmu_attach_dev(struct iommu_domain *domain, > >> struct device *

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:58:29PM +0300, Dmitry Osipenko wrote: > 02.10.2020 17:22, Dmitry Osipenko пишет: > > 02.10.2020 09:08, Nicolin Chen пишет: > >> -static void tegra_smmu_release_device(struct device *dev) > >> -{ > >> - dev_iommu_priv_set(d

Re: [PATCH v4 1/3] iommu/tegra-smmu: Use fwspec in tegra_smmu_(de)attach_dev

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:41:50PM +0300, Dmitry Osipenko wrote: > 02.10.2020 09:08, Nicolin Chen пишет: > > static int tegra_smmu_attach_dev(struct iommu_domain *domain, > > struct device *dev) > > { > > + struct iommu_fwspec *fwspec

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 06:02:18PM +0300, Dmitry Osipenko wrote: > 02.10.2020 09:08, Nicolin Chen пишет: > > static int tegra_smmu_of_xlate(struct device *dev, > >struct of_phandle_args *args) > > { > > + struct platform_device *iommu_pd

Re: [PATCH v4 2/3] iommu/tegra-smmu: Rework tegra_smmu_probe_device()

2020-10-02 Thread Nicolin Chen
On Fri, Oct 02, 2020 at 05:23:14PM +0300, Dmitry Osipenko wrote: > 02.10.2020 09:08, Nicolin Chen пишет: > > static struct iommu_device *tegra_smmu_probe_device(struct device *dev) > > { > > - struct device_node *np = dev->of_node; > > - struct tegra_smm

  1   2   3   4   5   6   7   8   9   10   >