Hi!
I found some difference between the log files of x86 and kirkwood.

x86:
iscsid: sysfs_attr_get_value: open '/class/scsi_host/
host8'/'proc_name'
iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/
scsi_host/host8/proc_name'
iscsid: sysfs_attr_get_value: add to cache '/sys/class/scsi_host/host8/
proc_name'
iscsid: sysfs_attr_get_value: cache '/sys/class/scsi_host/host8/
proc_name' with attribute value 'iscsi_tcp'

kirkwood:
iscsid: sysfs_attr_get_value: open '/class/scsi_host/
host0'/'proc_name'
iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/
scsi_host/host0/proc_name'
iscsid: sysfs_attr_get_value: add to cache '/sys/class/scsi_host/host0/
proc_name'
iscsid: sysfs_attr_get_value: cache '/sys/class/scsi_host/host0/
proc_name' with attribute value 'mvSata'

I don't know why the proc_name is "mvSata" in kirkwood whereas it is
"iscsi_tcp" in x86.
The code of "kernel/iscsi_tcp.c" indicates proc_name should be
assigned to be "iscsi_tcp" as follows
        .proc_name              = "iscsi_tcp",

I can not find "mvSata" when I use "grep -r mvSata *" at the top dir
of iscsi.
Does this difference indicate anything wrong somewhere in my kirkwood
environment?

Thanks for any feedback!


On 6月25日, 上午5時36分, EK Shen <[email protected]> wrote:
> Thanks a lot for your feedback.
>
> > What arch is this? Is it 64 bit? Are you doing 64 bit kernels and 32bit
> > userspace? There is a bug where if using 32bit userspace but 64 bit
> > kernels then data transmitted between the kernel and userspace gets
> > messed up and you end up with lots of weird bugs like this?
>
> The Marvell CPU is 32 bit and I specify "ARCH=ARM" in the Makefile.
> The 64 v.s. 32 bit problem should not occur, I think.
>
> > Are you using the tools and kernel from the open-iscsi.org target ball
> > or do you use the tools from open-iscsi.org then the kernel modules from
> > 2.6.22?
>
> Since I am not familiar with iscsi project, I don't know which tool I
> can use to troubleshoot.
> Please provide your suggestion for the related tools and their
> purpose.
>
> I believe useful tools can help me to clarify some question in my
> mind.
> Thanks a lot again!
>
> On 6月23日, 下午11時17分, Mike Christie <[email protected]> wrote:
>
> > On 06/21/2010 01:27 AM, EK Shen wrote:
>
> > > Hi!
> > > I am porting open-iscsi to Marvell Kirkwood (6281) board and
> > > encountered "invalid session" problem. The Linux kernel version is
> > > 2.6.22.18. I have tried open-iscsi 2.0-871, 870, 869 and got the same
> > > error.
> > > I tried the same code in my Linux desktop running Fedora 11. It is
> > > working fine.
> > > Is there anyone who met similar problem before?
>
> > > I traced the code and found that the session is created successfully
> > > but the connection failed to be created because the session lookup
> > > fails.
> > > It should be that "sid 1" is created but "sid 2" is provided for
> > > session lookup.
>
> > What arch is this? Is it 64 bit? Are you doing 64 bit kernels and 32bit
> > userspace? There is a bug where if using 32bit userspace but 64 bit
> > kernels then data transmitted between the kernel and userspace gets
> > messed up and you end up with lots of weird bugs like this?
>
> > Are you using the tools and kernel from the open-iscsi.org target ball
> > or do you use the tools from open-iscsi.org then the kernel modules from
> > 2.6.22?
>
> > > I suspect some data transmission problem occurs between user space and
> > > kernel space.
> > > This problem is very wierd for me.
> > > Could anyone give me some feedback or share experience?
> > > Thanks a lot!
>
> > > ========================================================
> > > # iscsid -d 8 -f&
> > > # iscsiadm -m discovery --type sendtargets --portal 192.168.107.150 -P
> > > 1
> > > ...
> > > Target: iqn.2001-04.com.example:storage.disk2.sys1.xyz
> > >          Portal: 192.168.107.150:3260,1
> > >                  Iface Name: default
> > >          Portal: 192.168.122.1:3260,1
> > >                  Iface Name: default
> > > # iscsiadm -d 8 -m node -l
> > > iscsiadm: Max file limits 1024 1024
> > > ...
> > > iscsiadm: to [iqn.2001-04.com.example:storage.disk2.sys1.xyz,
> > > 192.168.122.1,3260][d]
> > > Logging in to [iface: default, target: iqn.
> > > 2001-04.com.example:storage.disk2.sys1.]
> > > iscsid: poll result 1
> > > ...
> > > iscsid: Allocted session 0x3bbf0
> > > iscsid: no authentication configured...
> > > iscsid: resolved 192.168.107.150 to 192.168.107.150
> > > ...
> > > iscsid: connecting to 192.168.107.150:3260
> > > iscsid: sched conn context 0x43048 evescsi2 : iSCSI Initiator over TCP/
> > > IP
> > > nt 2, tmo 0
> > > iscsid: thread 0x43048 schedule: delay 0 state 3
> > > iiscsi: invalid session 2.
> > > scsid: Setting login timer 0x40fb0 timeout 15
> > > iscsid: thread 0x40fb0 schedule: delay 60 state 3
> > > Logging in to [iface: default, target: iqn.
> > > 2001-04.com.example:storage.disk2.sys1.]
> > > iscsid: exec thread 00043048 callback
> > > iscsid: put conn context 0x43048
> > > iscsid: connected local port 59347 to 192.168.107.150:3260
> > > iscsid: in kcreate_session
> > > iscsid: in __kipc_call
> > > iscsid: in kwritev
> > > iscsid: in nlpayload_read
> > > iscsid: expecting event 11, got 106, handling...
> > > iscsid: in ctldev_handle
> > > iscsid: in nl_read
> > > iscsid: ctldev_handle got event type 106
> > > ....
> > > iscsid: in nlpayload_read
> > > iscsid: in nlpayload_read
> > > iscsid: Could not set session2 priority. READ/WRITE throughout and
> > > latency could b.
>
> > > iscsid: created new iSCSI session sid 2 host no 0
> > > iscsid: in kcreate_conn
> > > iscsid: in __kipc_call
> > > iscsid: in kwritev
> > > iscsid: in nlpayload_read
> > > iscsid: expecting event 13, got 103, handling...
> > > iscsid: in nlpayload_read
> > > iscsid: Received iferror -22
> > > iscsid: returned -22
> > > iscsid: can't create connection (0)
> > > iscsid: disconnect conn
> > > ...
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/open-iscsi?hl=en.

Reply via email to