Re: New wpi driver

2006-11-12 Thread Gábor Kövesdán

Attilio Rao wrote:

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.


Sorry, n ranges 0-5... (as I said before 6 different address spaces).
Today it seems I'm absolutely sleeping... (probabilly I'm too angry to
have not parecipied at EuroBSDCon...).

Attilio



If I could understand your instructions correctly, I had to change the line
sc-mem_rid = WPI_PCI_BAR0
to
sc-mem_rid = PCIR_BAR(n)
with all the possible n values from 0 to 5. I tried that but it lead 
nowhere, I still got the same output. If you can ping me on IRC this 
afternoon, too, I can give you ssh access if you want to take a look.


--
Cheers,

Gabor

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-10 Thread Florent Thoumie


On Nov 9, 2006, at 9:39 PM, Gábor Kövesdán wrote:


Florent Thoumie wrote:

On Nov 8, 2006, at 1:36 PM, Massimo Lusetti wrote:


Hi all,
  I'm pleased to tell you i got the latest wpi driver from Damien
Bergamini to work properly on a latest -stable on an Acer laptop.


Nice work!
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.


Haven't taken my 3945 powered laptop in Milan, so I haven't had the  
chance to try it yet. Is it the same as the one we can find in  
deischen public space on freefall?


--
Florent Thoumie
[EMAIL PROTECTED]
FreeBSD Committer


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-10 Thread Gábor Kövesdán

Florent Thoumie wrote:


On Nov 9, 2006, at 9:39 PM, Gábor Kövesdán wrote:


Florent Thoumie wrote:

On Nov 8, 2006, at 1:36 PM, Massimo Lusetti wrote:


Hi all,
  I'm pleased to tell you i got the latest wpi driver from Damien
Bergamini to work properly on a latest -stable on an Acer laptop.


Nice work!
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.


Haven't taken my 3945 powered laptop in Milan, so I haven't had the 
chance to try it yet. Is it the same as the one we can find in 
deischen public space on freefall?



Well, not actually. I compared them, and this one is different, but 
unfortunately still produces the same error for me on a Fujitsu-Siemens 
Amilo Pi 1556 01.


--
Cheers,

Gabor

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-10 Thread Massimo Lusetti
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.

Thanks Florent for mirroring.

-- 
Massimo.run();


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-10 Thread Max Laier
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.

 Thanks Florent for mirroring.

--
  Max
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-10 Thread Attilio Rao

2006/11/10, Max Laier [EMAIL PROTECTED]:

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.

Maybe this is not done in the right way in the Damien's driver and
this is beacause gabor would having allocation problems.

Attilio

PS: I will try to look at the code posted above ASAP...


--
Peace can only be achieved by understanding - A. Einstein
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: New wpi driver

2006-11-10 Thread Attilio Rao

2006/11/10, Attilio Rao [EMAIL PROTECTED]:

2006/11/10, Max Laier [EMAIL PROTECTED]:
 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.

Attilio


--
Peace can only be achieved by understanding - A. Einstein
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: New wpi driver

2006-11-10 Thread Attilio Rao

2006/11/10, Attilio Rao [EMAIL PROTECTED]:

2006/11/10, Attilio Rao [EMAIL PROTECTED]:
 2006/11/10, Max Laier [EMAIL PROTECTED]:
  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
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: New wpi driver

2006-11-10 Thread Attilio Rao

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.


Sorry, n ranges 0-5... (as I said before 6 different address spaces).
Today it seems I'm absolutely sleeping... (probabilly I'm too angry to
have not parecipied at EuroBSDCon...).

Attilio


--
Peace can only be achieved by understanding - A. Einstein
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-09 Thread Florent Thoumie

On Nov 8, 2006, at 1:36 PM, Massimo Lusetti wrote:


Hi all,
  I'm pleased to tell you i got the latest wpi driver from Damien
Bergamini to work properly on a latest -stable on an Acer laptop.


Nice work!


The driver is available here:
http://www.datacode.it/wpi-freebsd/wpi-freebsd.tgz
If anyone from FreeBSD team or else is willing to put it on a host  
with

more bandwidth it's more then welcome.


I've mirrored it at http://people.freebsd.org/~flz/local/wpi/wpi- 
freebsd-20061109.tgz.


--
Florent Thoumie
[EMAIL PROTECTED]
FreeBSD Committer


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New wpi driver

2006-11-09 Thread Gábor Kövesdán

Florent Thoumie wrote:

On Nov 8, 2006, at 1:36 PM, Massimo Lusetti wrote:


Hi all,
  I'm pleased to tell you i got the latest wpi driver from Damien
Bergamini to work properly on a latest -stable on an Acer laptop.


Nice work!
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.


--
Cheers,

Gabor

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]