How did you get the SCST to compile against the current ofed 1.2.5
kernel tree? SCST svn fails with ofed 1.2.5 kernel 2.6.22 due to changes
in the SLAB routines.

Tried pruning the extra NULL arg to kmem_cache_create, and got the
attached oopses when the target tried to register the SCST template.

-----Original Message-----
From: Vu Pham [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 20, 2007 12:44 PM
To: Stanley Sufficool
Cc: general
Subject: Re: [ofa-general] [PATCH] SRPT for current SCST

Thanks. I checked in with a few other changes/bug fixes. 
Please test and report any problem

> SCST redefined the scst_tgt_template and it no longer contains the 
> tm_sync_reply field. Also an extra arg is required for scst_register.
> Consequently, the build fails.
> 
> I searched through past SCST versions and docs but could not find what

> this was for and it seems to be set to zero (not used?) in this struct

> anyhow.
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit 
> http://openib.org/mailman/listinfo/openib-general

[12135]: init_scst:1503:scst: SCST version 0.9.6-pre2 loaded successfully (max 
m                                                                             
em for commands 250 Mb)
[12144]: scst_register_virtual_dev_driver:889:scst: Virtual device handler 
vdisk                                                                           
   for type 0 registered successfully
[12144]: scst_register_virtual_dev_driver:889:scst: Virtual device handler 
vdisk                                                                           
  _blk for type 0 registered successfully
[12144]: scst_register_virtual_dev_driver:889:scst: Virtual device handler 
vcdro                                                                           
  m for type 5 registered successfully
[12134]: scst_suspend_activity:418:suspend_count 0
[12134]: scst_suspend_activity:428:Waiting for 0 active commands to complete
[12134]: scst_suspend_activity:430:wait_event() returned
[12134]: scst_suspend_activity:436:Waiting for 0 active commands finally to 
comp                                                                            
 lete
[12134]: scst_suspend_activity:438:wait_event() returned
[12134]: vdisk_attach:469:dev_vdisk: Attached SCSI target virtual disk vdisk0 
(f                                                                             
ile="/dev/cciss/c0d1p1", fs=287277MB, bs=512, nblocks=588343872, cyln=287277)
[12134]: scst_resume_activity:455:suspend_count 1
[12134]: scst_register_virtual_device:681:scst: Attached SCSI target mid-level 
t                                                                             o 
virtual device vdisk0 (id 1)
[12134]: scst_suspend_activity:418:suspend_count 0
[12134]: scst_suspend_activity:428:Waiting for 0 active commands to complete
[12134]: scst_suspend_activity:430:wait_event() returned
[12134]: scst_suspend_activity:436:Waiting for 0 active commands finally to 
comp                                                                            
 lete
[12134]: scst_suspend_activity:438:wait_event() returned
[12134]: scst_resume_activity:455:suspend_count 1
ib_srpt: srpt_add_one[2344] create SRQ #wr= 4095 dev= mthca0
Target login info: 
id_ext=001a4bffff0cd044,ioc_guid=001a4bffff0cd044,pkey=ffff,s                   
                                                          
ervice_id=001a4bffff0cd044
[12152]: scst_suspend_activity:418:suspend_count 0
[12152]: scst_suspend_activity:428:Waiting for 0 active commands to complete
[12152]: scst_suspend_activity:430:wait_event() returned
[12152]: scst_suspend_activity:436:Waiting for 0 active commands finally to 
comp                                                                            
 lete
[12152]: scst_suspend_activity:438:wait_event() returned
[12152]: scst_resume_activity:455:suspend_count 1
[12152]: scst_register:336:scst: Target <NULL> for template ib_srpt registered 
s                                                                             
uccessfully
[12152]: scst_register_target_template:226:scst: Target template ib_srpt 
registe                                                                         
    red successfully
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
 [<0000000000000000>] _stext+0x7fdf7000/0x20
PGD 2e12d067 PUD 2e07a067 PMD 0
Oops: 0010 [1] SMP
CPU 0
Modules linked in: ib_srpt(F) scst_vdisk scst ib_mthca(F)
Pid: 12161, comm: cat Tainted: GF       2.6.23-rc3-ga6f1dd4e-dirty #2
RIP: 0010:[<0000000000000000>]  [<0000000000000000>] _stext+0x7fdf7000/0x20
RSP: 0018:ffff81002eb51e60  EFLAGS: 00010203
RAX: ffff81003bd54b20 RBX: ffff81003cdbb940 RCX: ffff81002eb51f50
RDX: ffff81003f051180 RSI: 0000000000000001 RDI: ffff81003cdbb940
RBP: 0000000000000001 R08: 00002b63c77a2010 R09: ffff81003df58880
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: ffff81002eb51e98 R14: 0000000000000400 R15: ffff81003df58880
FS:  00002b63c77a66d0(0000) GS:ffffffff806e0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 000000002c391000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process cat (pid: 12161, threadinfo ffff81002eb50000, task ffff810039417810)
Stack:  ffffffff802a25b3 ffff810039417810 ffff81002eb51f50 0000000000506000
 ffff81003cdbb970 0000000000000000 0000000046ccb79b 0000000000000000
 ffff81003b208a80 fffffffffffffffb ffff81003df58880 ffff81002eb51f50
Call Trace:
 [<ffffffff802a25b3>] seq_read+0x83/0x2e0
 [<ffffffff802bc5af>] proc_reg_read+0x7f/0xd0
 [<ffffffff80286105>] vfs_read+0xc5/0x160
 [<ffffffff802865e3>] sys_read+0x53/0x90
 [<ffffffff8020c22e>] system_call+0x7e/0x83


Code:  Bad RIP value.
RIP  [<0000000000000000>] _stext+0x7fdf7000/0x20
 RSP <ffff81002eb51e60>
CR2: 0000000000000000
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to