Opened 7 years ago

Last modified 8 months ago

#9109 assigned bug

usb_floppy doesn't function and causes kdl when unplugged

Reported by: kallisti5 Owned by: pulkomandy
Priority: normal Milestone: Unscheduled
Component: Drivers/Disk/USB Version: R1/Development
Keywords: Cc: luroh
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

  • Plug a usb floppy drive into a running Haiku system
  • See the following in syslog:
usb_floppy: device reports a lun count of 1
usb_floppy: getting inquiry data failed
usb_floppy: failed to initialize logical units

KDL On unplug:

Breakpoint exception in kernel mode
Thread 38, uhci finish thread
.
.
<kernel_x86>:panic
<kernel_x86>:x86_handle_breakpoint_exception + 0x0025
<kernel_x86>:int_bottom + 0x003d
<uhci> UHCI<0x82817150>::FinishTransfers(0x0)
<uhci> UHCI<0x82817150>::FinishThread(NULL)
<kernel_x86> common_thread_entry

Change History (9)

comment:1 Changed 7 years ago by mmu_man

Owner: changed from mmu_man to pulkomandy
Status: newassigned

Actually I didn't write this one :p

comment:2 Changed 7 years ago by pulkomandy

Well, it worked with the two drives I have at home last time I checked, and I don't remember seeing such KDL.

Was there a floppy in the drive when you plugged it ?

comment:3 Changed 7 years ago by kallisti5

Yup.. I thought of that. Same result if a floppy disk is present or not present.

comment:4 Changed 6 years ago by scottmc

did you "unmount" the usb floppy drive before unplugging it? I know if you unplug a usb flash device without first unmounting you'll end up in kdl, so perhaps this is similar?

comment:5 Changed 6 years ago by pulkomandy

Milestone: R1/beta1Unscheduled

Unscheduling this for beta1. My hardware works, and this is quite unlikely to be useful to anyone except me anyway.

comment:6 Changed 9 months ago by pulkomandy

Component: Drivers/FloppyDrivers/Disk/USB
Keywords: usb_floppy kdl removed

Welp, playing with usb_floppy again and now I can reproduce the issue with both my drives.

Something must have changed somewhere in the USB stack (EHCI in my case, so in the generic code shared between UHCI and EHCI).

comment:7 Changed 8 months ago by luroh

Cc: luroh added

comment:8 Changed 8 months ago by korli

Should this ticket be closed after the merge with usb_disk?

comment:9 Changed 8 months ago by pulkomandy

No KDL anymore, but the driver still doesn't work for floppies.

Note: See TracTickets for help on using tickets.