[PATCH 1/1] memory: tegra30: Fix warning w/o PM_SLEEP

2012-11-26 Thread Hiroshi Doyu
Fix build warning w/o PM_SLEEP. Signed-off-by: Hiroshi Doyu Reviewed-by: Stephen Warren --- 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 802b9ea..cf10b77 100644 --- a/drivers/memory/tegra30

[PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
Hiroshi Doyu 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/platform.c b/drivers/base/platform.c > > > > > index a1a7225..9eae3be 100644 > > >

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-28 Thread Hiroshi Doyu
p. This patch doesn't > > suppor such case yet. > > > > From 8cb75bb6f3a8535a077e0e85265f87c1f1289bfd Mon Sep 17 00:00:00 2001 > > From: Hiroshi Doyu > > Date: Wed, 28 Nov 2012 14:47:04 +0200 > > Subject: [PATCH 1/1] ARM: tegra: bus_notifier registers

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

2012-11-30 Thread Hiroshi Doyu
Mark Zhang wrote @ Fri, 30 Nov 2012 05:59:32 +0100: > On 11/28/2012 09:48 PM, Hiroshi Doyu wrote: > > Hiroshi Doyu wrote @ Mon, 24 Sep 2012 14:50:14 +0300 > > (EEST): > > ... > >>>>> On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: > >>>

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

2013-02-04 Thread Hiroshi Doyu
Hi Prashant, Prashant Gaikwad 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 clk_ops *mux_ops,

[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 Reported-by: Sami Liedes --- 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/mach-tegra/board-dt-tegra114.c index

[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

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

2013-02-04 Thread Hiroshi Doyu
Stephen Warren 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

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

2013-02-05 Thread Hiroshi Doyu
Prashant Gaikwad 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 clk_composite_ops =

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

2013-02-05 Thread Hiroshi Doyu
Prashant Gaikwad 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 variable OK */ > + c

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

2013-02-05 Thread Hiroshi Doyu
Prashant Gaikwad 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 clk_composite_ops

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

2013-02-06 Thread Hiroshi Doyu
Prashant Gaikwad 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 clk_composite { > >

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

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

2013-02-06 Thread Hiroshi Doyu
x_SOC 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 --- drivers/amba/tegra-ahb.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amba/tegra-ahb.c b/drivers/a

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

2013-02-06 Thread Hiroshi Doyu
Hi Russell, Stephen Warren 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 > > when

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

2013-02-07 Thread Hiroshi Doyu
Stephen Warren wrote @ Thu, 7 Feb 2013 20:39:40 +0100: > On 02/07/2013 12:09 PM, Rob Herring wrote: > > From: Rob Herring > > > > We've already matched the node, so use the node pointer passed in. The rtc > > init was intermingled with the timer init, so split this out to a separate > > init fu

[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 --- 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 ++-- arch/arm/mach-tegra

[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 --- 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, 3 insertions

[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 --- arch/arm/mach-tegra/Makefile |5 ++-- .../arm/mach-tegra/{board-dt-tegra30.c => tegra.c} | 27 ++-- 2 files changed, 15 insertions(+), 17 deletions(-) ren

[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 --- arch/arm/mach-tegra/tegra.c | 92 ++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/arch/arm

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

2013-02-08 Thread Hiroshi Doyu
Hi Felipe, Felipe Balbi 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 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 __init tegra_hot

[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 --- 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-tegra20.c |2

[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 --- arch/arm/mach-tegra/Makefile |2 +- .../arm/mach-tegra/{board-dt-tegra20.c => tegra.c} |0 2 files changed, 1 i

[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 --- arch/arm/mach-tegra/Makefile|5 ++- arch/arm/mach-tegra/board-dt-tegra114.c | 46 arch/arm/mach-tegra/board-dt-tegra30

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

2013-02-11 Thread Hiroshi Doyu
Hiroshi Doyu wrote @ Wed, 06 Feb 2013 21:16:35 +0200 (EET): > Hi Russell, > > Stephen Warren 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_smm

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

2013-02-11 Thread Hiroshi Doyu
Stephen Warren 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 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

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

2013-01-24 Thread Hiroshi Doyu
linux-next_common Add /cpus entry in DT Add comment to initialize TSC only in secure mode. Hiroshi Doyu (6): ARM: tegra: Use DT /cpu node to detect number of CPU core ARM: tegra: fuse: Add chip ID Tegra114 0x35 ARM: dt: tegra114: Add new SoC base, Tegra114 SoC ARM: dt: tegra

[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 Reviewed-by: Lorenzo Pieralisi --- Based on the discussion: http://lists.infradead.org/pipermail/linux-arm-k

[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 --- arch/arm/boot/dts/Makefile |3 ++- arch/arm/boot/dts/tegra114-dalmore.dts | 21 + 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot

[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 --- 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/arm/boot/dts

[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 --- arch/arm/boot/dts/tegra114.dtsi | 114 +++ 1 file changed, 114 insertions(+) create mode

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

[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 --- 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/mach-tegra

[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 --- 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/arm/include/asm

[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 --- 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/include/asm/dma

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 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: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-January/143552.html -

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 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 > @@ -42,7 +43,17 @@ static u8 clk_mux_get_paren

[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 Reported-by: Joseph Lo

[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 --- 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/drivers/memory/tegra30

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

2013-03-14 Thread Hiroshi Doyu
Stephen Warren 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

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

2012-08-27 Thread Hiroshi Doyu
0xd8/0x134) [9.428612] [] (cpu_idle+0xd8/0x134) from [] (start_kernel+0x27c/0x2cc) [9.436952] Code: e1a4 e3a04000 eb002265 eae0 (e7f001f2) [9.443038] ---[ end trace 1b75b31a2719ed24 ]--- [9.447645] Kernel panic - not syncing: Fatal exception in interrupt Hiroshi Doy

[v4 2/4] ARM: dma-mapping: Refactor out to introduce __in_atomic_pool

2012-08-27 Thread Hiroshi Doyu
Check the given range("start", "size") is included in "atomic_pool" or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 26 -- 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/a

[v4 4/4] ARM: dma-mapping: IOMMU allocates pages from atomic_pool with GFP_ATOMIC

2012-08-27 Thread Hiroshi Doyu
Make use of the same atomic pool as DMA does, and skip a kernel page mapping which can involve sleep'able operations at allocating a kernel page table. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 36 1 files changed, 36 insertions(

[v4 1/4] ARM: dma-mapping: atomic_pool with struct page **pages

2012-08-27 Thread Hiroshi Doyu
struct page **pages is necessary to align with non atomic path in __iommu_get_pages(). atomic_pool() has the intialized **pages instead of just *page. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff

[v4 3/4] ARM: dma-mapping: Introduce __atomic_get_pages() for __iommu_get_pages()

2012-08-27 Thread Hiroshi Doyu
Support atomic allocation in __iommu_get_pages(). Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index a62f552..4ef2d7b 100644 --- a/arch/arm/mm

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

2012-08-28 Thread Hiroshi Doyu
inaro-mm-sig/2012-May/001947.html http://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}

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

2012-08-28 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 --- arch/arm/include/asm/dma-mapping.h | 16 ++ arch/arm/mm/dma-mapping.c

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

2012-08-28 Thread Hiroshi Doyu
To allocate IOVA area at specified address Signed-off-by: Hiroshi Doyu --- 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 insertions(+), 0

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

2012-08-28 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 --- arch/arm/include/asm/dma

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

2012-08-28 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 --- arch/arm/include/asm/dma

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

2012-08-28 Thread Hiroshi Doyu
Signed-off-by: Hiroshi Doyu --- 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(-) diff --git a/arch

[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 Reported-by: Hin-Tak Leung Tested-by: Antti Palosaari Tes

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

2012-09-03 Thread Hiroshi Doyu
Stephen Warren 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 > > d

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

2012-09-04 Thread Hiroshi Doyu
f-by: Stephen Warren > Cc: Hiroshi Doyu Ok to me. Acked-by: Hiroshi Doyu -- 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://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

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
pecify the above info in DT and the info is passed to kernel, some platform common code would register them as IOMMU'able device automatically. It would be really covenient if this is done in platform_device/IOMMU common code. If the above attribute is implemented specific to Tegra/platform, we have t

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 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 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 wrote: > > > > > On Mon, 2012-09-24 at 12:04

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 wrote @ Sun, 11 Nov 2012 21:49:30 +0100: > Call to d_find_alias() needs a corresponding dput(). > > Signed-off-by: Cyril Roelandt > --- Thanks. Looks ok for me. Acked-by Hiroshi Doyu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&

Re: [PATCH 6/9] ARM: dt: tegra114: Add new SoC base, Tegra 114 SoC

2012-12-30 Thread Hiroshi Doyu
Hi Olof, Olof Johansson wrote @ Sat, 29 Dec 2012 07:39:13 +0100: > On Thu, Dec 20, 2012 at 11:44:04AM +0200, Hiroshi Doyu wrote: > > Initial support for Tegra 114 SoC. This is expected to be included in > > the board DTS files, Tegra 114 SoC based evaluation board family. > &g

Re: [PATCH 4/4] ARM: tegra: Set SCU base address dynamically from DT

2013-01-02 Thread Hiroshi Doyu
Stephen Warren wrote @ Wed, 2 Jan 2013 20:02:53 +0100: > On 12/16/2012 11:18 PM, Hiroshi Doyu wrote: > > Set Snoop Control Unit(SCU) register base address dynamically from DT. > > Hiroshi, what's the status on this patch series? I think Rob had > comments/objections on pa

Re: [PATCH 0/9] ARM: Initial support for Tegra 114 SoC.

2013-01-03 Thread Hiroshi Doyu
Hi Stephen, Hiroshi Doyu wrote @ Thu, 20 Dec 2012 10:43:58 +0100: > Hi, > > This patchset adds initial support for the NVIDIA's new Tegra 114 > SoC (T114) based on the ARM Cortex-A15 MP. It has the minimal support > to allow the kernel to boot up into shell console. Thi

Re: [PATCH 9/9] ARM: tegra: Add initial support for Tegra 114 SoC.

2013-01-03 Thread Hiroshi Doyu
Arnd Bergmann wrote @ Thu, 3 Jan 2013 17:28:19 +0100: > On Thursday 20 December 2012, Hiroshi Doyu wrote: > > + > > +DT_MACHINE_START(TEGRA114_DT, "NVIDIA Tegra114 (Flattened Device Tree)") > > + .smp= smp_ops(tegra_smp_ops), > > +

Re: [PATCH 4/4] ARM: tegra: Set SCU base address dynamically from DT

2012-12-18 Thread Hiroshi Doyu
Hi Rob, Rob Herring wrote @ Mon, 17 Dec 2012 15:00:46 +0100: > On 12/17/2012 12:18 AM, Hiroshi Doyu wrote: > > Set Snoop Control Unit(SCU) register base address dynamically from DT. > > > > Signed-off-by: Hiroshi Doyu > > --- > > arc

Re: [PATCH 4/4] ARM: tegra: Set SCU base address dynamically from DT

2012-12-18 Thread Hiroshi Doyu
Rob Herring wrote @ Tue, 18 Dec 2012 14:46:36 +0100: > On 12/18/2012 03:21 AM, Hiroshi Doyu wrote: > > Hi Rob, > > > > Rob Herring wrote @ Mon, 17 Dec 2012 15:00:46 +0100: > > > >> On 12/17/2012 12:18 AM, Hiroshi Doyu wrote: > >>> Set Snoop Con

Re: [PATCH 4/4] ARM: tegra: Set SCU base address dynamically from DT

2012-12-18 Thread Hiroshi Doyu
Hiroshi Doyu wrote @ Tue, 18 Dec 2012 17:15:46 +0200 (EET): > Rob Herring wrote @ Tue, 18 Dec 2012 14:46:36 +0100: > > > On 12/18/2012 03:21 AM, Hiroshi Doyu wrote: > > > Hi Rob, > > > > > > Rob Herring wrote @ Mon, 17 Dec 2012 15:00:46 > >

[PATCH 0/9] ARM: Initial support for Tegra 114 SoC.

2012-12-20 Thread Hiroshi Doyu
quot;Cardhu(T30)" with this single image, SPI driver doesn't seem to afford the above configuration , it hangs at boot-up. With SPI disabled, it's ok. Hiroshi Doyu (9): ARM: tegra: fuse: Add chipid TEGRA114 0x35 HACK: ARM: tegra: Use CLK_IGNORE_UNUSED for Tegra 114 SoC

[PATCH 1/9] ARM: tegra: fuse: Add chipid TEGRA114 0x35

2012-12-20 Thread Hiroshi Doyu
Add tegra_chip_id TEGRA114 0x35 Signed-off-by: Hiroshi Doyu --- 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/mach-tegra

[PATCH 4/9] clocksource: tegra: Reorganize funcs by clock functionarities

2012-12-20 Thread Hiroshi Doyu
Relocate functions by clock functionarities{RTC, TMR}. Also created some new functions as helper. Signed-off-by: Hiroshi Doyu --- drivers/clocksource/tegra20_timer.c | 160 +++ 1 file changed, 86 insertions(+), 74 deletions(-) diff --git a/drivers/clocksource

[PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Hiroshi Doyu
Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained timer than TMR0. If it's available, it will be used for clock source and sched_clock. Otherwise, TMR0 is used. In any case TMR0 is necessary for clock event. Signed-off-by: Hiroshi Doyu --- .../bindings/arm/tegra/n

[PATCH 6/9] ARM: dt: tegra114: Add new SoC base, Tegra 114 SoC

2012-12-20 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 --- arch/arm/boot/dts/tegra114.dtsi | 89 +++ 1 file changed, 89 insertions(+) create mode

[PATCH 3/9] ARM: tegra: # of CPU cores detection w/ & w/o HAVE_ARM_SCU

2012-12-20 Thread Hiroshi Doyu
does not have software readable registers. This patch selects the correct method at runtime based on the CPU ID. Signed-off-by: Hiroshi Doyu --- arch/arm/mach-tegra/platsmp.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-tegra

[PATCH 8/9] ARM: dt: tegra114: Add new board, Pluto

2012-12-20 Thread Hiroshi Doyu
Add a new evaluation board, Pluto for Tegra 114 family. Signed-off-by: Hiroshi Doyu --- 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/arm/boot/dts

[PATCH 7/9] ARM: dt: tegra114: Add new board, Dalmore

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

[PATCH 2/9] HACK: ARM: tegra: Use CLK_IGNORE_UNUSED for Tegra 114 SoC

2012-12-20 Thread Hiroshi Doyu
Use CLK_IGNORE_UNUSED for the Tegra 114 SoC to ensure clk_disable_unused() is not called. Otherwise the system will die, because the usecount of the clocks is incorrect. This patch will be reverted once the Tegra 114 clocks are implemented. Signed-off-by: Hiroshi Doyu --- arch/arm/mach-tegra

[PATCH 9/9] ARM: tegra: Add initial support for Tegra 114 SoC.

2012-12-20 Thread Hiroshi Doyu
Add new Tegra 114 SoC support. Signed-off-by: Hiroshi Doyu --- 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|1

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ & w/o HAVE_ARM_SCU

2012-12-20 Thread Hiroshi Doyu
Felipe Balbi wrote @ Thu, 20 Dec 2012 11:06:25 +0100: ... > > @@ -149,7 +154,26 @@ done: > > */ > > static void __init tegra_smp_init_cpus(void) > > { > > - unsigned int i, ncores = scu_get_core_count(scu_base); > > + unsigned int i, cpu_id, ncores; > > + u32 l2ctlr; > > + phys_addr_t

Re: [PATCH 3/9] ARM: tegra: # of CPU cores detection w/ & w/o HAVE_ARM_SCU

2012-12-20 Thread Hiroshi Doyu
Marc Zyngier wrote @ Thu, 20 Dec 2012 12:17:08 +0100: > On 20/12/12 09:44, Hiroshi Doyu wrote: > > The method to detect the number of CPU cores on Cortex-A9 MPCore and > > Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this > > information from the Snoop

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Hiroshi Doyu
Marc Zyngier wrote @ Thu, 20 Dec 2012 12:01:15 +0100: > On 20/12/12 09:44, Hiroshi Doyu wrote: > > Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained > > timer than TMR0. If it's available, it will be used for clock source > > and sched_clock. Other

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Hiroshi Doyu
Marc Zyngier wrote @ Thu, 20 Dec 2012 13:05:45 +0100: > On 20/12/12 11:57, Hiroshi Doyu wrote: > > Marc Zyngier wrote @ Thu, 20 Dec 2012 12:01:15 +0100: > > > >> On 20/12/12 09:44, Hiroshi Doyu wrote: > >>> Add platform enabler for ARM arch_timer(TSC). TSC i

Re: [PATCH 5/9] clocksource: tegra: Enable ARM arch_timer with TSC

2012-12-20 Thread Hiroshi Doyu
Marc Zyngier wrote @ Thu, 20 Dec 2012 14:32:21 +0100: > On 20/12/12 12:55, Peter De Schrijver wrote: > > On Thu, Dec 20, 2012 at 01:33:42PM +0100, Marc Zyngier wrote: > >> On 20/12/12 12:22, Peter De Schrijver wrote: > >>> + > >>> + /* CNTFRQ */ > >>> + asm("mcr p15, 0, %0, c1

Re: [PATCH] ARM: dma-mapping: Get pages if the cpu_addr is out of atomic_pool

2013-06-16 Thread Hiroshi Doyu
YoungJun Cho wrote @ Mon, 17 Jun 2013 06:18:52 +0200: > In __iommu_get_pages(), the cpu_addr is checked wheather in > atomic_pool range or not. So if the cpu_addr is in atomic_pool > range, it does not need to check twice. > > Signed-off-by: YoungJun Cho > Signed-off-by: Kyungmin Park Looks o

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 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, > > > > + con

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

2012-08-22 Thread Hiroshi Doyu
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 dma_alloc(GFP_ATOMIC) ARM: dma-mapping: dma_{alloc,free}

[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 --- 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/dma-mapp

[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 --- arch/arm/mm/dma-mapping.c | 22 ++ 1 files changed, 18 insertions(+), 4 deletions(-)

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

[RFC 1/4] ARM: dma-mapping: Refactor out to introduce __alloc_fill_pages

2012-08-22 Thread Hiroshi Doyu
__alloc_fill_pages() allocates power of 2 page number allocation at most repeatedly. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 40 1 files changed, 28 insertions(+), 12 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm

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

2012-08-22 Thread Hiroshi Doyu
Marek Szyprowski wrote @ Wed, 22 Aug 2012 14:29:47 +0200: > Hello, > > On Wednesday, August 22, 2012 12:20 PM Hiroshi Doyu wrote: > > > Makes use of the same atomic pool from DMA, and skips kernel page > > mapping which can involves sleep'able operation at alloc

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

2012-08-22 Thread Hiroshi Doyu
s real the problem. I guess that that kind of fragmentation problem would be solved with page migration or something, especially nowadays devices are getting larger memories. *1: >From a613c40d1b3d4fb1577cdb0807a74e8dbd08a3e6 Mon Sep 17 00:00:00 2001 From: Hiroshi Doyu Date: Wed, 22 Aug 2012 1

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

2012-08-22 Thread Hiroshi Doyu
Hi Marek, Marek Szyprowski wrote @ Wed, 22 Aug 2012 14:04:26 +0200: > Hi Hiroshi, > > On Wednesday, August 22, 2012 12:20 PM Hiroshi Doyu wrote: > > > The commit e9da6e9 "ARM: dma-mapping: remove custom consistent dma > > region" breaks the compatibility

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

2012-08-22 Thread Hiroshi Doyu
(start_kernel+0x27c/0x2cc) [9.436952] Code: e1a4 e3a04000 eb002265 eae0 (e7f001f2) [9.443038] ---[ end trace 1b75b31a2719ed24 ]--- [9.447645] Kernel panic - not syncing: Fatal exception in interrupt Hiroshi Doyu (4): ARM: dma-mapping: Refactor out to introduce __in_atomic_pool ARM:

[v2 1/4] ARM: dma-mapping: Refactor out to introduce __in_atomic_pool

2012-08-22 Thread Hiroshi Doyu
Check the given range("start", "size") is included in "atomic_pool" or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 25 +++-- 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/a

[v2 3/4] ARM: dma-mapping: Refactor out to introduce __alloc_fill_pages

2012-08-22 Thread Hiroshi Doyu
__alloc_fill_pages() allocates power of 2 page number allocation at most repeatedly. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 50 ++-- 1 files changed, 34 insertions(+), 16 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch

[v2 2/4] ARM: dma-mapping: Use kzalloc() with GFP_ATOMIC

2012-08-22 Thread Hiroshi Doyu
Use kzalloc() with GFP_ATOMIC instead of vzalloc(). At freeing, __in_atomic_pool() checks if it comes from atomic_pool or not. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b

[v2 4/4] ARM: dma-mapping: IOMMU allocates pages from atomic_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 involve sleep'able operations at allocating a kernel page table. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 30 +- 1 files changed, 25 insertions(+), 5 dele

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

2012-08-22 Thread Hiroshi Doyu
Hi, On Thu, 23 Aug 2012 07:58:34 +0200 Marek Szyprowski wrote: > Hello, > > On Wednesday, August 22, 2012 3:37 PM Hiroshi Doyu wrote: > > > KyongHo Cho wrote @ Wed, 22 Aug 2012 14:47:00 > > +0200: > > > > > vzalloc() call in __iommu_alloc_buffer() als

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

2012-08-23 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 Reported-by: Hin-Tak Leung Tested-by: Antti Palosaari Ac

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

2012-08-24 Thread Hiroshi Doyu
ncing: Fatal exception in interrupt Hiroshi Doyu (4): ARM: dma-mapping: atomic_pool with struct page **pages ARM: dma-mapping: Refactor out to introduce __in_atomic_pool ARM: dma-mapping: Introduce __atomic_get_pages() for __iommu_get_pages() ARM: dma-mapping: IOMMU allocates pages from atomic

  1   2   3   >