Opened 12 years ago

Closed 8 years ago

#1403 closed bug (fixed)

vlance driver calls acquire_sem_etc() from its interrupt routine

Reported by: diver Owned by:
Priority: low Milestone: R1
Component: Drivers/Network Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Haiku stops booting 4 times at different stages until this crash. See screenshot. Using vmware in linux with hrev21987.

Attachments (2)

panic.png (31.7 KB) - added by diver 12 years ago.
Haiku.vmx (1.1 KB) - added by diver 12 years ago.

Download all attachments as: .zip

Change History (12)

Changed 12 years ago by diver

Attachment: panic.png added

Changed 12 years ago by diver

Attachment: Haiku.vmx added

comment:1 Changed 12 years ago by diver

In this configuration i can't boot at all! But disabling network device "Connect on power on" in vmware settings let me to boot.

comment:2 Changed 12 years ago by axeld

Component: System/KernelDrivers/Network
Owner: axeld deleted
Summary: [Panic] acquare_sem_etcvlance driver calls acquire_sem_etc() from its interrupt routine

I've removed the vlance driver from the image which is apparently broken.

comment:3 Changed 12 years ago by umccullough

Currently, vlance driver performance is pretty bad anyway - I've noticed very high packet loss.

Much better workaround at this point is to set ethernet0.virtualDev="e1000" in the .vmx which causes Haiku to use the ipro1000 driver instead. This driver has shown much better performance.

I'm certain the vlance driver will be improved eventually.

comment:4 Changed 11 years ago by diver

Is there any reason to keep this bug open? Or vlance driver is used somewhere outside vmware? If so, one should be ported from FreeBSD.

comment:5 Changed 11 years ago by diver

Axel?

comment:6 Changed 11 years ago by axeld

Priority: normallow

The driver still has this bug. I'm not sure if this driver supports some actual hardware besides VMware; if not, we should just remove it.

comment:7 Changed 11 years ago by umccullough

I believe the VMWare vlance interface emulates the AMD PCNet32 device which does supposedly exist in real hardware (although I've personally not ever seen it myself).

Whether this vlance driver was also written to support the original AMD PCNet32 devices, on the other hand, I have no clue.

FWIW, I do remember Travis telling me that NewOS previously had a rudimentary pcnet32 driver as well...

comment:8 Changed 11 years ago by umccullough

Even more interesting, it looks like Haiku's repo already has the beginnings of a FreeBSD port of "if_le" which includes pcnet/lance:

http://dev.haiku-os.org/browser/haiku/trunk/src/add-ons/kernel/drivers/network/pcnet/dev/le

Maybe if that was finished, vlance could be replaced in the image.

comment:9 Changed 9 years ago by diver

Maybe we should close this one and open a new ticket about porting if_le driver then?

comment:10 Changed 8 years ago by diver

Resolution: fixed
Status: newclosed

We use FreeBSD pcnet driver since hrev42295.

Note: See TracTickets for help on using tickets.