ARM: tegra: Add Tegra Memory Controller(MC) driver
Subsystems (3)
PATCH 1/1 ARM: tegra: Add Tegra Memory Controller(MC) driver
Tegra Memory Controller(MC) driver for Tegra20/30. Added to support MC General interrupts, mainly for IOMMU.
---
The location of a file may not be suitable because of xxx_driver under arch/arm/mach-*.
---
arch/arm/mach-tegra/Makefile +1 -0
@@ -1,3 +1,4 @@ +obj-y += tegra-mc.o obj-y += board-pinmux.o obj-y += common.o obj-y += devices.o
arch/arm/mach-tegra/tegra-mc.c new file +502 -0
502 lines not on this page · raw message
Signature · 1 line
1.7.5.4
arch/arm/mach-tegra/Makefile
Quoted 6 lines · Hiroshi DOYU
Tegra Memory Controller(MC) driver for Tegra20/30. Added to support MC General interrupts, mainly for IOMMU.
The location of a file may not be suitable because of
xxx_driverunderarch/arm/mach-*.
---arch/arm/mach-tegra/Makefile +0
-0
Russell, Olof, Arnd,
Where should this driver be placed? It's a completely Tegra-specific module, and I don't believe there's any drivers/ directory or other subsystem that's appropriate to house it right now. Should we go ahead and create a drivers/arm/ for this? Perhaps drivers/misc/?
Honestly, to me it seems best to keep purely platform-specific drivers like this in arch/arm/mach-tegra, since that's the most closely Tegra-related directory.
Hiroshi,
This driver attempts to cover both Tegra20 and Tegra30. However, there's almost no common code. I think it'd be best as separate tegra20-mc.c and tegra30-mc.c.
This patch should include DT binding documentation.
That all said, I'd hold off on reposting this until we work out how the MC/GART/SMMU parent-child relationship stuff is worked out; see my immediately previous email.
Quoted 3 lines
Honestly, to me it seems best to keep purely platform-specific drivers like this in
arch/arm/mach-tegra, since that's the most closely Tegra-related directory.
Or add a drivers/platform/tegra directory ?
Hi,
Quoted 10 lines · Stephen Warren
arch/arm/mach-tegra/Makefile
Quoted 6 lines · Hiroshi DOYU
Tegra Memory Controller(MC) driver for Tegra20/30. Added to support MC General interrupts, mainly for IOMMU.
The location of a file may not be suitable because of
xxx_driverunderarch/arm/mach-*.
---arch/arm/mach-tegra/Makefile +0
-0Russell, Olof, Arnd,
Quoted 4 lines
Where should this driver be placed? It's a completely Tegra-specific module, and I don't believe there's any
drivers/directory or other subsystem that's appropriate to house it right now. Should we go ahead and create adrivers/arm/for this? Perhapsdrivers/misc/?
TI just added their memory driver in drivers/memory, and it was merged through Greg K-H's driver tree. That would be a good location for this one as well.
Quoted 3 lines
Honestly, to me it seems best to keep purely platform-specific drivers like this in
arch/arm/mach-tegra, since that's the most closely Tegra-related directory.
Since tegra has a custom memory controller it's not as obvious that it needs to go in a shared location, indeed. But it's easier to use the same practices across platforms, and if there are other vendors that end up sharing IP blocks for memory down the road, having them in a common location makes sense.
-Olof
Quoted 26 lines · On Thu, 3 May 2012 22:13:23 +0200 Olof Johansson <[email protected]> wrote:
Hi,
Quoted 10 lines · Stephen Warren
arch/arm/mach-tegra/Makefile
Quoted 6 lines · Hiroshi DOYU
Tegra Memory Controller(MC) driver for Tegra20/30. Added to support MC General interrupts, mainly for IOMMU.
The location of a file may not be suitable because of
xxx_driverunderarch/arm/mach-*.
---arch/arm/mach-tegra/Makefile +0
-0Russell, Olof, Arnd,
Quoted 4 lines
Where should this driver be placed? It's a completely Tegra-specific module, and I don't believe there's any
drivers/directory or other subsystem that's appropriate to house it right now. Should we go ahead and create adrivers/arm/for this? Perhapsdrivers/misc/?TI just added their memory driver in
drivers/memory, and it was merged through Greg K-H's driver tree. That would be a good location for this one as well.Quoted 3 lines
Honestly, to me it seems best to keep purely platform-specific drivers like this in
arch/arm/mach-tegra, since that's the most closely Tegra-related directory.
Quoted 5 lines
Since tegra has a custom memory controller it's not as obvious that it needs to go in a shared location, indeed. But it's easier to use the same practices across platforms, and if there are other vendors that end up sharing IP blocks for memory down the road, having them in a common location makes sense.
I think that the above TI's patch is:
Add TI EMIF SDRAM controller driver
http://lwn.net/Articles/494922/
I'm moving this Tegra MC driver under drivers/memory, "tegra{20,30}-mc.c".
Quoted 6 lines · Hiroshi Doyu
Quoted 5 lines
Since tegra has a custom memory controller it's not as obvious that it needs to go in a shared location, indeed. But it's easier to use the same practices across platforms, and if there are other vendors that end up sharing IP blocks for memory down the road, having them in a common location makes sense.
Quoted 6 lines
I think that the above TI's patch is:
Add TI EMIF SDRAM controller driver
http://lwn.net/Articles/494922/I'm moving this Tegra MC driver under
drivers/memory, "tegra{20,30}-mc.c".
Ok, very good!
Arnd
From: Stephen Warren <[email protected]>
Subject: Re: [PATCH 1/1] ARM: tegra: Add Tegra Memory Controller(MC) driver
Date: Thu, 3 May 2012 20:39:00 +0200
Message-ID: <[email protected]>
Quoted 25 lines · Hiroshi DOYU
arch/arm/mach-tegra/Makefile
Quoted 6 lines
Tegra Memory Controller(MC) driver for Tegra20/30. Added to support MC General interrupts, mainly for IOMMU.
The location of a file may not be suitable because of
xxx_driverunderarch/arm/mach-*.
---arch/arm/mach-tegra/Makefile +0
-0Russell, Olof, Arnd,
Where should this driver be placed? It's a completely Tegra-specific module, and I don't believe there's any
drivers/directory or other subsystem that's appropriate to house it right now. Should we go ahead and create adrivers/arm/for this? Perhapsdrivers/misc/?Honestly, to me it seems best to keep purely platform-specific drivers like this in
arch/arm/mach-tegra, since that's the most closely Tegra-related directory.Hiroshi,
This driver attempts to cover both Tegra20 and Tegra30. However, there's almost no common code. I think it'd be best as separate
tegra20-mc.candtegra30-mc.c.
Quoted 5 lines
This patch should include DT binding documentation.
That all said, I'd hold off on reposting this until we work out how the MC/GART/SMMU parent-child relationship stuff is worked out; see my immediately previous email.
Ok.
What about the following AHB patches? AHB patches are independent of MC/GART/SMMU DT issue basically. If you think that they are ready to merge, I'll post the update version, I fixed some of your latest comments.
[PATCH 1/3] ARM: tegra: Add Tegra AHB driver [PATCH 2/3] ARM: tegra: Add SMMU enabler in AHB [PATCH 3/3] ARM: dt: tegra: Add device tree support for AHB
I'll hold off on the following until we get some direction for MC/GART/SMMU. They are related to how dt info is passed via MC.
[PATCH 1/3] ARM: tegra: Add Tegra Memory Controller(MC) driver [PATCH 2/3] ARM: dt: tegra: Add device tree support for Memory Controller(MC) [PATCH 3/3] iommu/tegra: smmu: Refrain from accessing to AHB
On 05/04/2012 07:00 AM, Hiroshi Doyu wrote:
...
Quoted 8 lines
What about the following AHB patches? AHB patches are independent of MC/GART/SMMU DT issue basically. If you think that they are ready to merge, I'll post the update version, I fixed some of your latest comments.
[PATCH 1/3] ARM: tegra: Add Tegra AHB driver [PATCH 2/3] ARM: tegra: Add SMMU enabler in AHB [PATCH 3/3] ARM: dt: tegra: Add device tree support for AHB
Yes, I think they be reposted and go in now.
Quoted 6 lines
I'll hold off on the following until we get some direction for MC/GART/SMMU. They are related to how dt info is passed via MC.
[PATCH 1/3] ARM: tegra: Add Tegra Memory Controller(MC) driver [PATCH 2/3] ARM: dt: tegra: Add device tree support for Memory Controller(MC) [PATCH 3/3] iommu/tegra: smmu: Refrain from accessing to AHB