How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Hiroshi Doyu
attach_device quite many times somewhere in device initializations. Any comment would be really appreciated. *1: From dd4dd6532d705c7bba0914b54c819d8d735c2fad Mon Sep 17 00:00:00 2001 From: Hiroshi Doyu hd...@nvidia.com Date: Thu, 22 Mar 2012 16:06:27 +0200 Subject: [RFC 1/1] platform: IOMMU'able

Re: How to specify IOMMU'able devices in DT (was: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely)

2012-09-24 Thread Hiroshi Doyu
Hi James, On Mon, 24 Sep 2012 11:28:01 +0200 James Bottomley james.bottom...@hansenpartnership.com wrote: On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base/platform.c b/drivers/base/platform.c index a1a7225..9eae3be 100644 --- a/drivers/base/platform.c

Re: How to specify IOMMU'able devices in DT

2012-09-24 Thread Hiroshi Doyu
Hi Marek, Marek Szyprowski m.szyprow...@samsung.com wrote @ Mon, 24 Sep 2012 13:14:51 +0200: Hello, On Monday, September 24, 2012 11:45 AM Hiroshi Doyu wrote: On Mon, 24 Sep 2012 11:28:01 +0200 James Bottomley james.bottom...@hansenpartnership.com wrote: On Mon, 2012-09-24 at 12

Re: [PATCH 2/3] iommu/tegra-smmu.c: fix dentry reference leak in smmu_debugfs_stats_show().

2012-11-11 Thread Hiroshi Doyu
Cyril Roelandt tipec...@gmail.com wrote @ Sun, 11 Nov 2012 21:49:30 +0100: Call to d_find_alias() needs a corresponding dput(). Signed-off-by: Cyril Roelandt tipec...@gmail.com --- Thanks. Looks ok for me. Acked-by Hiroshi Doyu hd...@nvidia.com -- To unsubscribe from this list: send

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping IOMMU - physically contiguous allocations

2012-10-16 Thread Hiroshi Doyu
Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae inki@samsung.com wrote: 2012/10/15 Marek Szyprowski m.szyprow...@samsung.com: Hello, Some devices, which have IOMMU, for some use cases might require to allocate a buffers for DMA which is contiguous in physical memory. Such

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping IOMMU - physically contiguous allocations

2012-10-16 Thread Hiroshi Doyu
Hi Russell, Russell King - ARM Linux li...@arm.linux.org.uk wrote @ Tue, 16 Oct 2012 10:59:28 +0200: On Tue, Oct 16, 2012 at 09:04:34AM +0300, Hiroshi Doyu wrote: In addition to those contiguous/discontiguous page allocation, is there any way to _import_ anonymous pages allocated

Re: [Linaro-mm-sig] [RFC 0/2] DMA-mapping IOMMU - physically contiguous allocations

2012-10-16 Thread Hiroshi Doyu
Hi Inki, Inki Dae inki@samsung.com wrote @ Tue, 16 Oct 2012 12:12:49 +0200: Hi Hiroshi, 2012/10/16 Hiroshi Doyu hd...@nvidia.com: Hi Inki/Marek, On Tue, 16 Oct 2012 02:50:16 +0200 Inki Dae inki@samsung.com wrote: 2012/10/15 Marek Szyprowski m.szyprow...@samsung.com

[PATCH 1/1] amba: tegra-ahb: Fix build error w/ PM_SLEEP w/o PM_RUNTIME

2013-03-14 Thread Hiroshi Doyu
Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where each PM features are being enabled one-by-one during its depelopment. Signed-off-by: Hiroshi Doyu hd...@nvidia.com Reported

[PATCH 1/1] memory: tegra30: Fix build error w/o PM

2013-03-14 Thread Hiroshi Doyu
Make this depend on CONFIG_PM. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- drivers/memory/tegra30-mc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c index 0b97598..f4ae074 100644 --- a/drivers/memory/tegra30-mc.c +++ b

Re: [PATCH 1/1] amba: tegra-ahb: Fix build error w/ PM_SLEEP w/o PM_RUNTIME

2013-03-15 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Fri, 15 Mar 2013 06:23:38 +0100: On 03/14/2013 03:08 AM, Hiroshi Doyu wrote: Make this depend on CONFIG_PM. This protection is necessary to not cause any build errors with any combination of PM features especially when supporting a new SoC where

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices

2012-11-30 Thread Hiroshi Doyu
Mark Zhang nvmarkzh...@gmail.com wrote @ Fri, 30 Nov 2012 05:59:32 +0100: On 11/28/2012 09:48 PM, Hiroshi Doyu wrote: Hiroshi Doyu hd...@nvidia.com wrote @ Mon, 24 Sep 2012 14:50:14 +0300 (EEST): ... On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: diff --git a/drivers/base

Re: [PATCH 4/4] clocksource: tegra20: use the device_node pointer passed to init

