Skip to contentSkip to conversation

kernel BUG at page_alloc.c

DISCUSSION Studying MTD 2 participants 3 messages Aug 12, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

I also want to use latest kernel but new kernels give many compilation errors and their links are broken for SH platform.

Thanks.

Quoted 9 lines · --- Tomas Szepe
Quoted 2 lines

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

Quoted 1 line

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

#2 lore raw
In reply to a message not in the archive

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.

Quoted 9 lines · --- Tomas Szepe
Quoted 2 lines

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

Quoted 1 line

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

#3 lore raw

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.

Quoted 66 lines

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.

Quoted 9 lines · --- Tomas Szepe
Quoted 2 lines

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

Quoted 1 line

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

Signature · 4 lines
T.
       ,
    . ~ ~ .
  .'@ )) .. '..~
Quoted 1 line

- ~` '~\{ ejm'97