Cache Enabling
deepesh at india.tejasnetworks.com
deepesh at india.tejasnetworks.com
Sat Nov 16 14:50:49 EST 2002
Hi,
I was able to solve this problem with the help of some one in the company
itself.
One of my devices was mmaped. And when cache was enabled, the
cache of this device was also getting enabled. I had to selectively
disable the cache. This was done by adding some more flags to the
input parameter for "protection, (pgprot_t) which is part of the vma
area structure" in the driver's mmap function. The flags to be added are
"PAGE_NO_CACHE, PAGE_GUARDED and PAGE_WRITETHRU". With this every thing
started working!!!!!!!!!!!!!!!
Deepesh
On Mon, 11 Nov 2002, bhupinder sahran wrote:
> hi
> U will have to play with ur bat registers.
> U can map ur devices non cachable through bat
> registers.
>
> u will be having a function in arch/ppc/kernel/(ur
> arch)setup.c .
>
> see there & use the bats
> if still have problem send me ur setup file
>
> thanx
> Bhupi
> Linux+Hypertransport --->Silicon
> www.gdatech.com
>
>
>
>
> --- deepesh at india.tejasnetworks.com wrote:
> >
> > I had enabled the Data Cache. I forgot to mention
> > that.
> >
> > Deepesh
> >
> >
> >
> >
> > On Mon, 11 Nov 2002 deepesh at india.tejasnetworks.com
> > wrote:
> >
> > >
> > >
> > > Dear All,
> > >
> > >
> > > I am using Power PC. The system which I am using
> > takes 2 minutes more than
> > > usual for the software in the system to come up
> > without cache
> > > enabling. These 2 minutes are really crucial.
> > > But there are problems when I enabled cache. The
> > devices which I am using
> > > are mmapped. I do not want cache to be enabled for
> > the memory mapped
> > > devices. When cache is enabled, none of the
> > mmapped devices work in the
> > > usual way. How do I selectively disable the cache
> > for the mmapped devices?
> > >
> > >
> > > Thank you,
> > > Deepesh
> > >
> > >
> >
> > --
> >
> > D.Deepesh
> > R&D Engineer,
> > Tejas Networks
> >
> >
> >
>
>
>
--
D.Deepesh
R&D Engineer,
Tejas Networks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list