2013-02-07 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Thu, 7 Feb 2013 20:39:40 +0100: On 02/07/2013 12:09 PM, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com We've already matched the node, so use the node pointer passed in. The rtc init was intermingled with the timer init, so

[PATCH 1/4] ARM: tegra: Unify tegra{20,30,114}_init_early()

2013-02-07 Thread Hiroshi Doyu
Refactored tegra{20,30,114}_init_early() so that we have the unified tegra_init_early(). Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/board-dt-tegra114.c |2 +- arch/arm/mach-tegra/board-dt-tegra20.c |2 +- arch/arm/mach-tegra/board-dt-tegra30.c |4

[PATCH 2/4] ARM: tegra: Unify board-dt-tegra{30,114}.c

2013-02-07 Thread Hiroshi Doyu
Refactored that Tegra114 uses board-dt-tegra30. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Makefile|2 +- arch/arm/mach-tegra/board-dt-tegra114.c | 46 --- arch/arm/mach-tegra/board-dt-tegra30.c |3 +- 3 files changed

[PATCH 3/4] ARM: tegra: Unify board-dt-tegra{20,30}.c to tegra.c

2013-02-07 Thread Hiroshi Doyu
Refactored that Tegra{20,30,114} use the same board file. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Makefile |5 ++-- .../arm/mach-tegra/{board-dt-tegra30.c = tegra.c} | 27 ++-- 2 files changed, 15 insertions(+), 17

[PATCH 4/4] ARM: tegra: Restore USB/PCIE info in new DT board file

2013-02-07 Thread Hiroshi Doyu
Mainly for the compatibility for the existing driver. This would be removed once new USB/PCIE DT supports come. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/tegra.c | 92 ++- 1 file changed, 90 insertions(+), 2 deletions(-) diff

Re: [PATCH 1/4] ARM: tegra: Unify tegra{20,30,114}_init_early()

2013-02-08 Thread Hiroshi Doyu
Hi Felipe, Felipe Balbi ba...@ti.com wrote @ Fri, 8 Feb 2013 08:47:20 +0100: +#if defined(CONFIG_ARCH_TEGRA_3x_SOC) how about using: #if IS_BUILTIN(CONFIG_ARCH_TEGRA_3x_SOC) instead ? Why is IS_BUILTIN() prefered? -void tegra20_hotplug_init(void); -void tegra30_hotplug_init(void);

Re: [PATCH 1/4] ARM: tegra: Unify tegra{20,30,114}_init_early()

2013-02-10 Thread Hiroshi Doyu
Hi Marc, Marc Dietrich marvi...@gmx.de wrote @ Sun, 10 Feb 2013 22:16:14 +0100: ah, ok - I just skipped the also in your sentence above. But still, the #ifdefs look strange to me and save only a few byte of code. Just me few cents. What about the following as Arnd suggested[1]? void

[v2 1/3] ARM: tegra: Unify tegra{20,30,114}_init_early()

2013-02-10 Thread Hiroshi Doyu
Refactored tegra{20,30,114}_init_early() so that we have the unified tegra_init_early(). Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- Update: Used IS_ENABLED() instead of ifdefs as Arnd/Felipe suggested. --- arch/arm/mach-tegra/board-dt-tegra114.c |2 +- arch/arm/mach-tegra/board-dt

[v2 2/3] ARM: tegra: Rename board-dt-tegra20.c to tegra.c

2013-02-10 Thread Hiroshi Doyu
This is the preparation to unify board-dt-tegra{20,30,114}.c to a single file tegra.c. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Makefile |2 +- .../arm/mach-tegra/{board-dt-tegra20.c = tegra.c} |0 2 files changed, 1 insertion(+), 1

[v2 3/3] ARM: tegra: Unify Device tree board files

2013-02-10 Thread Hiroshi Doyu
Unify board-dt-tegra{30,114} to the Tegra20 DT board file, tegra.c. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Makefile|5 ++- arch/arm/mach-tegra/board-dt-tegra114.c | 46 arch/arm/mach-tegra/board-dt-tegra30.c | 60

Re: [PATCH 1/1] memory: tegra_ahb_enable_smmu() depends on TEGRA_IOMMU_SMMU

2013-02-11 Thread Hiroshi Doyu
Hiroshi Doyu hd...@nvidia.com wrote @ Wed, 06 Feb 2013 21:16:35 +0200 (EET): Hi Russell, Stephen Warren swar...@wwwdotorg.org wrote @ Wed, 6 Feb 2013 19:51:46 +0100: On 02/06/2013 11:34 AM, Hiroshi Doyu wrote: New SoC, Tegra114 also uses SMMU. Change tegra_ahb_enable_smmu()'s

Re: [v2 3/3] ARM: tegra: Unify Device tree board files

