Re: PROBLEM: usage of page_address and CONFIG_HIGHMEM on ix86

From: wollny (wollny@cns.mpg.de)
Date: Mon Jun 12 2000 - 19:35:53 EST


> Ah.. that would make sense. Maybe I missed a vmalloc. The fix is wrong I think
> but the bug would appear to be real

Hmm, there are lots of vmalloc, but the offending one should be changed
with this patch (worked on my box after a first check)
btv->vbibuf is the pointer used in the RISC code.

--- bttv.c.test1-ac13 Sun Jun 11 13:29:56 2000
+++ bttv.c Tue Jun 13 02:21:47 2000
 #include "bttv.h"
 #include "tuner.h"
 
@@ -3469,7 +3470,7 @@
         btv->bus_vbi_even=virt_to_bus(btv->risc_jmp+6);
 
         btwrite(virt_to_bus(btv->risc_jmp+2), BT848_RISC_STRT_ADD);
- btv->vbibuf=(unsigned char *) vmalloc(VBIBUF_SIZE);
+ btv->vbibuf=(unsigned char *) vmalloc_32(VBIBUF_SIZE);
         if (!btv->vbibuf)
                 return -1;
         if (!(btv->gbuf = kmalloc(sizeof(struct bttv_gbuf)*gbuffers,GFP_KERNEL)))

-
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:27 EST