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


Groups > linux.kernel > #1332334

Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE

From "Maciej W. Rozycki" <macro@imgtec.com>
Newsgroups linux.kernel
Subject Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE
Date 2016-02-11 20:40 +0100
Message-ID <r15fQ-4NX-13@gated-at.bofh.it> (permalink)
References <pLOCu-7cN-17@gated-at.bofh.it> <r0Lh8-8gU-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 10 Feb 2016, Paul Burton wrote:

> > diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
> > index 08318ec..4330315 100644
> > --- a/arch/mips/mm/tlb-r4k.c
> > +++ b/arch/mips/mm/tlb-r4k.c
> > @@ -486,6 +487,10 @@ static void r4k_tlb_configure(void)
> >  	 *     be set to fixed-size pages.
> >  	 */
> >  	write_c0_pagemask(PM_DEFAULT_MASK);
> > +	back_to_back_c0_hazard();
> > +	if (read_c0_pagemask() != PM_DEFAULT_MASK)
> > +		panic("MMU doesn't support PAGE_SIZE=0x%lx", PAGE_SIZE);

 I think it would make sense to report here what the minimum/maximum page 
size actually supported is, so that the users know what there might be 
after.

  Maciej

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


Thread

Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE Paul Burton <paul.burton@imgtec.com> - 2016-02-10 23:20 +0100
  Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support  PAGE_SIZE "Maciej W. Rozycki" <macro@imgtec.com> - 2016-02-11 20:40 +0100
    Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE Ralf Baechle <ralf@linux-mips.org> - 2016-02-12 12:00 +0100
  Re: [PATCH] MIPS: tlb-r4k: panic if the MMU doesn't support PAGE_SIZE Ralf Baechle <ralf@linux-mips.org> - 2016-02-12 17:40 +0100

csiph-web