From cjk at cs.unc.edu  Tue Oct  9 21:35:06 2012
From: cjk at cs.unc.edu (Christopher Kenna)
Date: Tue, 9 Oct 2012 21:35:06 -0400
Subject: ARM L2C-310 cache controller interconnect question
Message-ID: <CACdM24fcvKzi+PK0F8tsf3D6vzg+WcR07wbKpp1cdHOHijHLxA@mail.gmail.com>

Hello,

I was reading about cache lockdown in ARM's L2C-310 (or PL310) cache
controller in [1]. Based on the documentation, it looks like the cache
lockdown by master (CPU) is implemented depending upon how the signal
AyUSERSx[7:5] is connected. It looks like it makes the most sense to
hook up this signal like in the example, "System including four
Cortex-A9 MPCore processors and L2C-310" so that the lockdown register
0 determines what cache ways are available for CPU0, lockdown register
1 determines what cache ways are available for CPU 1, etc.

The problem is that I cannot find out how AyUSERSx[7:5] is connected
in my system, and I cannot determine if cache lockdown by master is
supported (the documentation says that this is an optional feature). I
believe that these options are determined by the SoC manufacturers,
and are not available to the public. I am specifically curious about
how this is set up in the PandaBoard ES, which uses a TI OMAP4460, and
the ODROID-X, which uses a Samsung Exynos 4412. Do you know where I
can find this information out?

Thanks very much,
Chris Kenna

