Re: O2 framebuffer problems with install kernel
Izumi Tsutsui <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sgimips |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > >> - - it works fine on R5k O2s > > > > Erm no, I reported the problems and I've got a 180MHz R5k O2. > > Ok, it works on (some|most) R5k O2s. Mine's got a 200MHz/1MB cache > CPU module and 256MB RAM, I do have a 180MHz/512kB module somewhere, > I'll dig it up and see if it changes anything. Mine is also R5K 180MHz/512k and has the same problem. Anyway, it looks just a simple DMA-cache issue and the attached patch seems to fix it. --- Izumi Tsutsui Index: dev/crmfb.c =================================================================== RCS file: /cvsroot/src/sys/arch/sgimips/dev/crmfb.c,v retrieving revision 1.25 diff -u -r1.25 crmfb.c --- dev/crmfb.c 8 May 2008 02:10:59 -0000 1.25 +++ dev/crmfb.c 28 Jul 2008 15:33:36 -0000 @@ -265,7 +265,7 @@ panic("crmfb_attach: can't allocate DMA memory"); rv = bus_dmamem_map(sc->sc_dmat, sc->sc_dmai.segs, sc->sc_dmai.nsegs, sc->sc_dmai.size, &sc->sc_dmai.addr, - BUS_DMA_NOWAIT); + BUS_DMA_NOWAIT | BUS_DMA_COHERENT); if (rv) panic("crmfb_attach: can't map DMA memory"); rv = bus_dmamap_create(sc->sc_dmat, sc->sc_dmai.size, 1,