wpi(4) nefunguje s Intel 3945ABG

Ivan Dolnák ivan.dolnak at gmail.com
Sun Apr 27 13:33:18 CEST 2008


2008/4/26 Miroslav Lachman <000.fbsd at quip.cz>:
> Dan Lukes wrote:
>  > Ivan Dolnák wrote:
>  >
>  >>wpi0: <Intel(R) PRO/Wireless 3945ABG> mem 0xfe1ff000-0xfe1fffff irq 17
>  >>at device 0.0 on pci3
>  >>bus_dmamem_alloc failed to align memory properly.
>  >
>  >
>  > Ze zmen udelanych po 7.0-RELEASE:
>  >
>  >
>  >>+ * Allocates a contiguous block of dma memory of the requested size and
>  >>+ * alignment. Due to limitations of the FreeBSD dma subsystem as of 20071217,
>  >>+ * allocations greater than 4096 may fail. Hence if the requested alignment is
>  >>+ * greater we allocate 'alignment' size extra memory and shift the vaddr and
>  >>+ * paddr after the dma load. This bypasses the problem at the cost of a little
>  >>+ * more memory.
>  >
>  >
>  >       Tohle by mohl byt prave tento pripad (neni to ale jiste - z toho
>  > neverbose LOGu se zda, ze pozadovana pamet 4k neprevysovala).
>  >
>  >       Pokud by to byl tento problem pak moznym resenim je pouziti 7-STABLE
>
>  [...]
>
>
>  >       Ale ve skutecnosti bych se asi timhle problemem nezabyval, dokud nebude
>  > vyreseny problem s neuspesnou alokaci pameti.
>
>  Udajne je ta chybova hlaska "neskodna" a wpi funguje i s ni.
>  Doporucuju k tehle problematice pozorne procist archiv mailinglistu
>  freebsd-mobile@, kde se zrovna nedavno (v breznu) tohle resilo:
>
>  ------- citace -------
>  btw, according to an older post, "wpi error: bus_dmamem_alloc failed to
>  align memory properly" is not really a big deal.  I used to get those
>  errors (you will see this in the configs I pointed you to above) but wpi
>  worked anyway.  The latest patches that have been floating around on
>  freebsd-net@ solve the problem (and a host of others, too).  I don't
>  know if they've been MFCd back to 7.0 yet but they will be.
>
>  http://people.freebsd.org/~thompsa/wpi_releng7.diff
>  ------- citace -------
>
>  Mirek
>

Problém je vyriešený, postup je:

1. stiahnuť záplatu na adrese:
http://people.freebsd.org/~thompsa/wpi_releng7.diff
2. ako root ju aplikovať:

# cd /usr/src
# patch -p1 < /path/to/patch

inak povedané:

#patch -p1 < wpi_releng7.diff

Dopytované súbory sú v /usr/src/sys/dev/wpi/.

3. Build a inštalácia:

# cd /usr/src/sys/modules/wpi
# make && make install

Prešiel som relevantné príspevky na mailing-liste freebsd-mobile@ za
obdobie január až apríl 2008, kde s tým majú ľudia podobné problémy.

4. Je dôležité nezabudnúť dopísať v /boot/loader.conf riadok:
legal.intel_wpi.license_ack=1 a ďalšie parametre uvedené v man 4 wpi.

Vďaka všetkým za rady a navedenie k riešeniu problému.

Ivan


> --
>  FreeBSD mailing list (users-l at freebsd.cz)
>  http://www.freebsd.cz/listserv/listinfo/users-l
>


More information about the Users-l mailing list