From: Jayaraman T. <jay...@gm...> - 2010-12-29 04:06:35
|
patched it. sas_change_queue_depth(sdev, MVS_QUEUE_SIZE) -> sas_change_queue_depth(sdev, MVS_QUEUE_SIZE, SCSI_QDEPTH_DEFAULT); SAM_GOOD -> SAM_STAT_GOOD SAM_CHECK_COND -> SAM_STAT_CHECK_CONDITION Regards, Jayaraman.T On Wed, Dec 29, 2010 at 11:23 AM, Jayaraman Thiruvady <jay...@gm...> wrote: > Hi, > > I have a Marvel card for Supermicro - AOC-SASLP-MV8 and i want use > them as scst target mode. > > 11:00.0 SCSI storage controller: Marvell Technology Group Ltd. > MV64460/64461/64462 System Controller, Revision B (rev 01) > > I am using vanilla kernel 2.6.36.2 and when i try compiling > "mvsas_tgt" target mode code ( scst svn truck ), i get the following > errors > > make -C /lib/modules/2.6.36.2/build > SUBDIRS=/home/jayaraman/scst/mvsas_tgt BUILD_INI=m > make[1]: Entering directory `/usr/src/linux-2.6.36.2' > CC [M] /home/jayaraman/scst/mvsas_tgt/mv_sas.o > /home/jayaraman/scst/mvsas_tgt/mv_sas.c: In function ‘mvs_slave_configure’: > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:423: error: too few arguments > to function ‘sas_change_queue_depth’ > /home/jayaraman/scst/mvsas_tgt/mv_sas.c: In function > ‘mvs_exec_internal_tmf_task’: > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1503: error: ‘SAM_GOOD’ > undeclared (first use in this function) > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1503: error: (Each undeclared > identifier is reported only once > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1503: error: for each function > it appears in.) > /home/jayaraman/scst/mvsas_tgt/mv_sas.c: In function ‘mvs_sata_done’: > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1744: error: ‘SAM_GOOD’ > undeclared (first use in this function) > /home/jayaraman/scst/mvsas_tgt/mv_sas.c: In function ‘mvs_slot_err’: > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1770: error: ‘SAM_CHECK_COND’ > undeclared (first use in this function) > /home/jayaraman/scst/mvsas_tgt/mv_sas.c: In function ‘mvs_slot_complete’: > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1867: error: ‘SAM_GOOD’ > undeclared (first use in this function) > /home/jayaraman/scst/mvsas_tgt/mv_sas.c:1876: error: ‘SAM_CHECK_COND’ > undeclared (first use in this function) > make[2]: *** [/home/jayaraman/scst/mvsas_tgt/mv_sas.o] Error 1 > make[1]: *** [_module_/home/jayaraman/scst/mvsas_tgt] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.6.36.2' > make: *** [all] Error 2 > > I have been using this card in target mode in the kernel - version > 2.6.33.4 and since i updated my kernel to 2.6.36.2, i get into this > issue. > > Looks like mvsas target mode is not supporting latest kernel. Please > let me know which of the latest version of kernel supports this card? > Or can i get any patches to fix this problem? > > Thanks in advance for your reply. > > Regards, > Jayaraman.T > |