linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Possible mistake in defining TTBR cache-able attributes for v7-2 level ?
       [not found] <CAPub149amJ0Aa7Y8DLkHbkQzcKFfr--d8oiuFsw7MMokAia4xw@mail.gmail.com>
@ 2014-03-14 15:53 ` Catalin Marinas
  2014-03-15 13:07   ` Shiraz Hashim
  0 siblings, 1 reply; 4+ messages in thread
From: Catalin Marinas @ 2014-03-14 15:53 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Mar 14, 2014 at 01:46:27PM +0000, Shiraz Hashim wrote:
> TTB_IRGN_WBWA macro defined in arch/arm/mm/proc-v7-2level.S, seems incorrect
> 
> #define TTB_IRGN_WBWA ? ((0 << 0) | (1 << 6))
> 
> Its intention seems to program as write back and write allocate whereas it
> actually
> programs it? write-through,
> 
> From ARM TRM
> 
> The possible values of IRGN[1:0] are:
> ? 0b00 Normal memory, Inner Non-cacheable.
> ? 0b01 Normal memory, Inner Write-Back Write-Allocate Cacheable.
> ? 0b10 Normal memory, Inner Write-Through Cacheable.
> ? 0b11 Normal memory, Inner Write-Back no Write-Allocate Cacheable.
> 
> --IRGN[0] is b'0 and IRGN[1] is b'6

In the ARMv7 ARM, IRGN[0] is bit 6 and IRGN[1] is bit 0. Which TRM is
this?

-- 
Catalin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Possible mistake in defining TTBR cache-able attributes for v7-2 level ?
  2014-03-14 15:53 ` Possible mistake in defining TTBR cache-able attributes for v7-2 level ? Catalin Marinas
@ 2014-03-15 13:07   ` Shiraz Hashim
  2014-03-15 15:00     ` bhupesh.sharma at freescale.com
  2014-03-15 23:14     ` Catalin Marinas
  0 siblings, 2 replies; 4+ messages in thread
From: Shiraz Hashim @ 2014-03-15 13:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Mar 14, 2014 at 9:23 PM, Catalin Marinas
<catalin.marinas@arm.com> wrote:
>
> On Fri, Mar 14, 2014 at 01:46:27PM +0000, Shiraz Hashim wrote:
> > TTB_IRGN_WBWA macro defined in arch/arm/mm/proc-v7-2level.S, seems incorrect
> >
> > #define TTB_IRGN_WBWA   ((0 << 0) | (1 << 6))
> >
> > Its intention seems to program as write back and write allocate whereas it
> > actually
> > programs it  write-through,
> >
> > From ARM TRM
> >
> > The possible values of IRGN[1:0] are:
> >   0b00 Normal memory, Inner Non-cacheable.
> >   0b01 Normal memory, Inner Write-Back Write-Allocate Cacheable.
> >   0b10 Normal memory, Inner Write-Through Cacheable.
> >   0b11 Normal memory, Inner Write-Back no Write-Allocate Cacheable.
> >
> > --IRGN[0] is b'0 and IRGN[1] is b'6
>
> In the ARMv7 ARM, IRGN[0] is bit 6 and IRGN[1] is bit 0. Which TRM is
> this?
>

I am referring to Cortex A53 TRM, here
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0500d/CIHIDJFJ.html

