[patch] Re: [patch] bootmem bitmap always considered dma memory

Ingo Molnar (mingo@chiara.csoma.elte.hu)
Thu, 9 Dec 1999 15:27:08 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--79888902-165250049-944749628=:1223
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Thu, 9 Dec 1999, [iso-8859-1] Mika Penttil=E4 wrote:

> Aren't the highmem pages also considered as PG_DMA, because
> free_area_init_core() sets the PG_DMA flag and it isn't cleared. in
> mem_init() ?

This is a bug, but it didnt have any bad effect so far because nothing
really tried to use highpages for direct swapping or direct IO. The
attached onliner fixes this.

free_page() doesnt use PG_DMA anymore, it's freeing stuff based on
page->zone. Probably other places should use page->zone as well, not
PG_DMA.

-- mingo

--79888902-165250049-944749628=:1223
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="highmem-2.3.32-A0"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9912091527080.1223@chiara.csoma.elte.hu>
Content-Description:
Content-Disposition: attachment; filename="highmem-2.3.32-A0"

LS0tIGxpbnV4L2FyY2gvaTM4Ni9tbS9pbml0LmMub3JpZzIJVGh1IERlYyAg
OSAwNjoxNjowOCAxOTk5DQorKysgbGludXgvYXJjaC9pMzg2L21tL2luaXQu
YwlUaHUgRGVjICA5IDA2OjE2OjU3IDE5OTkNCkBAIC01ODEsNiArNTgxLDcg
QEANCiAJCQljb250aW51ZTsNCiAJCX0NCiAJCUNsZWFyUGFnZVJlc2VydmVk
KHBhZ2UpOw0KKwkJY2xlYXJfYml0KFBHX0RNQSwgJnBhZ2UtPmZsYWdzKTsN
CiAJCXNldF9iaXQoUEdfaGlnaG1lbSwgJnBhZ2UtPmZsYWdzKTsNCiAJCWF0
b21pY19zZXQoJnBhZ2UtPmNvdW50LCAxKTsNCiAJCV9fZnJlZV9wYWdlKHBh
Z2UpOw0K
--79888902-165250049-944749628=:1223--

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