Re: [PATCHv3 2/4] ARM: tegra: Add SMMU enabler in AHB |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCHv3 2/4] ARM: tegra: Add SMMU enabler in AHB
- From: Stephen Warren <swarren@xxxxxxxxxxxxx>
- Date: Wed, 25 Apr 2012 09:51:50 -0600
- Cc: Hiroshi DOYU <hdoyu@xxxxxxxxxx>, swarren@xxxxxxxxxx, linux-tegra@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Colin Cross <ccross@xxxxxxxxxxx>, Olof Johansson <olof@xxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>, Jamie Iles <jamie@xxxxxxxxxxxxx>, Rob Herring <rob.herring@xxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx
- In-reply-to: <20120425112950.GC3564@arwen.pp.htv.fi>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20
On 04/25/2012 05:29 AM, Felipe Balbi wrote:
> Hi,
>
> On Wed, Apr 25, 2012 at 02:07:37PM +0300, Hiroshi DOYU wrote:
>> Add extern func, "tegra_ahb_enable_smmu()" to inform AHB that SMMU is
>> ready.
>> +#ifdef CONFIG_ARCH_TEGRA_3x_SOC
>> +static int __tegra_ahb_enable_smmu(struct device *dev, void *data)
>> +{
>> + u32 val;
>> + struct tegra_ahb *ahb = dev_get_drvdata(dev);
>> +
>> + val = gizmo_readl(ahb, AHB_ARBITRATION_XBAR_CTRL);
>> + val |= AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DONE;
>> + gizmo_writel(ahb, val, AHB_ARBITRATION_XBAR_CTRL);
>> + return 0;
>> +}
>> +
>> +int tegra_ahb_enable_smmu(void)
>> +{
>> + return driver_for_each_device(&tegra_ahb_driver.driver, NULL, NULL,
>> + __tegra_ahb_enable_smmu);
>> +}
>> +EXPORT_SYMBOL(tegra_ahb_enable_smmu);
>> +#endif
>
> this is still not correct. If you will always call this whenever you run
> on tegra 3, why do you even expose this function ?
I think the issue is that this function should only be called after the
SMMU driver has initialized the SMMU, and it's ready to be activated.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[ARM Kernel]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]