[osol-code] [COMSTAR]Is somebody have the experice to complie the COMSTAR

2010-01-14 Thread liujun
Is somebody have the experice to complie the special module, not the whole modlue. Thanks. -- This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/openso

[osol-code] [AVS Snapshot] Cannot enable master volume

2010-01-12 Thread liujun
If i map the zvol by COMSTAR, the snapshot is not enable. I can't get the reason by debug the module(SV/II/RDC) and view the code. The info is below,Maybe some body has a good experience. Thanks bash-3.2# sbdadm list-lu Found 3 LU(s) GUIDDATA SIZE S

[osol-code] some puzzles about learn the inital flows of add a devce in the MPxIO

2007-11-13 Thread liujun
Hi all, The link,http://www.opensolaris.org/os/community/arc/caselog/1999/647/, gives our overview about the MPxIO.It's so cool. When want to learn more , I find that i am dropped into a loop . The problem is what the relative between tvhci, tphci, tcli . I can't find some right flows

[osol-code] a problem about resending a scsi_pkt by other path

2007-09-04 Thread liujun
Hi all, There are two HBAs in my host . I create a scsi_pkt and send it by the HBA1 (using _tran_start). At this point ,The HBA1 is drop out ,so the the scsi_pkt is returned with the timeout reason. When find the pkt's reason is timeout , I chose the HBA2 to send it(That's means c

[osol-code] A puzzle about the NULL Dereference

2007-08-22 Thread liujun
msgbuf is below: NOTICE: mppLnx_remove_proxyRequest_from_list() MPPLNX_QUEUE_QUEUED_LIST LockAddress:70411de0 panic[cpu2]/thread=2a100359cc0: BAD TRAP: type=31 rp=2a100359590 addr=0 mmu_fsr=0 occurred in module "vhba" due to a NULL pointer dereference sched: trap type = 0x31 pid=0, pc=0x13

[osol-code] Where can download the Qlogic or emulex driver's open source code

2007-08-08 Thread liujun
Thanks!! This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

[osol-code] about ctfconvert error messags

2007-07-24 Thread liujun
my gcc and ctfconvert commands are below: gcc -g -c -D_KERNEL -m64 -I"../mpp_linux_headers" -I"../mpp_linux_sys_headers" -D__UNIX__ -o mppLnx26_upper.o mppLnx26_upper.c ctfconvert -g -l upperlabe mppLnx26_upper.o [b]ERROR: ctfconvert: die 58581: failed to get unsigned (form 0x13)[/b] Remov

[osol-code] about cross references between two modules

2007-07-19 Thread liujun
My test case is to sure that if cross references is viable. The modules are ModuleA and ModuleB.In ModuleA ,it references ModuleB's function funBaseModuleB().In the same way ,ModuleB references ModuleA's function funBaseModuleA(). my linking params: for ModuleA: ld -dy -r -N"ModuleB" -o ModuleA

Re: [osol-code] about the logical processor's numbers on the T2000

2007-07-17 Thread liujun
Thanks !! There are 4 core T1 chips.we can confirm it by the follow: #mdb -k > ::walk cpu|::print cpu_t cpu_chip cpu_chip = cpu0_chip cpu_chip = cpu0_chip cpu_chip = cpu0_chip cpu_chip = cpu0_chip [u]cpu_chip = 0x60001572e40 cpu_chip = 0x60001572e40 cpu_chip = 0x60001572e40 cpu_chip = 0x60001572e

[osol-code] about the logical processor's numbers on the T2000

2007-07-17 Thread liujun
The follow infomation from the T2000 and we can see only 16 logical processors. But the Chapter 3. "Scheduling Classes and the Dispatcher" which from the book named "Prentice.Hall.PTR.Solaris.Internals.Solaris.10.and.OpenSolaris.Kernel.Architecture.2nd.Edition.Jul.2006.chm" , says that T2000 ha

Re: [osol-code] about to record moudle's log in my own file, not the /var/adm/messags

2007-07-12 Thread liujun
Thank seanmcg and dmick very much! By the former poor research, I know the whole concept about Dtrace . The Dtrace can trace the important entries (enter & exit ) for functions and some struct informations. About the sysylog.conf as dmick talked , I have some puzzles to do acti

[osol-code] about to record moudle's log in my own file, not the /var/adm/messags

2007-07-11 Thread liujun
The messag log is effctive and direct method to debug kernal module. To collect the interested module's informations , we only use the shell script on the /var/adm/messags . So,I want to record module's log in separate file acording on module's name. I face two problem: i) how to creat

Re: [osol-code] how to kill kernal thread which create by thread_create

2007-07-09 Thread liujun
I know what I will do now. Thanks Casper. There are some differeces between Linux kernal thread and Solaris's in that point. This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.op

Re: [osol-code] how to kill kernal thread which create by thread_create