-- 
regards
Shiraz Hashim

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Possible mistake in defining TTBR cache-able attributes for v7-2 level ?
  2014-03-15 13:07   ` Shiraz Hashim
@ 2014-03-15 15:00     ` bhupesh.sharma at freescale.com
  2014-03-15 23:14     ` Catalin Marinas
  1 sibling, 0 replies; 4+ messages in thread
From: bhupesh.sharma at freescale.com @ 2014-03-15 15:00 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Shiraz,

> -----Original Message-----
> From: linux-arm-kernel [mailto:linux-arm-kernel-
> bounces at lists.infradead.org] On Behalf Of Shiraz Hashim
> Sent: Saturday, March 15, 2014 6:37 PM
> To: Catalin Marinas
> Cc: linux-arm-kernel at lists.infradead.org
> Subject: Re: Possible mistake in defining TTBR cache-able attributes for
> v7-2 level ?
> 
> On Fri, Mar 14, 2014 at 9:23 PM, Catalin Marinas
> <catalin.marinas@arm.com> wrote:
> >
> > On Fri, Mar 14, 2014 at 01:46:27PM +0000, Shiraz Hashim wrote:
> > > TTB_IRGN_WBWA macro defined in arch/arm/mm/proc-v7-2level.S, seems
> > > incorrect
> > >
> > > #define TTB_IRGN_WBWA   ((0 << 0) | (1 << 6))
> > >
> > > Its intention seems to program as write back and write allocate
> > > whereas it actually programs it  write-through,
> > >
> > > From ARM TRM
> > >
> > > The possible values of IRGN[1:0] are:
> > >   0b00 Normal memory, Inner Non-cacheable.
> > >   0b01 Normal memory, Inner Write-Back Write-Allocate Cacheable.
> > >   0b10 Normal memory, Inner Write-Through Cacheable.
> > >   0b11 Normal memory, Inner Write-Back no Write-Allocate Cacheable.
> > >
> > > --IRGN[0] is b'0 and IRGN[1] is b'6
> >
> > In the ARMv7 ARM, IRGN[0] is bit 6 and IRGN[1] is bit 0. Which TRM is
> > this?
> >
> 
> I am referring to Cortex A53 TRM, here
> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0500d/CIHI
> DJFJ.html

Cortex A53 is ARMv8 architecture. You should probably look here for ARMv8 architecture:
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/arm64/mm/proc.S?id=refs/tags/next-20140110#n2

Regards,
Bhupesh

> 
> --
> regards
> Shiraz Hashim
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Possible mistake in defining TTBR cache-able attributes for v7-2 level ?
  2014-03-15 13:07   ` Shiraz Hashim
  2014-03-15 15:00     ` bhupesh.sharma at freescale.com
@ 2014-03-15 23:14     ` Catalin Marinas
  1 sibling, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2014-03-15 23:14 UTC (permalink / raw)
  To: linux-arm-kernel

On 15 Mar 2014, at 13:07, Shiraz Hashim <shiraz.linux.kernel@gmail.com> wrote:
> On Fri, Mar 14, 2014 at 9:23 PM, Catalin Marinas
> <catalin.marinas@arm.com> wrote:
>> 
>> On Fri, Mar 14, 2014 at 01:46:27PM +0000, Shiraz Hashim wrote:
>>> TTB_IRGN_WBWA macro defined in arch/arm/mm/proc-v7-2level.S, seems incorrect
>>> 
>>> #define TTB_IRGN_WBWA   ((0 << 0) | (1 << 6))
>>> 
>>> Its intention seems to program as write back and write allocate whereas it
>>> actually
>>> programs it  write-through,
>>> 
>>> From ARM TRM
>>> 
>>> The possible values of IRGN[1:0] are:
>>>  0b00 Normal memory, Inner Non-cacheable.
>>>  0b01 Normal memory, Inner Write-Back Write-Allocate Cacheable.
>>>  0b10 Normal memory, Inner Write-Through Cacheable.
>>>  0b11 Normal memory, Inner Write-Back no Write-Allocate Cacheable.
>>> 
>>> --IRGN[0] is b'0 and IRGN[1] is b'6
>> 
>> In the ARMv7 ARM, IRGN[0] is bit 6 and IRGN[1] is bit 0. Which TRM is
>> this?
> 
> I am referring to Cortex A53 TRM, here
> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0500d/CIHIDJFJ.html

And this is consistent with what I said above. I don?t see any issue.

Catalin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-15 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAPub149amJ0Aa7Y8DLkHbkQzcKFfr--d8oiuFsw7MMokAia4xw@mail.gmail.com>
2014-03-14 15:53 ` Possible mistake in defining TTBR cache-able attributes for v7-2 level ? Catalin Marinas
2014-03-15 13:07   ` Shiraz Hashim
2014-03-15 15:00     ` bhupesh.sharma at freescale.com
2014-03-15 23:14     ` Catalin Marinas

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