Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1232415

Re: [PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a fixed address

From Scott Wood <scottwood@freescale.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a fixed address
Date 2015-09-24 22:20 +0200
Message-ID <qcl9M-55S-5@gated-at.bofh.it> (permalink)
References <qbz57-2KT-3@gated-at.bofh.it> <qbz58-2KT-23@gated-at.bofh.it> <qcdce-1WF-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 2015-09-24 at 11:41 +0000, David Laight wrote:
> From: Christophe Leroy
> > Sent: 22 September 2015 17:51
> ...
> > Traditionaly, each driver manages one computer board which has its
> > own components with its own memory maps.
> > But on embedded chips like the MPC8xx, the SOC has all registers
> > located in the same IO area.
> > 
> > When looking at ioremaps done during startup, we see that
> > many drivers are re-mapping small parts of the IMMR for their own use
> > and all those small pieces gets their own 4k page, amplifying the
> > number of TLB misses: in our system we get 0xff000000 mapped 31 times
> > and 0xff003000 mapped 9 times.
> 
> Isn't this a more general problem?
> 
> If there are multiple remap requests for the same physical page
> shouldn't the kernel be just increasing a reference count somewhere
> and returning address in the same virtual page?
> This should probably happen regardless of the address.
> I presume it must be done for cacheable mappings.

Why would you assume that?

-Scott


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a fixed  address Christophe Leroy <christophe.leroy@c-s.fr> - 2015-09-22 19:00 +0200
  RE: [PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a  fixed address David Laight <David.Laight@ACULAB.COM> - 2015-09-24 13:50 +0200
    Re: [PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a  fixed address Scott Wood <scottwood@freescale.com> - 2015-09-24 22:20 +0200
      RE: [PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a  fixed address David Laight <David.Laight@ACULAB.COM> - 2015-09-25 16:50 +0200
  Re: [PATCH v2 08/25] powerpc/8xx: Map IMMR area with 512k page at a  fixed address Scott Wood <scottwood@freescale.com> - 2015-09-29 02:00 +0200

csiph-web