mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Ieee1394
@ 2001-11-28  9:32 Samuel Maftoul
  2001-11-28 12:19 ` Ieee1394 Kristian Hogsberg
  2001-11-28 14:09 ` Ieee1394 Ben Collins
  0 siblings, 2 replies; 7+ messages in thread
From: Samuel Maftoul @ 2001-11-28  9:32 UTC (permalink / raw)
  To: linux-kernel

Hello everyone,
        Still me with my ieee1394 problems :)

Workaround: My goal is to make ieee1394 HardDisk  work in a production 
environment:
	User come on a machine, plug his disk, store his (experience 
	results) datas on it, unplugs it and go away with it in his home
	institute where he processes his datas.


Tests:
Boot with no devices plugged, no modules related to ieee1394 loaded
-load module ieee1394
-load module ohci1394
	gives a kernel warning: Get PHY Reg Timeout
keventd is up and running

plug of the HD gives in syslog kern.debug:
------------------------------------------------------
ohci1394_0: IntEvent: 00020010
ohci1394_0: irq_handler: Bus reset requested
ohci1394_0: Cancel request received
ohci1394_0: Got RQPkt interrupt status=0x00008409
ohci1394_0: Single packet rcv'd
ohci1394_0: Got phy packet ctx=0 ... discarded
ohci1394_0: IntEvent: 00000010
ohci1394_0: Got RQPkt interrupt status=0x00008409
ohci1394_0: Single packet rcv'd
ohci1394_0: Got phy packet ctx=0 ... discarded
ohci1394_0: Single packet rcv'd
ohci1394_0: Got phy packet ctx=0 ... discarded
------------------------------------------------------

unplug gives in kern.debug:
------------------------------------------------------
ohci1394_0: Got phy packet ctx=0 ... discarded
ohci1394_0: IntEvent: 00000010
ohci1394_0: Got RQPkt interrupt status=0x00008409
ohci1394_0: Single packet rcv'd
ohci1394_0: Got phy packet ctx=0 ... discarded
------------------------------------------------------

load module of sbp2, syslog says: 
------------------------------------------------------
ieee1394: sbp2: Driver forced to serialize I/O (serialize_io = 1)
scsi2 : IEEE-1394 SBP-2 protocol driver
------------------------------------------------------
unplug of HD
replug of the HD
Gives quite the same message as above on plug and unplug


Reboot of the machine with the disk plugged in.
(Maybe reboot isn't needed)  
Modules are loaded manually. 

load of modules ieee1394, ohci1394
module ieee1394 doesn't give any message.
module ohci1394 gives a lot of message (in kern.debug), discuss with the
HD plugged in, gives info about it (30GB ..), loads the sbp2 module.
Here is what i have in kern.warn
------------------------------------------------------
Nov 28 08:19:27 test17-248 kernel: ieee1394: sbp2: Driver forced to serialize I/O (serialize_io = 1)
Nov 28 08:19:27 test17-248 kernel: ieee1394: sbp2: Node 1:1023: Max speed [S400] - Max payload [0x09/2048]
Nov 28 08:19:27 test17-248 kernel:   Vendor: FUJITSU   Model: MHN2300AT         Rev: 7255
Nov 28 08:19:27 test17-248 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 06
Nov 28 08:19:27 test17-248 kernel: Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0
Nov 28 08:19:28 test17-248 kernel: SCSI device sdb: 58605120 512-byte hdwr sectors (30006 MB)
Nov 28 08:19:28 test17-248 kernel:  sdb1
------------------------------------------------------

Now plug 1 more disk on the 1 of the 2 left plug on the ieee1394 pci card: 
------------------------------------------------------
Nov 28 08:24:56 test17-248 kernel: ieee1394: ConfigROM quadlet transaction error for node 0:1023
Nov 28 08:24:57 test17-248 kernel: ieee1394: sbp2: Node 0:1023: Max speed [S400] - Max payload [0x09/2048]
Nov 28 08:25:12 test17-248 kernel: ieee1394: sbp2: Error logging into SBP-2 device - login timed-out
Nov 28 08:25:12 test17-248 kernel: ieee1394: sbp2: sbp2_login_device failed
Nov 28 08:25:12 test17-248 kernel: ieee1394: sbp2: Error reconnecting to SBP-2 device - reconnect failed
Nov 28 08:25:12 test17-248 kernel: ieee1394: sbp2: Node 2:1023: Max speed [S400] - Max payload [0x09/2048]
------------------------------------------------------

Now plug the last remainning slot:
------------------------------------------------------
Nov 28 08:32:09 test17-248 kernel: ieee1394: ConfigROM quadlet transaction error for node 0:1023
Nov 28 08:32:09 test17-248 kernel: ieee1394: sbp2: Node 1:1023: Max speed [S400] - Max payload [0x09/2048]
Nov 28 08:32:14 test17-248 kernel: ieee1394: sbp2: Node 0:1023: Max speed [S400] - Max payload [0x09/2048]
Nov 28 08:32:14 test17-248 kernel: ieee1394: sbp2: Node 2:1023: Max speed [S400] - Max payload [0x09/2048]
------------------------------------------------------

Now lets go for the unplug of the last plugged HD:
Nov 28 08:35:14 test17-248 kernel: ieee1394: sbp2: Node 1:1023: Max speed [S400] - Max payload [0x09/2048]

Now lets unplegged the next one:
Nov 28 08:36:01 test17-248 kernel: ieee1394: ConfigROM quadlet transaction error for node 1:1023
Nov 28 08:36:03 test17-248 kernel: ieee1394: sbp2: Node 0:1023: Max speed [S400] - Max payload [0x09/2048]

The unplug of the only working disk gives no message in kern.warn
The replug gives:
Nov 28 08:52:05 test17-248 kernel: ohci1394_0: SelfID received outside of bus reset sequence
Nov 28 08:52:10 test17-248 kernel: ieee1394: sbp2: Node 0:1023: Max speed [S400] - Max payload [0x09/2048]

Comments:
It seems that the hotplug is working only if the device is plugged before
the boot of the machine or loading the modules (just tested, don't need
to boot the machine with the devies plugged, just need to have plugged
the device before loading ohci1394 module).
This is not really hotplug, right ? Is this normal ?
The is really annoying because if I automatically load the module at boot
time, we need to have a device plugged on every machines what is really
not handy.
The other issue is that the only first device plugged is working.
This isn't really a problem because I need just 1 disk to be plugged but
is this normal (I think so)?
	Sam

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Ieee1394
@ 2001-11-27 13:49 Samuel Maftoul
  2001-11-27 15:04 ` Ieee1394 Keith Owens
  2001-11-27 18:50 ` Ieee1394 Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Samuel Maftoul @ 2001-11-27 13:49 UTC (permalink / raw)
  To: linux-kernel

I have an AFW-4300 card, Lacie pocket hard drive.
I compiled a fresh 2.4.16 (which works perfect :-) ).
I installed the latest modutils version I found at kernel.org (rpm -Uvh
--force --nodeps (nodeps because it won't install because of a tiny kde
app called ksysguard and I don't need it.)
I have also the hotplug package installed and he ieee1394.agent file.

First, I want to report a crash:

----------------------------------snip-----------------------------------
Nov 27 13:21:08 test17-248 kernel: ieee1394: received packet: ffc30160
ffc20000 00000000 58000020
Nov 27 13:21:08 test17-248 kernel: ieee1394: Node 1:1023 changed to
2:1023
Nov 27 13:21:08 test17-248 kernel: Unable to handle kernel paging
request at virtual address 00623430
Nov 27 13:21:08 test17-248 kernel:  printing eip:
Nov 27 13:21:08 test17-248 kernel: d11cae62
Nov 27 13:21:08 test17-248 kernel: *pde = 00000000
Nov 27 13:21:08 test17-248 kernel: Oops: 0002
Nov 27 13:21:08 test17-248 kernel: CPU:    0
Nov 27 13:21:08 test17-248 kernel: EIP:    0010:[<d11cae62>]    Not
tainted
Nov 27 13:21:08 test17-248 kernel: EFLAGS: 00010296
Nov 27 13:21:08 test17-248 kernel: eax: 00623430   ebx: cb80394c   ecx:
c026bec0   edx: d11c5000
Nov 27 13:21:08 test17-248 kernel: esi: c033c0e0   edi: c033c0e0   ebp:
cd42b000   esp: c14edf08
Nov 27 13:21:08 test17-248 kernel: ds: 0018   es: 0018   ss: 0018
Nov 27 13:21:08 test17-248 kernel: Process keventd (pid: 2,
stackpage=c14ed000)
Nov 27 13:21:08 test17-248 kernel: Stack: cb80394c cd42b000 c033c0e0
d11c50a0 00000246 0000ffc2 d11ca5fd cd42b000
Nov 27 13:21:08 test17-248 kernel:        c033c0e0 d11c5000 cb80394c
cf828c4c 00ff5000 d11b9dfe cb8038c0 20000058
Nov 27 13:21:08 test17-248 kernel:        00d04b20 0000ffc2 d11ba0a1
cf828c20 00ff5000 d11c5000 0000ffc2 c14edfa4
Nov 27 13:21:08 test17-248 kernel: Call Trace: [<d11ca5fd>] [<d11b9dfe>]
[<d11ba0a1>] [__run_task_queue+76/96] [context_thread+283/416]
Nov 27 13:21:08 test17-248 kernel:    [kernel_thread+40/56]
Nov 27 13:21:08 test17-248 kernel:
Nov 27 13:21:08 test17-248 kernel: Code: c7 00 00 00 00 00 8b 46 18 c7
40 04 00 00 00 00 8b 46 18 c7
----------------------------------snip-----------------------------------
I hope here is enough, and if you need more, I can send a lot more.
It happened while plugging Hard drives (I plugged 1, the second, and at
the third one, it crashed).
ieee1394 , ohci1394 and sbp2 modules were loaded.
I have the "Excessive debugging output" option enabled.

The second problem I have is:
I don't really understand what for is the hotplug ? can It automatically
mount any new firewire disk I plugged ? How should I do it?
Does someone have a sample script which does  something like:
fdisk -l /dev/$justplugged | awk ... | grep ... ; for i in
$mountabledevices ; do mkdir /mnt/$cnt ; mount ... ; done 
( I hope you got what I'm searching for.)

        Thanks for any help.
                Sam

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-11-28 15:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-28  9:32 Ieee1394 Samuel Maftoul
2001-11-28 12:19 ` Ieee1394 Kristian Hogsberg
2001-11-28 14:09 ` Ieee1394 Ben Collins
2001-11-28 15:29   ` Ieee1394 Samuel Maftoul
  -- strict thread matches above, loose matches on Subject: below --
2001-11-27 13:49 Ieee1394 Samuel Maftoul
2001-11-27 15:04 ` Ieee1394 Keith Owens
2001-11-27 18:50 ` Ieee1394 Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®