linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Pedanekar, Hemant" <hemantp@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"tony@atomide.com" <tony@atomide.com>
Subject: Re: [PATCH 2/6] TI816X: Update common omap platform files
Date: Fri, 06 Aug 2010 16:12:13 -0700	[thread overview]
Message-ID: <87mxsznxo2.fsf@deeprootsystems.com> (raw)
In-Reply-To: <2A3DCF3DA181AD40BDE86A3150B27B6B030E65C19B@dbde02.ent.ti.com> (Hemant Pedanekar's message of "Fri, 6 Aug 2010 23:53:59 +0530")

"Pedanekar, Hemant" <hemantp@ti.com> writes:

> Hi Kevin,
>
> Kevin Hilman wrote:
>> Hemant Pedanekar <hemantp@ti.com> writes:
>> 
>>> This patch updates the common platform files with TI816X specific
>>> additions. 
>>> 
>>> Also adds new files for TI816X modules base addresseses and irq
>>> definitions. 
>>> 
>>> Signed-off-by: Hemant Pedanekar <hemantp@ti.com>
>>> ---
> [...]
>>> 
>>> diff --git a/arch/arm/mach-omap2/include/mach/entry-macro.S
>> b/arch/arm/mach-omap2/include/mach/entry-macro.S
>>> index 50fd749..6516cbd 100644
>>> --- a/arch/arm/mach-omap2/include/mach/entry-macro.S
>>> +++ b/arch/arm/mach-omap2/include/mach/entry-macro.S @@ -34,7 +34,7 @@
>>>  		.endm
>>> 
>>>  /*
>>> - * Unoptimized irq functions for multi-omap2, 3 and 4
>>> + * Unoptimized irq functions for multi-omap2, 3, 4 and ti816x   */
>>> 
>>>  #ifdef MULTI_OMAP2
>>> @@ -57,7 +57,8 @@ omap_irq_base:	.word	0
> [...]
>>> +		bne	9998f
>>> +
>>> +		/*
>>> +		 * ti816x has additional IRQ pending register. Checking this
>>> +		 * register on omap2 & omap3 has no effect (read as 0). +		 */
>>> +		ldr	\irqnr, [\base, #0xf8] /* IRQ pending reg 4 */
>>> +		cmp	\irqnr, #0x0
>> 
>> This part makes me a slightly nervous.  At least according to
>> the TRMs,
>> this address is undefined on OMAP2 & OMAP3 (yet still in the
>> INTC block.)
>> Was this tested on OMAP2/3 hardware and verified to return 0?
>> 
>> You might also consider wrapping this section in
>> #ifdef CONFIG_ARCH_TI816X so a multi-OMAP kernel without 816x support would
>> avoid this extra read. 
>> 
>
> Won't the usage of #ifdef inside MULTI_OMAP2 make things look strange?
> E.g.,
>
> #ifdef MULTI_OMAP2
> ...
> #ifdef CONFIG_ARCH_TI816X
> ...
> #endif
> #endif
>
> (Specifically, since there is already a custom block present in #else part?)
>

Yeah, I thought about that too.  That's why I said "you might
consider..." above.

But thinking more, you're right.  When we want an optimized version for
a specific SoC, we just compile for that SoC and get the optimized
version.

Go ahead and leave out the #ifdef, but I'd still like to see some tests
on OMAP2 that show that reading this undefined part of the INTC block
does indeed return zero.

Kevin

      reply	other threads:[~2010-08-06 23:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 20:51 [PATCH 2/6] TI816X: Update common omap platform files Hemant Pedanekar
2010-08-05 14:28 ` Kevin Hilman
2010-08-05 14:28 ` Kevin Hilman
2010-08-05 15:16   ` Pedanekar, Hemant
2010-08-06 18:23   ` Pedanekar, Hemant
2010-08-06 23:12     ` Kevin Hilman [this message]

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=87mxsznxo2.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=hemantp@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).