Re: [RFC 04/10] memory: Add Tegra124 memory controller support

2014-07-01 Thread Hiroshi Doyu
Thierry Reding writes: > diff --git a/include/dt-bindings/memory/tegra124-mc.h > b/include/dt-bindings/memory/tegra124-mc.h > new file mode 100644 > index ..6b1617ce022f > --- /dev/null > +++ b/include/dt-bindings/memory/tegra124-mc.h > @@ -0,0 +1,30 @@ > +#ifndef DT_BINDINGS_MEMORY

Re: [RFC 04/10] memory: Add Tegra124 memory controller support

2014-06-27 Thread Hiroshi DOyu
Thierry Reding writes: > From: Thierry Reding > > The memory controller on NVIDIA Tegra124 exposes various knobs that can > be used to tune the behaviour of the clients attached to it. > > Currently this driver sets up the latency allowance registers to the HW > defaults. Eventually an API shou

Re: [RFC 09/10] drm/tegra: Add IOMMU support

2014-06-27 Thread Hiroshi DOyu
Thierry Reding writes: > From: Thierry Reding > > When an IOMMU device is available on the platform bus, allocate an IOMMU > domain and attach the display controllers to it. The display controllers > can then scan out non-contiguous buffers by mapping them through the > IOMMU. > > Signed-off-by

Re: [RFC 10/10] mmc: sdhci-tegra: Add IOMMU support

2014-06-27 Thread Hiroshi DOyu
Thierry Reding writes: > From: Thierry Reding > > Attach to the device's master interface of the IOMMU at .probe() time. > IOMMU support becomes available via the DMA mapping API interoperation > code, but this explicit attachment is necessary to ensure proper probe > order. > > Signed-off-by:

Re: [PATCH v2] devicetree: Add generic IOMMU device tree bindings

