From: Peter De Schrijver <pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: Russell King <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
Colin Cross <ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 3/6] arm/tegra: prepare early init for multiple tegra variants
Date: Tue, 1 Nov 2011 15:37:15 +0200 [thread overview]
Message-ID: <20111101133715.GE13358@tbergstrom-lnx.Nvidia.com> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF173E1B49B2-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
On Thu, Oct 27, 2011 at 10:06:13PM +0200, Stephen Warren wrote:
> Peter De Schrijver wrote at Tuesday, October 25, 2011 10:54 AM:
> > This patch splits the early init code in a common and a tegra20 specific part.
>
> > diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c
>
> > +static void __init tegra_init_early(void)
> > +{
> > +
> > + int i;
> > +
> > + for (i = 0; i < ARRAY_SIZE(early_init); i++)
> > + if (of_machine_is_compatible(early_init[i].machine))
> > + return early_init[i].init();
> > +
> > + printk(KERN_WARNING "Unknown platform detected\n");
>
> pr_warn/WARN/WARN_ON?
>
> > diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
>
> > @@ -31,8 +31,6 @@
> > #include "clock.h"
> > #include "fuse.h"
> >
> > -void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
> > -
> > void tegra_assert_system_reset(char mode, const char *cmd)
> > {
> > void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
> > @@ -44,7 +42,9 @@ void tegra_assert_system_reset(char mode, const char *cmd)
> > writel_relaxed(reg, reset);
> > }
> >
> > -static __initdata struct tegra_clk_init_table common_clk_init_table[] = {
> > +void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
>
> I'm not sure why you moved that, but I suppose it's fine.
>
> > +
> > +static __initdata struct tegra_clk_init_table tegra20_clk_init_table[] = {
> > /* name parent rate enabled */
> > { "clk_m", NULL, 0, true },
> > { "pll_p", "clk_m", 216000000, true },
> > @@ -65,19 +65,25 @@ static void __init tegra_init_cache(void)
> > {
> > #ifdef CONFIG_CACHE_L2X0
> > void __iomem *p = IO_ADDRESS(TEGRA_ARM_PERIF_BASE) + 0x3000;
> > + u32 aux_ctrl;
> >
> > writel_relaxed(0x331, p + L2X0_TAG_LATENCY_CTRL);
> > writel_relaxed(0x441, p + L2X0_DATA_LATENCY_CTRL);
> > + writel(2, p + L2X0_PREFETCH_CTRL);
This is actually wrong :)
> > +
> > + aux_ctrl = readl(p + L2X0_CACHE_TYPE);
> > + aux_ctrl = (aux_ctrl & 0x700) << (17-8);
> > + aux_ctrl |= 0x6C000001;
>
> This is an unrelated change?
>
This is needed to deal with potential differences in L2 associativity between
SoCs.
Cheers,
Peter.
WARNING: multiple messages have this Message-ID (diff)
From: pdeschrijver@nvidia.com (Peter De Schrijver)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/6] arm/tegra: prepare early init for multiple tegra variants
Date: Tue, 1 Nov 2011 15:37:15 +0200 [thread overview]
Message-ID: <20111101133715.GE13358@tbergstrom-lnx.Nvidia.com> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF173E1B49B2@HQMAIL01.nvidia.com>
On Thu, Oct 27, 2011 at 10:06:13PM +0200, Stephen Warren wrote:
> Peter De Schrijver wrote at Tuesday, October 25, 2011 10:54 AM:
> > This patch splits the early init code in a common and a tegra20 specific part.
>
> > diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c
>
> > +static void __init tegra_init_early(void)
> > +{
> > +
> > + int i;
> > +
> > + for (i = 0; i < ARRAY_SIZE(early_init); i++)
> > + if (of_machine_is_compatible(early_init[i].machine))
> > + return early_init[i].init();
> > +
> > + printk(KERN_WARNING "Unknown platform detected\n");
>
> pr_warn/WARN/WARN_ON?
>
> > diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
>
> > @@ -31,8 +31,6 @@
> > #include "clock.h"
> > #include "fuse.h"
> >
> > -void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
> > -
> > void tegra_assert_system_reset(char mode, const char *cmd)
> > {
> > void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
> > @@ -44,7 +42,9 @@ void tegra_assert_system_reset(char mode, const char *cmd)
> > writel_relaxed(reg, reset);
> > }
> >
> > -static __initdata struct tegra_clk_init_table common_clk_init_table[] = {
> > +void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
>
> I'm not sure why you moved that, but I suppose it's fine.
>
> > +
> > +static __initdata struct tegra_clk_init_table tegra20_clk_init_table[] = {
> > /* name parent rate enabled */
> > { "clk_m", NULL, 0, true },
> > { "pll_p", "clk_m", 216000000, true },
> > @@ -65,19 +65,25 @@ static void __init tegra_init_cache(void)
> > {
> > #ifdef CONFIG_CACHE_L2X0
> > void __iomem *p = IO_ADDRESS(TEGRA_ARM_PERIF_BASE) + 0x3000;
> > + u32 aux_ctrl;
> >
> > writel_relaxed(0x331, p + L2X0_TAG_LATENCY_CTRL);
> > writel_relaxed(0x441, p + L2X0_DATA_LATENCY_CTRL);
> > + writel(2, p + L2X0_PREFETCH_CTRL);
This is actually wrong :)
> > +
> > + aux_ctrl = readl(p + L2X0_CACHE_TYPE);
> > + aux_ctrl = (aux_ctrl & 0x700) << (17-8);
> > + aux_ctrl |= 0x6C000001;
>
> This is an unrelated change?
>
This is needed to deal with potential differences in L2 associativity between
SoCs.
Cheers,
Peter.
WARNING: multiple messages have this Message-ID (diff)
From: Peter De Schrijver <pdeschrijver@nvidia.com>
To: Stephen Warren <swarren@nvidia.com>
Cc: Russell King <linux@arm.linux.org.uk>,
Colin Cross <ccross@android.com>, Olof Johansson <olof@lixom.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH 3/6] arm/tegra: prepare early init for multiple tegra variants
Date: Tue, 1 Nov 2011 15:37:15 +0200 [thread overview]
Message-ID: <20111101133715.GE13358@tbergstrom-lnx.Nvidia.com> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF173E1B49B2@HQMAIL01.nvidia.com>
On Thu, Oct 27, 2011 at 10:06:13PM +0200, Stephen Warren wrote:
> Peter De Schrijver wrote at Tuesday, October 25, 2011 10:54 AM:
> > This patch splits the early init code in a common and a tegra20 specific part.
>
> > diff --git a/arch/arm/mach-tegra/board-dt.c b/arch/arm/mach-tegra/board-dt.c
>
> > +static void __init tegra_init_early(void)
> > +{
> > +
> > + int i;
> > +
> > + for (i = 0; i < ARRAY_SIZE(early_init); i++)
> > + if (of_machine_is_compatible(early_init[i].machine))
> > + return early_init[i].init();
> > +
> > + printk(KERN_WARNING "Unknown platform detected\n");
>
> pr_warn/WARN/WARN_ON?
>
> > diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
>
> > @@ -31,8 +31,6 @@
> > #include "clock.h"
> > #include "fuse.h"
> >
> > -void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
> > -
> > void tegra_assert_system_reset(char mode, const char *cmd)
> > {
> > void __iomem *reset = IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x04);
> > @@ -44,7 +42,9 @@ void tegra_assert_system_reset(char mode, const char *cmd)
> > writel_relaxed(reg, reset);
> > }
> >
> > -static __initdata struct tegra_clk_init_table common_clk_init_table[] = {
> > +void (*arch_reset)(char mode, const char *cmd) = tegra_assert_system_reset;
>
> I'm not sure why you moved that, but I suppose it's fine.
>
> > +
> > +static __initdata struct tegra_clk_init_table tegra20_clk_init_table[] = {
> > /* name parent rate enabled */
> > { "clk_m", NULL, 0, true },
> > { "pll_p", "clk_m", 216000000, true },
> > @@ -65,19 +65,25 @@ static void __init tegra_init_cache(void)
> > {
> > #ifdef CONFIG_CACHE_L2X0
> > void __iomem *p = IO_ADDRESS(TEGRA_ARM_PERIF_BASE) + 0x3000;
> > + u32 aux_ctrl;
> >
> > writel_relaxed(0x331, p + L2X0_TAG_LATENCY_CTRL);
> > writel_relaxed(0x441, p + L2X0_DATA_LATENCY_CTRL);
> > + writel(2, p + L2X0_PREFETCH_CTRL);
This is actually wrong :)
> > +
> > + aux_ctrl = readl(p + L2X0_CACHE_TYPE);
> > + aux_ctrl = (aux_ctrl & 0x700) << (17-8);
> > + aux_ctrl |= 0x6C000001;
>
> This is an unrelated change?
>
This is needed to deal with potential differences in L2 associativity between
SoCs.
Cheers,
Peter.
next prev parent reply other threads:[~2011-11-01 13:37 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-25 16:53 [PATCH 0/6] Add support for tegra30 and cardhu pdeschrijver-DDmLM1+adcrQT0dZR+AlfA
2011-10-25 16:53 ` pdeschrijver
2011-10-25 16:53 ` pdeschrijver at nvidia.com
2011-10-25 16:53 ` [PATCH 1/6] arm/tegra: initial device tree for tegra30 pdeschrijver
2011-10-25 16:53 ` pdeschrijver
2011-10-25 16:53 ` pdeschrijver at nvidia.com
[not found] ` <1319561644-6160-2-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-27 19:45 ` Stephen Warren
2011-10-27 19:45 ` Stephen Warren
2011-10-27 19:45 ` Stephen Warren
2011-10-25 16:53 ` [PATCH 2/6] arm/tegra: prepare pinmux code for multiple tegra variants pdeschrijver
2011-10-25 16:53 ` pdeschrijver
2011-10-25 16:53 ` pdeschrijver at nvidia.com
[not found] ` <1319561644-6160-3-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-27 19:59 ` Stephen Warren
2011-10-27 19:59 ` Stephen Warren
2011-10-27 19:59 ` Stephen Warren
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173E1B49AA-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-10-28 8:17 ` Peter De Schrijver
2011-10-28 8:17 ` Peter De Schrijver
2011-10-28 8:17 ` Peter De Schrijver
[not found] ` <20111028081738.GA12383-Rysk9IDjsxmJz7etNGeUX8VPkgjIgRvpAL8bYrjMMd8@public.gmane.org>
2011-10-28 9:19 ` Olof Johansson
2011-10-28 9:19 ` Olof Johansson
2011-10-28 9:19 ` Olof Johansson
2011-10-28 16:18 ` Stephen Warren
2011-10-28 16:18 ` Stephen Warren
2011-10-28 16:18 ` Stephen Warren
2011-10-31 9:02 ` Peter De Schrijver
2011-10-31 9:02 ` Peter De Schrijver
[not found] ` <1319561644-6160-1-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-25 16:53 ` [PATCH 3/6] arm/tegra: prepare early init " pdeschrijver-DDmLM1+adcrQT0dZR+AlfA
2011-10-25 16:53 ` pdeschrijver
2011-10-25 16:53 ` pdeschrijver at nvidia.com
[not found] ` <1319561644-6160-4-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-27 20:06 ` Stephen Warren
2011-10-27 20:06 ` Stephen Warren
2011-10-27 20:06 ` Stephen Warren
2011-10-27 20:16 ` Russell King - ARM Linux
2011-10-27 20:16 ` Russell King - ARM Linux
2011-10-27 20:16 ` Russell King - ARM Linux
2011-10-28 16:19 ` Will Deacon
2011-10-28 16:19 ` Will Deacon
2011-10-28 16:19 ` Will Deacon
[not found] ` <20111028161933.GK23539-MRww78TxoiP5vMa5CHWGZ34zcgK1vI+I0E9HWUfgJXw@public.gmane.org>
2011-11-01 13:37 ` Peter De Schrijver
2011-11-01 13:37 ` Peter De Schrijver
2011-11-01 13:37 ` Peter De Schrijver
[not found] ` <74CDBE0F657A3D45AFBB94109FB122FF173E1B49B2-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-11-01 13:37 ` Peter De Schrijver [this message]
2011-11-01 13:37 ` Peter De Schrijver
2011-11-01 13:37 ` Peter De Schrijver
2011-10-25 16:53 ` [PATCH 4/6] arm/tegra: implement support for tegra30 pdeschrijver
2011-10-25 16:53 ` pdeschrijver
2011-10-25 16:53 ` pdeschrijver at nvidia.com
[not found] ` <1319561644-6160-5-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-27 20:10 ` Stephen Warren
2011-10-27 20:10 ` Stephen Warren
2011-10-27 20:10 ` Stephen Warren
2011-10-27 20:24 ` Russell King - ARM Linux
2011-10-27 20:24 ` Russell King - ARM Linux
2011-10-27 20:24 ` Russell King - ARM Linux
2011-10-25 16:53 ` [PATCH 5/6] arm/tegra: pinmux tables and definitions " pdeschrijver
2011-10-25 16:53 ` pdeschrijver
2011-10-25 16:53 ` pdeschrijver at nvidia.com
[not found] ` <1319561644-6160-6-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-27 20:18 ` Stephen Warren
2011-10-27 20:18 ` Stephen Warren
2011-10-27 20:18 ` Stephen Warren
2011-10-25 16:54 ` [PATCH 6/6] arm/tegra: add support for tegra30 based board cardhu pdeschrijver
2011-10-25 16:54 ` pdeschrijver
2011-10-25 16:54 ` pdeschrijver at nvidia.com
[not found] ` <1319561644-6160-7-git-send-email-pdeschrijver-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-10-27 20:22 ` Stephen Warren
2011-10-27 20:22 ` Stephen Warren
2011-10-27 20:22 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111101133715.GE13358@tbergstrom-lnx.Nvidia.com \
--to=pdeschrijver-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
--cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.