Re: kernel BUG at page_alloc.c

From: Tomas Szepe (szepe@pinerecords.com)
Date: Sun Aug 11 2002 - 19:46:45 EST


I reckon you'll have to get in touch with the SH port maintainers
and ask them directly. Have a peek in $linuxsrc/MAINTAINERS.

Have you tried any of the kernels available from
http://www.m17n.org/linux-sh/
?

T.

> I have noticed that difference in 2.4.1 and 2.5.25 is
> :-
>
> (2.4.1)
> if (BAD_RANGE(zone,page))
> BUG();
> DEBUG_ADD_PAGE
>
> (2.2.25)
> if (bad_range(zone, page))
> BUG();
> prep_new_page(page);
>
>
> prep_new_page(page) is replaced with DEBUG_ADD_PAGE
> and prep_newpage is :-
>
> /*
> * This page is about to be returned from the page
> allocator
> */
> static inline void prep_new_page(struct page *page)
> {
> BUG_ON(page->mapping);
> BUG_ON(PagePrivate(page));
> BUG_ON(PageLocked(page));
> BUG_ON(PageLRU(page));
> BUG_ON(PageActive(page));
> BUG_ON(PageDirty(page));
> BUG_ON(PageWriteback(page));
> page->flags &= ~(1 << PG_uptodate | 1 <<
> PG_error |
> 1 << PG_referenced | 1 <<
> PG_arch_1 |
> 1 << PG_checked);
> set_page_count(page, 1);
> }
>
> vs
>
> #define DEBUG_ADD_PAGE \
> if (PageActive(page) || PageInactiveDirty(page) || \
> PageInactiveClean(page)) BUG();
>
> Can i also replace DEBUG_ADD_PAGE with prep_new_page
> in 2.4.1. Is it OK ?
>
> Thank you very much for your help.
>
>
> --- Tomas Szepe <szepe@pinerecords.com> wrote:
> > > I am using 2.4.1 on SH4 and using only 32 MB RAM
> > > without hard-disk, so only thing i am using is 32
> > MB
> > > RAM .
> >
> > Could you try a more recent kernel?
> > 2.4.1 is now almost 2 years old.
> >
> > T.
>
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com

-- 
T.
       ,
    . ~ ~ .
  .'@ )) .. '..~
  > - ~`  '~\{   ejm'97
-
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/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:26 EST