Date: Fri, 10 Nov 2006 20:49:52 +0100 From: "Attilio Rao" <attilio@freebsd.org> To: "Max Laier" <max@love2party.net> Cc: freebsd-hackers@freebsd.org, Massimo Lusetti <massimo@cedoc.mo.it>, Florent Thoumie <flz@xbsd.org>, =?UTF-8?Q?G=C3=A1bor_K=C3=B6vesd=C3=A1n?= <gabor@freebsd.org>, freebsd-net@freebsd.org Subject: Re: New wpi driver Message-ID: <3bbf2fe10611101149y72f29285s517f5e40a5b8f3e0@mail.gmail.com> In-Reply-To: <3bbf2fe10611100751i77e9c8afle0aed1e794062f4f@mail.gmail.com> References: <1162993001.4305.37.camel@massimo.datacode.it> <4553A000.7070407@FreeBSD.org> <1163151468.4328.6.camel@massimo.datacode.it> <200611101459.20117.max@love2party.net> <3bbf2fe10611100747l386a624cpd72d04b62a0681e7@mail.gmail.com> <3bbf2fe10611100751i77e9c8afle0aed1e794062f4f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2006/11/10, Attilio Rao <attilio@freebsd.org>: > 2006/11/10, Attilio Rao <attilio@freebsd.org>: > > 2006/11/10, Max Laier <max@love2party.net>: > > > On Friday 10 November 2006 10:37, Massimo Lusetti wrote: > > > > On Thu, 2006-11-09 at 22:39 +0100, Gábor Kövesdán wrote: > > > > > Unfortunately, it seems that this is still that unfinished driver from > > > > > Damien, that circulates on the net everywhere, but it only works for > > > > > some lucky people. As for me, I get an error message when loading the > > > > > module, that it could not allocate resources. > > > > > > > > I don't think it's "that unfinished driver from Damien" classify it > > > > correctly, as stated it's an unsupported version so case where it will > > > > not work are expected. Feel free to improve it or wait when some FreeBSD > > > > developer will port and maintain it. > > > > > > I agree. On top of that, a more detailed error report would be preferable. > > > From what you put above, it seems that you are out of sufficient continous > > > memory at the point where you enable the hardware. Try enabling it before > > > bringing up X11 etc. > > > > Even if I'm not totally aware about what problem are gabor@ is having > > at the moment, some time ago I started looking at the code and one > > difference between ipi and wpi is in rings they use (and their > > allocation) and again in the usage of a shared DMA memory page between > > the host and the NIC. > > s/ipi/iwi. Ok I gave a quick look at the code and gabor@ problem is about memory-mapped I/O resource allocation. First of all, WPI_PCI_BAR0 might not be defined in this way, but it should really use PCIR_BAR() macro. Then, probabilly, gabor's device I/O space is relative to another BAR, so simply try all 6 using PCIR_BAR(n) where n range is 0-6 until it does allocate. Attilio PS: I would like that the code will better follow stlye(9) too... -- Peace can only be achieved by understanding - A. Einstein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10611101149y72f29285s517f5e40a5b8f3e0>