2013-02-11 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Tue, 12 Feb 2013 00:54:03 +0100: -obj-$(CONFIG_ARCH_TEGRA_2x_SOC)+= tegra.o -obj-$(CONFIG_ARCH_TEGRA_3x_SOC)+= board-dt-tegra30.o -obj-$(CONFIG_ARCH_TEGRA_114_SOC) += board-dt-tegra114.o +obj-y

Re: [v2 3/3] ARM: tegra: Unify Device tree board files

2013-02-11 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Tue, 12 Feb 2013 05:47:20 +0100: static void __init harmony_init(void) { -#ifdef CONFIG_TEGRA_PCI int ret; ret = harmony_pcie_init(); if (ret) pr_err(harmony_pcie_init() failed: %d\n, ret); -#endif } Why

Re: [v2 3/3] ARM: tegra: Unify Device tree board files

2013-02-12 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Tue, 12 Feb 2013 17:35:56 +0100: However I'd like to avoid changing the body of those two functions at all if possible, since I hope the PCIe driver rework will be merged in 3.10, and that will allow the Harmony and TrimSlice init functions to be

[v3 1/3] ARM: tegra: Unify tegra{20,30,114}_init_early()

2013-02-13 Thread Hiroshi Doyu
Refactored tegra{20,30,114}_init_early() so that we have the unified tegra_init_early(). Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/board-dt-tegra114.c |2 +- arch/arm/mach-tegra/board-dt-tegra20.c |2 +- arch/arm/mach-tegra/board-dt-tegra30.c |4

[v3 2/3] ARM: tegra: Rename board-dt-tegra20.c to tegra.c

2013-02-13 Thread Hiroshi Doyu
This is the preparation to unify board-dt-tegra{20,30,114}.c to a single file tegra.c. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Makefile |2 +- .../arm/mach-tegra/{board-dt-tegra20.c = tegra.c} |0 2 files changed, 1 insertion(+), 1

[v3 3/3] ARM: tegra: Unify Device tree board files

2013-02-13 Thread Hiroshi Doyu
Unify board-dt-tegra{30,114} to the Tegra20 DT board file, tegra.c. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Makefile|4 +-- arch/arm/mach-tegra/board-dt-tegra114.c | 46 arch/arm/mach-tegra/board-dt-tegra30.c | 60

Re: [PATCH V2] clk: Add composite clock type

2013-02-04 Thread Hiroshi Doyu
Hi Prashant, Prashant Gaikwad pgaik...@nvidia.com wrote @ Mon, 4 Feb 2013 09:11:22 +0100: +struct clk *clk_register_composite(struct device *dev, const char *name, + const char **parent_names, int num_parents, + struct clk_hw *mux_hw, const struct

[PATCH 1/2] ARM: tegra: Fix build error for gic update

2013-02-04 Thread Hiroshi Doyu
Fix build error in board-dt-tegra114.c(next-20130204) Signed-off-by: Hiroshi Doyu hd...@nvidia.com Reported-by: Sami Liedesslie...@nvidia.com --- arch/arm/mach-tegra/board-dt-tegra114.c |2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-tegra/board-dt-tegra114.c b/arch/arm

[PATCH 2/2] regmap: Fix build error next-20130204

2013-02-04 Thread Hiroshi Doyu
In function 'regmap_async_complete_cb': 1656:3: error: 'TASK_NORMAL' undeclared (first use in this function) In function 'regmap_async_complete': 1688:2: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function) Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- drivers/base/regmap

Re: [PATCH 1/2] ARM: tegra: Fix build error for gic update

2013-02-04 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Mon, 4 Feb 2013 18:01:15 +0100: On 02/04/2013 04:08 AM, Hiroshi Doyu wrote: Fix build error in board-dt-tegra114.c(next-20130204) Hiroshi, which tree should this patch be applied to? I assume it needs to go through arm-soc since that's where

Re: [PATCH V2] clk: Add composite clock type

2013-02-05 Thread Hiroshi Doyu
Prashant Gaikwad pgaik...@nvidia.com wrote @ Tue, 5 Feb 2013 09:33:41 +0100: The members of clk_composite_ops seems to be always assigned statically. Istead of dynamically allocating/assigning, can't we just have clk_composite_ops statically as below? static struct clk_ops

Re: [PATCH V2] clk: Add composite clock type

2013-02-05 Thread Hiroshi Doyu
Prashant Gaikwad pgaik...@nvidia.com wrote @ Mon, 4 Feb 2013 09:11:22 +0100: ... If you want to consider the consistency for the other tegra clk_register(), the following comment can be added although this is a common function. + /* Data in .init is copied by clk_register(), so stack

Re: [PATCH V2] clk: Add composite clock type

2013-02-05 Thread Hiroshi Doyu
Prashant Gaikwad pgaik...@nvidia.com wrote @ Wed, 6 Feb 2013 03:55:00 +0100: No, clk_ops depends on the clocks you are using. There could be a clock with mux and gate while another one with mux and div. You are right. What about the following? We don't have to have similar copy of

Re: [PATCH V2] clk: Add composite clock type

2013-02-06 Thread Hiroshi Doyu
Prashant Gaikwad pgaik...@nvidia.com wrote @ Wed, 6 Feb 2013 10:52:54 +0100: diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index f0ac818..bb5d36a 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -346,6 +346,8 @@ struct

[PATCH 1/1] ARM: tegra: Fix build error w/ ARCH_TEGRA_114_SOC w/o ARCH_TEGRA_3x_SOC

2013-02-06 Thread Hiroshi Doyu
This patch fixes the build error when ARCH_TEGRA_114_SOC is enabled and ARCH_TEGRA_3x_SOC is disabled. This provides Tegra114 with its own tegra114_init_early() instead of making use of tegra30_init_early() so that T114 build doesn't depend on T3x anymore. Signed-off-by: Hiroshi Doyu hd

[PATCH 1/1] memory: tegra_ahb_enable_smmu() depends on TEGRA_IOMMU_SMMU

2013-02-06 Thread Hiroshi Doyu
is not set CONFIG_ARCH_TEGRA_114_SOC=y drivers/iommu/tegra-smmu.c:485: undefined reference to 'tegra_ahb_enable_smmu' Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- drivers/amba/tegra-ahb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amba/tegra-ahb.c b/drivers

Re: [PATCH 1/1] memory: tegra_ahb_enable_smmu() depends on TEGRA_IOMMU_SMMU

2013-02-06 Thread Hiroshi Doyu
Hi Russell, Stephen Warren swar...@wwwdotorg.org wrote @ Wed, 6 Feb 2013 19:51:46 +0100: On 02/06/2013 11:34 AM, Hiroshi Doyu wrote: New SoC, Tegra114 also uses SMMU. Change tegra_ahb_enable_smmu()'s dependency from ARCH_TEGRA_3x_SOC to TEGRA_IOMMU_SMMU. No need to edit whenever a new

Re: [REPOST PATCH 1/2] clk: add table lookup to mux

2013-02-26 Thread Hiroshi Doyu
On Fri, 22 Feb 2013 16:02:28 +0100 Peter De Schrijver pdeschrij...@nvidia.com wrote: Add a table lookup feature to the mux clock. Also allow arbitrary masks instead of the width. This will be used by some clocks on Tegra114. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com @@

[v4 0/6] ARM: Initial support for Tegra114 SoC

2013-01-24 Thread Hiroshi Doyu
/soc(inc. CCF) Removed SCU related pathces. v3: Rebased onto next-20130115. Dropped TSC/arch timer patch. Use /cpus entry in DT to detect cpu core #. v2: Rebased against the latest Stephen Warren's linux-next_common Add /cpus entry in DT Add comment to initialize TSC only in secure mode. Hiroshi

[v4 1/6] ARM: tegra: Use DT /cpu node to detect number of CPU core

2013-01-24 Thread Hiroshi Doyu
Tegra SoCs does not use SCU based to detect CPU core numbers but they use DT /cpu node. If it's not provided or failed, it continues as a single core. Signed-off-by: Hiroshi Doyu hd...@nvidia.com Reviewed-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- Based on the discussion: http

[v4 4/6] ARM: dt: tegra114: Add new board, Dalmore

2013-01-24 Thread Hiroshi Doyu
Add a new evaluation board, Dalmore for Tegra 114 family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-dalmore.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644

[v4 5/6] ARM: dt: tegra114: Add new board, Pluto

2013-01-24 Thread Hiroshi Doyu
Add a new evaluation board, Pluto for Tegra 114 family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-pluto.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 arch

[v4 3/6] ARM: dt: tegra114: Add new SoC base, Tegra114 SoC

2013-01-24 Thread Hiroshi Doyu
Initial support for Tegra 114 SoC. This is expected to be included in the board DTS files, Tegra 114 SoC based evaluation board family. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra114.dtsi | 114 +++ 1 file changed, 114 insertions

[v4 6/6] ARM: tegra: Add initial support for Tegra114 SoC.

2013-01-24 Thread Hiroshi Doyu
Add new Tegra 114 SoC support. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/Kconfig | 10 +++ arch/arm/mach-tegra/Makefile|1 + arch/arm/mach-tegra/board-dt-tegra114.c | 48 +++ arch/arm/mach-tegra/common.c

[v4 2/6] ARM: tegra: fuse: Add chip ID Tegra114 0x35

2013-01-24 Thread Hiroshi Doyu
Add tegra_chip_id TEGRA114 0x35 Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/fuse.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h index ff1383d..da78434 100644 --- a/arch/arm/mach-tegra/fuse.h +++ b/arch/arm

[PATCH 1/2] ARM: dma-mapping: Add macro to_dma_iommu_mapping()

2013-01-24 Thread Hiroshi Doyu
This can be built without CONFIG_ARM_DMA_USE_IOMMU. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/include/asm/device.h |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/device.h b/arch/arm/include/asm/device.h index 5191a83..6fbe514 100644 --- a/arch

[PATCH 2/2] ARM: dma-mapping: Add arm_iommu_detach_device()

2013-01-24 Thread Hiroshi Doyu
A counter part of arm_iommu_attach_device(). Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/include/asm/dma-iommu.h |1 + arch/arm/mm/dma-mapping.c| 25 + 2 files changed, 26 insertions(+) diff --git a/arch/arm/include/asm/dma-iommu.h b/arch/arm

Re: [v3 2/2] ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

2013-01-27 Thread Hiroshi Doyu
Hi Russell, On Tue, 22 Jan 2013 18:04:46 +0100 Olof Johansson o...@lixom.net wrote: Since Russell had comments on it earlier, I'd like him to give a nod that he's happy with it too. Is this ok for you? The original patch is:

[v3 1/2] ARM: Add API to detect SCU base address from CP15

2013-01-21 Thread Hiroshi Doyu
Add API to detect SCU base address from CP15. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- Update: Use Russell's suggestion, http://lists.infradead.org/pipermail/linux-arm-kernel/2013-January/143321.html --- arch/arm/include/asm/smp_scu.h | 17 + 1 file changed, 17

[v3 2/2] ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

2013-01-21 Thread Hiroshi Doyu
Skip scu_enable(scu_base) if CPU is not Cortex A9 with SCU. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/platsmp.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c index 689ee4b

Re: [v3 2/2] ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

2013-01-22 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Tue, 22 Jan 2013 17:57:39 +0100: Hiroshi, is this series the only dependency you need for your Tegra114 Basically yes. series? So, I could merge your Tegra114 series once this series is applied? But now CCF seems to be in. Then, the HACK(*1)

Re: [v3 2/2] ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

2013-01-23 Thread Hiroshi Doyu
Hiroshi Doyu hd...@nvidia.com wrote @ Wed, 23 Jan 2013 08:04:57 +0200 (EET): Stephen Warren swar...@wwwdotorg.org wrote @ Tue, 22 Jan 2013 17:57:39 +0100: Hiroshi, is this series the only dependency you need for your Tegra114 Basically yes. series? So, I could merge your Tegra114

Re: [v3 2/2] ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

2013-01-23 Thread Hiroshi Doyu
January 2013 11:22 AM, Hiroshi Doyu wrote: Skip scu_enable(scu_base) if CPU is not Cortex A9 with SCU. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- Looks fine. I will also update OMAP code with the new interface. Thanks. OK, so patch 1/2 at least needs to get into a stable arm-soc

Re: [v3 2/2] ARM: tegra: Skip scu_enable(scu_base) if not Cortex A9

2013-01-23 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Thu, 24 Jan 2013 06:04:55 +0100: Branch scu-base-rework contains just the SCU base address patches. After the few things listed below, I'll rename this branch and send a pull request to arm-soc. 2) Lorenzo's last comment on ARM: tegra: Use

Re: [PATCH v4 2/9] clk: tegra: Add tegra specific clocks

2013-01-16 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Fri, 11 Jan 2013 22:35:28 +0100: On 01/11/2013 04:48 AM, Hiroshi Doyu wrote: Hi Prahant, Some nit-pick/cosmetic comments inlined... FYI, Prashant is on vacation for the next week or two, so I'll take over this series to clean up any last

Re: [PATCH v4 5/9] ARM: Tegra: Define Tegra30 CAR binding

2013-01-16 Thread Hiroshi Doyu
On Fri, 11 Jan 2013 08:46:23 +0100 Prashant Gaikwad pgaik...@nvidia.com wrote: The device tree binding models Tegra30 CAR (Clock And Reset) as a single monolithic clock provider. Signed-off-by: Prashant Gaikwad pgaik...@nvidia.com --- .../bindings/clock/nvidia,tegra30-car.txt |

Re: [PATCH v4 2/9] clk: tegra: Add tegra specific clocks

2013-01-16 Thread Hiroshi Doyu
Prashant Gaikwad pgaik...@nvidia.com wrote @ Fri, 11 Jan 2013 08:46:20 +0100: ... +const struct clk_ops tegra_clk_periph_ops = { + .get_parent = clk_periph_get_parent, + .set_parent = clk_periph_set_parent, + .recalc_rate = clk_periph_recalc_rate, + .round_rate =

Re: [PATCH v4 2/9] clk: tegra: Add tegra specific clocks

2013-01-16 Thread Hiroshi Doyu
Prashant Gaikwad pgaik...@nvidia.com wrote @ Fri, 11 Jan 2013 08:46:20 +0100: diff --git a/drivers/clk/tegra/clk-audio-sync.c b/drivers/clk/tegra/clk-audio-sync.c new file mode 100644 index 000..bb2fe43 --- /dev/null +++ b/drivers/clk/tegra/clk-audio-sync.c @@ -0,0 +1,89 @@ +/*

Re: [PATCH v5 06/14] ARM: EXYNOS: add System MMU definition to DT

2013-01-16 Thread Hiroshi Doyu
Will Deacon will.dea...@arm.com wrote @ Wed, 16 Jan 2013 12:51:14 +0100: On Tue, Dec 11, 2012 at 11:09:47AM +, Cho KyongHo wrote: This commit adds System MMU nodes to DT of Exynos SoCs. [Adding devicetree-discuss and some other IOMMU/DT people to CC] Signed-off-by: KyongHo Cho

Re: [PATCH v4 2/9] clk: tegra: Add tegra specific clocks

2013-01-16 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Wed, 16 Jan 2013 21:11:24 +0100: +static int clk_frac_div_set_rate(struct clk_hw *hw, unsigned long rate, + unsigned long parent_rate) +{ + struct tegra_clk_frac_div *divider = to_clk_frac_div(hw); +

[PATCH 1/1] ARM: dt: add header to define tegra20 clocks

2013-02-13 Thread Hiroshi Doyu
To replace magic number in clocks = tegra_car 28; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- This patch depends on: [PATCH 0/9] ARM: tegra: use new dtc+cpp feature http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149613.html This patch is the experiment for Tegra20

Re: [PATCH 1/1] ARM: dt: add header to define tegra20 clocks

2013-02-14 Thread Hiroshi Doyu
Peter De Schrijver pdeschrij...@nvidia.com wrote @ Thu, 14 Feb 2013 11:12:20 +0100: On Thu, Feb 14, 2013 at 07:38:17AM +0100, Hiroshi Doyu wrote: To replace magic number in clocks = tegra_car 28; But then we should probably also remove the enum tegra20_clk and replace

[v2 0/4] ARM: tegra: convert device tree files to use CLK defines

2013-02-14 Thread Hiroshi Doyu
-February/149804.html Hiroshi Doyu (4): ARM: tegra20: create a DT header defining CLK IDs ARM: tegra20: convert device tree files to use CLK defines ARM: tegra30: create a DT header defining CLK IDs ARM: tegra30: convert device tree files to use CLK defines .../bindings/clock/nvidia,tegra20

[v2 1/4] ARM: tegra20: create a DT header defining CLK IDs

2013-02-14 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra20-car.h | 114 +++ 1 file changed, 114 insertions(+) create

[v2 2/4] ARM: tegra20: convert device tree files to use CLK defines

2013-02-14 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- .../bindings/clock/nvidia,tegra20-car.txt |2 +- arch/arm/boot/dts/tegra20-paz00.dtsp |2

[v2 3/4] ARM: tegra30: create a DT header defining CLK IDs

2013-02-14 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra30-car.h | 171 +++ 1 file changed, 171 insertions(+) create

[v2 4/4] ARM: tegra30: convert device tree files to use CLK defines

2013-02-14 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- .../bindings/clock/nvidia,tegra30-car.txt |2 +- arch/arm/boot/dts/tegra30.dtsip| 87

[PATCH 1/2] ARM: tegra114: create a DT header defining CLK IDs

2013-02-14 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- Depends on: [PATCH v6 00/10] Tegra114 clockframework http://lists.infradead.org/pipermail/linux-arm-kernel/2013

[PATCH 2/2] ARM: tegra114: convert device tree files to use CLK defines

2013-02-14 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- .../bindings/clock/nvidia,tegra114-car.txt |2 +- arch/arm/boot/dts/tegra114.dtsip | 13

Re: [v2 1/4] ARM: tegra20: create a DT header defining CLK IDs

2013-02-14 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Thu, 14 Feb 2013 21:15:28 +0100: Oh, and I don't think you updated e.g. nvidia,tegra20-car.txt to remove the list of clocks. Not yet removed. I think that this could be done with the patch which allows kernel source to include DT header files.

[v3 0/6] ARM: tegra: convert device tree files to use CLK defines

2013-02-15 Thread Hiroshi Doyu
://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149672.html [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149804.html Hiroshi Doyu (6): ARM: tegra20: create a DT header defining CLK IDs ARM: tegra20: convert device tree files to use CLK defines ARM: tegra30

[v3 1/6] ARM: tegra20: create a DT header defining CLK IDs

2013-02-15 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra20-car.h | 158 +++ 1 file changed, 158 insertions(+) create

[v3 3/6] ARM: tegra30: create a DT header defining CLK IDs

2013-02-15 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra30-car.h | 218 +++ 1 file changed, 218 insertions(+) create

[v3 5/6] ARM: tegra114: create a DT header defining CLK IDs

2013-02-15 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/boot/dts/tegra114-car.h | 272 ++ 1 file changed, 272 insertions(+) create

[v3 6/6] ARM: tegra114: convert device tree files to use CLK defines

2013-02-15 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = tegra_car 28; + clocks = tegra_car CLK_HOST1X; Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- .../bindings/clock/nvidia,tegra114-car.txt | 261 +--- arch/arm/boot/dts/tegra114.dtsip

[RFC 1/2] Makefile: Add arch/arch/$(hdr-arch)/boot in header include path

2013-02-15 Thread Hiroshi Doyu
: + #include dts/tegra20-car.h Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0b4bf62..7f54cdb 100644 --- a/Makefile +++ b/Makefile @@ -364,7 +364,7 @@ LINUXINCLUDE:= \ -I$(srctree

[RFC 2/2] clk: tegra20: Use DT defines for CLK ID

2013-02-15 Thread Hiroshi Doyu
To avoid the duplication of CLK ID defines both in boot/dts and kernel source, use the one from the DT header file and get rid of own definitions in kernel source. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- drivers/clk/tegra/clk-tegra20.c | 307 ++- 1

Re: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely

2012-09-19 Thread Hiroshi Doyu
Hi Joerg, On Tue, 18 Sep 2012 14:49:18 +0200 Joerg Roedel joerg.roe...@amd.com wrote: On Wed, Aug 29, 2012 at 09:55:30AM +0300, Hiroshi Doyu wrote: The following APIs are needed for us to support the legacy Tegra memory manager for devices(NvMap) with *DMA mapping API*. Maybe I am

Re: [RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely

2012-09-19 Thread Hiroshi Doyu
Hi Arnd, On Wed, 19 Sep 2012 09:59:45 +0200 Arnd Bergmann a...@arndb.de wrote: On Wednesday 19 September 2012, Hiroshi Doyu wrote: I guess that it would work. Originally I thought that using DMA-API and IOMMU-API together in driver might be kind of layering violation since IOMMU-API

[RFC 0/5] ARM: dma-mapping: New dma_map_ops to control IOVA more precisely

2012-08-29 Thread Hiroshi Doyu
://lists.linaro.org/pipermail/linaro-mm-sig/2012-May/001948.html http://lists.linaro.org/pipermail/linaro-mm-sig/2012-May/001949.html Any comment would be really appreciated. Hiroshi Doyu (5): ARM: dma-mapping: New dma_map_ops-iova_get_free_{total,max} functions ARM: dma-mapping: New

[RFC 1/5] ARM: dma-mapping: New dma_map_ops-iova_get_free_{total,max} functions

2012-08-29 Thread Hiroshi Doyu
-iova_get_free_total() returns the sum of available free areas. -iova_get_free_max() returns the largest available free area size. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/include/asm/dma-mapping.h | 16 ++ arch/arm/mm/dma-mapping.c | 54

[RFC 3/5] ARM: dma-mapping: New dma_map_ops-iova_alloc*_at* function

2012-08-29 Thread Hiroshi Doyu
To allocate IOVA area at specified address Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/include/asm/dma-mapping.h |9 + arch/arm/mm/dma-mapping.c | 35 +++ include/linux/dma-mapping.h|2 ++ 3 files changed, 46

[RFC 2/5] ARM: dma-mapping: New dma_map_ops-iova_{alloc,free}() functions

2012-08-29 Thread Hiroshi Doyu
There are some cases that IOVA allocation and mapping have to be done seperately, especially for perf optimization reasons. This patch allows client modules to {alloc,free} IOVA space without backing up actual pages for that area. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/include

[RFC 5/5] ARM: dma-mapping: Introduce dma_map_linear_attrs() for IOVA linear map

2012-08-29 Thread Hiroshi Doyu
Introduce a helper function, dma_map_linear(_attrs)() to create IOVA linear map, where IOVA and kernel virtual addresses are mapped at the same address linearly. This is useful to support legacy device drivers which expects no IOMMU. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm

[RFC 4/5] ARM: dma-mapping: New dma_map_ops-map_page*_at* function

2012-08-29 Thread Hiroshi Doyu
Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mm/dma-mapping.c| 18 ++ include/asm-generic/dma-mapping-common.h | 19 +++ include/linux/dma-mapping.h |7 +++ 3 files changed, 44 insertions(+), 0 deletions

[v3 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-09-03 Thread Hiroshi Doyu
dev_dbg_reatelimited() without DEBUG printed 217078 callbacks suppressed. This shouldn't print anything without DEBUG. With CONFIG_DYNAMIC_DEBUG, the print should be configured as expected. Signed-off-by: Hiroshi Doyu hd...@nvidia.com Reported-by: Hin-Tak Leung ht...@users.sourceforge.net Tested

Re: [v2 1/1] iommu/tegra: smmu: Use debugfs_create_dir for directory

2012-09-04 Thread Hiroshi Doyu
Stephen Warren swar...@wwwdotorg.org wrote @ Wed, 15 Aug 2012 18:13:18 +0200: On 08/14/2012 11:47 PM, Hiroshi Doyu wrote: The commit c3b1a35 debugfs: make sure that debugfs_create_file() gets used only for regulars doesn't allow to use debugfs_create_file() for dir. Keep debugfs data

Re: [PATCH] dma: tegra: move smmu.h into SMMU driver

2012-09-04 Thread Hiroshi Doyu
. Signed-off-by: Stephen Warren swar...@nvidia.com Cc: Hiroshi Doyu hd...@nvidia.com Ok to me. Acked-by: Hiroshi Doyu hd...@nvidia.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 1/2] debugfs: Allow debugfs_create_dir() to take data

2012-08-14 Thread Hiroshi Doyu
On Thu, 9 Aug 2012 14:56:24 +0200 Hiroshi Doyu hd...@nvidia.com wrote: Hi Greg, Felipe, On Wed, 8 Aug 2012 15:34:27 +0200 Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Wed, Aug 08, 2012 at 09:24:32AM +0300, Hiroshi Doyu wrote: Add __debugfs_create_dir(), which takes data

Re: [PATCH 2/2] iommu/tegra: smmu: Use __debugfs_create_dir

2012-08-15 Thread Hiroshi Doyu
Balbi wrote: Hi, On Wed, Aug 08, 2012 at 09:24:33AM +0300, Hiroshi Doyu wrote: The commit c3b1a35 debugfs: make sure that debugfs_create_file() gets used only for regulars doesn't allow to use debugfs_create_file() for dir. Use the version with data, __debugfs_create_dir

[PATCH 1/2] debugfs: Allow debugfs_create_dir() to take data

2012-08-08 Thread Hiroshi Doyu
Add __debugfs_create_dir(), which takes data passed from caller. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- fs/debugfs/inode.c |7 --- include/linux/debugfs.h |9 - 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs

[PATCH 2/2] iommu/tegra: smmu: Use __debugfs_create_dir

2012-08-08 Thread Hiroshi Doyu
The commit c3b1a35 debugfs: make sure that debugfs_create_file() gets used only for regulars doesn't allow to use debugfs_create_file() for dir. Use the version with data, __debugfs_create_dir(). Signed-off-by: Hiroshi Doyu hd...@nvidia.com Reported-by: Laxman Dewangan ldewan...@nvidia.com

Re: [PATCH 1/2] debugfs: Allow debugfs_create_dir() to take data

2012-08-09 Thread Hiroshi Doyu
Hi Greg, Felipe, On Wed, 8 Aug 2012 15:34:27 +0200 Greg Kroah-Hartman gre...@linuxfoundation.org wrote: On Wed, Aug 08, 2012 at 09:24:32AM +0300, Hiroshi Doyu wrote: Add __debugfs_create_dir(), which takes data passed from caller. Why? Signed-off-by: Hiroshi Doyu hd...@nvidia.com

Re: [PATCHv6 2/2] ARM: dma-mapping: remove custom consistent dma region

2012-08-22 Thread Hiroshi Doyu
Hi Marek, On Tue, 21 Aug 2012 17:01:08 +0200 Marek Szyprowski m.szyprow...@samsung.com wrote: -__iommu_alloc_remap(struct page **pages, size_t size, gfp_t gfp, pgprot_t prot) +__iommu_alloc_remap(struct page **pages, size_t size, gfp_t gfp, pgprot_t prot, +

[RFC 0/4] ARM: dma-mapping: IOMMU atomic allocation

2012-08-22 Thread Hiroshi Doyu
] ---[ end trace 1b75b31a2719ed24 ]--- [9.447645] Kernel panic - not syncing: Fatal exception in interrupt Hiroshi Doyu (4): ARM: dma-mapping: Refactor out to introduce __alloc_fill_pages ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC ARM: dma-mapping: Return cpu addr when

[RFC 4/4] ARM: dma-mapping: dma_{alloc,free}_coherent with empty attrs

2012-08-22 Thread Hiroshi Doyu
There's possibility that this attrs be used later to set. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/include/asm/dma-mapping.h | 21 + 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm

[RFC 2/4] ARM: dma-mapping: IOMMU allocates pages from pool with GFP_ATOMIC

2012-08-22 Thread Hiroshi Doyu
Makes use of the same atomic pool from DMA, and skips kernel page mapping which can involves sleep'able operation at allocating a kernel page table. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mm/dma-mapping.c | 22 ++ 1 files changed, 18 insertions(+), 4

[RFC 3/4] ARM: dma-mapping: Return cpu addr when dma_alloc(GFP_ATOMIC)

2012-08-22 Thread Hiroshi Doyu
Make dma_alloc{_attrs}() returns cpu address when DMA_ATTR_NO_KERNEL_MAPPING GFP_ATOMIC. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mm/dma-mapping.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c

  1   2   3   4   5   >