[1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0246h/ch02s03s06.html


From prabhakar.csengg at gmail.com  Thu Oct 18 12:19:34 2012
From: prabhakar.csengg at gmail.com (Prabhakar Lad)
Date: Thu, 18 Oct 2012 21:49:34 +0530
Subject: 3.7-rc-1 Release Causing application failure for compilation
Message-ID: <CA+V-a8uj4wSz60Ov8S3MpSrUe-D5+OcpVsFjURzSEcE6VdvGGQ@mail.gmail.com>

Hi All,

I have updated to 3.7-rc1 kernel version with latest head with
commit-id 43c422eda99b894f18d1cca17bcd2401efaf7bd0
but when I try to cross compile the Application I am getting following errors.

/home/plad/ti/linus/linus/include/linux/types.h:14:26: error:
conflicting types for 'fd_set'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/select.h:78:5:
note: previous declaration of 'fd_set' was here
/home/plad/ti/linus/linus/include/linux/types.h:15:25: error:
conflicting types for 'dev_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/types.h:61:17:
note: previous declaration of 'dev_t' was here
/home/plad/ti/linus/linus/include/linux/types.h:17:26: error:
conflicting types for 'mode_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/types.h:71:18:
note: previous declaration of 'mode_t' was here
/home/plad/ti/linus/linus/include/linux/types.h:25:26: error:
conflicting types for 'timer_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/time.h:104:19:
note: previous declaration of 'timer_t' was here
/home/plad/ti/linus/linus/include/linux/types.h:134:23: error:
conflicting types for 'blkcnt_t'
/home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/types.h:236:20:
note: previous declaration of 'blkcnt_t' was here

I use the codesourcery toolchain for cross compiling the applications
for ARM. The same compiler is used to  build the uImage for ARM, but
when I try building the apps I see this issue. Can any help me out in
fixing this.

Regards,
--Prabhakar Lad


From baruch at tkos.co.il  Thu Oct 18 14:39:30 2012
From: baruch at tkos.co.il (Baruch Siach)
Date: Thu, 18 Oct 2012 20:39:30 +0200
Subject: 3.7-rc-1 Release Causing application failure for compilation
In-Reply-To: <CA+V-a8uj4wSz60Ov8S3MpSrUe-D5+OcpVsFjURzSEcE6VdvGGQ@mail.gmail.com>
References: <CA+V-a8uj4wSz60Ov8S3MpSrUe-D5+OcpVsFjURzSEcE6VdvGGQ@mail.gmail.com>
Message-ID: <20121018183930.GA4048@tarshish>

Hello Prabhakar Lad,

On Thu, Oct 18, 2012 at 09:49:34PM +0530, Prabhakar Lad wrote:
> I have updated to 3.7-rc1 kernel version with latest head with
> commit-id 43c422eda99b894f18d1cca17bcd2401efaf7bd0
> but when I try to cross compile the Application I am getting following errors.
> 
> /home/plad/ti/linus/linus/include/linux/types.h:14:26: error:
> conflicting types for 'fd_set'
> /home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/select.h:78:5:
> note: previous declaration of 'fd_set' was here
> /home/plad/ti/linus/linus/include/linux/types.h:15:25: error:

[snip]

> I use the codesourcery toolchain for cross compiling the applications
> for ARM. The same compiler is used to  build the uImage for ARM, but
> when I try building the apps I see this issue. Can any help me out in
> fixing this.

It seems that you are including kernel headers directly in your userspace 
code. Don't do that. Types defined in kernel headers conflict with types 
defined in your toolchain's kernel headers. Instead, just use the headers that 
are part of your toolchain, which in turn include kernel headers that your 
toolchain was built with.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


From opl127 at freemail.ru  Thu Oct 18 15:42:31 2012
From: opl127 at freemail.ru (=?windows-1251?B?dHJ1ZWJvYXJkLnJ1?=)
Date: Thu, 18 Oct 2012 23:42:31 +0400
Subject: =?windows-1251?B?xO7x6uAg4eXx7+vg8u379SDu4fr/4uvl7ejpIPEgyuDy4Ovu4+7sIM7w4+Dt6Ofg9ujp?=
Message-ID: <tPhTmJWnCQH0iQWoaFYaG3eF6BY13PRNKz3cXjMPayxh@freemail.ru>

?????????? ???? ?????????? ????????? ?? ????? ????? ?????????? ? ? ???????? ??????????? trueboard.ru, ??? ??????? ??? ????? ??? ????? ??????????? ????????????? ???????????????? ???? ?????? ??? ?????? ? ???? ?????????????? ???????? ? ????? ????? ?????????? ? ????????? ?????????? ? ??? ?? ???????? ??????????? .
 ????? ???? ???? ? ??? ???? ????, ?????????? ?? ??? ??? ???????? (?? ?????? "??????") ? ?? ???????? VIP ?????????? ?????????!



www.trueboard.ru




From prabhakar.csengg at gmail.com  Mon Oct 22 01:09:54 2012
From: prabhakar.csengg at gmail.com (Prabhakar Lad)
Date: Mon, 22 Oct 2012 10:39:54 +0530
Subject: 3.7-rc-1 Release Causing application failure for compilation
In-Reply-To: <20121018183930.GA4048@tarshish>
References: <CA+V-a8uj4wSz60Ov8S3MpSrUe-D5+OcpVsFjURzSEcE6VdvGGQ@mail.gmail.com>
 <20121018183930.GA4048@tarshish>
Message-ID: <CA+V-a8vLH9z=ZY-TPn8V2zCGtKgNvLKvHyKKwofM2FQ190oPMA@mail.gmail.com>

Hi Baruch,

On Fri, Oct 19, 2012 at 12:09 AM, Baruch Siach <baruch at tkos.co.il> wrote:
> Hello Prabhakar Lad,
>
> On Thu, Oct 18, 2012 at 09:49:34PM +0530, Prabhakar Lad wrote:
>> I have updated to 3.7-rc1 kernel version with latest head with
>> commit-id 43c422eda99b894f18d1cca17bcd2401efaf7bd0
>> but when I try to cross compile the Application I am getting following errors.
>>
>> /home/plad/ti/linus/linus/include/linux/types.h:14:26: error:
>> conflicting types for 'fd_set'
>> /home/plad/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc/usr/include/sys/select.h:78:5:
>> note: previous declaration of 'fd_set' was here
>> /home/plad/ti/linus/linus/include/linux/types.h:15:25: error:
>
> [snip]
>
>> I use the codesourcery toolchain for cross compiling the applications
>> for ARM. The same compiler is used to  build the uImage for ARM, but
>> when I try building the apps I see this issue. Can any help me out in
>> fixing this.
>
> It seems that you are including kernel headers directly in your userspace
> code. Don't do that. Types defined in kernel headers conflict with types
> defined in your toolchain's kernel headers. Instead, just use the headers that
> are part of your toolchain, which in turn include kernel headers that your
> toolchain was built with.
>
Thanks for the reply, got it fixed :)

Regards,
--Prabhakar Lad

> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


