Re: PROBLEM: usage of page_address and CONFIG_HIGHMEM on ix86

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Jun 12 2000 - 11:54:29 EST


> hitting on a BUG() statement in bttv.c i found out that it seems to be no
> good idea, to use the 'page_address' macro from <asm/pgtable.h> on the
> ix86 with CONFIG_HIGHMEM enabled.

The mmap pages for bttv in the current code are drawn from vmalloc32 so
should always be low pages

> Replacing 'page_address' with 'kmap' (from <linux/highmem.h>) in
> bttv.c solved the problem for me (patch sent to Gerd Knorr).
> Without CONFIG_HIGHMEM this simply is defined as 'page_address' and else as 'kmap_high'.

That wont I suspect work. If the pages are high then kmapping them doesnt
make them visible to PCI DMA

-
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/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:26 EST