Print this page
XXXX Nexenta fixes for mpt_sas(7d)

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
          +++ new/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_raid.c
↓ open down ↓ 83 lines elided ↑ open up ↑
  84   84  /*
  85   85   * private header files.
  86   86   */
  87   87  #include <sys/scsi/adapters/mpt_sas/mptsas_var.h>
  88   88  
  89   89  static int mptsas_get_raid_wwid(mptsas_t *mpt, mptsas_raidvol_t *raidvol);
  90   90  
  91   91  extern int mptsas_check_dma_handle(ddi_dma_handle_t handle);
  92   92  extern int mptsas_check_acc_handle(ddi_acc_handle_t handle);
  93   93  extern mptsas_target_t *mptsas_tgt_alloc(mptsas_hash_table_t *, uint16_t,
  94      -    uint64_t, uint32_t, mptsas_phymask_t, uint8_t, mptsas_t *);
       94 +    uint64_t, uint32_t, mptsas_phymask_t, uint8_t);
  95   95  
  96   96  static int
  97   97  mptsas_raidconf_page_0_cb(mptsas_t *mpt, caddr_t page_memp,
  98   98      ddi_acc_handle_t accessp, uint16_t iocstatus, uint32_t iocloginfo,
  99   99      va_list ap)
 100  100  {
 101  101  #ifndef __lock_lint
 102  102          _NOTE(ARGUNUSED(ap))
 103  103  #endif
 104  104          pMpi2RaidConfigurationPage0_t   raidconfig_page0;
↓ open down ↓ 104 lines elided ↑ open up ↑
 209  209                              &raidconfig->m_raidvol[vol]))
 210  210                                  continue;
 211  211  
 212  212                          raidwwn = raidconfig->m_raidvol[vol].
 213  213                              m_raidwwid;
 214  214  
 215  215                          /*
 216  216                           * RAID uses phymask of 0.
 217  217                           */
 218  218                          ptgt = mptsas_tgt_alloc(&slots->m_tgttbl,
 219      -                            voldevhandle, raidwwn, 0, 0, 0, mpt);
      219 +                            voldevhandle, raidwwn, 0, 0, 0);
 220  220  
 221  221                          raidconfig->m_raidvol[vol].m_raidtgt =
 222  222                              ptgt;
 223  223  
 224  224                          /*
 225  225                           * Increment volume index within this
 226  226                           * raid config.
 227  227                           */
 228  228                          vol++;
 229  229                  } else if ((elementtype == etype_pd) ||
↓ open down ↓ 558 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX