Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-14 Thread Rogério Brito
First of all, thank you very much for still taking this issue into
consideration.

Unfortunately, I was submitted to a surgery and only now I am recovered
enough to have access to computers (and I experienced the worst pains that
I have ever felt in my entire life this past week).

Anyway, I will still keep the data that I have on
<http://www.ime.usp.br/~rbrito/bug/> if it helps chasing the bug.

On Jul 09 2005, Stefan Richter wrote:
> On  9 Jul, James Bottomley wrote:
> > What's the breakage?
> 
> There was one report from a -mm tester (Rogério Brito) who needed to
> revert the TYPE_RBC changes to sbp2.[ch]. Else the initial inquiry would
> fail. See the link to the archive in my initial post. Summary of that
> report:
(...)
> To make the matter a bit more complicated, Rogério's FireWire disk has
> got another problem with the ieee1394 base driver. Rogério and I will
> try to work these two (perhaps orthogonal) problems out.

If you want me to experiment with anything, please let me know.

Already reporting to James the contents of
/sys/class/scsi_device//device/type when the device isn't configured
(I'm using a -rc2-mm1 kernel here; vanilla -mm, that is), I get:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[EMAIL PROTECTED]:~$ cat /sys/class/scsi_device/0\:0\:0\:0/device/type 
14
[EMAIL PROTECTED]:~$ 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

If anything else is important, please, don't hesitate to ask.


Thank you very much, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-15 Thread Rogério Brito
Hi, Ben.

On Jul 14 2005, Ben Collins wrote:
> Can you give the latest git tree, plus the latest linux1394 repo a try?

Yes, of course I can. I already have vanilla -rc3-git2 here being compiled.
I have already checked out the linux1394 trunk (in a separate tree).

Should I replace the git ieee1394 tree with the contents of ilnux1394 tree
or should I just focus on sbp2.[ch] like I did in the previous tries?


Thanks, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-15 Thread Rogério Brito
On Jul 15 2005, Stefan Richter wrote:
> This type should also appear with the latest linux1394 drivers.
> sd_mod should be bound to this type now, but it must be loaded manually
> or the hotplug script needs to be adapted:
> http://marc.theaimsgroup.com/?m=112129844017488

Ok, I already patched the hotplug scripts. I will post the results I get in
the next reboot.

> Rogério, the disable_irm issue has not been addressed yet, so please
> try the new code with and without this parameter. (I still intent to
> find out how to make it work without that parameter.) Thanks for testing.

I will test that and report ASAP.

> I hope you get well again soon.


Thank you very much for everything, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-15 Thread Rogério Brito
Hi, all.

On Jul 14 2005, Ben Collins wrote:
> Can you give the latest git tree, plus the latest linux1394 repo a try?

Well, I just booted with a vanilla -rc3-git2 kernel with the patch to the
hotplug scripts that Stefan mentioned in an earlier e-mail and the
enclosure worked this time.

I didn't try the linux1394 trunk yet.

I just uploaded the dmesg output to <http://www.ime.usp.br/~rbrito/bug/>.


Thank you very much for the help, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-15 Thread Rogério Brito
Hi, Ben and others.

On Jul 15 2005, Ben Collins wrote:
> Please try with the latest trunk of our repo (just replace the direcory).

I already tried this and things stopped working. :-( I put the dmesg log on
<http://www.ime.usp.br/~rbrito/bug/> anyway.

Any other things that I should try? Any printk's that I can add to help
debug this thing?


Thanks, Rogério Brito.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-15 Thread Rogério Brito
On Jul 15 2005, Ben Collins wrote:
> No, there are changes in the current rev of the repo. Are sure you tried
> the latest rev?

Well, I think it is, since this is what svn tells me:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[EMAIL PROTECTED]:/usr/local/media/progs$ svn co 
svn://svn.linux1394.org/ieee1394/trunk/ ieee1394
Checked out revision 1315.
[EMAIL PROTECTED]:/usr/local/media/progs$ 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I then copied this over the ieee1394 tree of the git2 kernel and things
stopped working (but with vanilla git2, it worked).

I will now try what Stefan told me and I will report back.


Thanks, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-15 Thread Rogério Brito
Hi, Stefan.

On Jul 15 2005, Stefan Richter wrote:
> Rogério, try "modprobe ieee1394 disable_irm=1" again, of course before
> ohci1394 is loaded. Make sure that sd_mod was loaded.

Ok, I tried this. Here is the relevant part of the dmesg (the whole log is
uploaded to http://www.ime.usp.br/~rbrito/bug/):

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SCSI subsystem initialized
ieee1394: Initialized config rom entry `ip1394'
ieee1394: IRM functionality disabled
sbp2: $Rev: 1311 $ Ben Collins <[EMAIL PROTECTED]>
ohci1394: $Rev: 1313 $ Ben Collins <[EMAIL PROTECTED]>
PCI: Found IRQ 5 for device :00:0a.0
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[5]  MMIO=[db80-db8007ff]  Max 
Packet=[2048]
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[001106664ead]
ieee1394: Node added: ID:BUS[0-01:1023]  GUID[0050c501e00010e8]
scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-01:1023: Max speed [S400] - Max payload [2048]
  Vendor: ST316002  Model: 1ARev: 3.06
  Type:   UnknownANSI SCSI revision: 06
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
SCSI device sda: drive cache: write back
 sda: [mac] sda1 sda2 sda3 sda4
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This time, I removed everything like udev and hotplug, doing things by
hand. I loaded the ohci1394 module after I loaded the sbp2 module.

The drive works this way, but the mouse (ps2) doesn't work. I don't know if
this is related to the fact that I am not using the hotplug scripts (OTOH,
I do see that the kernel has identified the mouse in the dmesg log).

> If this does not help, enable scsi_print_command(...) and 
> scsi_print_sense(...)
> in sbp2scsi_complete_command(), i.e. #define CONFIG_IEEE1394_SBP2_DEBUG 1
> or 2 near the beginning of sbp2.c. I assume there won't be too much 
> resulting SCSI traffic logged, so you could post it directly here to the
> lists.

I will try this right now with the hotplug/udev scripts back (with the
patch you mentioned) and without disable_irm.


Thanks, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-16 Thread Rogério Brito
Hi, Ben, Stefan and co.

On Jul 16 2005, Ben Collins wrote:
> From your last dmesg, it appears that things are in fact working.
> 
> Are you sure that you just don't need to do modprobe sd_mod?

You are right. I just modprobe'd sd_mod by hand and the device was
recognized:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1313 $ Ben Collins <[EMAIL PROTECTED]>
PCI: Found IRQ 5 for device :00:0a.0
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[5]  MMIO=[db80-db8007ff]  Max 
Packet=[2048]
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[001106664ead]
eth1394: $Rev: 1312 $ Ben Collins <[EMAIL PROTECTED]>
eth1394: eth2: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth1: link up, 10Mbps, half-duplex, lpa 0x
ieee1394: Node added: ID:BUS[0-00:1023]  GUID[0050c501e00010e8]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
SCSI subsystem initialized
sbp2: $Rev: 1311 $ Ben Collins <[EMAIL PROTECTED]>
scsi0 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
  Vendor: ST316002  Model: 1ARev: 3.06
  Type:   UnknownANSI SCSI revision: 06
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
SCSI device sda: drive cache: write back
 sda: [mac] sda1 sda2 sda3 sda4
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I had to load sd_mod by hand, though. The hotplug scripts didn't load it
this time.


Hope this helps, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-16 Thread Rogério Brito
Hi, Stefan.

On Jul 16 2005, Stefan Richter wrote:
> Rogério Brito wrote:
> >I just modprobe'd sd_mod by hand and the device was recognized:
> [...]
> >ieee1394: sbp2: Logged into SBP-2 device
> >ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
> >  Vendor: ST316002  Model: 1ARev: 3.06
> >  Type:   UnknownANSI SCSI revision: 06
> >SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
> [...]
> >I had to load sd_mod by hand, though. The hotplug scripts didn't load it
> >this time.
> 
> The .../device/type is 14, right?

Yes, it still is.

(...)
> I could check your scsi.agent if you upload or post it although the 
> necessary addition is trivial.

The changes you suggested are trivial indeed and hwere is what my
scsi.agent file has:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dumont:~# grep sd_mod /etc/hotplug/scsi.agent
0)  TYPE=disk ; MODULES=sd_mod ;;
7)  TYPE=mod ;  MODULES=sd_mod ;;
14) TYPE=rbc-disk ;  MODULE=sd_mod ;;
dumont:~# 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

> But make sure hotplug is really active and not accidently disabled.

I think that it is working.

> (E.g. sbp2 should be autoloaded too when ieee1394 detected an SBP-2
> device.)

Yes, sbp2 is automatically loaded when the device is connected. But, for
some reason, the sd_mod module doesn't. :-(

I have uploaded dmesg's and lsmod's and other information to
<http://www.ime.usp.br/~rbrito/bug/>.

I think that I did it detailed enough (just after booting the system, after
plugging the device and after manually loading the sd_mod module) so that
you can see whatever is interesting.

Of course, I can provide you with any information that you think might be
useful.


Thanks, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-17 Thread Rogério Brito
On Jul 17 2005, Ben Collins wrote:
> That's exactly what we were expecting. The hotplug scripts don't
> recognize TYEP_RBC just yet, but that will be resolved soon.

Oh, right. I can test any further changes that you might have, then.


Thanks, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-17 Thread Rogério Brito

Stefan Richter wrote:

Rogério Brito wrote:


On Jul 17 2005, Ben Collins wrote:


That's exactly what we were expecting. The hotplug scripts don't
recognize TYEP_RBC just yet, but that will be resolved soon.



Oh, right. I can test any further changes that you might have, then.



But didn't you add type 14 (RBC disk) and its association with sd_mod
to your distro's scsi.agent script already...?


Yes, I did. I'm using a patched scsi.agent as per your recommendation. I 
just thought that, perhaps, Ben had another change in mind.


But if that is all that has to be changed, then, there must be something 
incomplete somewhere, because, even though, sd_mod is associated with 
type 14 in scsi.agent, I had to load it manually to make it work with 
the linux1394 trunk. :-(


Of course, as you may expect, loading sd_mod manually is not the only 
way to get the firewire disk working. I have a small USB pen-drive (that 
I use for saving critical data) and plugging it automatically loads sd_mod.


If I, then, plug the firewire enclosure, then everything works as 
expected (as sd_mod is already loaded).


I am now slightly puzzled. BTW, I'm using Debian testing as my 
distribution, just as some extra information.



Thank you very much, Rogério.

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-18 Thread Rogério Brito
On Jul 18 2005, Philipp Slusallek wrote:
> Hi all,

Hi, Philipp.

> I though everyone would notice it: There is an "S" missing in the 
> rbc-disk line from Rogerio's scsi.agent file.

Good catch! I am now going to bed, but I will change that and test it as
soon as I wake up. I will report back the results that I get.


Thanks, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: changes to ieee1394/sbp2 outside of linux1394.org

2005-07-19 Thread Rogério Brito
Hi, all.

On Jul 18 2005, Rogério Brito wrote:
> On Jul 18 2005, Philipp Slusallek wrote:
> > I though everyone would notice it: There is an "S" missing in the 
> > rbc-disk line from Rogerio's scsi.agent file.
> 
> Good catch! I am now going to bed, but I will change that and test it as
> soon as I wake up. I will report back the results that I get.

Just reporting what I promised, indeed, the missing "S" in the scsi.agent
script was enough to make everything work with the linux1394 trunk.

Now, with the patched scsi.agent, the sd_mod actually gets loaded when I
plug the device.


Thank you very much, Rogério.

-- 
Rogério Brito : [EMAIL PROTECTED] : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html