Bug 203188 - [firewire] external harddrive not recognized by the system
Summary: [firewire] external harddrive not recognized by the system
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-firewire (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-18 10:26 UTC by Alexey Dokuchaev
Modified: 2015-09-18 10:31 UTC (History)
0 users

See Also:


Attachments
Kernel messages upon plugging in and turning on the harddrive (14.54 KB, text/plain)
2015-09-18 10:26 UTC, Alexey Dokuchaev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Dokuchaev freebsd_committer freebsd_triage 2015-09-18 10:26:14 UTC
Created attachment 161161 [details]
Kernel messages upon plugging in and turning on the harddrive

I have a SATA HDD enclosure (JBM353-based) with USB and 1394 interfaces.  It works fine via USB, but not so via FireWire.  According to manufacturer, it should be SBP-2 target revision 4 compliant.

Firewire on the host side is provided by 0x5811:0x11c1 card, identified as LSI Corporation's FW322/323 [TrueFire] 1394a Controller.  System is fresh 11.0-CURRENT/i386.

After loading firewire and sbp modules, I've set debug.firewire_debug=2 and debug.sbp_debug=2 sysctls.  According to dmesg, the enclosure is *somewhat* recognized, because I can see "JMicron" and "353A" strings in the kernel output (among lots of other lines which can mean that something is indeed wrong).  Neither "camcontrol devlist" nor "gpart show" displays the new drive; "fwcontrol -p" differences (without (-) vs. with (+)):

>  === base register ===
> -0x04 0x05 0xe3 0x40 0xc4 0x03 0x00 0x20 
> +0x04 0x85 0xe3 0x40 0xc4 0x03 0x00 0x20 
>  Physical_ID:1  R:0  CPS:0
> -RHB:0  IBR:0  Gap_Count:5
> +RHB:1  IBR:0  Gap_Count:5
...
>  === page 0 port 0 ===
> -0xf8 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
> -Astat:3 BStat:3 Ch:1 Con:0 RXOK:0 Dis:0
> -Negotiated_speed:0 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0
> +0xfe 0x40 0x00 0x00 0x00 0x00 0x00 0x00 
> +Astat:3 BStat:3 Ch:1 Con:1 RXOK:1 Dis:0
> +Negotiated_speed:2 PIE:0 Fault:0 Stanby_fault:0 Disscrm:0 B_Only:0

Kernel messages after the drive is powered on attached.  Feel free to ask for any extra information or details.