2007-07-09 Thread liujun
Is tsignal(kthread_t *t, int sig) from uts/common/os/sig.c file able to do it? In my example: kthread_t *pTId = thread_create( ..); tsignal(pTId ,SIGILL); but the kthread is still live on . This message posted from opensolaris.org ___ openso

[osol-code] how to kill kernal thread which create by thread_create

2007-07-03 Thread liujun
I have two puzzles: i) how to send signals to kernal threads and how kernal threads to shield some special signals. ii) how to kill kernal thread which create by thread_create Maybe I can make the kernal thread's state to "TS_ZOMB". I hope your help . Thanks This message posted from op

[osol-code] about forceload in /etc/system

2007-06-13 Thread liujun
I want to contrl the sequence of loading driver_A and driverB.So,I add the following lines in the /etc/system: forceload drv/driver_A forceload drv/driver_B Form above ,we can see some helps say that force the kernel load the driver_A and driver_B at boot time.[b]IF forcelaod can ensure the s

[osol-code] "no dump device " in panic message

2007-05-28 Thread liujun
the message below: .. panic:page fault uptime:17m42s [b]cannot dump , no dump device defind[/b] Automatic reboot in 15 seconds .. I want to save the dump and how can I do? I have added "set kmem_flags=0xf" in etc/system file accord to mdb describe Tanks!!! This message posted from

[osol-code] is there some method( or example modules ) to send asynchronism scsi cmd

2007-05-22 Thread liujun
As we known ,the scsi command is send by hba_tran_start(). hope for your hlep and thank you This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opens

[osol-code] deploy my kernal module

2007-05-15 Thread liujun
For driver modules,we can deploy it at /kernal/drv/ ,and make driver.conf file. How to deploy other module define in Modctl.h such as : /* For misc */ struct modlmisc { struct mod_ops *misc_modops; char*misc_linkinfo; }; which directory can we palce

[osol-code] Re: puzzle about how to get wwn(port-wwn,node-wwn)

2007-05-15 Thread liujun
Thanks!! In some condition, such as stms is disable, is vchi able to provide services? Mabey I can send inquire scsi pkt to the physics device throgh HBA(scsi_hab_start ). The another problem is to product scsi pkt and how to assign scdi cdb value. This message posted from openso

[osol-code] puzzle about how to get wwn(port-wwn,node-wwn)

2007-05-14 Thread liujun
There are still some problems to retrieve the wwn(port-wwn,node-wwn) of device in XXX_attch or XXX_info entry point by call ddi_prop_op example as : ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC, DDI_PROP_DONTPASS, "wwn", (caddr_t)&propval, &proplen) , ddi_prop_op(DDI_DEV_

[osol-code] puzzle about how to get wwn(port-wwn,node-wwn)

2007-05-14 Thread liujun
There are still some problems to retrieve the wwn(port-wwn,node-wwn) of device in XXX_attch or XXX_info entry point by call ddi_prop_op example as : ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC, DDI_PROP_DONTPASS, "wwn", (caddr_t)&propval, &proplen) , ddi_prop_op(DDI_DEV_

[osol-code] Re: some puzzle about ctfconvert/ctfmerge

2007-05-13 Thread liujun
Thanks, the other action: #gcc -D_KERNEL -c dummy.c #ctfconver -g -l LBL dummy.o ERROR:ctfconvert:dummy.o doesn't have type data to convert removing dummy.o what can i do for the error message? This message posted from opensolaris.org ___ opensola

[osol-code] some puzzle about ctfconvert/ctfmerge

2007-05-13 Thread liujun
where can get the materials about ctfconvert/ctfmerge my problem is follow: #gcc -D_KERNEL -c -g dummy.c #ctfconvert -g -l LBL dummy.o [color=Red]ERROR:ctfconvert:GCC-generated stabs are unsupported. Use DWAF instead. removing dummy.o[/color] I don't know the PARAM's( -l LBL)means thank yo

[osol-code] some puzzle about ctfconvert/ctfmerge

2007-05-13 Thread liujun
where can get the material about ctfconvert/ctfmerge my problem is follow: #gcc -D_KERNEL -c -g dummy.c #ctfconvert -g -l LBL dummy.o [color=Red]ERROR:ctfconvert:GCC-generated stabs are unsupported. Use DWAF instead. removing dummy.o[/color] I don't know the PARAM -l means thank you Th

[osol-code] how to get the wwn property of device ? use ddi_prop_op ?

2007-05-13 Thread liujun
when i use ddi_prop_op to give wwn property of device ,there has a coredump . there maybe some bug in the ddi_prop_search_common which is called by ddi_prop_op , if property not exist in devi_drv_prop_ptr and evi_sys_prop_ptr is null code is follow : propp = i_ddi_prop_search(dev, name, fla