2014-05-30 Thread Hiroshi Doyu
Arnd Bergmann writes: >> > +Multiple-master IOMMU: >> > +-- >> > + >> > + iommu { >> > + /* the specifier represents the ID of the master */ >> > + #address-cells = <1>; >> > + #size-cells = <0>; >> > + }; >> > + >> > +

Re: [PATCHv6+ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-12-14 Thread Hiroshi Doyu
Hiroshi Doyu wrote @ Thu, 12 Dec 2013 14:14:04 +0200 (EET): > > > From 8f7c0404aa68f0e8dbe0babc240590f6528ecc1f Mon Sep 17 00:00:00 2001 > > > From: Hiroshi Doyu > > > Date: Fri, 15 Nov 2013 10:52:53 +0200 > > > Subject: [PATCH] of: introduce of

Re: [PATCHv7 04/12] driver/core: populate devices in order for IOMMUs

2013-12-14 Thread Hiroshi Doyu
Thierry Reding wrote @ Sat, 14 Dec 2013 13:24:22 +0100: > * PGP Signed by an unknown key > > On Thu, Dec 12, 2013 at 06:14:02PM -0800, Greg KH wrote: > > On Thu, Dec 12, 2013 at 11:39:20AM +, Grant Likely wrote: > > > On Thu, 12 Dec 2013 09:57:05 +0200, Hiroshi Do

Re: [PATCHv6+ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-12-12 Thread Hiroshi Doyu
Grant Likely wrote @ Thu, 12 Dec 2013 12:34:17 +0100: > On Wed, 11 Dec 2013 14:33:38 +0100, Hiroshi Doyu wrote: > > Hi Grant, > > > > Grant Likely wrote @ Wed, 11 Dec 2013 14:28:45 > > +0100: > > > > > On Thu, 21 Nov 2013 11:57:00 -0700, Stephen Warr

[PATCHv7 05/12] iommu/core: add ops->{bound,unbind}_driver()

2013-12-12 Thread Hiroshi Doyu
stanciation can be still deferred via probe(). Signed-off-by: Hiroshi Doyu --- v6: New for v6. Signed-off-by: Hiroshi Doyu --- drivers/iommu/iommu.c | 13 +++-- include/linux/iommu.h | 4 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iom

[PATCHv7 03/12] iommu/of: check if dependee iommu is ready or not

2013-12-12 Thread Hiroshi Doyu
ng iommu device is populated. Signed-off-by: Hiroshi Doyu --- v6: Spinned off only of_iommu part from: [PATCHv5 2/9] driver/core: populate devices in order for IOMMUs v5: Use "iommus=" binding instread of arm,smmu's "#stream-id-cells". v4: This is newly added, and th

[PATCHv7 02/12] iommu/of: introduce a global iommu device list

2013-12-12 Thread Hiroshi Doyu
: Hiroshi Doyu Cc: Joerg Roedel Cc: Thierry Reding --- v6: New for v6. Signed-off-by: Hiroshi Doyu --- drivers/iommu/of_iommu.c | 37 + include/linux/of_iommu.h | 16 2 files changed, 53 insertions(+) diff --git a/drivers/iommu/of_iommu.c b

[PATCHv7 09/12] iommu/tegra: smmu: get swgroups from DT "iommus="

2013-12-12 Thread Hiroshi Doyu
This provides the info about which swgroups a device belongs to. This info is passed from DT. This is necessary for the unified SMMU driver among Tegra SoCs since each has different H/W accelerators. Signed-off-by: Hiroshi Doyu --- v6: - Explained "#iommu-cells" in the binding documen

[PATCHv7 07/12] iommu/tegra: smmu: register device to iommu dynamically

2013-12-12 Thread Hiroshi Doyu
ongly, the traditional devices(SD/MMC, USB) wouldn't be affected, and the system could continue most likely. DMA API(ARM) needs ARM_DMA_USE_IOMMU to be enabled. Signed-off-by: Hiroshi Doyu --- v6: Use smmu_iommu_{bound,unbind}_driver() instead of smmu_iommu_{add,del}_device() to register devic

[PATCHv7 06/12] ARM: tegra: create a DT header defining SWGROUP ID

2013-12-12 Thread Hiroshi Doyu
ned-off-by: Hiroshi Doyu --- include/dt-bindings/memory/tegra-swgroup.h | 50 ++ 1 file changed, 50 insertions(+) create mode 100644 include/dt-bindings/memory/tegra-swgroup.h diff --git a/include/dt-bindings/memory/tegra-swgroup.h b/include/dt-bindings/memory/tegra

[PATCHv7 04/12] driver/core: populate devices in order for IOMMUs

2013-12-12 Thread Hiroshi Doyu
iommu device is populated. Then, those deferred iommu master devices are populated and configured with help of the already populated iommu device. Signed-off-by: Hiroshi Doyu Cc: Greg Kroah-Hartman --- This is related to the following discussion: [RFC PATCH] Documentation: devicetree: add description

[PATCHv7 12/12] iommu/tegra: smmu: add SMMU to an global iommu list

2013-12-12 Thread Hiroshi Doyu
This allows to inquire if SMMU is populated or not. Suggested by Thierry Reding and copied his example code. Signed-off-by: Hiroshi Doyu Cc: Thierry Reding --- v6: New for v6. Signed-off-by: Hiroshi Doyu --- drivers/iommu/tegra-smmu.c | 55 +- 1

[PATCHv7 11/12] iommu/tegra: smmu: Rename hwgrp -> swgroups

2013-12-12 Thread Hiroshi Doyu
so that "swgroup's'" is used here. This "swgroups" is the term used in Tegra TRM. Rename along with TRM. Signed-off-by: Hiroshi Doyu --- v4: New for v4 Signed-off-by: Hiroshi Doyu --- drivers/iommu/tegra-smmu.c | 36 ++-- 1 file change

[PATCHv7 10/12] iommu/tegra: smmu: allow duplicate ASID wirte

2013-12-12 Thread Hiroshi Doyu
The device, which belongs to the same ASID, can try to enable the same ASID as the other swgroup devices. This should be allowed but just skip the actual register write. If the write value is different, it will return -EINVAL. Signed-off-by: Hiroshi Doyu --- v4: This was the part of v3, which

[PATCHv7 08/12] iommu/tegra: smmu: calculate ASID register offset by ID

2013-12-12 Thread Hiroshi Doyu
; Now SWGROUP ID is the global HardWare Accelerator(HWA) identifier among all Tegra SoC except Tegra2. Signed-off-by: Hiroshi Doyu --- v5: Added SMMU_ASID_BASE(== SMMU_AFI_ASID). Removed unused ASID offset definitions. Use 'unsigned long *' instead of u64 for swgroups bitmap. v4: Co

[PATCHv7 01/12] of: introduce of_property_for_each_phandle_with_args()

2013-12-11 Thread Hiroshi Doyu
Iterating over a property containing a list of phandles with arguments is a common operation for device drivers. This patch adds a new of_property_for_each_phandle_with_args() macro to make the iteration simpler. Signed-off-by: Hiroshi Doyu Cc: Rob Herring Cc: Grant Likely --- v7: Fixed some

[PATCHv7 00/12] Unifying SMMU driver among Tegra SoCs

2013-12-11 Thread Hiroshi Doyu
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/181888.html v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-June/180267.html Available in the git repository at: git://g...@nv-tegra.nvidia.com/user/hdoyu/linux.git smmu-upstreaming@20131212 Hiroshi Doyu (12): of: introd

Re: [PATCHv6+ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-12-11 Thread Hiroshi Doyu
Hi Grant, Grant Likely wrote @ Wed, 11 Dec 2013 14:28:45 +0100: > On Thu, 21 Nov 2013 11:57:00 -0700, Stephen Warren > wrote: > > On 11/21/2013 10:17 AM, Hiroshi Doyu wrote: > > > Iterating over a property containing a list of phandles with arguments > > > is

Re: [PATCHv6 05/13] iommu/core: add ops->{bound,unbind}_driver()

2013-12-03 Thread Hiroshi Doyu
On Mon, 25 Nov 2013 14:49:37 +0100 Hiroshi Doyu wrote: > Hi Joerg, > > Do you have some time to review this patch along with the following ones? > > [PATCHv6 02/13] iommu/of: introduce a global iommu device list > http://lists.linuxfoundation.org/pipermail/iommu/2013-No

Re: [RFC][PATCHv6+++ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-12-02 Thread Hiroshi Doyu
On Mon, 2 Dec 2013 15:39:25 +0100 Rob Herring wrote: > On Mon, Dec 2, 2013 at 5:02 AM, Hiroshi Doyu wrote: > > Stephen Warren wrote @ Sun, 1 Dec 2013 20:00:09 > > +0100: > > > >> On 11/29/2013 04:46 AM, Hiroshi Doyu wrote: > >> ... > >>

Re: [RFC][PATCHv6+++ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-12-02 Thread Hiroshi Doyu
Stephen Warren wrote @ Sun, 1 Dec 2013 20:00:09 +0100: > On 11/29/2013 04:46 AM, Hiroshi Doyu wrote: > ... > > Iterating over a property containing a list of phandles with arguments > > is a common operation for device drivers. This patch adds a new > > of_property_fo

[RFC][PATCHv6+++ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-11-29 Thread Hiroshi Doyu
Hiroshi Doyu wrote @ Thu, 28 Nov 2013 14:58:18 +0200 (EET): > > In other words, an implementation more along the lines of > > include/linux/of.h's: > > > > #define of_property_for_each_u32(np, propname, prop, p, u) \ > > for (prop =

[RFC][PATCHv6++ 01/13] of: introduce of_property_for_earch_phandle_with_args()

2013-11-28 Thread Hiroshi Doyu
Stephen Warren wrote @ Thu, 21 Nov 2013 19:57:00 +0100: > On 11/21/2013 10:17 AM, Hiroshi Doyu wrote: > > Iterating over a property containing a list of phandles with arguments > > is a common operation for device drivers. This patch adds a new > > of_property_for_each_phan

Re: [PATCHv6 05/13] iommu/core: add ops->{bound,unbind}_driver()

2013-11-25 Thread Hiroshi Doyu
his. On Thu, 21 Nov 2013 14:40:41 +0100 Hiroshi Doyu wrote: > ops->{bound,unbind}_driver() functions are called at > BUS_NOTIFY_{BOUND,UNBIND}_DRIVER respectively. > > This is necessary to control the device population order. IOMMU master > devices depend on an IOMMU device ins

Re: [PATCHv5 2/9] driver/core: populate devices in order for IOMMUs

2013-11-20 Thread Hiroshi Doyu
Thierry Reding wrote @ Wed, 20 Nov 2013 14:14:48 +0100: > > Does the above mean the following? > > > > int of_iommu_attach(struct device *dev) > > { > > int i; > > struct of_phandle_args args; > > > > of_property_for_each_phandle_with_args(dev->of_node, "iommus", > >

Re: [PATCH] fs: partitions: efi: Fix bound check

2013-11-19 Thread Hiroshi Doyu
gt; length. > > > > > > Signed-off-by: Antti P Miettinen > > > Reviewed-by: Hiroshi Doyu > > > Tested-by: Hiroshi Doyu > > > > When fixing a bug, please provide a description of the user-visible > > impact of that bug. This is so that others

Re: [PATCHv5 2/9] driver/core: populate devices in order for IOMMUs

2013-11-19 Thread Hiroshi Doyu
Stephen Warren wrote @ Tue, 19 Nov 2013 22:22:47 +0100: > On 11/19/2013 05:03 AM, Hiroshi Doyu wrote: > > Hi Thierry, > > > > Thierry Reding wrote @ Tue, 19 Nov 2013 11:25:07 > > +0100: > > > >> From earlier discussions I thought the goal was t

[PATCHv5 7/9] iommu/tegra: smmu: allow duplicate ASID wirte

2013-11-19 Thread Hiroshi Doyu
The device, which belongs to the same ASID, can try to enable the same ASID as the other swgroup devices. This should be allowed but just skip the actual register write. If the write value is different, it will return -EINVAL. Signed-off-by: Hiroshi Doyu --- v4: This was the part of v3, which

[PATCHv5 8/9] iommu/tegra: smmu: Rename hwgrp -> swgroups

2013-11-19 Thread Hiroshi Doyu
so that "swgroup's'" is used here. This "swgroups" is the term used in Tegra TRM. Rename along with TRM. Signed-off-by: Hiroshi Doyu --- v4: New for v4 --- drivers/iommu/tegra-smmu.c | 36 ++-- 1 file changed, 18 insertions(+), 18 delet

[PATCHv5 3/9] ARM: tegra: create a DT header defining SWGROUP ID

2013-11-19 Thread Hiroshi Doyu
be used by both device tree files, and drivers implementing this binding, which guarantees that the two stay in sync. This also makes device trees more readable by using names instead of magic numbers. For HOTRESET bit shifting we need another conversion table, which will come later. Signed-off-b

[PATCHv5 6/9] iommu/tegra: smmu: get swgroups from DT "iommus="

2013-11-19 Thread Hiroshi Doyu
This provides the info about which swgroups a device belongs to. This info is passed from DT. This is necessary for the unified SMMU driver among Tegra SoCs since each has different H/W accelerators. Signed-off-by: Hiroshi Doyu --- v5: "iommu=" in a device DT is used instead of "

[PATCHv5 0/9] Unifying Tegra IOMMU(SMMU) driver among Tegra SoCs

2013-11-19 Thread Hiroshi Doyu
724.html v2: Updated based on Thierry Reding's and Stephen Warren's feedback http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/181888.html v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2013-June/180267.html Available in the git repository at: git://g.

[PATCHv5 4/9] iommu/tegra: smmu: register device to iommu dynamically

2013-11-19 Thread Hiroshi Doyu
ongly, the traditional devices(SD/MMC, USB) wouldn't be affected, and the system could continue most likely. DMA API(ARM) needs ARM_DMA_USE_IOMMU to be enabled. Signed-off-by: Hiroshi Doyu --- v5: Add check NUM_OF_STATIC_MAPS < #asids. v4: Combined the following from v3. This makes more

[PATCHv5 1/9] of: introduce of_property_for_earch_phandle_with_args()

2013-11-19 Thread Hiroshi Doyu
The following pattern of code is tempting: for (i = 0; !of_parse_phandle_with_args(np, list, cells, i, args); i++) Signed-off-by: Hiroshi Doyu --- v5: New patch for v5. --- include/linux/of.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index

[PATCH 1/1] ARM: dma-mapping: Drop GFP_COMP for DMA memory allocations

2013-10-16 Thread Hiroshi Doyu
dma_alloc_coherent wants to split pages after allocation in order to reduce the memory footprint. This does not work well with GFP_COMP pages, so drop this flag before allocation. Signed-off-by: Hiroshi Doyu --- arch/arm/mm/dma-mapping.c | 7 +++ 1 file changed, 7 insertions

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

[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

[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

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

[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 --- drivers/clk/tegra/clk-tegra20.c | 307 ++- 1 file changed, 145

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

2013-02-15 Thread Hiroshi Doyu
: + #include Signed-off-by: Hiroshi Doyu --- 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)/arch/$(hdr-arch)/include

[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 --- .../bindings/clock/nvidia,tegra114-car.txt | 261 +--- arch/arm/boo

[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 --- arch/arm/boot/dts/tegra114-car.h | 272 ++ 1 file changed, 272 insert

[v3 4/6] ARM: tegra30: 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 --- .../bindings/clock/nvidia,tegra30-car.txt | 207 +--- arch/arm/bo

[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 --- arch/arm/boot/dts/tegra30-car.h | 218 +++ 1 file changed, 218 insert

[v3 2/6] ARM: tegra20: 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 --- .../bindings/clock/nvidia,tegra20-car.txt | 150 +--- arch/arm/boot/dt

[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 --- arch/arm/boot/dts/tegra20-car.h | 158 +++ 1 file changed, 158 insert

[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

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

2013-02-14 Thread Hiroshi Doyu
Stephen Warren 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. > BTW, I assume this pat

[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 --- .../bindings/clock/nvidia,tegra114-car.txt |2 +- arch/arm/boot/dts/tegra114.dtsip

[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 --- Depends on: [PATCH v6 00/10] Tegra114 clockframework http://lists.infradead.org/pipermail/linux-arm-kernel/

[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 --- .../bindings/clock/nvidia,tegra30-car.txt |2 +- arch/arm/boot/dts/tegra30.dtsip

[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 --- arch/arm/boot/dts/tegra30-car.h | 171 +++ 1 file changed, 171 insert

[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 --- .../bindings/clock/nvidia,tegra20-car.txt |2 +- arch/arm/boot/dts/tegra20-paz00.dtsp

[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 --- arch/arm/boot/dts/tegra20-car.h | 114 +++ 1 file changed, 114 insert

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

2013-02-14 Thread Hiroshi Doyu
l/2013-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,t

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

2013-02-14 Thread Hiroshi Doyu
Peter De Schrijver 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_c

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

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

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

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

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

2013-02-12 Thread Hiroshi Doyu
Stephen Warren 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 > removed entirely. I

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

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

[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

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

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

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); >

[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

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

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

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

[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

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

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

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

[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

[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

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,

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 -

[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

[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

[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

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

  1   2   3   >